Skip to content

Commit c66c588

Browse files
Update API Client
#### What's Changed --- ##### `GET` /endpoints/agents/connectors/agent_config/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `authorization_flow` (string) ##### `POST` /endpoints/agents/connectors/check_in/ ###### Request: Changed content type : `application/json` * Changed property `hardware` (object) New optional properties: - `manufacturer` - `model` ##### `GET` /policies/geoip/{policy_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `PUT` /policies/geoip/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `PATCH` /policies/geoip/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `GET` /endpoints/devices/{device_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New optional properties: - `access_group_obj` * Changed property `facts` (object) * Changed property `data` (object) * Changed property `hardware` (object) New optional properties: - `manufacturer` - `model` ##### `PUT` /endpoints/devices/{device_uuid}/ ###### Request: Changed content type : `application/json` New optional properties: - `access_group_obj` ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New optional properties: - `access_group_obj` * Changed property `facts` (object) * Changed property `data` (object) * Changed property `hardware` (object) New optional properties: - `manufacturer` - `model` ##### `PATCH` /endpoints/devices/{device_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New optional properties: - `access_group_obj` * Changed property `facts` (object) * Changed property `data` (object) * Changed property `hardware` (object) New optional properties: - `manufacturer` - `model` ##### `POST` /policies/geoip/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `countries` (array) ##### `GET` /policies/geoip/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > GeoIP Policy Serializer * Changed property `countries` (array) ##### `GET` /endpoints/devices/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): New optional properties: - `access_group_obj` * Changed property `facts` (object) * Changed property `data` (object) * Changed property `hardware` (object) New optional properties: - `manufacturer` - `model`
1 parent ab87f7e commit c66c588

19 files changed

+323
-187
lines changed

api/openapi.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49549,6 +49549,8 @@ components:
4954949549
readOnly: true
4955049550
type: integer
4955149551
authorization_flow:
49552+
nullable: true
49553+
readOnly: true
4955249554
type: string
4955349555
jwks:
4955449556
additionalProperties: {}
@@ -54742,7 +54744,6 @@ components:
5474254744
additionalProperties: {}
5474354745
type: object
5474454746
required:
54745-
- access_group_obj
5474654747
- facts
5474754748
- name
5474854749
- pbm_uuid
@@ -54822,7 +54823,6 @@ components:
5482254823
readOnly: true
5482354824
type: array
5482454825
required:
54825-
- access_group_obj
5482654826
- connections
5482754827
- connections_obj
5482854828
- facts
@@ -54864,7 +54864,6 @@ components:
5486454864
additionalProperties: {}
5486554865
type: object
5486654866
required:
54867-
- access_group_obj
5486854867
- name
5486954868
type: object
5487054869
EndpointRequest:
@@ -57670,8 +57669,6 @@ components:
5767057669
format: int64
5767157670
type: integer
5767257671
required:
57673-
- manufacturer
57674-
- model
5767557672
- serial
5767657673
type: object
5767757674
HardwareRequest:
@@ -57683,6 +57680,7 @@ components:
5768357680
minLength: 1
5768457681
type: string
5768557682
serial:
57683+
minLength: 1
5768657684
type: string
5768757685
cpu_name:
5768857686
minLength: 1
@@ -57693,8 +57691,6 @@ components:
5769357691
format: int64
5769457692
type: integer
5769557693
required:
57696-
- manufacturer
57697-
- model
5769857694
- serial
5769957695
type: object
5770057696
IdentificationChallenge:

docs/AgentConfig.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**DeviceId** | **string** | | [readonly]
88
**RefreshInterval** | **int32** | | [readonly]
9-
**AuthorizationFlow** | **string** | |
9+
**AuthorizationFlow** | **NullableString** | | [readonly]
1010
**Jwks** | **map[string]interface{}** | | [readonly]
1111
**NssUidOffset** | **int32** | |
1212
**NssGidOffset** | **int32** | |
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
1717

1818
### NewAgentConfig
1919

20-
`func NewAgentConfig(deviceId string, refreshInterval int32, authorizationFlow string, jwks map[string]interface{}, nssUidOffset int32, nssGidOffset int32, authTerminateSessionOnExpiry bool, systemConfig Config, ) *AgentConfig`
20+
`func NewAgentConfig(deviceId string, refreshInterval int32, authorizationFlow NullableString, jwks map[string]interface{}, nssUidOffset int32, nssGidOffset int32, authTerminateSessionOnExpiry bool, systemConfig Config, ) *AgentConfig`
2121

2222
NewAgentConfig instantiates a new AgentConfig object
2323
This constructor will assign default values to properties that have it defined,
@@ -92,6 +92,16 @@ and a boolean to check if the value has been set.
9292
SetAuthorizationFlow sets AuthorizationFlow field to given value.
9393

9494

95+
### SetAuthorizationFlowNil
96+
97+
`func (o *AgentConfig) SetAuthorizationFlowNil(b bool)`
98+
99+
SetAuthorizationFlowNil sets the value for AuthorizationFlow to be an explicit nil
100+
101+
### UnsetAuthorizationFlow
102+
`func (o *AgentConfig) UnsetAuthorizationFlow()`
103+
104+
UnsetAuthorizationFlow ensures that no value is present for AuthorizationFlow, not even an explicit nil
95105
### GetJwks
96106

97107
`func (o *AgentConfig) GetJwks() map[string]interface{}`

docs/DeviceFactsHardware.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Model** | **string** | |
8-
**Manufacturer** | **string** | |
7+
**Model** | Pointer to **string** | | [optional]
8+
**Manufacturer** | Pointer to **string** | | [optional]
99
**Serial** | **string** | |
1010
**CpuName** | Pointer to **string** | | [optional]
1111
**CpuCount** | Pointer to **int32** | | [optional]
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515

1616
### NewDeviceFactsHardware
1717

18-
`func NewDeviceFactsHardware(model string, manufacturer string, serial string, ) *DeviceFactsHardware`
18+
`func NewDeviceFactsHardware(serial string, ) *DeviceFactsHardware`
1919

2020
NewDeviceFactsHardware instantiates a new DeviceFactsHardware object
2121
This constructor will assign default values to properties that have it defined,
@@ -49,6 +49,11 @@ and a boolean to check if the value has been set.
4949

5050
SetModel sets Model field to given value.
5151

52+
### HasModel
53+
54+
`func (o *DeviceFactsHardware) HasModel() bool`
55+
56+
HasModel returns a boolean if a field has been set.
5257

5358
### GetManufacturer
5459

@@ -69,6 +74,11 @@ and a boolean to check if the value has been set.
6974

7075
SetManufacturer sets Manufacturer field to given value.
7176

77+
### HasManufacturer
78+
79+
`func (o *DeviceFactsHardware) HasManufacturer() bool`
80+
81+
HasManufacturer returns a boolean if a field has been set.
7282

7383
### GetSerial
7484

docs/DeviceFactsRequestHardware.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Model** | **string** | |
8-
**Manufacturer** | **string** | |
7+
**Model** | Pointer to **string** | | [optional]
8+
**Manufacturer** | Pointer to **string** | | [optional]
99
**Serial** | **string** | |
1010
**CpuName** | Pointer to **string** | | [optional]
1111
**CpuCount** | Pointer to **int32** | | [optional]
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515

1616
### NewDeviceFactsRequestHardware
1717

18-
`func NewDeviceFactsRequestHardware(model string, manufacturer string, serial string, ) *DeviceFactsRequestHardware`
18+
`func NewDeviceFactsRequestHardware(serial string, ) *DeviceFactsRequestHardware`
1919

2020
NewDeviceFactsRequestHardware instantiates a new DeviceFactsRequestHardware object
2121
This constructor will assign default values to properties that have it defined,
@@ -49,6 +49,11 @@ and a boolean to check if the value has been set.
4949

5050
SetModel sets Model field to given value.
5151

52+
### HasModel
53+
54+
`func (o *DeviceFactsRequestHardware) HasModel() bool`
55+
56+
HasModel returns a boolean if a field has been set.
5257

5358
### GetManufacturer
5459

@@ -69,6 +74,11 @@ and a boolean to check if the value has been set.
6974

7075
SetManufacturer sets Manufacturer field to given value.
7176

77+
### HasManufacturer
78+
79+
`func (o *DeviceFactsRequestHardware) HasManufacturer() bool`
80+
81+
HasManufacturer returns a boolean if a field has been set.
7282

7383
### GetSerial
7484

docs/EndpointDevice.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**PbmUuid** | **string** | | [readonly]
99
**Name** | **string** | |
1010
**AccessGroup** | Pointer to **NullableString** | | [optional]
11-
**AccessGroupObj** | [**DeviceAccessGroup**](DeviceAccessGroup.md) | |
11+
**AccessGroupObj** | Pointer to [**DeviceAccessGroup**](DeviceAccessGroup.md) | | [optional]
1212
**Expiring** | Pointer to **bool** | | [optional]
1313
**Expires** | Pointer to **NullableTime** | | [optional]
1414
**Facts** | [**DeviceFactSnapshot**](DeviceFactSnapshot.md) | | [readonly]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
1818

1919
### NewEndpointDevice
2020

21-
`func NewEndpointDevice(pbmUuid string, name string, accessGroupObj DeviceAccessGroup, facts DeviceFactSnapshot, ) *EndpointDevice`
21+
`func NewEndpointDevice(pbmUuid string, name string, facts DeviceFactSnapshot, ) *EndpointDevice`
2222

2323
NewEndpointDevice instantiates a new EndpointDevice object
2424
This constructor will assign default values to properties that have it defined,
@@ -152,6 +152,11 @@ and a boolean to check if the value has been set.
152152

153153
SetAccessGroupObj sets AccessGroupObj field to given value.
154154

155+
### HasAccessGroupObj
156+
157+
`func (o *EndpointDevice) HasAccessGroupObj() bool`
158+
159+
HasAccessGroupObj returns a boolean if a field has been set.
155160

156161
### GetExpiring
157162

docs/EndpointDeviceDetails.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**PbmUuid** | **string** | | [readonly]
99
**Name** | **string** | |
1010
**AccessGroup** | Pointer to **NullableString** | | [optional]
11-
**AccessGroupObj** | [**DeviceAccessGroup**](DeviceAccessGroup.md) | |
11+
**AccessGroupObj** | Pointer to [**DeviceAccessGroup**](DeviceAccessGroup.md) | | [optional]
1212
**Expiring** | Pointer to **bool** | | [optional]
1313
**Expires** | Pointer to **NullableTime** | | [optional]
1414
**Facts** | [**DeviceFactSnapshot**](DeviceFactSnapshot.md) | | [readonly]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
2121

2222
### NewEndpointDeviceDetails
2323

24-
`func NewEndpointDeviceDetails(pbmUuid string, name string, accessGroupObj DeviceAccessGroup, facts DeviceFactSnapshot, connectionsObj []DeviceConnection, policies []string, connections []string, ) *EndpointDeviceDetails`
24+
`func NewEndpointDeviceDetails(pbmUuid string, name string, facts DeviceFactSnapshot, connectionsObj []DeviceConnection, policies []string, connections []string, ) *EndpointDeviceDetails`
2525

2626
NewEndpointDeviceDetails instantiates a new EndpointDeviceDetails object
2727
This constructor will assign default values to properties that have it defined,
@@ -155,6 +155,11 @@ and a boolean to check if the value has been set.
155155

156156
SetAccessGroupObj sets AccessGroupObj field to given value.
157157

158+
### HasAccessGroupObj
159+
160+
`func (o *EndpointDeviceDetails) HasAccessGroupObj() bool`
161+
162+
HasAccessGroupObj returns a boolean if a field has been set.
158163

159164
### GetExpiring
160165

docs/EndpointDeviceRequest.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**DeviceUuid** | Pointer to **string** | | [optional]
88
**Name** | **string** | |
99
**AccessGroup** | Pointer to **NullableString** | | [optional]
10-
**AccessGroupObj** | [**DeviceAccessGroupRequest**](DeviceAccessGroupRequest.md) | |
10+
**AccessGroupObj** | Pointer to [**DeviceAccessGroupRequest**](DeviceAccessGroupRequest.md) | | [optional]
1111
**Expiring** | Pointer to **bool** | | [optional]
1212
**Expires** | Pointer to **NullableTime** | | [optional]
1313
**Attributes** | Pointer to **map[string]interface{}** | | [optional]
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
1616

1717
### NewEndpointDeviceRequest
1818

19-
`func NewEndpointDeviceRequest(name string, accessGroupObj DeviceAccessGroupRequest, ) *EndpointDeviceRequest`
19+
`func NewEndpointDeviceRequest(name string, ) *EndpointDeviceRequest`
2020

2121
NewEndpointDeviceRequest instantiates a new EndpointDeviceRequest object
2222
This constructor will assign default values to properties that have it defined,
@@ -130,6 +130,11 @@ and a boolean to check if the value has been set.
130130

131131
SetAccessGroupObj sets AccessGroupObj field to given value.
132132

133+
### HasAccessGroupObj
134+
135+
`func (o *EndpointDeviceRequest) HasAccessGroupObj() bool`
136+
137+
HasAccessGroupObj returns a boolean if a field has been set.
133138

134139
### GetExpiring
135140

docs/EndpointsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3148,7 +3148,7 @@ import (
31483148

31493149
func main() {
31503150
deviceUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Device.
3151-
endpointDeviceRequest := *openapiclient.NewEndpointDeviceRequest("Name_example", *openapiclient.NewDeviceAccessGroupRequest("Name_example")) // EndpointDeviceRequest |
3151+
endpointDeviceRequest := *openapiclient.NewEndpointDeviceRequest("Name_example") // EndpointDeviceRequest |
31523152

31533153
configuration := openapiclient.NewConfiguration()
31543154
apiClient := openapiclient.NewAPIClient(configuration)

docs/Hardware.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Model** | **string** | |
8-
**Manufacturer** | **string** | |
7+
**Model** | Pointer to **string** | | [optional]
8+
**Manufacturer** | Pointer to **string** | | [optional]
99
**Serial** | **string** | |
1010
**CpuName** | Pointer to **string** | | [optional]
1111
**CpuCount** | Pointer to **int32** | | [optional]
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515

1616
### NewHardware
1717

18-
`func NewHardware(model string, manufacturer string, serial string, ) *Hardware`
18+
`func NewHardware(serial string, ) *Hardware`
1919

2020
NewHardware instantiates a new Hardware object
2121
This constructor will assign default values to properties that have it defined,
@@ -49,6 +49,11 @@ and a boolean to check if the value has been set.
4949

5050
SetModel sets Model field to given value.
5151

52+
### HasModel
53+
54+
`func (o *Hardware) HasModel() bool`
55+
56+
HasModel returns a boolean if a field has been set.
5257

5358
### GetManufacturer
5459

@@ -69,6 +74,11 @@ and a boolean to check if the value has been set.
6974

7075
SetManufacturer sets Manufacturer field to given value.
7176

77+
### HasManufacturer
78+
79+
`func (o *Hardware) HasManufacturer() bool`
80+
81+
HasManufacturer returns a boolean if a field has been set.
7282

7383
### GetSerial
7484

docs/HardwareRequest.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Model** | **string** | |
8-
**Manufacturer** | **string** | |
7+
**Model** | Pointer to **string** | | [optional]
8+
**Manufacturer** | Pointer to **string** | | [optional]
99
**Serial** | **string** | |
1010
**CpuName** | Pointer to **string** | | [optional]
1111
**CpuCount** | Pointer to **int32** | | [optional]
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515

1616
### NewHardwareRequest
1717

18-
`func NewHardwareRequest(model string, manufacturer string, serial string, ) *HardwareRequest`
18+
`func NewHardwareRequest(serial string, ) *HardwareRequest`
1919

2020
NewHardwareRequest instantiates a new HardwareRequest object
2121
This constructor will assign default values to properties that have it defined,
@@ -49,6 +49,11 @@ and a boolean to check if the value has been set.
4949

5050
SetModel sets Model field to given value.
5151

52+
### HasModel
53+
54+
`func (o *HardwareRequest) HasModel() bool`
55+
56+
HasModel returns a boolean if a field has been set.
5257

5358
### GetManufacturer
5459

@@ -69,6 +74,11 @@ and a boolean to check if the value has been set.
6974

7075
SetManufacturer sets Manufacturer field to given value.
7176

77+
### HasManufacturer
78+
79+
`func (o *HardwareRequest) HasManufacturer() bool`
80+
81+
HasManufacturer returns a boolean if a field has been set.
7282

7383
### GetSerial
7484

0 commit comments

Comments
 (0)