Skip to content

Commit

Permalink
Merge pull request #29 from Keyfactor/store_types_depends_on_null
Browse files Browse the repository at this point in the history
Store types depends on null
  • Loading branch information
spbsoluble authored Oct 3, 2023
2 parents e932e22 + 44def5a commit d7e00db
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/Keyfactor/keyfactor-go-client

go 1.18
go 1.20

require (
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.1
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2
github.com/spbsoluble/go-pkcs12 v0.3.3
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.1 h1:cs8hhvsY3MJ2o1K11HLTRCjRT8SbsKhhi73Y4By2CI0=
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.1/go.mod h1:Z5pSk8YFGXHbKeQ1wTzVN8A4P/fZmtAwqu3NgBHbDOs=
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2 h1:caLlzFCz2L4Dth/9wh+VlypFATmOMmCSQkCPKOKMxw8=
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2/go.mod h1:Z5pSk8YFGXHbKeQ1wTzVN8A4P/fZmtAwqu3NgBHbDOs=
github.com/spbsoluble/go-pkcs12 v0.3.3 h1:3nh7IKn16RDpmrSMtOu1JvbB0XHYq1j+IsICdU1c7J4=
github.com/spbsoluble/go-pkcs12 v0.3.3/go.mod h1:MAxKIUEIl/QVcua/I1L4Otyxl9UvLCCIktce2Tjz6Nw=
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 h1:CCriYyAfq1Br1aIYettdHZTy8mBTIPo7We18TuO/bak=
Expand Down
16 changes: 8 additions & 8 deletions v2/api/store_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ type CreateStoreFctArgs struct {
// automatically populated by the CreateStore method. However, if configured, this field will be used.
PropertiesString string `json:"Properties,omitempty"`
// Mapped name-value pair field used to configure properties.
Properties map[string]string `json:"-"`
AgentId string `json:"AgentId"`
AgentAssigned *bool `json:"AgentAssigned,omitempty"`
ContainerName *string `json:"ContainerName,omitempty"`
InventorySchedule *InventorySchedule `json:"InventorySchedule,omitempty"`
ReEnrollmentStatus *ReEnrollmnentConfig `json:"ReEnrollmentStatus,omitempty"`
SetNewPasswordAllowed *bool `json:"SetNewPasswordAllowed,omitempty"`
Password *StorePasswordConfig `json:"Password"`
Properties map[string]interface{} `json:"-"`
AgentId string `json:"AgentId"`
AgentAssigned *bool `json:"AgentAssigned,omitempty"`
ContainerName *string `json:"ContainerName,omitempty"`
InventorySchedule *InventorySchedule `json:"InventorySchedule,omitempty"`
ReEnrollmentStatus *ReEnrollmnentConfig `json:"ReEnrollmentStatus,omitempty"`
SetNewPasswordAllowed *bool `json:"SetNewPasswordAllowed,omitempty"`
Password *StorePasswordConfig `json:"Password"`
}

// UpdateStoreFctArgs holds the function arguments used for calling the UpdateStore method.
Expand Down
6 changes: 3 additions & 3 deletions v2/api/store_type_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ type StoreTypePropertyDefinitionGeneric struct {
Name string `json:"Name"`
DisplayName string `json:"DisplayName"`
Type string `json:"Type"`
DependsOn string `json:"DependsOn"`
DependsOn interface{} `json:"DependsOn"`
DefaultValue interface{} `json:"DefaultValue"`
Required bool `json:"Required"`
}

type StoreTypePropertyDefinition struct {
StoreTypeID int `json:"StoreTypeId;omitempty"`
StoreTypeID int `json:"StoreTypeId"`
Name string `json:"Name"`
DisplayName string `json:"DisplayName"`
Type string `json:"Type"`
DependsOn string `json:"DependsOn"`
DependsOn interface{} `json:"DependsOn"`
DefaultValue interface{} `json:"DefaultValue"`
Required bool `json:"Required"`
}
Expand Down

0 comments on commit d7e00db

Please sign in to comment.