Skip to content

Commit

Permalink
New updates to generated code (#17)
Browse files Browse the repository at this point in the history
Co-authored-by: Octokit Bot <octokitbot@martynus.net>
  • Loading branch information
octokitbot and Octokit Bot committed Dec 8, 2023
1 parent 5714e6d commit 8ddb9c7
Show file tree
Hide file tree
Showing 28 changed files with 738 additions and 29 deletions.
4 changes: 2 additions & 2 deletions github/octokit/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "EF90E2AF1AEAF00399680241ED082065E7D5A88EDEC05E560F61DD8478992AFDDE768CE0056CC6C70C08041E324CC5835271A8B430B49E549DE6BFBBCEE29E42",
"descriptionHash": "2679598123F08632A2FFC114750AED6269533BD439F3CA2487A054C8703177A95EE1ACCA7514CF91EB0672BDF9DF2275CCBDED4DAB6C8BE2F024F037132DF4AA",
"descriptionLocation": "../../../source-generator/schemas/downloaded.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.9.0-preview.202311300001",
"kiotaVersion": "1.9.0",
"clientClassName": "ApiClient",
"clientNamespaceName": "github.com/octokit/go-sdk/github/octokit/",
"language": "Go",
Expand Down
11 changes: 11 additions & 0 deletions github/octokit/marketplace_listing/plans_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package marketplace_listing

import (
"context"
i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv"
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
i000736ae6dd74f01081193e4f903216bc2bd2954ed818433b986f45d581ed035 "github.com/octokit/go-sdk/github/octokit/models"
)
Expand All @@ -27,6 +28,7 @@ type PlansRequestBuilderGetRequestConfiguration struct {
QueryParameters *PlansRequestBuilderGetQueryParameters
}
// ByPlan_id gets an item from the github.com/octokit/go-sdk/github/octokit/.marketplace_listing.plans.item collection
// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.
func (m *PlansRequestBuilder) ByPlan_id(plan_id string)(*PlansWithPlan_ItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.BaseRequestBuilder.PathParameters {
Expand All @@ -37,6 +39,15 @@ func (m *PlansRequestBuilder) ByPlan_id(plan_id string)(*PlansWithPlan_ItemReque
}
return NewPlansWithPlan_ItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter)
}
// ByPlan_idInteger gets an item from the github.com/octokit/go-sdk/github/octokit/.marketplace_listing.plans.item collection
func (m *PlansRequestBuilder) ByPlan_idInteger(plan_id int32)(*PlansWithPlan_ItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.BaseRequestBuilder.PathParameters {
urlTplParams[idx] = item
}
urlTplParams["plan_id"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(plan_id), 10)
return NewPlansWithPlan_ItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter)
}
// NewPlansRequestBuilderInternal instantiates a new PlansRequestBuilder and sets the default values.
func NewPlansRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansRequestBuilder) {
m := &PlansRequestBuilder{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package marketplace_listing

import (
"context"
i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv"
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
i000736ae6dd74f01081193e4f903216bc2bd2954ed818433b986f45d581ed035 "github.com/octokit/go-sdk/github/octokit/models"
)
Expand All @@ -27,6 +28,7 @@ type StubbedPlansRequestBuilderGetRequestConfiguration struct {
QueryParameters *StubbedPlansRequestBuilderGetQueryParameters
}
// ByPlan_id gets an item from the github.com/octokit/go-sdk/github/octokit/.marketplace_listing.stubbed.plans.item collection
// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.
func (m *StubbedPlansRequestBuilder) ByPlan_id(plan_id string)(*StubbedPlansWithPlan_ItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.BaseRequestBuilder.PathParameters {
Expand All @@ -37,6 +39,15 @@ func (m *StubbedPlansRequestBuilder) ByPlan_id(plan_id string)(*StubbedPlansWith
}
return NewStubbedPlansWithPlan_ItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter)
}
// ByPlan_idInteger gets an item from the github.com/octokit/go-sdk/github/octokit/.marketplace_listing.stubbed.plans.item collection
func (m *StubbedPlansRequestBuilder) ByPlan_idInteger(plan_id int32)(*StubbedPlansWithPlan_ItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.BaseRequestBuilder.PathParameters {
urlTplParams[idx] = item
}
urlTplParams["plan_id"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(plan_id), 10)
return NewStubbedPlansWithPlan_ItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter)
}
// NewStubbedPlansRequestBuilderInternal instantiates a new PlansRequestBuilder and sets the default values.
func NewStubbedPlansRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*StubbedPlansRequestBuilder) {
m := &StubbedPlansRequestBuilder{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

// ActionsWorkflowAccessToRepository
type ActionsWorkflowAccessToRepository struct {
// 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 repos only. `organization` level access allows sharing across the organization.
// 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.
access_level *ActionsWorkflowAccessToRepository_access_level
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
Expand All @@ -22,7 +22,7 @@ func NewActionsWorkflowAccessToRepository()(*ActionsWorkflowAccessToRepository)
func CreateActionsWorkflowAccessToRepositoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewActionsWorkflowAccessToRepository(), nil
}
// GetAccessLevel gets the access_level property value. 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 repos only. `organization` level access allows sharing across the organization.
// GetAccessLevel gets the access_level property value. 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.
func (m *ActionsWorkflowAccessToRepository) GetAccessLevel()(*ActionsWorkflowAccessToRepository_access_level) {
return m.access_level
}
Expand Down Expand Up @@ -62,7 +62,7 @@ func (m *ActionsWorkflowAccessToRepository) Serialize(writer i878a80d2330e89d268
}
return nil
}
// SetAccessLevel sets the access_level property value. 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 repos only. `organization` level access allows sharing across the organization.
// SetAccessLevel sets the access_level property value. 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.
func (m *ActionsWorkflowAccessToRepository) SetAccessLevel(value *ActionsWorkflowAccessToRepository_access_level)() {
m.access_level = value
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,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 repos only. `organization` level access allows sharing across the organization.
// 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

const (
Expand Down
Loading

0 comments on commit 8ddb9c7

Please sign in to comment.