Implement key pair resource (#588)

* Revert "Revert "Implement key pair resource (#578)" (#581)"

This reverts commit 600847a2ea.

* feat: Update iaas SDK module version; Use beta API in key pair resource
This commit is contained in:
João Palet 2024-11-11 11:08:05 +00:00 committed by GitHub
parent fc27f65925
commit b1f928f6be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 1282 additions and 138 deletions

View file

@ -194,7 +194,7 @@ func TestToCreatePayload(t *testing.T) {
tests := []struct {
description string
input *Model
expected *iaas.CreateNICPayload
expected *iaas.CreateNicPayload
isValid bool
}{
{
@ -210,7 +210,7 @@ func TestToCreatePayload(t *testing.T) {
}),
Security: types.BoolValue(true),
},
&iaas.CreateNICPayload{
&iaas.CreateNicPayload{
Name: utils.Ptr("name"),
SecurityGroups: &[]string{
"sg1",
@ -236,7 +236,7 @@ func TestToCreatePayload(t *testing.T) {
AllowedAddresses: types.ListNull(types.StringType),
},
&iaas.CreateNICPayload{
&iaas.CreateNicPayload{
Name: utils.Ptr("name"),
SecurityGroups: &[]string{
"sg1",
@ -270,7 +270,7 @@ func TestToUpdatePayload(t *testing.T) {
tests := []struct {
description string
input *Model
expected *iaas.UpdateNICPayload
expected *iaas.UpdateNicPayload
isValid bool
}{
{
@ -286,7 +286,7 @@ func TestToUpdatePayload(t *testing.T) {
}),
Security: types.BoolValue(true),
},
&iaas.UpdateNICPayload{
&iaas.UpdateNicPayload{
Name: utils.Ptr("name"),
SecurityGroups: &[]string{
"sg1",
@ -312,7 +312,7 @@ func TestToUpdatePayload(t *testing.T) {
AllowedAddresses: types.ListNull(types.StringType),
},
&iaas.UpdateNICPayload{
&iaas.UpdateNicPayload{
Name: utils.Ptr("name"),
SecurityGroups: &[]string{
"sg1",