Skip to content

Commit

Permalink
Update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanan-ravi committed Jul 25, 2024
1 parent 56fdba5 commit 5e1aadd
Show file tree
Hide file tree
Showing 30 changed files with 55 additions and 3,573 deletions.
4 changes: 4 additions & 0 deletions client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13136,6 +13136,7 @@ components:
node_name: node_name
cloud_provider: aws
type_label: type_label
cloud_warn_alarm_count: 6
node_id: node_id
properties:
account_id:
Expand All @@ -13154,6 +13155,8 @@ components:
type: string
cloud_region:
type: string
cloud_warn_alarm_count:
type: integer
node_id:
type: string
node_name:
Expand All @@ -13169,6 +13172,7 @@ components:
- cloud_compliances_count
- cloud_provider
- cloud_region
- cloud_warn_alarm_count
- node_id
- node_name
- node_type
Expand Down
23 changes: 22 additions & 1 deletion client/docs/ModelCloudResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**CloudCompliancesCount** | **int32** | |
**CloudProvider** | **string** | |
**CloudRegion** | **string** | |
**CloudWarnAlarmCount** | **int32** | |
**NodeId** | **string** | |
**NodeName** | **string** | |
**NodeType** | **string** | |
Expand All @@ -19,7 +20,7 @@ Name | Type | Description | Notes

### NewModelCloudResource

`func NewModelCloudResource(accountId string, cloudComplianceLatestScanId string, cloudComplianceScanStatus string, cloudCompliancesCount int32, cloudProvider string, cloudRegion string, nodeId string, nodeName string, nodeType string, typeLabel string, ) *ModelCloudResource`
`func NewModelCloudResource(accountId string, cloudComplianceLatestScanId string, cloudComplianceScanStatus string, cloudCompliancesCount int32, cloudProvider string, cloudRegion string, cloudWarnAlarmCount int32, nodeId string, nodeName string, nodeType string, typeLabel string, ) *ModelCloudResource`

NewModelCloudResource instantiates a new ModelCloudResource object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -154,6 +155,26 @@ and a boolean to check if the value has been set.
SetCloudRegion sets CloudRegion field to given value.


### GetCloudWarnAlarmCount

`func (o *ModelCloudResource) GetCloudWarnAlarmCount() int32`

GetCloudWarnAlarmCount returns the CloudWarnAlarmCount field if non-nil, zero value otherwise.

### GetCloudWarnAlarmCountOk

`func (o *ModelCloudResource) GetCloudWarnAlarmCountOk() (*int32, bool)`

GetCloudWarnAlarmCountOk returns a tuple with the CloudWarnAlarmCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCloudWarnAlarmCount

`func (o *ModelCloudResource) SetCloudWarnAlarmCount(v int32)`

SetCloudWarnAlarmCount sets CloudWarnAlarmCount field to given value.


### GetNodeId

`func (o *ModelCloudResource) GetNodeId() string`
Expand Down
8 changes: 0 additions & 8 deletions client/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
module github.com/deepfence/golang_deepfence_sdk/client

go 1.20

require github.com/stretchr/testify v1.9.0

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
10 changes: 0 additions & 10 deletions client/go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
30 changes: 29 additions & 1 deletion client/model_model_cloud_resource.go

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

72 changes: 0 additions & 72 deletions client/test/api_authentication_test.go

This file was deleted.

82 changes: 0 additions & 82 deletions client/test/api_cloud_nodes_test.go

This file was deleted.

36 changes: 0 additions & 36 deletions client/test/api_cloud_resources_test.go

This file was deleted.

Loading

0 comments on commit 5e1aadd

Please sign in to comment.