Implement key pair resource (#578)

* feat: Implement key pair resource

* feat: Implement acceptance test

* fix: Minor fixes to server and public IP resources

* fix: Lint fixes

* fix: Generalize description

* feat: Update examples to read key from file; Add datasource example

* fix: Fix field descriptions

* fix: Fix example

* feat: Add link to key pair resource in server example

* feat: Add links to key pair resource in other examples
This commit is contained in:
João Palet 2024-11-05 09:50:55 +00:00 committed by GitHub
parent c1ada319ce
commit 153947fd7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 1261 additions and 117 deletions

View file

@ -563,7 +563,7 @@ func mapFields(ctx context.Context, serverResp *iaas.Server, model *Model) error
} else if serverResp.Id != nil {
serverId = *serverResp.Id
} else {
return fmt.Errorf("Server id not present")
return fmt.Errorf("server id not present")
}
idParts := []string{