Skip to content

Commit 3404110

Browse files
authored
Merge e10c747 into d897eea
2 parents d897eea + e10c747 commit 3404110

File tree

2 files changed

+44
-19
lines changed

2 files changed

+44
-19
lines changed

v3/api/store_models.go

Lines changed: 43 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -94,34 +94,59 @@ type ReEnrollmnentConfig struct {
9494
}
9595

9696
// StorePasswordConfig configures the password field for a new certificate store.
97+
// TODO: make re-usable struct for Secret type fields
9798
type StorePasswordConfig struct {
98-
Value *string `json:"SecretValue"`
99-
SecretTypeGuid *string `json:"SecretTypeGuid,omitempty"`
100-
InstanceId *string `json:"InstanceId,omitempty"`
99+
Value *string `json:"SecretValue"`
100+
SecretTypeGuid *string `json:"SecretTypeGuid,omitempty"`
101+
InstanceId *string `json:"InstanceId,omitempty"`
102+
InstanceGuid *string `json:"InstanceGuid,omitempty"`
103+
ProvidererTypeParameterValues *[]ProviderTypeParameterValue `json:"ProviderTypeParameterValues"`
104+
ProviderId int `json:"ProviderId"`
105+
IsManaged bool `json:"IsManaged"`
106+
HasValue bool `json:"HasValue"`
101107
} // ProviderTypeParameterValues - Not yet implemented
102108
// ProviderTypeParameterValues ProviderTypeParams - Not implemented
103109

104110
/* Future non-critical functionality */
105111

106-
type ProviderTypeParams struct {
107-
Id string
108-
Value string
109-
InstanceId string
110-
InstanceGuid string
111-
Provider ProviderParams
112+
type ProviderTypeParameterValue struct {
113+
Id int `json:"Id"`
114+
Value *string `json:"Value"`
115+
ParameterId int `json:"ParameterId"` // defaults always to 0, likely deprecated
116+
InstanceId *string `json:"InstanceId"` // defaults null, likely deprecated
117+
InstanceGuid *string `json:"InstanceGuid"`
118+
Provider *string `json:"Provider"` // defaults null, likely deprecated
119+
ProviderTypeParam ProviderTypeParam `json:"ProviderTypeParam"`
112120
}
113121

114-
type ProviderParams struct {
115-
Id int
116-
Name string
117-
Area int
118-
ProviderType ProviderType
122+
type ProviderTypeParam struct {
123+
Id int `json:"Id"`
124+
Name *string `json:"Name"`
125+
DisplayName *string `json:"DisplayName"`
126+
DataType int `json:"DataType"`
127+
InstanceLevel bool `json:"InstanceLevel"`
128+
ProviderType *string `json:"ProviderType"` //defaults null, likely deprecated
119129
}
120130

121-
type ProviderType struct {
122-
Id string
123-
Name string
124-
}
131+
// type ProviderTypeParams struct {
132+
// Id string
133+
// Value string
134+
// InstanceId string
135+
// InstanceGuid string
136+
// Provider ProviderParams
137+
// }
138+
139+
// type ProviderParams struct {
140+
// Id int
141+
// Name string
142+
// Area int
143+
// ProviderType ProviderType
144+
// }
145+
146+
// type ProviderType struct {
147+
// Id string
148+
// Name string
149+
// }
125150

126151
// CertStoreTypeResponse contains the response elements returned from the GetCertificateStoreType method.
127152
type CertStoreTypeResponse struct {

v3/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ go 1.23
1919
toolchain go1.23.2
2020

2121
require (
22-
github.com/Keyfactor/keyfactor-auth-client-go v1.2.0-rc.5
22+
github.com/Keyfactor/keyfactor-auth-client-go v1.3.0
2323
github.com/hashicorp/terraform-plugin-log v0.9.0
2424
github.com/spbsoluble/go-pkcs12 v0.3.3
2525
go.mozilla.org/pkcs7 v0.9.0

0 commit comments

Comments
 (0)