Skip to content

Commit

Permalink
GHES 3.12: Changes in generated code (#62)
Browse files Browse the repository at this point in the history
* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code

* New updates to generated code
  • Loading branch information
octokitbot authored Sep 13, 2024
1 parent 9088c0f commit 0955efb
Show file tree
Hide file tree
Showing 936 changed files with 2,232 additions and 2,425 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ go 1.21.5
require (
github.com/google/uuid v1.6.0
github.com/kfcampbell/ghinstallation v0.0.6
github.com/microsoft/kiota-abstractions-go v1.6.1
github.com/microsoft/kiota-http-go v1.4.3
github.com/microsoft/kiota-abstractions-go v1.7.0
github.com/microsoft/kiota-http-go v1.4.5
github.com/microsoft/kiota-serialization-form-go v1.0.0
github.com/microsoft/kiota-serialization-json-go v1.0.7
github.com/microsoft/kiota-serialization-json-go v1.0.8
github.com/microsoft/kiota-serialization-multipart-go v1.0.0
github.com/microsoft/kiota-serialization-text-go v1.0.0
)
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/microsoft/kiota-abstractions-go v1.6.1 h1:NXK50S3BwJn9Wj6bO0YFuAig7y2WVgdQ/ie1ktMl2J4=
github.com/microsoft/kiota-abstractions-go v1.6.1/go.mod h1:FI1I2OHg0E7bK5t8DPnw+9C/CHVyLP6XeqDBT+95pTE=
github.com/microsoft/kiota-http-go v1.4.3 h1:BVviWZSZCm2nr9qySbhSXa8jlrLvCcC2/uV4p45Ow0I=
github.com/microsoft/kiota-http-go v1.4.3/go.mod h1:Kup5nMDD3a9sjdgRKHCqZWqtrv3FbprjcPaGjLR6FzM=
github.com/microsoft/kiota-abstractions-go v1.7.0 h1:/0OKSSEe94Z1qgpcGE7ZFI9P+4iAnsDQo9v9UOk+R8E=
github.com/microsoft/kiota-abstractions-go v1.7.0/go.mod h1:FI1I2OHg0E7bK5t8DPnw+9C/CHVyLP6XeqDBT+95pTE=
github.com/microsoft/kiota-http-go v1.4.5 h1:BrI9TZ0cWiU1ucP5oSWR6UmP2vR3PaKbQ61TQ/qM5cM=
github.com/microsoft/kiota-http-go v1.4.5/go.mod h1:Kup5nMDD3a9sjdgRKHCqZWqtrv3FbprjcPaGjLR6FzM=
github.com/microsoft/kiota-serialization-form-go v1.0.0 h1:UNdrkMnLFqUCccQZerKjblsyVgifS11b3WCx+eFEsAI=
github.com/microsoft/kiota-serialization-form-go v1.0.0/go.mod h1:h4mQOO6KVTNciMF6azi1J9QB19ujSw3ULKcSNyXXOMA=
github.com/microsoft/kiota-serialization-json-go v1.0.7 h1:yMbckSTPrjZdM4EMXgzLZSA3CtDaUBI350u0VoYRz7Y=
github.com/microsoft/kiota-serialization-json-go v1.0.7/go.mod h1:1krrY7DYl3ivPIzl4xTaBpew6akYNa8/Tal8g+kb0cc=
github.com/microsoft/kiota-serialization-json-go v1.0.8 h1:+aViv9k6wqaw1Fx6P49fl5GIB1hN3b6CG0McNTcUYBc=
github.com/microsoft/kiota-serialization-json-go v1.0.8/go.mod h1:O8+v11U0EUwHlCz7hrW38KxDmdhKAHfv4Q89uvsBalY=
github.com/microsoft/kiota-serialization-multipart-go v1.0.0 h1:3O5sb5Zj+moLBiJympbXNaeV07K0d46IfuEd5v9+pBs=
github.com/microsoft/kiota-serialization-multipart-go v1.0.0/go.mod h1:yauLeBTpANk4L03XD985akNysG24SnRJGaveZf+p4so=
github.com/microsoft/kiota-serialization-text-go v1.0.0 h1:XOaRhAXy+g8ZVpcq7x7a0jlETWnWrEum0RhmbYrTFnA=
Expand Down
4,234 changes: 2,121 additions & 2,113 deletions pkg/github/.kiota.log

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion pkg/github/advisories/get_sort_query_parameter_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ type GetSortQueryParameterType int
const (
UPDATED_GETSORTQUERYPARAMETERTYPE GetSortQueryParameterType = iota
PUBLISHED_GETSORTQUERYPARAMETERTYPE
EPSS_PERCENTAGE_GETSORTQUERYPARAMETERTYPE
EPSS_PERCENTILE_GETSORTQUERYPARAMETERTYPE
)

func (i GetSortQueryParameterType) String() string {
return []string{"updated", "published"}[i]
return []string{"updated", "published", "epss_percentage", "epss_percentile"}[i]
}
func ParseGetSortQueryParameterType(v string) (any, error) {
result := UPDATED_GETSORTQUERYPARAMETERTYPE
Expand All @@ -16,6 +18,10 @@ func ParseGetSortQueryParameterType(v string) (any, error) {
result = UPDATED_GETSORTQUERYPARAMETERTYPE
case "published":
result = PUBLISHED_GETSORTQUERYPARAMETERTYPE
case "epss_percentage":
result = EPSS_PERCENTAGE_GETSORTQUERYPARAMETERTYPE
case "epss_percentile":
result = EPSS_PERCENTILE_GETSORTQUERYPARAMETERTYPE
default:
return nil, nil
}
Expand Down
29 changes: 29 additions & 0 deletions pkg/github/appmanifests/item_conversions_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (

type ItemConversionsIntegration struct {
ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Integration
// The client_id property
client_id *string
}
// NewItemConversionsIntegration instantiates a new ItemConversionsIntegration and sets the default values.
func NewItemConversionsIntegration()(*ItemConversionsIntegration) {
Expand All @@ -20,10 +22,25 @@ func NewItemConversionsIntegration()(*ItemConversionsIntegration) {
func CreateItemConversionsIntegrationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewItemConversionsIntegration(), nil
}
// GetClientId gets the client_id property value. The client_id property
// returns a *string when successful
func (m *ItemConversionsIntegration) GetClientId()(*string) {
return m.client_id
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *ItemConversionsIntegration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.Integration.GetFieldDeserializers()
res["client_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetClientId(val)
}
return nil
}
return res
}
// Serialize serializes information the current object
Expand All @@ -32,9 +49,21 @@ func (m *ItemConversionsIntegration) Serialize(writer i878a80d2330e89d26896388a3
if err != nil {
return err
}
{
err = writer.WriteStringValue("client_id", m.GetClientId())
if err != nil {
return err
}
}
return nil
}
// SetClientId sets the client_id property value. The client_id property
func (m *ItemConversionsIntegration) SetClientId(value *string)() {
m.client_id = value
}
type ItemConversionsIntegrationable interface {
ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Integrationable
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetClientId()(*string)
SetClientId(value *string)()
}
4 changes: 2 additions & 2 deletions pkg/github/gists/item_comments_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ type ItemCommentsRequestBuilderGetQueryParameters struct {
}
// ByComment_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.gists.item.comments.item collection
// returns a *ItemCommentsWithComment_ItemRequestBuilder when successful
func (m *ItemCommentsRequestBuilder) ByComment_id(comment_id int32)(*ItemCommentsWithComment_ItemRequestBuilder) {
func (m *ItemCommentsRequestBuilder) ByComment_id(comment_id int64)(*ItemCommentsWithComment_ItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.BaseRequestBuilder.PathParameters {
urlTplParams[idx] = item
}
urlTplParams["comment_id"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(comment_id), 10)
urlTplParams["comment_id"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(comment_id, 10)
return NewItemCommentsWithComment_ItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter)
}
// NewItemCommentsRequestBuilderInternal instantiates a new ItemCommentsRequestBuilder and sets the default values.
Expand Down
4 changes: 2 additions & 2 deletions pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "2DF24DAC47D242803B6DC7F857DD7897A83EEA62AEEA09ADB0BCED51CCDABB93D730D446BCA1DD20EF2CABBECC3CCA54F68306532EA48B2CD1CD9BEF9BE79C78",
"descriptionHash": "B65E3348D76FE508F9E60895606F0EF3D564754DF9408E9288C8EC210BCAD022259AE53035CF6B37F4F61C29ABB12132664CAFFD153913094C43A078AE44EFEA",
"descriptionLocation": "../../../../../schemas/ghes-3.12.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.17.0",
"kiotaVersion": "1.18.0",
"clientClassName": "ApiClient",
"clientNamespaceName": "github.com/octokit/go-sdk-enterprise-server/pkg/github",
"language": "Go",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions pkg/github/models/code_scanning_alert_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type CodeScanningAlertRule struct {
additionalData map[string]any
// A short description of the rule used to detect the alert.
description *string
// description of the rule used to detect the alert.
// A description of the rule used to detect the alert.
full_description *string
// Detailed documentation for the rule as GitHub Flavored Markdown.
help *string
Expand Down Expand Up @@ -150,7 +150,7 @@ func (m *CodeScanningAlertRule) GetFieldDeserializers()(map[string]func(i878a80d
}
return res
}
// GetFullDescription gets the full_description property value. description of the rule used to detect the alert.
// GetFullDescription gets the full_description property value. A description of the rule used to detect the alert.
// returns a *string when successful
func (m *CodeScanningAlertRule) GetFullDescription()(*string) {
return m.full_description
Expand Down Expand Up @@ -264,7 +264,7 @@ func (m *CodeScanningAlertRule) SetAdditionalData(value map[string]any)() {
func (m *CodeScanningAlertRule) SetDescription(value *string)() {
m.description = value
}
// SetFullDescription sets the full_description property value. description of the rule used to detect the alert.
// SetFullDescription sets the full_description property value. A description of the rule used to detect the alert.
func (m *CodeScanningAlertRule) SetFullDescription(value *string)() {
m.full_description = value
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 0955efb

Please sign in to comment.