Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick fix for #165: Make some *_count fields non-required #178

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 3 additions & 28 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102497,7 +102497,6 @@ components:
- id
- name
- url
- virtualmachine_count
ClusterGroup:
type: object
description: Adds support for custom fields and tags.
Expand Down Expand Up @@ -105385,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.
Expand Down Expand Up @@ -105609,13 +105593,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.
Expand Down Expand Up @@ -105685,7 +105667,6 @@ components:
format: int64
readOnly: true
required:
- device_count
- display
- id
- manufacturer
Expand Down Expand Up @@ -113955,7 +113936,6 @@ components:
format: int64
readOnly: true
required:
- devicetype_count
- display
- id
- name
Expand Down Expand Up @@ -126667,13 +126647,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.
Expand Down Expand Up @@ -129230,7 +129208,6 @@ components:
format: int64
readOnly: true
required:
- device_count
- display
- id
- name
Expand Down Expand Up @@ -130139,7 +130116,6 @@ components:
- display
- id
- name
- prefix_count
- slug
- url
- vlan_count

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vlan_count is also affected / in-scope

Expand Down Expand Up @@ -131850,7 +131826,6 @@ components:
- display
- id
- name
- prefix_count
- url
VRFRequest:
type: object
Expand Down
9 changes: 7 additions & 2 deletions docs/Cluster.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

### 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,
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 *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
Loading