Skip to content

Commit

Permalink
New updates to generated code (#7)
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 authored Nov 17, 2023
1 parent cf92781 commit ce8393f
Show file tree
Hide file tree
Showing 68 changed files with 1,951 additions and 178 deletions.
6 changes: 3 additions & 3 deletions github/octokit/gists/public_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type PublicRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
// PublicRequestBuilderGetQueryParameters list public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
// PublicRequestBuilderGetQueryParameters list public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
type PublicRequestBuilderGetQueryParameters struct {
// Page number of the results to fetch.
Page *int32 `uriparametername:"page"`
Expand Down Expand Up @@ -42,7 +42,7 @@ func NewPublicRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371c
urlParams["request-raw-url"] = rawUrl
return NewPublicRequestBuilderInternal(urlParams, requestAdapter)
}
// Get list public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
// Get list public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/gists/gists#list-public-gists
Expand All @@ -67,7 +67,7 @@ func (m *PublicRequestBuilder) Get(ctx context.Context, requestConfiguration *Pu
}
return val, nil
}
// ToGetRequestInformation list public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
// ToGetRequestInformation list public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
func (m *PublicRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PublicRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
if requestConfiguration != nil {
Expand Down
2 changes: 1 addition & 1 deletion github/octokit/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "33A08740E5930A295853561BC03BCE6602631052E67E935E212C8C2FCEC407472CF81D16FB48ACA7B25DE54AFF55B43DF028B9BA4364E26AC3DDFFA742F69B29",
"descriptionHash": "E685E9EDE7DA3604D00809BFEB3E1F25E7647029BCA527A50F7E21438E7AC1B2CF702369E7112041512476291B7B5389DC2F0F975A507ECDB0BC3C43DFDDFA8A",
"descriptionLocation": "../../../source-generator/schemas/downloaded.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.8.1",
Expand Down
6 changes: 3 additions & 3 deletions github/octokit/models/code_scanning_alert_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type CodeScanningAlertInstance struct {
location CodeScanningAlertLocationable
// The message property
message CodeScanningAlertInstance_messageable
// The full Git reference, formatted as `refs/heads/<branch name>`,`refs/pull/<number>/merge`, or `refs/pull/<number>/head`.
// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,`refs/heads/<branch name>` or simply `<branch name>`.
ref *string
// State of a code scanning alert.
state *CodeScanningAlertState
Expand Down Expand Up @@ -187,7 +187,7 @@ func (m *CodeScanningAlertInstance) GetLocation()(CodeScanningAlertLocationable)
func (m *CodeScanningAlertInstance) GetMessage()(CodeScanningAlertInstance_messageable) {
return m.message
}
// GetRef gets the ref property value. The full Git reference, formatted as `refs/heads/<branch name>`,`refs/pull/<number>/merge`, or `refs/pull/<number>/head`.
// GetRef gets the ref property value. The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,`refs/heads/<branch name>` or simply `<branch name>`.
func (m *CodeScanningAlertInstance) GetRef()(*string) {
return m.ref
}
Expand Down Expand Up @@ -302,7 +302,7 @@ func (m *CodeScanningAlertInstance) SetLocation(value CodeScanningAlertLocationa
func (m *CodeScanningAlertInstance) SetMessage(value CodeScanningAlertInstance_messageable)() {
m.message = value
}
// SetRef sets the ref property value. The full Git reference, formatted as `refs/heads/<branch name>`,`refs/pull/<number>/merge`, or `refs/pull/<number>/head`.
// SetRef sets the ref property value. The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,`refs/heads/<branch name>` or simply `<branch name>`.
func (m *CodeScanningAlertInstance) SetRef(value *string)() {
m.ref = value
}
Expand Down
6 changes: 3 additions & 3 deletions github/octokit/models/code_scanning_analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type CodeScanningAnalysis struct {
error *string
// Unique identifier for this analysis.
id *int32
// The full Git reference, formatted as `refs/heads/<branch name>`,`refs/pull/<number>/merge`, or `refs/pull/<number>/head`.
// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,`refs/heads/<branch name>` or simply `<branch name>`.
ref *string
// The total number of results in the analysis.
results_count *int32
Expand Down Expand Up @@ -242,7 +242,7 @@ func (m *CodeScanningAnalysis) GetFieldDeserializers()(map[string]func(i878a80d2
func (m *CodeScanningAnalysis) GetId()(*int32) {
return m.id
}
// GetRef gets the ref property value. The full Git reference, formatted as `refs/heads/<branch name>`,`refs/pull/<number>/merge`, or `refs/pull/<number>/head`.
// GetRef gets the ref property value. The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,`refs/heads/<branch name>` or simply `<branch name>`.
func (m *CodeScanningAnalysis) GetRef()(*string) {
return m.ref
}
Expand Down Expand Up @@ -394,7 +394,7 @@ func (m *CodeScanningAnalysis) SetError(value *string)() {
func (m *CodeScanningAnalysis) SetId(value *int32)() {
m.id = value
}
// SetRef sets the ref property value. The full Git reference, formatted as `refs/heads/<branch name>`,`refs/pull/<number>/merge`, or `refs/pull/<number>/head`.
// SetRef sets the ref property value. The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,`refs/heads/<branch name>` or simply `<branch name>`.
func (m *CodeScanningAnalysis) SetRef(value *string)() {
m.ref = value
}
Expand Down
8 changes: 4 additions & 4 deletions github/octokit/models/copilot_organization_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// CopilotOrganizationDetails information about the seat breakdown and policies set for an organization with a Copilot for Business subscription.
// CopilotOrganizationDetails information about the seat breakdown and policies set for an organization with a Copilot Business subscription.
type CopilotOrganizationDetails struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.
copilot_chat *CopilotOrganizationDetails_copilot_chat
// The organization policy for allowing or disallowing Copilot to make suggestions that match public code.
public_code_suggestions *CopilotOrganizationDetails_public_code_suggestions
// The breakdown of Copilot for Business seats for the organization.
// The breakdown of Copilot Business seats for the organization.
seat_breakdown CopilotSeatBreakdownable
// The mode of assigning new seats.
seat_management_setting *CopilotOrganizationDetails_seat_management_setting
Expand Down Expand Up @@ -85,7 +85,7 @@ func (m *CopilotOrganizationDetails) GetFieldDeserializers()(map[string]func(i87
func (m *CopilotOrganizationDetails) GetPublicCodeSuggestions()(*CopilotOrganizationDetails_public_code_suggestions) {
return m.public_code_suggestions
}
// GetSeatBreakdown gets the seat_breakdown property value. The breakdown of Copilot for Business seats for the organization.
// GetSeatBreakdown gets the seat_breakdown property value. The breakdown of Copilot Business seats for the organization.
func (m *CopilotOrganizationDetails) GetSeatBreakdown()(CopilotSeatBreakdownable) {
return m.seat_breakdown
}
Expand Down Expand Up @@ -142,7 +142,7 @@ func (m *CopilotOrganizationDetails) SetCopilotChat(value *CopilotOrganizationDe
func (m *CopilotOrganizationDetails) SetPublicCodeSuggestions(value *CopilotOrganizationDetails_public_code_suggestions)() {
m.public_code_suggestions = value
}
// SetSeatBreakdown sets the seat_breakdown property value. The breakdown of Copilot for Business seats for the organization.
// SetSeatBreakdown sets the seat_breakdown property value. The breakdown of Copilot Business seats for the organization.
func (m *CopilotOrganizationDetails) SetSeatBreakdown(value CopilotSeatBreakdownable)() {
m.seat_breakdown = value
}
Expand Down
2 changes: 1 addition & 1 deletion github/octokit/models/copilot_seat_breakdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// CopilotSeatBreakdown the breakdown of Copilot for Business seats for the organization.
// CopilotSeatBreakdown the breakdown of Copilot Business seats for the organization.
type CopilotSeatBreakdown struct {
// The number of seats that have used Copilot during the current billing cycle.
active_this_cycle *int32
Expand Down
2 changes: 1 addition & 1 deletion github/octokit/models/copilot_seat_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// CopilotSeatDetails information about a Copilot for Business seat assignment for a user, team, or organization.
// CopilotSeatDetails information about a Copilot Business seat assignment for a user, team, or organization.
type CopilotSeatDetails struct {
// The assignee that has been granted access to GitHub Copilot.
assignee CopilotSeatDetails_CopilotSeatDetails_assigneeable
Expand Down
106 changes: 106 additions & 0 deletions github/octokit/models/organization_fine_grained_permission.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
package models

import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// OrganizationFineGrainedPermission a fine-grained permission that protects organization resources.
type OrganizationFineGrainedPermission struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// The description property
description *string
// The name property
name *string
}
// NewOrganizationFineGrainedPermission instantiates a new organizationFineGrainedPermission and sets the default values.
func NewOrganizationFineGrainedPermission()(*OrganizationFineGrainedPermission) {
m := &OrganizationFineGrainedPermission{
}
m.SetAdditionalData(make(map[string]any))
return m
}
// CreateOrganizationFineGrainedPermissionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateOrganizationFineGrainedPermissionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewOrganizationFineGrainedPermission(), nil
}
// 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.
func (m *OrganizationFineGrainedPermission) GetAdditionalData()(map[string]any) {
return m.additionalData
}
// GetDescription gets the description property value. The description property
func (m *OrganizationFineGrainedPermission) GetDescription()(*string) {
return m.description
}
// GetFieldDeserializers the deserialization information for the current model
func (m *OrganizationFineGrainedPermission) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetDescription(val)
}
return nil
}
res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetName(val)
}
return nil
}
return res
}
// GetName gets the name property value. The name property
func (m *OrganizationFineGrainedPermission) GetName()(*string) {
return m.name
}
// Serialize serializes information the current object
func (m *OrganizationFineGrainedPermission) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
{
err := writer.WriteStringValue("description", m.GetDescription())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("name", m.GetName())
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
return err
}
}
return nil
}
// 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.
func (m *OrganizationFineGrainedPermission) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetDescription sets the description property value. The description property
func (m *OrganizationFineGrainedPermission) SetDescription(value *string)() {
m.description = value
}
// SetName sets the name property value. The name property
func (m *OrganizationFineGrainedPermission) SetName(value *string)() {
m.name = value
}
// OrganizationFineGrainedPermissionable
type OrganizationFineGrainedPermissionable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetDescription()(*string)
GetName()(*string)
SetDescription(value *string)()
SetName(value *string)()
}
Loading

0 comments on commit ce8393f

Please sign in to comment.