Skip to content

Commit

Permalink
New updates to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot committed Oct 4, 2024
1 parent b283c60 commit 1da5b5a
Show file tree
Hide file tree
Showing 7 changed files with 2,511 additions and 2,134 deletions.
3,899 changes: 1,971 additions & 1,928 deletions pkg/github/.kiota.log

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"descriptionHash": "7EDDC8CB2B00A3D0252A31CDAD43CFDE654C34AFDFA00D0833E03BBF5D4A7E123EC6627A2509653ABA663AAA11EB7B9BF0AB3BF7E04D93847B3D250F1D5F3DA4",
"descriptionLocation": "../../../../../schemas/ghes-3.11.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.18.0",
"kiotaVersion": "1.19.0",
"clientClassName": "ApiClient",
"typeAccessModifier": "Public",
"clientNamespaceName": "github.com/octokit/go-sdk-enterprise-server/pkg/github",
"language": "Go",
"usesBackingStore": false,
Expand Down
51 changes: 40 additions & 11 deletions pkg/github/models/validation_error_escaped_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ type ValidationError_errors struct {
// The value property
value ValidationError_errors_ValidationError_errors_valueable
}
// ValidationError_errors_ValidationError_errors_value composed type wrapper for classes int32, string
// ValidationError_errors_ValidationError_errors_value composed type wrapper for classes int32, string, []string
type ValidationError_errors_ValidationError_errors_value struct {
// Composed type representation for type int32
integer *int32
// Composed type representation for type []string
string []string
// Composed type representation for type string
string *string
validationError_errors_valueString *string
}
// NewValidationError_errors_ValidationError_errors_value instantiates a new ValidationError_errors_ValidationError_errors_value and sets the default values.
func NewValidationError_errors_ValidationError_errors_value()(*ValidationError_errors_ValidationError_errors_value) {
Expand Down Expand Up @@ -60,7 +62,18 @@ func CreateValidationError_errors_ValidationError_errors_valueFromDiscriminatorV
if err != nil {
return nil, err
}
result.SetString(val)
result.SetValidationErrorErrorsValueString(val)
} else if val, err := parseNode.GetCollectionOfPrimitiveValues("string"); val != nil {
if err != nil {
return nil, err
}
cast := make([]string, len(val))
for i, v := range val {
if v != nil {
cast[i] = *(v.(*string))
}
}
result.SetString(cast)
}
return result, nil
}
Expand All @@ -79,20 +92,30 @@ func (m *ValidationError_errors_ValidationError_errors_value) GetInteger()(*int3
func (m *ValidationError_errors_ValidationError_errors_value) GetIsComposedType()(bool) {
return true
}
// GetString gets the string property value. Composed type representation for type string
// returns a *string when successful
func (m *ValidationError_errors_ValidationError_errors_value) GetString()(*string) {
// GetString gets the string property value. Composed type representation for type []string
// returns a []string when successful
func (m *ValidationError_errors_ValidationError_errors_value) GetString()([]string) {
return m.string
}
// GetValidationErrorErrorsValueString gets the string property value. Composed type representation for type string
// returns a *string when successful
func (m *ValidationError_errors_ValidationError_errors_value) GetValidationErrorErrorsValueString()(*string) {
return m.validationError_errors_valueString
}
// Serialize serializes information the current object
func (m *ValidationError_errors_ValidationError_errors_value) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
if m.GetInteger() != nil {
err := writer.WriteInt32Value("", m.GetInteger())
if err != nil {
return err
}
} else if m.GetValidationErrorErrorsValueString() != nil {
err := writer.WriteStringValue("", m.GetValidationErrorErrorsValueString())
if err != nil {
return err
}
} else if m.GetString() != nil {
err := writer.WriteStringValue("", m.GetString())
err := writer.WriteCollectionOfStringValues("", m.GetString())
if err != nil {
return err
}
Expand All @@ -103,16 +126,22 @@ func (m *ValidationError_errors_ValidationError_errors_value) Serialize(writer i
func (m *ValidationError_errors_ValidationError_errors_value) SetInteger(value *int32)() {
m.integer = value
}
// SetString sets the string property value. Composed type representation for type string
func (m *ValidationError_errors_ValidationError_errors_value) SetString(value *string)() {
// SetString sets the string property value. Composed type representation for type []string
func (m *ValidationError_errors_ValidationError_errors_value) SetString(value []string)() {
m.string = value
}
// SetValidationErrorErrorsValueString sets the string property value. Composed type representation for type string
func (m *ValidationError_errors_ValidationError_errors_value) SetValidationErrorErrorsValueString(value *string)() {
m.validationError_errors_valueString = value
}
type ValidationError_errors_ValidationError_errors_valueable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetInteger()(*int32)
GetString()(*string)
GetString()([]string)
GetValidationErrorErrorsValueString()(*string)
SetInteger(value *int32)()
SetString(value *string)()
SetString(value []string)()
SetValidationErrorErrorsValueString(value *string)()
}
// NewValidationError_errors instantiates a new ValidationError_errors and sets the default values.
func NewValidationError_errors()(*ValidationError_errors) {
Expand Down
Loading

0 comments on commit 1da5b5a

Please sign in to comment.