Skip to content

Commit

Permalink
Make 'virtualmachine_count' not required
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoo committed Sep 19, 2024
1 parent 14559fc commit 642f7b3
Show file tree
Hide file tree
Showing 18 changed files with 236 additions and 137 deletions.
8 changes: 0 additions & 8 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105446,7 +105446,6 @@ components:
- id
- name
- url
- virtualmachine_count
BriefClusterGroup:
type: object
description: Adds support for custom fields and tags.
Expand Down Expand Up @@ -105941,7 +105940,6 @@ components:
- name
- slug
- url
- virtualmachine_count
BriefDeviceRoleRequest:
type: object
description: Adds support for custom fields and tags.
Expand Down Expand Up @@ -106867,7 +106865,6 @@ components:
- name
- slug
- url
- virtualmachine_count
BriefPlatformRequest:
type: object
description: Adds support for custom fields and tags.
Expand Down Expand Up @@ -109545,7 +109542,6 @@ components:
- name
- type
- url
- virtualmachine_count
ClusterGroup:
type: object
description: Adds support for custom fields and tags.
Expand Down Expand Up @@ -113080,7 +113076,6 @@ components:
- name
- slug
- url
- virtualmachine_count
DeviceRoleRequest:
type: object
description: Adds support for custom fields and tags.
Expand Down Expand Up @@ -136599,7 +136594,6 @@ components:
- name
- slug
- url
- virtualmachine_count
PlatformRequest:
type: object
description: Adds support for custom fields and tags.
Expand Down Expand Up @@ -144070,7 +144064,6 @@ components:
- rack_count
- slug
- url
- virtualmachine_count
- vlan_count
SiteGroup:
type: object
Expand Down Expand Up @@ -144529,7 +144522,6 @@ components:
- site_count
- slug
- url
- virtualmachine_count
- vlan_count
- vrf_count
TenantGroup:
Expand Down
9 changes: 7 additions & 2 deletions docs/BriefCluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

### NewBriefCluster

`func NewBriefCluster(id int32, url string, display string, name string, virtualmachineCount int64, ) *BriefCluster`
`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,
Expand Down Expand Up @@ -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 *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)
Expand Down
9 changes: 7 additions & 2 deletions docs/BriefDeviceRole.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Name | Type | Description | Notes
**Slug** | **string** | |
**Description** | Pointer to **string** | | [optional]
**DeviceCount** | Pointer to **int64** | | [optional] [readonly]
**VirtualmachineCount** | **int64** | | [readonly]
**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly]

## Methods

### NewBriefDeviceRole

`func NewBriefDeviceRole(id int32, url string, display string, name string, slug string, virtualmachineCount int64, ) *BriefDeviceRole`
`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,
Expand Down Expand Up @@ -201,6 +201,11 @@ and a boolean to check if the value has been set.

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)
Expand Down
9 changes: 7 additions & 2 deletions docs/BriefPlatform.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Name | Type | Description | Notes
**Slug** | **string** | |
**Description** | Pointer to **string** | | [optional]
**DeviceCount** | Pointer to **int64** | | [optional] [readonly]
**VirtualmachineCount** | **int64** | | [readonly]
**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly]

## Methods

### NewBriefPlatform

`func NewBriefPlatform(id int32, url string, display string, name string, slug string, virtualmachineCount int64, ) *BriefPlatform`
`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,
Expand Down Expand Up @@ -201,6 +201,11 @@ and a boolean to check if the value has been set.

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)
Expand Down
9 changes: 7 additions & 2 deletions docs/Cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Name | Type | Description | Notes
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
**DeviceCount** | Pointer to **int64** | | [optional] [readonly]
**VirtualmachineCount** | **int64** | | [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, virtualmachineCount int64, ) *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,
Expand Down Expand Up @@ -496,6 +496,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)
Expand Down
9 changes: 7 additions & 2 deletions docs/DeviceRole.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ Name | Type | Description | Notes
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
**DeviceCount** | Pointer to **int64** | | [optional] [readonly]
**VirtualmachineCount** | **int64** | | [readonly]
**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly]

## Methods

### NewDeviceRole

`func NewDeviceRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, virtualmachineCount int64, ) *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,
Expand Down Expand Up @@ -424,6 +424,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)
Expand Down
9 changes: 7 additions & 2 deletions docs/Platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Name | Type | Description | Notes
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
**DeviceCount** | Pointer to **int64** | | [optional] [readonly]
**VirtualmachineCount** | **int64** | | [readonly]
**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly]

## Methods

### NewPlatform

`func NewPlatform(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, virtualmachineCount int64, ) *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,
Expand Down Expand Up @@ -408,6 +408,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)
Expand Down
9 changes: 7 additions & 2 deletions docs/Site.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ Name | Type | Description | Notes
**DeviceCount** | Pointer to **int64** | | [optional] [readonly]
**PrefixCount** | **int64** | | [readonly]
**RackCount** | **int64** | | [readonly]
**VirtualmachineCount** | **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, prefixCount int64, rackCount int64, virtualmachineCount int64, vlanCount int64, ) *Site`
`func NewSite(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, prefixCount int64, rackCount int64, vlanCount int64, ) *Site`

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

SetVirtualmachineCount sets VirtualmachineCount field to given value.

### HasVirtualmachineCount

`func (o *Site) HasVirtualmachineCount() bool`

HasVirtualmachineCount returns a boolean if a field has been set.

### GetVlanCount

Expand Down
9 changes: 7 additions & 2 deletions docs/Tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Name | Type | Description | Notes
**PrefixCount** | **int64** | | [readonly]
**RackCount** | **int64** | | [readonly]
**SiteCount** | **int64** | | [readonly]
**VirtualmachineCount** | **int64** | | [readonly]
**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly]
**VlanCount** | **int64** | | [readonly]
**VrfCount** | **int64** | | [readonly]
**ClusterCount** | **int64** | | [readonly]
Expand All @@ -32,7 +32,7 @@ Name | Type | Description | Notes

### NewTenant

`func NewTenant(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ipaddressCount int64, prefixCount int64, rackCount int64, siteCount int64, virtualmachineCount int64, vlanCount int64, vrfCount int64, clusterCount int64, ) *Tenant`
`func NewTenant(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ipaddressCount int64, prefixCount 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,
Expand Down Expand Up @@ -506,6 +506,11 @@ and a boolean to check if the value has been set.

SetVirtualmachineCount sets VirtualmachineCount field to given value.

### HasVirtualmachineCount

`func (o *Tenant) HasVirtualmachineCount() bool`

HasVirtualmachineCount returns a boolean if a field has been set.

### GetVlanCount

Expand Down
36 changes: 22 additions & 14 deletions model_brief_cluster.go

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

Loading

0 comments on commit 642f7b3

Please sign in to comment.