Skip to content

Commit

Permalink
Minor sdk updates
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
stuart-mclaren-hpe committed Dec 9, 2024
1 parent a2ded68 commit bfc88f3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion internal/sdk/systems/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "F208B011C3A712F5720FA74D4E19E9BD7E264174E6F53FECDA9722ED886491E4940507D6F4D901B1306A07C514A57722B78335BDF9F1E608D685F8CEDC366EF4",
"descriptionHash": "612642230D5956BFC5E423E204E87C965141AE9A113FEAA06AE7F6C234220A465EB8E24C42F4BDEC32F4649301B7737115242C8551E9EFCE7F8CDB786885FF74",
"descriptionLocation": "../../../../in.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.16.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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.
Expand All @@ -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
}
Expand Down Expand Up @@ -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.
Expand All @@ -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)()
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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.
Expand All @@ -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
}
Expand Down Expand Up @@ -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.
Expand All @@ -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)()
}
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand All @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit bfc88f3

Please sign in to comment.