Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: regenerated go-sdk files after PR #4273 #4290

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go-sdk/pkg/registryclient-v3/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "967ADC717A463A5DA6DB8B9144AF2322D342099593ECE500309C1A425DF17C90E21DA74BDD09BFE58A4B324FDEC0F4CADE1D8E2E6A9B6C312615C2720A40C483",
"descriptionHash": "7B06E24B28BDCE1EFE2101E8144FF68C2A0B5CC1D45F783689583B526A9C641AF64E72D5E4B6D57B4E1A519F9498C6EF10BE5C5975F176470E3AE59E246934B4",
"descriptionLocation": "../../v3.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.10.1",
Expand Down
146 changes: 146 additions & 0 deletions go-sdk/pkg/registryclient-v3/models/user_interface_config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
package models

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

// UserInterfaceConfig defines the user interface configuration data type.
type UserInterfaceConfig 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 auth property
auth UserInterfaceConfigAuthable
// The features property
features UserInterfaceConfigFeaturesable
// The ui property
ui UserInterfaceConfigUiable
}

// NewUserInterfaceConfig instantiates a new UserInterfaceConfig and sets the default values.
func NewUserInterfaceConfig() *UserInterfaceConfig {
m := &UserInterfaceConfig{}
m.SetAdditionalData(make(map[string]any))
return m
}

// CreateUserInterfaceConfigFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateUserInterfaceConfigFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewUserInterfaceConfig(), 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.
func (m *UserInterfaceConfig) GetAdditionalData() map[string]any {
return m.additionalData
}

// GetAuth gets the auth property value. The auth property
func (m *UserInterfaceConfig) GetAuth() UserInterfaceConfigAuthable {
return m.auth
}

// GetFeatures gets the features property value. The features property
func (m *UserInterfaceConfig) GetFeatures() UserInterfaceConfigFeaturesable {
return m.features
}

// GetFieldDeserializers the deserialization information for the current model
func (m *UserInterfaceConfig) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
res["auth"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateUserInterfaceConfigAuthFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetAuth(val.(UserInterfaceConfigAuthable))
}
return nil
}
res["features"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateUserInterfaceConfigFeaturesFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetFeatures(val.(UserInterfaceConfigFeaturesable))
}
return nil
}
res["ui"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateUserInterfaceConfigUiFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetUi(val.(UserInterfaceConfigUiable))
}
return nil
}
return res
}

// GetUi gets the ui property value. The ui property
func (m *UserInterfaceConfig) GetUi() UserInterfaceConfigUiable {
return m.ui
}

// Serialize serializes information the current object
func (m *UserInterfaceConfig) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
{
err := writer.WriteObjectValue("auth", m.GetAuth())
if err != nil {
return err
}
}
{
err := writer.WriteObjectValue("features", m.GetFeatures())
if err != nil {
return err
}
}
{
err := writer.WriteObjectValue("ui", m.GetUi())
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 *UserInterfaceConfig) SetAdditionalData(value map[string]any) {
m.additionalData = value
}

// SetAuth sets the auth property value. The auth property
func (m *UserInterfaceConfig) SetAuth(value UserInterfaceConfigAuthable) {
m.auth = value
}

// SetFeatures sets the features property value. The features property
func (m *UserInterfaceConfig) SetFeatures(value UserInterfaceConfigFeaturesable) {
m.features = value
}

// SetUi sets the ui property value. The ui property
func (m *UserInterfaceConfig) SetUi(value UserInterfaceConfigUiable) {
m.ui = value
}

// UserInterfaceConfigable
type UserInterfaceConfigable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetAuth() UserInterfaceConfigAuthable
GetFeatures() UserInterfaceConfigFeaturesable
GetUi() UserInterfaceConfigUiable
SetAuth(value UserInterfaceConfigAuthable)
SetFeatures(value UserInterfaceConfigFeaturesable)
SetUi(value UserInterfaceConfigUiable)
}
177 changes: 177 additions & 0 deletions go-sdk/pkg/registryclient-v3/models/user_interface_config_auth.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
package models

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

// UserInterfaceConfigAuth
type UserInterfaceConfigAuth 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 obacEnabled property
obacEnabled *bool
// User-defined name-value pairs. Name and value must be strings.
options Propertiesable
// The rbacEnabled property
rbacEnabled *bool
// The type property
typeEscaped *UserInterfaceConfigAuth_type
}

// NewUserInterfaceConfigAuth instantiates a new UserInterfaceConfigAuth and sets the default values.
func NewUserInterfaceConfigAuth() *UserInterfaceConfigAuth {
m := &UserInterfaceConfigAuth{}
m.SetAdditionalData(make(map[string]any))
return m
}

// CreateUserInterfaceConfigAuthFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateUserInterfaceConfigAuthFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewUserInterfaceConfigAuth(), 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.
func (m *UserInterfaceConfigAuth) GetAdditionalData() map[string]any {
return m.additionalData
}

// GetFieldDeserializers the deserialization information for the current model
func (m *UserInterfaceConfigAuth) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
res["obacEnabled"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetObacEnabled(val)
}
return nil
}
res["options"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreatePropertiesFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetOptions(val.(Propertiesable))
}
return nil
}
res["rbacEnabled"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetRbacEnabled(val)
}
return nil
}
res["type"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetEnumValue(ParseUserInterfaceConfigAuth_type)
if err != nil {
return err
}
if val != nil {
m.SetTypeEscaped(val.(*UserInterfaceConfigAuth_type))
}
return nil
}
return res
}

// GetObacEnabled gets the obacEnabled property value. The obacEnabled property
func (m *UserInterfaceConfigAuth) GetObacEnabled() *bool {
return m.obacEnabled
}

// GetOptions gets the options property value. User-defined name-value pairs. Name and value must be strings.
func (m *UserInterfaceConfigAuth) GetOptions() Propertiesable {
return m.options
}

// GetRbacEnabled gets the rbacEnabled property value. The rbacEnabled property
func (m *UserInterfaceConfigAuth) GetRbacEnabled() *bool {
return m.rbacEnabled
}

// GetTypeEscaped gets the type property value. The type property
func (m *UserInterfaceConfigAuth) GetTypeEscaped() *UserInterfaceConfigAuth_type {
return m.typeEscaped
}

// Serialize serializes information the current object
func (m *UserInterfaceConfigAuth) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
{
err := writer.WriteBoolValue("obacEnabled", m.GetObacEnabled())
if err != nil {
return err
}
}
{
err := writer.WriteObjectValue("options", m.GetOptions())
if err != nil {
return err
}
}
{
err := writer.WriteBoolValue("rbacEnabled", m.GetRbacEnabled())
if err != nil {
return err
}
}
if m.GetTypeEscaped() != nil {
cast := (*m.GetTypeEscaped()).String()
err := writer.WriteStringValue("type", &cast)
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 *UserInterfaceConfigAuth) SetAdditionalData(value map[string]any) {
m.additionalData = value
}

// SetObacEnabled sets the obacEnabled property value. The obacEnabled property
func (m *UserInterfaceConfigAuth) SetObacEnabled(value *bool) {
m.obacEnabled = value
}

// SetOptions sets the options property value. User-defined name-value pairs. Name and value must be strings.
func (m *UserInterfaceConfigAuth) SetOptions(value Propertiesable) {
m.options = value
}

// SetRbacEnabled sets the rbacEnabled property value. The rbacEnabled property
func (m *UserInterfaceConfigAuth) SetRbacEnabled(value *bool) {
m.rbacEnabled = value
}

// SetTypeEscaped sets the type property value. The type property
func (m *UserInterfaceConfigAuth) SetTypeEscaped(value *UserInterfaceConfigAuth_type) {
m.typeEscaped = value
}

// UserInterfaceConfigAuthable
type UserInterfaceConfigAuthable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetObacEnabled() *bool
GetOptions() Propertiesable
GetRbacEnabled() *bool
GetTypeEscaped() *UserInterfaceConfigAuth_type
SetObacEnabled(value *bool)
SetOptions(value Propertiesable)
SetRbacEnabled(value *bool)
SetTypeEscaped(value *UserInterfaceConfigAuth_type)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package models

import (
"errors"
)

// This endpoint is used by the user interface to retrieve UI specific configurationin a JSON payload. This allows the UI and the backend to be configured in the same place (the backend process/pod). When the UI loads, it will make an API callto this endpoint to determine what UI features and options are configured.
type UserInterfaceConfigAuth_type int

const (
NONE_USERINTERFACECONFIGAUTH_TYPE UserInterfaceConfigAuth_type = iota
OIDC_USERINTERFACECONFIGAUTH_TYPE
)

func (i UserInterfaceConfigAuth_type) String() string {
return []string{"none", "oidc"}[i]
}
func ParseUserInterfaceConfigAuth_type(v string) (any, error) {
result := NONE_USERINTERFACECONFIGAUTH_TYPE
switch v {
case "none":
result = NONE_USERINTERFACECONFIGAUTH_TYPE
case "oidc":
result = OIDC_USERINTERFACECONFIGAUTH_TYPE
default:
return 0, errors.New("Unknown UserInterfaceConfigAuth_type value: " + v)
}
return &result, nil
}
func SerializeUserInterfaceConfigAuth_type(values []UserInterfaceConfigAuth_type) []string {
result := make([]string, len(values))
for i, v := range values {
result[i] = v.String()
}
return result
}
func (i UserInterfaceConfigAuth_type) isMultiValue() bool {
return false
}
Loading
Loading