Skip to content

Commit a4d9f4c

Browse files
committed
chore: regenerated go-sdk files after PR #4273
1 parent a640466 commit a4d9f4c

8 files changed

+760
-1
lines changed

go-sdk/pkg/registryclient-v3/kiota-lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"descriptionHash": "967ADC717A463A5DA6DB8B9144AF2322D342099593ECE500309C1A425DF17C90E21DA74BDD09BFE58A4B324FDEC0F4CADE1D8E2E6A9B6C312615C2720A40C483",
2+
"descriptionHash": "7B06E24B28BDCE1EFE2101E8144FF68C2A0B5CC1D45F783689583B526A9C641AF64E72D5E4B6D57B4E1A519F9498C6EF10BE5C5975F176470E3AE59E246934B4",
33
"descriptionLocation": "../../v3.json",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.10.1",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
package models
2+
3+
import (
4+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
5+
)
6+
7+
// UserInterfaceConfig defines the user interface configuration data type.
8+
type UserInterfaceConfig struct {
9+
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
10+
additionalData map[string]any
11+
// The auth property
12+
auth UserInterfaceConfigAuthable
13+
// The features property
14+
features UserInterfaceConfigFeaturesable
15+
// The ui property
16+
ui UserInterfaceConfigUiable
17+
}
18+
19+
// NewUserInterfaceConfig instantiates a new UserInterfaceConfig and sets the default values.
20+
func NewUserInterfaceConfig() *UserInterfaceConfig {
21+
m := &UserInterfaceConfig{}
22+
m.SetAdditionalData(make(map[string]any))
23+
return m
24+
}
25+
26+
// CreateUserInterfaceConfigFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
27+
func CreateUserInterfaceConfigFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
28+
return NewUserInterfaceConfig(), nil
29+
}
30+
31+
// 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.
32+
func (m *UserInterfaceConfig) GetAdditionalData() map[string]any {
33+
return m.additionalData
34+
}
35+
36+
// GetAuth gets the auth property value. The auth property
37+
func (m *UserInterfaceConfig) GetAuth() UserInterfaceConfigAuthable {
38+
return m.auth
39+
}
40+
41+
// GetFeatures gets the features property value. The features property
42+
func (m *UserInterfaceConfig) GetFeatures() UserInterfaceConfigFeaturesable {
43+
return m.features
44+
}
45+
46+
// GetFieldDeserializers the deserialization information for the current model
47+
func (m *UserInterfaceConfig) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
48+
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
49+
res["auth"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
50+
val, err := n.GetObjectValue(CreateUserInterfaceConfigAuthFromDiscriminatorValue)
51+
if err != nil {
52+
return err
53+
}
54+
if val != nil {
55+
m.SetAuth(val.(UserInterfaceConfigAuthable))
56+
}
57+
return nil
58+
}
59+
res["features"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
60+
val, err := n.GetObjectValue(CreateUserInterfaceConfigFeaturesFromDiscriminatorValue)
61+
if err != nil {
62+
return err
63+
}
64+
if val != nil {
65+
m.SetFeatures(val.(UserInterfaceConfigFeaturesable))
66+
}
67+
return nil
68+
}
69+
res["ui"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
70+
val, err := n.GetObjectValue(CreateUserInterfaceConfigUiFromDiscriminatorValue)
71+
if err != nil {
72+
return err
73+
}
74+
if val != nil {
75+
m.SetUi(val.(UserInterfaceConfigUiable))
76+
}
77+
return nil
78+
}
79+
return res
80+
}
81+
82+
// GetUi gets the ui property value. The ui property
83+
func (m *UserInterfaceConfig) GetUi() UserInterfaceConfigUiable {
84+
return m.ui
85+
}
86+
87+
// Serialize serializes information the current object
88+
func (m *UserInterfaceConfig) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
89+
{
90+
err := writer.WriteObjectValue("auth", m.GetAuth())
91+
if err != nil {
92+
return err
93+
}
94+
}
95+
{
96+
err := writer.WriteObjectValue("features", m.GetFeatures())
97+
if err != nil {
98+
return err
99+
}
100+
}
101+
{
102+
err := writer.WriteObjectValue("ui", m.GetUi())
103+
if err != nil {
104+
return err
105+
}
106+
}
107+
{
108+
err := writer.WriteAdditionalData(m.GetAdditionalData())
109+
if err != nil {
110+
return err
111+
}
112+
}
113+
return nil
114+
}
115+
116+
// 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.
117+
func (m *UserInterfaceConfig) SetAdditionalData(value map[string]any) {
118+
m.additionalData = value
119+
}
120+
121+
// SetAuth sets the auth property value. The auth property
122+
func (m *UserInterfaceConfig) SetAuth(value UserInterfaceConfigAuthable) {
123+
m.auth = value
124+
}
125+
126+
// SetFeatures sets the features property value. The features property
127+
func (m *UserInterfaceConfig) SetFeatures(value UserInterfaceConfigFeaturesable) {
128+
m.features = value
129+
}
130+
131+
// SetUi sets the ui property value. The ui property
132+
func (m *UserInterfaceConfig) SetUi(value UserInterfaceConfigUiable) {
133+
m.ui = value
134+
}
135+
136+
// UserInterfaceConfigable
137+
type UserInterfaceConfigable interface {
138+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
139+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
140+
GetAuth() UserInterfaceConfigAuthable
141+
GetFeatures() UserInterfaceConfigFeaturesable
142+
GetUi() UserInterfaceConfigUiable
143+
SetAuth(value UserInterfaceConfigAuthable)
144+
SetFeatures(value UserInterfaceConfigFeaturesable)
145+
SetUi(value UserInterfaceConfigUiable)
146+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
package models
2+
3+
import (
4+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
5+
)
6+
7+
// UserInterfaceConfigAuth
8+
type UserInterfaceConfigAuth struct {
9+
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
10+
additionalData map[string]any
11+
// The obacEnabled property
12+
obacEnabled *bool
13+
// User-defined name-value pairs. Name and value must be strings.
14+
options Propertiesable
15+
// The rbacEnabled property
16+
rbacEnabled *bool
17+
// The type property
18+
typeEscaped *UserInterfaceConfigAuth_type
19+
}
20+
21+
// NewUserInterfaceConfigAuth instantiates a new UserInterfaceConfigAuth and sets the default values.
22+
func NewUserInterfaceConfigAuth() *UserInterfaceConfigAuth {
23+
m := &UserInterfaceConfigAuth{}
24+
m.SetAdditionalData(make(map[string]any))
25+
return m
26+
}
27+
28+
// CreateUserInterfaceConfigAuthFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
29+
func CreateUserInterfaceConfigAuthFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
30+
return NewUserInterfaceConfigAuth(), nil
31+
}
32+
33+
// 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.
34+
func (m *UserInterfaceConfigAuth) GetAdditionalData() map[string]any {
35+
return m.additionalData
36+
}
37+
38+
// GetFieldDeserializers the deserialization information for the current model
39+
func (m *UserInterfaceConfigAuth) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
40+
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
41+
res["obacEnabled"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
42+
val, err := n.GetBoolValue()
43+
if err != nil {
44+
return err
45+
}
46+
if val != nil {
47+
m.SetObacEnabled(val)
48+
}
49+
return nil
50+
}
51+
res["options"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
52+
val, err := n.GetObjectValue(CreatePropertiesFromDiscriminatorValue)
53+
if err != nil {
54+
return err
55+
}
56+
if val != nil {
57+
m.SetOptions(val.(Propertiesable))
58+
}
59+
return nil
60+
}
61+
res["rbacEnabled"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
62+
val, err := n.GetBoolValue()
63+
if err != nil {
64+
return err
65+
}
66+
if val != nil {
67+
m.SetRbacEnabled(val)
68+
}
69+
return nil
70+
}
71+
res["type"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
72+
val, err := n.GetEnumValue(ParseUserInterfaceConfigAuth_type)
73+
if err != nil {
74+
return err
75+
}
76+
if val != nil {
77+
m.SetTypeEscaped(val.(*UserInterfaceConfigAuth_type))
78+
}
79+
return nil
80+
}
81+
return res
82+
}
83+
84+
// GetObacEnabled gets the obacEnabled property value. The obacEnabled property
85+
func (m *UserInterfaceConfigAuth) GetObacEnabled() *bool {
86+
return m.obacEnabled
87+
}
88+
89+
// GetOptions gets the options property value. User-defined name-value pairs. Name and value must be strings.
90+
func (m *UserInterfaceConfigAuth) GetOptions() Propertiesable {
91+
return m.options
92+
}
93+
94+
// GetRbacEnabled gets the rbacEnabled property value. The rbacEnabled property
95+
func (m *UserInterfaceConfigAuth) GetRbacEnabled() *bool {
96+
return m.rbacEnabled
97+
}
98+
99+
// GetTypeEscaped gets the type property value. The type property
100+
func (m *UserInterfaceConfigAuth) GetTypeEscaped() *UserInterfaceConfigAuth_type {
101+
return m.typeEscaped
102+
}
103+
104+
// Serialize serializes information the current object
105+
func (m *UserInterfaceConfigAuth) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
106+
{
107+
err := writer.WriteBoolValue("obacEnabled", m.GetObacEnabled())
108+
if err != nil {
109+
return err
110+
}
111+
}
112+
{
113+
err := writer.WriteObjectValue("options", m.GetOptions())
114+
if err != nil {
115+
return err
116+
}
117+
}
118+
{
119+
err := writer.WriteBoolValue("rbacEnabled", m.GetRbacEnabled())
120+
if err != nil {
121+
return err
122+
}
123+
}
124+
if m.GetTypeEscaped() != nil {
125+
cast := (*m.GetTypeEscaped()).String()
126+
err := writer.WriteStringValue("type", &cast)
127+
if err != nil {
128+
return err
129+
}
130+
}
131+
{
132+
err := writer.WriteAdditionalData(m.GetAdditionalData())
133+
if err != nil {
134+
return err
135+
}
136+
}
137+
return nil
138+
}
139+
140+
// 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.
141+
func (m *UserInterfaceConfigAuth) SetAdditionalData(value map[string]any) {
142+
m.additionalData = value
143+
}
144+
145+
// SetObacEnabled sets the obacEnabled property value. The obacEnabled property
146+
func (m *UserInterfaceConfigAuth) SetObacEnabled(value *bool) {
147+
m.obacEnabled = value
148+
}
149+
150+
// SetOptions sets the options property value. User-defined name-value pairs. Name and value must be strings.
151+
func (m *UserInterfaceConfigAuth) SetOptions(value Propertiesable) {
152+
m.options = value
153+
}
154+
155+
// SetRbacEnabled sets the rbacEnabled property value. The rbacEnabled property
156+
func (m *UserInterfaceConfigAuth) SetRbacEnabled(value *bool) {
157+
m.rbacEnabled = value
158+
}
159+
160+
// SetTypeEscaped sets the type property value. The type property
161+
func (m *UserInterfaceConfigAuth) SetTypeEscaped(value *UserInterfaceConfigAuth_type) {
162+
m.typeEscaped = value
163+
}
164+
165+
// UserInterfaceConfigAuthable
166+
type UserInterfaceConfigAuthable interface {
167+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
168+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
169+
GetObacEnabled() *bool
170+
GetOptions() Propertiesable
171+
GetRbacEnabled() *bool
172+
GetTypeEscaped() *UserInterfaceConfigAuth_type
173+
SetObacEnabled(value *bool)
174+
SetOptions(value Propertiesable)
175+
SetRbacEnabled(value *bool)
176+
SetTypeEscaped(value *UserInterfaceConfigAuth_type)
177+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package models
2+
3+
import (
4+
"errors"
5+
)
6+
7+
// 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.
8+
type UserInterfaceConfigAuth_type int
9+
10+
const (
11+
NONE_USERINTERFACECONFIGAUTH_TYPE UserInterfaceConfigAuth_type = iota
12+
OIDC_USERINTERFACECONFIGAUTH_TYPE
13+
)
14+
15+
func (i UserInterfaceConfigAuth_type) String() string {
16+
return []string{"none", "oidc"}[i]
17+
}
18+
func ParseUserInterfaceConfigAuth_type(v string) (any, error) {
19+
result := NONE_USERINTERFACECONFIGAUTH_TYPE
20+
switch v {
21+
case "none":
22+
result = NONE_USERINTERFACECONFIGAUTH_TYPE
23+
case "oidc":
24+
result = OIDC_USERINTERFACECONFIGAUTH_TYPE
25+
default:
26+
return 0, errors.New("Unknown UserInterfaceConfigAuth_type value: " + v)
27+
}
28+
return &result, nil
29+
}
30+
func SerializeUserInterfaceConfigAuth_type(values []UserInterfaceConfigAuth_type) []string {
31+
result := make([]string, len(values))
32+
for i, v := range values {
33+
result[i] = v.String()
34+
}
35+
return result
36+
}
37+
func (i UserInterfaceConfigAuth_type) isMultiValue() bool {
38+
return false
39+
}

0 commit comments

Comments
 (0)