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

GHES 3.11: Changes in generated code #123

Merged
merged 44 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
81eacc1
New updates to generated code
octokitbot Nov 6, 2024
dc08c15
New updates to generated code
octokitbot Nov 7, 2024
a529a6c
New updates to generated code
octokitbot Nov 8, 2024
9b1a9d6
New updates to generated code
octokitbot Nov 9, 2024
817b907
New updates to generated code
octokitbot Nov 10, 2024
2c26aee
New updates to generated code
octokitbot Nov 11, 2024
29e75ba
New updates to generated code
octokitbot Nov 12, 2024
434b005
New updates to generated code
octokitbot Nov 13, 2024
f5f0d20
New updates to generated code
octokitbot Nov 14, 2024
4ad5b32
New updates to generated code
octokitbot Nov 15, 2024
ed4ff61
New updates to generated code
octokitbot Nov 16, 2024
709daaa
New updates to generated code
octokitbot Nov 17, 2024
d8b03cf
New updates to generated code
octokitbot Nov 18, 2024
2c1ba1b
New updates to generated code
octokitbot Nov 19, 2024
0ce2538
New updates to generated code
octokitbot Nov 20, 2024
6a1f40a
New updates to generated code
octokitbot Nov 21, 2024
a47bd5c
New updates to generated code
octokitbot Nov 22, 2024
7d9843f
New updates to generated code
octokitbot Nov 23, 2024
5cb6ff9
New updates to generated code
octokitbot Nov 24, 2024
833ff71
New updates to generated code
octokitbot Nov 25, 2024
d74aee0
New updates to generated code
octokitbot Nov 26, 2024
87506e0
New updates to generated code
octokitbot Nov 27, 2024
aca3b51
New updates to generated code
octokitbot Nov 28, 2024
a9bdf79
New updates to generated code
octokitbot Nov 29, 2024
ab90be1
New updates to generated code
octokitbot Nov 30, 2024
49eff73
New updates to generated code
octokitbot Dec 1, 2024
0e411dc
New updates to generated code
octokitbot Dec 2, 2024
67b0fe6
New updates to generated code
octokitbot Dec 3, 2024
62c6204
New updates to generated code
octokitbot Dec 4, 2024
ccfd580
New updates to generated code
octokitbot Dec 5, 2024
2d6901e
New updates to generated code
octokitbot Dec 6, 2024
f09b116
New updates to generated code
octokitbot Dec 7, 2024
6c1355b
New updates to generated code
octokitbot Dec 8, 2024
779f2bd
New updates to generated code
octokitbot Dec 9, 2024
5f88fa0
New updates to generated code
octokitbot Dec 10, 2024
e7fc15f
New updates to generated code
octokitbot Dec 11, 2024
77a08b9
New updates to generated code
octokitbot Dec 12, 2024
bcbcf60
New updates to generated code
octokitbot Dec 13, 2024
121202a
New updates to generated code
octokitbot Dec 14, 2024
5132610
New updates to generated code
octokitbot Dec 15, 2024
3f0f885
New updates to generated code
octokitbot Dec 16, 2024
eb3b3e6
New updates to generated code
octokitbot Dec 17, 2024
b6101af
New updates to generated code
octokitbot Dec 18, 2024
26eca29
New updates to generated code
octokitbot Dec 19, 2024
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
4,100 changes: 2,030 additions & 2,070 deletions pkg/github/.kiota.log

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewInstallationsItemAccess_tokensRequestBuilder(rawUrl string, requestAdapt
urlParams["request-raw-url"] = rawUrl
return NewInstallationsItemAccess_tokensRequestBuilderInternal(urlParams, requestAdapter)
}
// Post creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/[email protected]/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
// Post creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.You must use a [JWT](https://docs.github.com/[email protected]/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
// returns a InstallationTokenable when successful
// returns a BasicError error when the service returns a 401 status code
// returns a BasicError error when the service returns a 403 status code
Expand Down Expand Up @@ -52,7 +52,7 @@ func (m *InstallationsItemAccess_tokensRequestBuilder) Post(ctx context.Context,
}
return res.(ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.InstallationTokenable), nil
}
// ToPostRequestInformation creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/[email protected]/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
// ToPostRequestInformation creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.You must use a [JWT](https://docs.github.com/[email protected]/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
// returns a *RequestInformation when successful
func (m *InstallationsItemAccess_tokensRequestBuilder) ToPostRequestInformation(ctx context.Context, body InstallationsItemAccess_tokensPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type ItemSecretScanningAlertsRequestBuilderGetQueryParameters struct {
Per_page *int32 `uriparametername:"per_page"`
// A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.
Resolution *string `uriparametername:"resolution"`
// A comma-separated list of secret types to return. By default all secret types are returned.See "[Supported secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"for a complete list of secret types.
// A comma-separated list of secret types to return. By default all secret types are returned. See "[Supported secret scanning patterns](https://docs.github.com/[email protected]/enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types.
Secret_type *string `uriparametername:"secret_type"`
// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved.
Sort *ie731c1b19a2e5cc53591a2f3e26c1721bd2d17fb9da2b8efca9e1e81c4c05962.GetSortQueryParameterType `uriparametername:"sort"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "29B6282D02DDA2EB409EA4C4679232F4DF24C95E3B924DEFE3122D1FFF1E11B944AAC40930F3D8CD66FDFEA42601B202A1B143E4BDDC34D52A43B8E832541F10",
"descriptionHash": "ADEB12214AFB36AC206638DA64788151955106C0EB9B864E23EA9F2FB0CFF8CEF8FC1BBC31D6FDA8E7161AEC61A08D6DC0E2252E3E14E02F0ACA4C03C604FF19",
"descriptionLocation": "../../../../../schemas/ghes-3.11.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",
Expand Down
29 changes: 29 additions & 0 deletions pkg/github/models/api_overview_escaped_domains.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
type ApiOverview_domains struct {
// The actions property
actions []string
// The actions_inbound property
actions_inbound ApiOverview_domains_actions_inboundable
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// The artifact_attestations property
Expand Down Expand Up @@ -37,6 +39,11 @@ func CreateApiOverview_domainsFromDiscriminatorValue(parseNode i878a80d2330e89d2
func (m *ApiOverview_domains) GetActions()([]string) {
return m.actions
}
// GetActionsInbound gets the actions_inbound property value. The actions_inbound property
// returns a ApiOverview_domains_actions_inboundable when successful
func (m *ApiOverview_domains) GetActionsInbound()(ApiOverview_domains_actions_inboundable) {
return m.actions_inbound
}
// 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.
// returns a map[string]any when successful
func (m *ApiOverview_domains) GetAdditionalData()(map[string]any) {
Expand Down Expand Up @@ -77,6 +84,16 @@ func (m *ApiOverview_domains) GetFieldDeserializers()(map[string]func(i878a80d23
}
return nil
}
res["actions_inbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateApiOverview_domains_actions_inboundFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetActionsInbound(val.(ApiOverview_domains_actions_inboundable))
}
return nil
}
res["artifact_attestations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateApiOverview_domains_artifact_attestationsFromDiscriminatorValue)
if err != nil {
Expand Down Expand Up @@ -171,6 +188,12 @@ func (m *ApiOverview_domains) Serialize(writer i878a80d2330e89d26896388a3f487eef
return err
}
}
{
err := writer.WriteObjectValue("actions_inbound", m.GetActionsInbound())
if err != nil {
return err
}
}
{
err := writer.WriteObjectValue("artifact_attestations", m.GetArtifactAttestations())
if err != nil {
Expand Down Expand Up @@ -213,6 +236,10 @@ func (m *ApiOverview_domains) Serialize(writer i878a80d2330e89d26896388a3f487eef
func (m *ApiOverview_domains) SetActions(value []string)() {
m.actions = value
}
// SetActionsInbound sets the actions_inbound property value. The actions_inbound property
func (m *ApiOverview_domains) SetActionsInbound(value ApiOverview_domains_actions_inboundable)() {
m.actions_inbound = value
}
// 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 *ApiOverview_domains) SetAdditionalData(value map[string]any)() {
m.additionalData = value
Expand Down Expand Up @@ -241,12 +268,14 @@ type ApiOverview_domainsable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetActions()([]string)
GetActionsInbound()(ApiOverview_domains_actions_inboundable)
GetArtifactAttestations()(ApiOverview_domains_artifact_attestationsable)
GetCodespaces()([]string)
GetCopilot()([]string)
GetPackages()([]string)
GetWebsite()([]string)
SetActions(value []string)()
SetActionsInbound(value ApiOverview_domains_actions_inboundable)()
SetArtifactAttestations(value ApiOverview_domains_artifact_attestationsable)()
SetCodespaces(value []string)()
SetCopilot(value []string)()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
package models

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

type ApiOverview_domains_actions_inbound 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 full_domains property
full_domains []string
// The wildcard_domains property
wildcard_domains []string
}
// NewApiOverview_domains_actions_inbound instantiates a new ApiOverview_domains_actions_inbound and sets the default values.
func NewApiOverview_domains_actions_inbound()(*ApiOverview_domains_actions_inbound) {
m := &ApiOverview_domains_actions_inbound{
}
m.SetAdditionalData(make(map[string]any))
return m
}
// CreateApiOverview_domains_actions_inboundFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateApiOverview_domains_actions_inboundFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewApiOverview_domains_actions_inbound(), 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.
// returns a map[string]any when successful
func (m *ApiOverview_domains_actions_inbound) GetAdditionalData()(map[string]any) {
return m.additionalData
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *ApiOverview_domains_actions_inbound) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["full_domains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetCollectionOfPrimitiveValues("string")
if err != nil {
return err
}
if val != nil {
res := make([]string, len(val))
for i, v := range val {
if v != nil {
res[i] = *(v.(*string))
}
}
m.SetFullDomains(res)
}
return nil
}
res["wildcard_domains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetCollectionOfPrimitiveValues("string")
if err != nil {
return err
}
if val != nil {
res := make([]string, len(val))
for i, v := range val {
if v != nil {
res[i] = *(v.(*string))
}
}
m.SetWildcardDomains(res)
}
return nil
}
return res
}
// GetFullDomains gets the full_domains property value. The full_domains property
// returns a []string when successful
func (m *ApiOverview_domains_actions_inbound) GetFullDomains()([]string) {
return m.full_domains
}
// GetWildcardDomains gets the wildcard_domains property value. The wildcard_domains property
// returns a []string when successful
func (m *ApiOverview_domains_actions_inbound) GetWildcardDomains()([]string) {
return m.wildcard_domains
}
// Serialize serializes information the current object
func (m *ApiOverview_domains_actions_inbound) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
if m.GetFullDomains() != nil {
err := writer.WriteCollectionOfStringValues("full_domains", m.GetFullDomains())
if err != nil {
return err
}
}
if m.GetWildcardDomains() != nil {
err := writer.WriteCollectionOfStringValues("wildcard_domains", m.GetWildcardDomains())
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 *ApiOverview_domains_actions_inbound) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetFullDomains sets the full_domains property value. The full_domains property
func (m *ApiOverview_domains_actions_inbound) SetFullDomains(value []string)() {
m.full_domains = value
}
// SetWildcardDomains sets the wildcard_domains property value. The wildcard_domains property
func (m *ApiOverview_domains_actions_inbound) SetWildcardDomains(value []string)() {
m.wildcard_domains = value
}
type ApiOverview_domains_actions_inboundable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetFullDomains()([]string)
GetWildcardDomains()([]string)
SetFullDomains(value []string)()
SetWildcardDomains(value []string)()
}
Loading
Loading