@@ -26,15 +26,15 @@ type EntryCredentialAccessCodeData struct {
2626}
2727
2828type EntryCredentialApiKeyData struct {
29- ApiID string `json:"apiId,omitempty"`
29+ ApiId string `json:"apiId,omitempty"`
3030 ApiKey string `json:"apiKey,omitempty"`
31- TenantID string `json:"tenantId,omitempty"`
31+ TenantId string `json:"tenantId,omitempty"`
3232}
3333
3434type EntryCredentialAzureServicePrincipalData struct {
35- ClientID string `json:"clientId,omitempty"`
35+ ClientId string `json:"clientId,omitempty"`
3636 ClientSecret string `json:"clientSecret,omitempty"`
37- TenantID string `json:"tenantId,omitempty"`
37+ TenantId string `json:"tenantId,omitempty"`
3838}
3939
4040type EntryCredentialConnectionStringData struct {
@@ -145,13 +145,13 @@ func (c *EntryCredentialService) validateEntry(entry *Entry) error {
145145
146146// Get returns a single EntryCredential
147147func (c * EntryCredentialService ) Get (entry Entry ) (Entry , error ) {
148- return c .GetById (entry .VaultId , entry .ID )
148+ return c .GetById (entry .VaultId , entry .Id )
149149}
150150
151- // Get returns a single EntryCredential based on vault ID and entry ID .
151+ // Get returns a single EntryCredential based on vault Id and entry Id .
152152func (c * EntryCredentialService ) GetById (vaultId string , entryId string ) (Entry , error ) {
153153 if vaultId == "" || entryId == "" {
154- return Entry {}, fmt .Errorf ("both entry ID and vault ID are required" )
154+ return Entry {}, fmt .Errorf ("both entry Id and vault Id are required" )
155155 }
156156
157157 var entry Entry
@@ -234,8 +234,8 @@ func (c *EntryCredentialService) Update(entry Entry) (Entry, error) {
234234 return Entry {}, err
235235 }
236236
237- if entry .ID == "" {
238- return Entry {}, fmt .Errorf ("entry ID is required for updates" )
237+ if entry .Id == "" {
238+ return Entry {}, fmt .Errorf ("entry Id is required for updates" )
239239 }
240240
241241 updateEntryRequest := struct {
@@ -252,7 +252,7 @@ func (c *EntryCredentialService) Update(entry Entry) (Entry, error) {
252252 Tags : entry .Tags ,
253253 }
254254
255- entryUri := entryPublicEndpointReplacer (entry .VaultId , entry .ID )
255+ entryUri := entryPublicEndpointReplacer (entry .VaultId , entry .Id )
256256 reqUrl , err := url .JoinPath (c .client .baseUri , entryUri )
257257 if err != nil {
258258 return Entry {}, fmt .Errorf ("failed to build entry url. error: %w" , err )
@@ -268,7 +268,7 @@ func (c *EntryCredentialService) Update(entry Entry) (Entry, error) {
268268 return Entry {}, fmt .Errorf ("error while updating entry. error: %w" , err )
269269 }
270270
271- entry , err = c .GetById (entry .VaultId , entry .ID )
271+ entry , err = c .GetById (entry .VaultId , entry .Id )
272272 if err != nil {
273273 return Entry {}, fmt .Errorf ("update succeeded but failed to fetch updated entry: %w" , err )
274274 }
@@ -278,13 +278,13 @@ func (c *EntryCredentialService) Update(entry Entry) (Entry, error) {
278278
279279// Delete deletes an entry
280280func (c * EntryCredentialService ) Delete (e Entry ) error {
281- return c .DeleteByID (e .VaultId , e .ID )
281+ return c .DeleteById (e .VaultId , e .Id )
282282}
283283
284- // Delete deletes an entry based on vault ID and entry ID
285- func (c * EntryCredentialService ) DeleteByID (vaultId string , entryId string ) error {
284+ // Delete deletes an entry based on vault Id and entry Id
285+ func (c * EntryCredentialService ) DeleteById (vaultId string , entryId string ) error {
286286 if vaultId == "" || entryId == "" {
287- return fmt .Errorf ("both entry ID and vault ID are required" )
287+ return fmt .Errorf ("both entry Id and vault Id are required" )
288288 }
289289
290290 entryUri := entryPublicEndpointReplacer (vaultId , entryId )
0 commit comments