Skip to content

Commit 490d641

Browse files
committed
add more _count fields as in #188
1 parent 759d160 commit 490d641

File tree

87 files changed

+15686
-666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+15686
-666
lines changed

api/openapi.yaml

-37
Original file line numberDiff line numberDiff line change
@@ -116668,7 +116668,6 @@ components:
116668116668
type: integer
116669116669
readOnly: true
116670116670
required:
116671-
- asn_count
116672116671
- display
116673116672
- end
116674116673
- id
@@ -117200,7 +117199,6 @@ components:
117200117199
format: int64
117201117200
readOnly: true
117202117201
required:
117203-
- circuit_count
117204117202
- display
117205117203
- id
117206117204
- name
@@ -117476,7 +117474,6 @@ components:
117476117474
title: ' depth'
117477117475
required:
117478117476
- _depth
117479-
- contact_count
117480117477
- display
117481117478
- id
117482117479
- name
@@ -117590,7 +117587,6 @@ components:
117590117587
type: string
117591117588
readOnly: true
117592117589
required:
117593-
- choices_count
117594117590
- display
117595117591
- id
117596117592
- name
@@ -118167,7 +118163,6 @@ components:
118167118163
required:
118168118164
- display
118169118165
- id
118170-
- inventoryitem_count
118171118166
- name
118172118167
- slug
118173118168
- url
@@ -118757,7 +118752,6 @@ components:
118757118752
- display
118758118753
- id
118759118754
- name
118760-
- powerfeed_count
118761118755
- url
118762118756
BriefPowerPanelRequest:
118763118757
type: object
@@ -118904,7 +118898,6 @@ components:
118904118898
format: int64
118905118899
readOnly: true
118906118900
required:
118907-
- circuit_count
118908118901
- display
118909118902
- id
118910118903
- name
@@ -119045,7 +119038,6 @@ components:
119045119038
format: int64
119046119039
readOnly: true
119047119040
required:
119048-
- aggregate_count
119049119041
- display
119050119042
- id
119051119043
- name
@@ -119560,7 +119552,6 @@ components:
119560119552
- id
119561119553
- name
119562119554
- slug
119563-
- tenant_count
119564119555
- url
119565119556
BriefTenantGroupRequest:
119566119557
type: object
@@ -119658,7 +119649,6 @@ components:
119658119649
- id
119659119650
- name
119660119651
- slug
119661-
- tunnel_count
119662119652
- url
119663119653
BriefTunnelGroupRequest:
119664119654
type: object
@@ -119963,7 +119953,6 @@ components:
119963119953
required:
119964119954
- display
119965119955
- id
119966-
- member_count
119967119956
- name
119968119957
- url
119969119958
BriefVirtualChassisRequest:
@@ -120162,7 +120151,6 @@ components:
120162120151
- name
120163120152
- slug
120164120153
- url
120165-
- wirelesslan_count
120166120154
BriefWirelessLANGroupRequest:
120167120155
type: object
120168120156
description: Extends PrimaryModelSerializer to include MPTT support.
@@ -120937,7 +120925,6 @@ components:
120937120925
format: int64
120938120926
readOnly: true
120939120927
required:
120940-
- circuit_count
120941120928
- display
120942120929
- id
120943120930
- name
@@ -121424,7 +121411,6 @@ components:
121424121411
format: int64
121425121412
readOnly: true
121426121413
required:
121427-
- circuit_count
121428121414
- display
121429121415
- id
121430121416
- name
@@ -123398,7 +123384,6 @@ components:
123398123384
title: ' depth'
123399123385
required:
123400123386
- _depth
123401-
- contact_count
123402123387
- display
123403123388
- id
123404123389
- name
@@ -123875,7 +123860,6 @@ components:
123875123860
readOnly: true
123876123861
nullable: true
123877123862
required:
123878-
- choices_count
123879123863
- display
123880123864
- extra_choices
123881123865
- id
@@ -124473,7 +124457,6 @@ components:
124473124457
readOnly: true
124474124458
required:
124475124459
- display
124476-
- file_count
124477124460
- id
124478124461
- name
124479124462
- source_url
@@ -125747,7 +125730,6 @@ components:
125747125730
- display
125748125731
- front_port_count
125749125732
- id
125750-
- interface_count
125751125733
- inventory_item_count
125752125734
- module_bay_count
125753125735
- power_outlet_count
@@ -127665,7 +127647,6 @@ components:
127665127647
- id
127666127648
- name
127667127649
- url
127668-
- user_count
127669127650
GroupRequest:
127670127651
type: object
127671127652
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -133623,7 +133604,6 @@ components:
133623133604
required:
133624133605
- display
133625133606
- id
133626-
- inventoryitem_count
133627133607
- name
133628133608
- slug
133629133609
- url
@@ -134635,9 +134615,7 @@ components:
134635134615
required:
134636134616
- display
134637134617
- id
134638-
- inventoryitem_count
134639134618
- name
134640-
- platform_count
134641134619
- slug
134642134620
- url
134643134621
ManufacturerRequest:
@@ -151359,7 +151337,6 @@ components:
151359151337
- display
151360151338
- id
151361151339
- name
151362-
- powerfeed_count
151363151340
- site
151364151341
- url
151365151342
PowerPanelRequest:
@@ -153398,7 +153375,6 @@ components:
153398153375
format: int64
153399153376
readOnly: true
153400153377
required:
153401-
- circuit_count
153402153378
- display
153403153379
- id
153404153380
- name
@@ -153663,7 +153639,6 @@ components:
153663153639
format: int64
153664153640
readOnly: true
153665153641
required:
153666-
- aggregate_count
153667153642
- display
153668153643
- id
153669153644
- name
@@ -153990,7 +153965,6 @@ components:
153990153965
- display
153991153966
- id
153992153967
- name
153993-
- powerfeed_count
153994153968
- site
153995153969
- url
153996153970
RackRequest:
@@ -156679,7 +156653,6 @@ components:
156679156653
format: int64
156680156654
readOnly: true
156681156655
required:
156682-
- circuit_count
156683156656
- display
156684156657
- id
156685156658
- name
@@ -157123,10 +157096,8 @@ components:
157123157096
format: int64
157124157097
readOnly: true
157125157098
required:
157126-
- circuit_count
157127157099
- display
157128157100
- id
157129-
- ipaddress_count
157130157101
- name
157131157102
- slug
157132157103
- url
@@ -157193,7 +157164,6 @@ components:
157193157164
- id
157194157165
- name
157195157166
- slug
157196-
- tenant_count
157197157167
- url
157198157168
TenantGroupRequest:
157199157169
type: object
@@ -157550,7 +157520,6 @@ components:
157550157520
- id
157551157521
- name
157552157522
- status
157553-
- terminations_count
157554157523
- url
157555157524
TunnelGroup:
157556157525
type: object
@@ -157606,7 +157575,6 @@ components:
157606157575
- id
157607157576
- name
157608157577
- slug
157609-
- tunnel_count
157610157578
- url
157611157579
TunnelGroupRequest:
157612157580
type: object
@@ -158650,7 +158618,6 @@ components:
158650158618
required:
158651158619
- display
158652158620
- id
158653-
- ipaddress_count
158654158621
- name
158655158622
- url
158656158623
VRFRequest:
@@ -158758,7 +158725,6 @@ components:
158758158725
required:
158759158726
- display
158760158727
- id
158761-
- member_count
158762158728
- members
158763158729
- name
158764158730
- url
@@ -159235,7 +159201,6 @@ components:
159235159201
- device
159236159202
- display
159237159203
- id
159238-
- interface_count
159239159204
- name
159240159205
- status
159241159206
- url
@@ -159534,7 +159499,6 @@ components:
159534159499
required:
159535159500
- display
159536159501
- id
159537-
- interface_count
159538159502
- name
159539159503
- url
159540159504
- virtual_disk_count
@@ -160039,7 +160003,6 @@ components:
160039160003
- name
160040160004
- slug
160041160005
- url
160042-
- wirelesslan_count
160043160006
WirelessLANGroupRequest:
160044160007
type: object
160045160008
description: Extends PrimaryModelSerializer to include MPTT support.

api_utils_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ func HGetClient(t *testing.T) *APIClient {
1111
token := os.Getenv("NETBOX_TOKEN")
1212

1313
if srv == "" {
14-
t.Fatal("NETBOX_URL is not set")
14+
t.Skip("NETBOX_URL is not set")
1515
}
1616
if token == "" {
17-
t.Fatal("NETBOX_TOKEN is not set")
17+
t.Skip("NETBOX_TOKEN is not set")
1818
}
1919

2020
cfg := NewConfiguration()

docs/ASNRange.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Name | Type | Description | Notes
1919
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
2020
**Created** | Pointer to **NullableTime** | | [optional] [readonly]
2121
**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly]
22-
**AsnCount** | **int32** | | [readonly]
22+
**AsnCount** | Pointer to **int32** | | [optional] [readonly]
2323

2424
## Methods
2525

2626
### NewASNRange
2727

28-
`func NewASNRange(id int32, url string, display string, name string, slug string, rir BriefRIR, start int64, end int64, asnCount int32, ) *ASNRange`
28+
`func NewASNRange(id int32, url string, display string, name string, slug string, rir BriefRIR, start int64, end int64, ) *ASNRange`
2929

3030
NewASNRange instantiates a new ASNRange object
3131
This constructor will assign default values to properties that have it defined,
@@ -424,6 +424,11 @@ and a boolean to check if the value has been set.
424424

425425
SetAsnCount sets AsnCount field to given value.
426426

427+
### HasAsnCount
428+
429+
`func (o *ASNRange) HasAsnCount() bool`
430+
431+
HasAsnCount returns a boolean if a field has been set.
427432

428433

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

docs/BriefCircuitType.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Name | Type | Description | Notes
1010
**Name** | **string** | |
1111
**Slug** | **string** | |
1212
**Description** | Pointer to **string** | | [optional]
13-
**CircuitCount** | **int64** | | [readonly]
13+
**CircuitCount** | Pointer to **int64** | | [optional] [readonly]
1414

1515
## Methods
1616

1717
### NewBriefCircuitType
1818

19-
`func NewBriefCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64, ) *BriefCircuitType`
19+
`func NewBriefCircuitType(id int32, url string, display string, name string, slug string, ) *BriefCircuitType`
2020

2121
NewBriefCircuitType instantiates a new BriefCircuitType object
2222
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.
175175

176176
SetCircuitCount sets CircuitCount field to given value.
177177

178+
### HasCircuitCount
179+
180+
`func (o *BriefCircuitType) HasCircuitCount() bool`
181+
182+
HasCircuitCount returns a boolean if a field has been set.
178183

179184

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

docs/BriefContactGroup.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Name | Type | Description | Notes
1010
**Name** | **string** | |
1111
**Slug** | **string** | |
1212
**Description** | Pointer to **string** | | [optional]
13-
**ContactCount** | **int32** | | [readonly] [default to 0]
13+
**ContactCount** | Pointer to **int32** | | [optional] [readonly] [default to 0]
1414
**Depth** | **int32** | | [readonly]
1515

1616
## Methods
1717

1818
### NewBriefContactGroup
1919

20-
`func NewBriefContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32, ) *BriefContactGroup`
20+
`func NewBriefContactGroup(id int32, url string, display string, name string, slug string, depth int32, ) *BriefContactGroup`
2121

2222
NewBriefContactGroup instantiates a new BriefContactGroup object
2323
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.
176176

177177
SetContactCount sets ContactCount field to given value.
178178

179+
### HasContactCount
180+
181+
`func (o *BriefContactGroup) HasContactCount() bool`
182+
183+
HasContactCount returns a boolean if a field has been set.
179184

180185
### GetDepth
181186

0 commit comments

Comments
 (0)