Skip to content

Commit 092f5ef

Browse files
authored
GHES 3.11: Changes in generated code (#123)
* New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code
1 parent ddfffc7 commit 092f5ef

File tree

42 files changed

+3191
-2203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3191
-2203
lines changed

pkg/github/.kiota.log

+2,030-2,070
Large diffs are not rendered by default.

pkg/github/app/installations_item_access_escaped_tokens_request_builder.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func NewInstallationsItemAccess_tokensRequestBuilder(rawUrl string, requestAdapt
2323
urlParams["request-raw-url"] = rawUrl
2424
return NewInstallationsItemAccess_tokensRequestBuilderInternal(urlParams, requestAdapter)
2525
}
26-
// 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.
26+
// 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.
2727
// returns a InstallationTokenable when successful
2828
// returns a BasicError error when the service returns a 401 status code
2929
// returns a BasicError error when the service returns a 403 status code
@@ -52,7 +52,7 @@ func (m *InstallationsItemAccess_tokensRequestBuilder) Post(ctx context.Context,
5252
}
5353
return res.(ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.InstallationTokenable), nil
5454
}
55-
// 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.
55+
// 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.
5656
// returns a *RequestInformation when successful
5757
func (m *InstallationsItemAccess_tokensRequestBuilder) ToPostRequestInformation(ctx context.Context, body InstallationsItemAccess_tokensPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
5858
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)

pkg/github/enterprises/item_secret_scanning_alerts_request_builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type ItemSecretScanningAlertsRequestBuilderGetQueryParameters struct {
2323
Per_page *int32 `uriparametername:"per_page"`
2424
// 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`.
2525
Resolution *string `uriparametername:"resolution"`
26-
// 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.
26+
// 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.
2727
Secret_type *string `uriparametername:"secret_type"`
2828
// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved.
2929
Sort *ie731c1b19a2e5cc53591a2f3e26c1721bd2d17fb9da2b8efca9e1e81c4c05962.GetSortQueryParameterType `uriparametername:"sort"`

pkg/github/kiota-lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"descriptionHash": "29B6282D02DDA2EB409EA4C4679232F4DF24C95E3B924DEFE3122D1FFF1E11B944AAC40930F3D8CD66FDFEA42601B202A1B143E4BDDC34D52A43B8E832541F10",
2+
"descriptionHash": "ADEB12214AFB36AC206638DA64788151955106C0EB9B864E23EA9F2FB0CFF8CEF8FC1BBC31D6FDA8E7161AEC61A08D6DC0E2252E3E14E02F0ACA4C03C604FF19",
33
"descriptionLocation": "../../../../../schemas/ghes-3.11.json",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.19.0",

pkg/github/models/api_overview_escaped_domains.go

+29
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import (
77
type ApiOverview_domains struct {
88
// The actions property
99
actions []string
10+
// The actions_inbound property
11+
actions_inbound ApiOverview_domains_actions_inboundable
1012
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1113
additionalData map[string]any
1214
// The artifact_attestations property
@@ -37,6 +39,11 @@ func CreateApiOverview_domainsFromDiscriminatorValue(parseNode i878a80d2330e89d2
3739
func (m *ApiOverview_domains) GetActions()([]string) {
3840
return m.actions
3941
}
42+
// GetActionsInbound gets the actions_inbound property value. The actions_inbound property
43+
// returns a ApiOverview_domains_actions_inboundable when successful
44+
func (m *ApiOverview_domains) GetActionsInbound()(ApiOverview_domains_actions_inboundable) {
45+
return m.actions_inbound
46+
}
4047
// 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.
4148
// returns a map[string]any when successful
4249
func (m *ApiOverview_domains) GetAdditionalData()(map[string]any) {
@@ -77,6 +84,16 @@ func (m *ApiOverview_domains) GetFieldDeserializers()(map[string]func(i878a80d23
7784
}
7885
return nil
7986
}
87+
res["actions_inbound"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
88+
val, err := n.GetObjectValue(CreateApiOverview_domains_actions_inboundFromDiscriminatorValue)
89+
if err != nil {
90+
return err
91+
}
92+
if val != nil {
93+
m.SetActionsInbound(val.(ApiOverview_domains_actions_inboundable))
94+
}
95+
return nil
96+
}
8097
res["artifact_attestations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
8198
val, err := n.GetObjectValue(CreateApiOverview_domains_artifact_attestationsFromDiscriminatorValue)
8299
if err != nil {
@@ -171,6 +188,12 @@ func (m *ApiOverview_domains) Serialize(writer i878a80d2330e89d26896388a3f487eef
171188
return err
172189
}
173190
}
191+
{
192+
err := writer.WriteObjectValue("actions_inbound", m.GetActionsInbound())
193+
if err != nil {
194+
return err
195+
}
196+
}
174197
{
175198
err := writer.WriteObjectValue("artifact_attestations", m.GetArtifactAttestations())
176199
if err != nil {
@@ -213,6 +236,10 @@ func (m *ApiOverview_domains) Serialize(writer i878a80d2330e89d26896388a3f487eef
213236
func (m *ApiOverview_domains) SetActions(value []string)() {
214237
m.actions = value
215238
}
239+
// SetActionsInbound sets the actions_inbound property value. The actions_inbound property
240+
func (m *ApiOverview_domains) SetActionsInbound(value ApiOverview_domains_actions_inboundable)() {
241+
m.actions_inbound = value
242+
}
216243
// 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.
217244
func (m *ApiOverview_domains) SetAdditionalData(value map[string]any)() {
218245
m.additionalData = value
@@ -241,12 +268,14 @@ type ApiOverview_domainsable interface {
241268
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
242269
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
243270
GetActions()([]string)
271+
GetActionsInbound()(ApiOverview_domains_actions_inboundable)
244272
GetArtifactAttestations()(ApiOverview_domains_artifact_attestationsable)
245273
GetCodespaces()([]string)
246274
GetCopilot()([]string)
247275
GetPackages()([]string)
248276
GetWebsite()([]string)
249277
SetActions(value []string)()
278+
SetActionsInbound(value ApiOverview_domains_actions_inboundable)()
250279
SetArtifactAttestations(value ApiOverview_domains_artifact_attestationsable)()
251280
SetCodespaces(value []string)()
252281
SetCopilot(value []string)()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
package models
2+
3+
import (
4+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
5+
)
6+
7+
type ApiOverview_domains_actions_inbound struct {
8+
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
9+
additionalData map[string]any
10+
// The full_domains property
11+
full_domains []string
12+
// The wildcard_domains property
13+
wildcard_domains []string
14+
}
15+
// NewApiOverview_domains_actions_inbound instantiates a new ApiOverview_domains_actions_inbound and sets the default values.
16+
func NewApiOverview_domains_actions_inbound()(*ApiOverview_domains_actions_inbound) {
17+
m := &ApiOverview_domains_actions_inbound{
18+
}
19+
m.SetAdditionalData(make(map[string]any))
20+
return m
21+
}
22+
// CreateApiOverview_domains_actions_inboundFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
23+
// returns a Parsable when successful
24+
func CreateApiOverview_domains_actions_inboundFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
25+
return NewApiOverview_domains_actions_inbound(), nil
26+
}
27+
// 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.
28+
// returns a map[string]any when successful
29+
func (m *ApiOverview_domains_actions_inbound) GetAdditionalData()(map[string]any) {
30+
return m.additionalData
31+
}
32+
// GetFieldDeserializers the deserialization information for the current model
33+
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
34+
func (m *ApiOverview_domains_actions_inbound) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
35+
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
36+
res["full_domains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
37+
val, err := n.GetCollectionOfPrimitiveValues("string")
38+
if err != nil {
39+
return err
40+
}
41+
if val != nil {
42+
res := make([]string, len(val))
43+
for i, v := range val {
44+
if v != nil {
45+
res[i] = *(v.(*string))
46+
}
47+
}
48+
m.SetFullDomains(res)
49+
}
50+
return nil
51+
}
52+
res["wildcard_domains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
53+
val, err := n.GetCollectionOfPrimitiveValues("string")
54+
if err != nil {
55+
return err
56+
}
57+
if val != nil {
58+
res := make([]string, len(val))
59+
for i, v := range val {
60+
if v != nil {
61+
res[i] = *(v.(*string))
62+
}
63+
}
64+
m.SetWildcardDomains(res)
65+
}
66+
return nil
67+
}
68+
return res
69+
}
70+
// GetFullDomains gets the full_domains property value. The full_domains property
71+
// returns a []string when successful
72+
func (m *ApiOverview_domains_actions_inbound) GetFullDomains()([]string) {
73+
return m.full_domains
74+
}
75+
// GetWildcardDomains gets the wildcard_domains property value. The wildcard_domains property
76+
// returns a []string when successful
77+
func (m *ApiOverview_domains_actions_inbound) GetWildcardDomains()([]string) {
78+
return m.wildcard_domains
79+
}
80+
// Serialize serializes information the current object
81+
func (m *ApiOverview_domains_actions_inbound) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
82+
if m.GetFullDomains() != nil {
83+
err := writer.WriteCollectionOfStringValues("full_domains", m.GetFullDomains())
84+
if err != nil {
85+
return err
86+
}
87+
}
88+
if m.GetWildcardDomains() != nil {
89+
err := writer.WriteCollectionOfStringValues("wildcard_domains", m.GetWildcardDomains())
90+
if err != nil {
91+
return err
92+
}
93+
}
94+
{
95+
err := writer.WriteAdditionalData(m.GetAdditionalData())
96+
if err != nil {
97+
return err
98+
}
99+
}
100+
return nil
101+
}
102+
// 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.
103+
func (m *ApiOverview_domains_actions_inbound) SetAdditionalData(value map[string]any)() {
104+
m.additionalData = value
105+
}
106+
// SetFullDomains sets the full_domains property value. The full_domains property
107+
func (m *ApiOverview_domains_actions_inbound) SetFullDomains(value []string)() {
108+
m.full_domains = value
109+
}
110+
// SetWildcardDomains sets the wildcard_domains property value. The wildcard_domains property
111+
func (m *ApiOverview_domains_actions_inbound) SetWildcardDomains(value []string)() {
112+
m.wildcard_domains = value
113+
}
114+
type ApiOverview_domains_actions_inboundable interface {
115+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
116+
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
117+
GetFullDomains()([]string)
118+
GetWildcardDomains()([]string)
119+
SetFullDomains(value []string)()
120+
SetWildcardDomains(value []string)()
121+
}

0 commit comments

Comments
 (0)