From bfc88f33cfe1be226440d3d872dfc7324f3bf10d Mon Sep 17 00:00:00 2001 From: Stuart McLaren Date: Mon, 9 Dec 2024 15:05:26 +0000 Subject: [PATCH] Minor sdk updates Update sdk based on minor changes to the 'shadow copy' of the OpenAPI spec. These are local API spec changes to workaround these issues: - FF-31304 RemoveHypervisorClusterRequest should not use snake_case - FF-31589 gateway is not an integer (esxMgmtIpInfo) - FF-31590 gateway is not an integer (iloMgmtIpInfo) --- internal/sdk/systems/kiota-lock.json | 2 +- ...quest_body_server_network_esx_mgmt_ip_info.go | 16 ++++++++-------- ...quest_body_server_network_ilo_mgmt_ip_info.go | 16 ++++++++-------- ...move_hypervisor_clusters_post_request_body.go | 12 ++++++------ 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/internal/sdk/systems/kiota-lock.json b/internal/sdk/systems/kiota-lock.json index 9f7a757..72279e4 100644 --- a/internal/sdk/systems/kiota-lock.json +++ b/internal/sdk/systems/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "F208B011C3A712F5720FA74D4E19E9BD7E264174E6F53FECDA9722ED886491E4940507D6F4D901B1306A07C514A57722B78335BDF9F1E608D685F8CEDC366EF4", + "descriptionHash": "612642230D5956BFC5E423E204E87C965141AE9A113FEAA06AE7F6C234220A465EB8E24C42F4BDEC32F4649301B7737115242C8551E9EFCE7F8CDB786885FF74", "descriptionLocation": "../../../../in.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.16.0", diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_esx_mgmt_ip_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_esx_mgmt_ip_info.go index b77e19d..d9cd566 100644 --- a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_esx_mgmt_ip_info.go +++ b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_esx_mgmt_ip_info.go @@ -8,7 +8,7 @@ type V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esxMgmt // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]any // gateway. Applies only to Alletra dHCI. - gateway *int32 + gateway *string // IP Address. Applies only to Alletra dHCI. ipAddress *string // Subnet mask. Applies only to Alletra dHCI. @@ -36,7 +36,7 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esx func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esxMgmtIpInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["gateway"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetStringValue() if err != nil { return err } @@ -68,8 +68,8 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esx return res } // GetGateway gets the gateway property value. gateway. Applies only to Alletra dHCI. -// returns a *int32 when successful -func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esxMgmtIpInfo) GetGateway()(*int32) { +// returns a *string when successful +func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esxMgmtIpInfo) GetGateway()(*string) { return m.gateway } // GetIpAddress gets the ipAddress property value. IP Address. Applies only to Alletra dHCI. @@ -85,7 +85,7 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esx // Serialize serializes information the current object func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esxMgmtIpInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { - err := writer.WriteInt32Value("gateway", m.GetGateway()) + err := writer.WriteStringValue("gateway", m.GetGateway()) if err != nil { return err } @@ -115,7 +115,7 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esx m.additionalData = value } // SetGateway sets the gateway property value. gateway. Applies only to Alletra dHCI. -func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esxMgmtIpInfo) SetGateway(value *int32)() { +func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esxMgmtIpInfo) SetGateway(value *string)() { m.gateway = value } // SetIpAddress sets the ipAddress property value. IP Address. Applies only to Alletra dHCI. @@ -129,10 +129,10 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esx type V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_esxMgmtIpInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetGateway()(*int32) + GetGateway()(*string) GetIpAddress()(*string) GetSubnetMask()(*string) - SetGateway(value *int32)() + SetGateway(value *string)() SetIpAddress(value *string)() SetSubnetMask(value *string)() } diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_ilo_mgmt_ip_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_ilo_mgmt_ip_info.go index 3578641..6f124f9 100644 --- a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_ilo_mgmt_ip_info.go +++ b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_ilo_mgmt_ip_info.go @@ -8,7 +8,7 @@ type V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_iloMgmt // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]any // gateway. Applies only to Alletra dHCI. - gateway *int32 + gateway *string // IP Address. Applies only to Alletra dHCI. ipAddress *string // Subnet mask. Applies only to Alletra dHCI. @@ -36,7 +36,7 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_ilo func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_iloMgmtIpInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["gateway"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetStringValue() if err != nil { return err } @@ -68,8 +68,8 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_ilo return res } // GetGateway gets the gateway property value. gateway. Applies only to Alletra dHCI. -// returns a *int32 when successful -func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_iloMgmtIpInfo) GetGateway()(*int32) { +// returns a *string when successful +func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_iloMgmtIpInfo) GetGateway()(*string) { return m.gateway } // GetIpAddress gets the ipAddress property value. IP Address. Applies only to Alletra dHCI. @@ -85,7 +85,7 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_ilo // Serialize serializes information the current object func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_iloMgmtIpInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { - err := writer.WriteInt32Value("gateway", m.GetGateway()) + err := writer.WriteStringValue("gateway", m.GetGateway()) if err != nil { return err } @@ -115,7 +115,7 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_ilo m.additionalData = value } // SetGateway sets the gateway property value. gateway. Applies only to Alletra dHCI. -func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_iloMgmtIpInfo) SetGateway(value *int32)() { +func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_iloMgmtIpInfo) SetGateway(value *string)() { m.gateway = value } // SetIpAddress sets the ipAddress property value. IP Address. Applies only to Alletra dHCI. @@ -129,10 +129,10 @@ func (m *V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_ilo type V1beta1SystemsItemAddHypervisorServersPostRequestBody_serverNetwork_iloMgmtIpInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetGateway()(*int32) + GetGateway()(*string) GetIpAddress()(*string) GetSubnetMask()(*string) - SetGateway(value *int32)() + SetGateway(value *string)() SetIpAddress(value *string)() SetSubnetMask(value *string)() } diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_remove_hypervisor_clusters_post_request_body.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_remove_hypervisor_clusters_post_request_body.go index f2ecc9b..e43b20e 100644 --- a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_remove_hypervisor_clusters_post_request_body.go +++ b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_remove_hypervisor_clusters_post_request_body.go @@ -9,7 +9,7 @@ type V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody struct { // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]any // List of Unique Identifiers (usually UUIDs) of Hypervisor Clusters to be removed from the system. - hypervisorClusterIds []string + hypervisor_cluster_ids []string } // NewV1beta1SystemsItemRemoveHypervisorClustersPostRequestBody instantiates a new V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody and sets the default values. func NewV1beta1SystemsItemRemoveHypervisorClustersPostRequestBody()(*V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) { @@ -32,7 +32,7 @@ func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) GetAdditiona // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["hypervisorClusterIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["hypervisor_cluster_ids"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { return err @@ -50,10 +50,10 @@ func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) GetFieldDese } return res } -// GetHypervisorClusterIds gets the hypervisorClusterIds property value. List of Unique Identifiers (usually UUIDs) of Hypervisor Clusters to be removed from the system. +// GetHypervisorClusterIds gets the hypervisor_cluster_ids property value. List of Unique Identifiers (usually UUIDs) of Hypervisor Clusters to be removed from the system. // returns a []string when successful func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) GetHypervisorClusterIds()([]string) { - return m.hypervisorClusterIds + return m.hypervisor_cluster_ids } // Serialize serializes information the current object func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { @@ -75,9 +75,9 @@ func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) Serialize(wr func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) SetAdditionalData(value map[string]any)() { m.additionalData = value } -// SetHypervisorClusterIds sets the hypervisorClusterIds property value. List of Unique Identifiers (usually UUIDs) of Hypervisor Clusters to be removed from the system. +// SetHypervisorClusterIds sets the hypervisor_cluster_ids property value. List of Unique Identifiers (usually UUIDs) of Hypervisor Clusters to be removed from the system. func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) SetHypervisorClusterIds(value []string)() { - m.hypervisorClusterIds = value + m.hypervisor_cluster_ids = value } type V1beta1SystemsItemRemoveHypervisorClustersPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder