Skip to content

Commit

Permalink
New updates to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Octokit Bot committed Jun 1, 2024
1 parent be07f65 commit abc6c05
Show file tree
Hide file tree
Showing 498 changed files with 2,335 additions and 855 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21.5

require (
github.com/microsoft/kiota-abstractions-go v1.6.0
github.com/microsoft/kiota-http-go v1.4.1
github.com/microsoft/kiota-http-go v1.3.3
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-multipart-go v1.0.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ 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.0 h1:qbGBNMU0/o5myKbikCBXJFohVCFrrpx2cO15Rta2WyA=
github.com/microsoft/kiota-abstractions-go v1.6.0/go.mod h1:7YH20ZbRWXGfHSSvdHkdztzgCB9mRdtFx13+hrYIEpo=
github.com/microsoft/kiota-http-go v1.4.1 h1:zR54JahUOcu8h9C5z00fcQChzX8d01+BwhkTS8H16Ro=
github.com/microsoft/kiota-http-go v1.4.1/go.mod h1:Kup5nMDD3a9sjdgRKHCqZWqtrv3FbprjcPaGjLR6FzM=
github.com/microsoft/kiota-http-go v1.3.3 h1:FKjK5BLFONu5eIBxtrkirkixFQmcPwitZ8iwZHKbESo=
github.com/microsoft/kiota-http-go v1.3.3/go.mod h1:IWw/PwtBs/GYz+Pa75gPW7MFNFv0aKPFsLw5WqzL1SE=
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=
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/advisories/get_direction_query_parameter_type.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package advisories
import (
"errors"
)
type GetDirectionQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetDirectionQueryParameterType(v string) (any, error) {
case "desc":
result = DESC_GETDIRECTIONQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetDirectionQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/advisories/get_severity_query_parameter_type.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package advisories
import (
"errors"
)
type GetSeverityQueryParameterType int

const (
Expand Down Expand Up @@ -26,7 +29,7 @@ func ParseGetSeverityQueryParameterType(v string) (any, error) {
case "critical":
result = CRITICAL_GETSEVERITYQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetSeverityQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/advisories/get_sort_query_parameter_type.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package advisories
import (
"errors"
)
type GetSortQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetSortQueryParameterType(v string) (any, error) {
case "published":
result = PUBLISHED_GETSORTQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetSortQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/advisories/get_type_query_parameter_type.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package advisories
import (
"errors"
)
type GetTypeQueryParameterType int

const (
Expand All @@ -20,7 +23,7 @@ func ParseGetTypeQueryParameterType(v string) (any, error) {
case "unreviewed":
result = UNREVIEWED_GETTYPEQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetTypeQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package alerts
import (
"errors"
)
type GetDirectionQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetDirectionQueryParameterType(v string) (any, error) {
case "desc":
result = DESC_GETDIRECTIONQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetDirectionQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package alerts
import (
"errors"
)
type GetScopeQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetScopeQueryParameterType(v string) (any, error) {
case "runtime":
result = RUNTIME_GETSCOPEQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetScopeQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package alerts
import (
"errors"
)
type GetSortQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetSortQueryParameterType(v string) (any, error) {
case "updated":
result = UPDATED_GETSORTQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetSortQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package alerts
import (
"errors"
)
type GetDirectionQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetDirectionQueryParameterType(v string) (any, error) {
case "desc":
result = DESC_GETDIRECTIONQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetDirectionQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package alerts
import (
"errors"
)
type GetSortQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetSortQueryParameterType(v string) (any, error) {
case "updated":
result = UPDATED_GETSORTQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetSortQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package alerts
import (
"errors"
)
type GetStateQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetStateQueryParameterType(v string) (any, error) {
case "resolved":
result = RESOLVED_GETSTATEQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetStateQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/issues/get_direction_query_parameter_type.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package issues
import (
"errors"
)
type GetDirectionQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetDirectionQueryParameterType(v string) (any, error) {
case "desc":
result = DESC_GETDIRECTIONQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetDirectionQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/issues/get_filter_query_parameter_type.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package issues
import (
"errors"
)
type GetFilterQueryParameterType int

const (
Expand Down Expand Up @@ -29,7 +32,7 @@ func ParseGetFilterQueryParameterType(v string) (any, error) {
case "all":
result = ALL_GETFILTERQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetFilterQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/issues/get_sort_query_parameter_type.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package issues
import (
"errors"
)
type GetSortQueryParameterType int

const (
Expand All @@ -20,7 +23,7 @@ func ParseGetSortQueryParameterType(v string) (any, error) {
case "comments":
result = COMMENTS_GETSORTQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetSortQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/issues/get_state_query_parameter_type.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package issues
import (
"errors"
)
type GetStateQueryParameterType int

const (
Expand All @@ -20,7 +23,7 @@ func ParseGetStateQueryParameterType(v string) (any, error) {
case "all":
result = ALL_GETSTATEQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetStateQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"descriptionHash": "3E34EE713ED1909E939D027B191DEF3CD051613CE8B6676AE7B157A6674DD48E9DAAEA0EA440A9B72B1C9907CAFC1BD76ADA8710F5D06361DDADEE35A757D574",
"descriptionLocation": "../../../source-generator/schemas/downloaded.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.15.0-preview.202405160001",
"kiotaVersion": "1.14.0",
"clientClassName": "ApiClient",
"clientNamespaceName": "github.com/octokit/go-sdk/pkg/github/",
"language": "Go",
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/markdown/markdown_post_request_body_mode.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package markdown
import (
"errors"
)
// The rendering mode.
type MarkdownPostRequestBody_mode int

Expand All @@ -18,7 +21,7 @@ func ParseMarkdownPostRequestBody_mode(v string) (any, error) {
case "gfm":
result = GFM_MARKDOWNPOSTREQUESTBODY_MODE
default:
return nil, nil
return 0, errors.New("Unknown MarkdownPostRequestBody_mode value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package accounts
import (
"errors"
)
type GetDirectionQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetDirectionQueryParameterType(v string) (any, error) {
case "desc":
result = DESC_GETDIRECTIONQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetDirectionQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package accounts
import (
"errors"
)
type GetSortQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetSortQueryParameterType(v string) (any, error) {
case "updated":
result = UPDATED_GETSORTQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetSortQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package accounts
import (
"errors"
)
type GetDirectionQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetDirectionQueryParameterType(v string) (any, error) {
case "desc":
result = DESC_GETDIRECTIONQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetDirectionQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package accounts
import (
"errors"
)
type GetSortQueryParameterType int

const (
Expand All @@ -17,7 +20,7 @@ func ParseGetSortQueryParameterType(v string) (any, error) {
case "updated":
result = UPDATED_GETSORTQUERYPARAMETERTYPE
default:
return nil, nil
return 0, errors.New("Unknown GetSortQueryParameterType value: " + v)
}
return &result, nil
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/github/models/actions_default_workflow_permissions.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package models
import (
"errors"
)
// The default workflow permissions granted to the GITHUB_TOKEN when running workflows.
type ActionsDefaultWorkflowPermissions int

Expand All @@ -18,7 +21,7 @@ func ParseActionsDefaultWorkflowPermissions(v string) (any, error) {
case "write":
result = WRITE_ACTIONSDEFAULTWORKFLOWPERMISSIONS
default:
return nil, nil
return 0, errors.New("Unknown ActionsDefaultWorkflowPermissions value: " + v)
}
return &result, nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package models
import (
"errors"
)
// Defines the level of access that workflows outside of the repository have to actions and reusable workflows within therepository.`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization.
type ActionsWorkflowAccessToRepository_access_level int

Expand All @@ -21,7 +24,7 @@ func ParseActionsWorkflowAccessToRepository_access_level(v string) (any, error)
case "organization":
result = ORGANIZATION_ACTIONSWORKFLOWACCESSTOREPOSITORY_ACCESS_LEVEL
default:
return nil, nil
return 0, errors.New("Unknown ActionsWorkflowAccessToRepository_access_level value: " + v)
}
return &result, nil
}
Expand Down
Loading

0 comments on commit abc6c05

Please sign in to comment.