Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in generated code #6

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "154C33FCEB2446ED27411024E2D0283D39497BD0C937FA684A06D05A298BCEF7C51E6A322A63EFF7468F24B26560939F97BF4B409C2E0D8D205CD955E9FB67BE",
"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
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (m *ItemTeamsItemReposItemWithRepoItemRequestBuilder) Delete(ctx context.Co
}
return nil
}
// Get checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `application/vnd.github.v3.repository+json` accept header.If a team doesn't have permission for the repository, you will receive a `404 Not Found` response status.**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.
// Get checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `application/vnd.github.v3.repository+json` accept header.If a team doesn't have permission for the repository, you will receive a `404 Not Found` response status.If the repository is private, you must have at least `read` permission for that repository and your token must have the `repo` scope. Otherwise, you will receive a `404 Not Found` response status.**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository
Expand Down Expand Up @@ -104,7 +104,7 @@ func (m *ItemTeamsItemReposItemWithRepoItemRequestBuilder) ToDeleteRequestInform
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE
return requestInfo, nil
}
// ToGetRequestInformation checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `application/vnd.github.v3.repository+json` accept header.If a team doesn't have permission for the repository, you will receive a `404 Not Found` response status.**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.
// ToGetRequestInformation checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `application/vnd.github.v3.repository+json` accept header.If a team doesn't have permission for the repository, you will receive a `404 Not Found` response status.If the repository is private, you must have at least `read` permission for that repository and your token must have the `repo` scope. Otherwise, you will receive a `404 Not Found` response status.**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.
func (m *ItemTeamsItemReposItemWithRepoItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamsItemReposItemWithRepoItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
if requestConfiguration != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (

// ItemItemCodeScanningSarifsPostRequestBody
type ItemItemCodeScanningSarifsPostRequestBody 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 base directory used in the analysis, as it appears in the SARIF file.This property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
checkout_uri *string
// The SHA of the commit to which the analysis you are uploading relates.
Expand All @@ -28,17 +26,12 @@ type ItemItemCodeScanningSarifsPostRequestBody struct {
func NewItemItemCodeScanningSarifsPostRequestBody()(*ItemItemCodeScanningSarifsPostRequestBody) {
m := &ItemItemCodeScanningSarifsPostRequestBody{
}
m.SetAdditionalData(make(map[string]any))
return m
}
// CreateItemItemCodeScanningSarifsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateItemItemCodeScanningSarifsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewItemItemCodeScanningSarifsPostRequestBody(), 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 *ItemItemCodeScanningSarifsPostRequestBody) GetAdditionalData()(map[string]any) {
return m.additionalData
}
// GetCheckoutUri gets the checkout_uri property value. The base directory used in the analysis, as it appears in the SARIF file.This property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
func (m *ItemItemCodeScanningSarifsPostRequestBody) GetCheckoutUri()(*string) {
return m.checkout_uri
Expand Down Expand Up @@ -186,18 +179,8 @@ func (m *ItemItemCodeScanningSarifsPostRequestBody) Serialize(writer i878a80d233
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 *ItemItemCodeScanningSarifsPostRequestBody) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetCheckoutUri sets the checkout_uri property value. The base directory used in the analysis, as it appears in the SARIF file.This property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.
func (m *ItemItemCodeScanningSarifsPostRequestBody) SetCheckoutUri(value *string)() {
m.checkout_uri = value
Expand Down Expand Up @@ -228,7 +211,6 @@ func (m *ItemItemCodeScanningSarifsPostRequestBody) SetValidate(value *bool)() {
}
// ItemItemCodeScanningSarifsPostRequestBodyable
type ItemItemCodeScanningSarifsPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetCheckoutUri()(*string)
GetCommitSha()(*string)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/octokit/go-sdk

go 1.21.0
go 1.21.4

require (
github.com/microsoft/kiota-abstractions-go v1.4.0
Expand Down
Loading