Skip to content

Commit

Permalink
Add "dataservices" to sdk
Browse files Browse the repository at this point in the history
This provides client bindings to /data-services/v1beta1/secrets

This will allow creating a datasource for secrets. The datasource
may be useful when adding a hypervisor server.
  • Loading branch information
stuart-mclaren-hpe committed Dec 13, 2024
1 parent dadd25e commit 303d11f
Show file tree
Hide file tree
Showing 1,618 changed files with 101,911 additions and 76 deletions.
3 changes: 2 additions & 1 deletion internal/sdk/async/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"descriptionHash": "CE274C5F9D93AABF034FEB64FB1A1CF69B46539B491EBEEADB68C1133A376014FE469F3FCEAB2B267171CBB93EA3225151D5951611EF0A3D7F42B156E4E4A421",
"descriptionLocation": "../../../../in.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.16.0",
"kiotaVersion": "1.21.0",
"clientClassName": "ApiClient",
"typeAccessModifier": "Public",
"clientNamespaceName": "github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/async",
"language": "Go",
"usesBackingStore": false,
Expand Down
39 changes: 39 additions & 0 deletions internal/sdk/dataservices/api_client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package dataservices

import (
i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488 "github.com/microsoft/kiota-serialization-json-go"
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347 "github.com/microsoft/kiota-serialization-form-go"
i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426 "github.com/microsoft/kiota-serialization-multipart-go"
i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83 "github.com/microsoft/kiota-serialization-text-go"
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
i375abeb6f8671188a3e39ce6299c550c8a4456d73556e661ce5207d01b167515 "github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices/dataservices"
)

// ApiClient the main entry point of the SDK, exposes the configuration and the fluent API.
type ApiClient struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
// NewApiClient instantiates a new ApiClient and sets the default values.
func NewApiClient(requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApiClient) {
m := &ApiClient{
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}", map[string]string{}),
}
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426.NewMultipartSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonParseNodeFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextParseNodeFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormParseNodeFactory() })
if m.BaseRequestBuilder.RequestAdapter.GetBaseUrl() == "" {
m.BaseRequestBuilder.RequestAdapter.SetBaseUrl("https://eu1.data.cloud.hpe.com")
}
m.BaseRequestBuilder.PathParameters["baseurl"] = m.BaseRequestBuilder.RequestAdapter.GetBaseUrl()
return m
}
// DataServices the dataServices property
// returns a *DataServicesRequestBuilder when successful
func (m *ApiClient) DataServices()(*i375abeb6f8671188a3e39ce6299c550c8a4456d73556e661ce5207d01b167515.DataServicesRequestBuilder) {
return i375abeb6f8671188a3e39ce6299c550c8a4456d73556e661ce5207d01b167515.NewDataServicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
package dataservices

import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// The credentials property
credentials V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable
// An IP address or FQDN to address the proxy server
networkAddress *string
// Port number of the proxy server
port *int32
}
// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy and sets the default values.
func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) {
m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy{
}
m.SetAdditionalData(make(map[string]any))
return m
}
// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy(), nil
}
// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
// returns a map[string]any when successful
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetAdditionalData()(map[string]any) {
return m.additionalData
}
// GetCredentials gets the credentials property value. The credentials property
// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable when successful
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetCredentials()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable) {
return m.credentials
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["credentials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetCredentials(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable))
}
return nil
}
res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetNetworkAddress(val)
}
return nil
}
res["port"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetPort(val)
}
return nil
}
return res
}
// GetNetworkAddress gets the networkAddress property value. An IP address or FQDN to address the proxy server
// returns a *string when successful
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetNetworkAddress()(*string) {
return m.networkAddress
}
// GetPort gets the port property value. Port number of the proxy server
// returns a *int32 when successful
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetPort()(*int32) {
return m.port
}
// Serialize serializes information the current object
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
{
err := writer.WriteObjectValue("credentials", m.GetCredentials())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress())
if err != nil {
return err
}
}
{
err := writer.WriteInt32Value("port", m.GetPort())
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetCredentials sets the credentials property value. The credentials property
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) SetCredentials(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable)() {
m.credentials = value
}
// SetNetworkAddress sets the networkAddress property value. An IP address or FQDN to address the proxy server
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) SetNetworkAddress(value *string)() {
m.networkAddress = value
}
// SetPort sets the port property value. Port number of the proxy server
func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) SetPort(value *int32)() {
m.port = value
}
type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetCredentials()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable)
GetNetworkAddress()(*string)
GetPort()(*int32)
SetCredentials(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable)()
SetNetworkAddress(value *string)()
SetPort(value *int32)()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
package dataservices

import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// Reference to a Secret resource
secret V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable
}
// NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken instantiates a new V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken and sets the default values.
func NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken()(*V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) {
m := &V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken{
}
m.SetAdditionalData(make(map[string]any))
return m
}
// CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken(), nil
}
// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
// returns a map[string]any when successful
func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) GetAdditionalData()(map[string]any) {
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetSecret(val.(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable))
}
return nil
}
return res
}
// GetSecret gets the secret property value. Reference to a Secret resource
// returns a V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable when successful
func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) GetSecret()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable) {
return m.secret
}
// Serialize serializes information the current object
func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
{
err := writer.WriteObjectValue("secret", m.GetSecret())
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetSecret sets the secret property value. Reference to a Secret resource
func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) SetSecret(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)() {
m.secret = value
}
type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetSecret()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)
SetSecret(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)()
}
Loading

0 comments on commit 303d11f

Please sign in to comment.