diff --git a/pkg/github/kiota-lock.json b/pkg/github/kiota-lock.json index 24af6d3d..c32545b6 100644 --- a/pkg/github/kiota-lock.json +++ b/pkg/github/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "2A275CA0C1BC6884322B17DC1FC9558B61329DE5207AAB92506C0235D5002569BC7341E821733BED96F5763A9D461DB59AB267A12789BFB78632EAAA6AC0F41C", + "descriptionHash": "0D3690030724DAFB97ECAD0A8982B6CBBCFE42B8BF2CF9DA0449ECC00DA8023FEFDDFBB879E522524DF56BB1B0BF645EFF8DAD87CC280FE60AEFA061FC071C23", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.14.0", diff --git a/pkg/github/models/check_run.go b/pkg/github/models/check_run.go index 0b761371..b8103358 100644 --- a/pkg/github/models/check_run.go +++ b/pkg/github/models/check_run.go @@ -28,7 +28,7 @@ type CheckRun struct { // The html_url property html_url *string // The id of the check. - id *int32 + id *int64 // The name of the check. name *string // The node_id property @@ -191,7 +191,7 @@ func (m *CheckRun) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -289,8 +289,8 @@ func (m *CheckRun) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. The id of the check. -// returns a *int32 when successful -func (m *CheckRun) GetId()(*int32) { +// returns a *int64 when successful +func (m *CheckRun) GetId()(*int64) { return m.id } // GetName gets the name property value. The name of the check. @@ -386,7 +386,7 @@ func (m *CheckRun) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -489,7 +489,7 @@ func (m *CheckRun) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. The id of the check. -func (m *CheckRun) SetId(value *int32)() { +func (m *CheckRun) SetId(value *int64)() { m.id = value } // SetName sets the name property value. The name of the check. @@ -532,7 +532,7 @@ type CheckRunable interface { GetExternalId()(*string) GetHeadSha()(*string) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetName()(*string) GetNodeId()(*string) GetOutput()(CheckRun_outputable) @@ -549,7 +549,7 @@ type CheckRunable interface { SetExternalId(value *string)() SetHeadSha(value *string)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetName(value *string)() SetNodeId(value *string)() SetOutput(value CheckRun_outputable)() diff --git a/pkg/github/repos/item_item_contents_with_path_item_request_builder.go b/pkg/github/repos/item_item_contents_with_path_item_request_builder.go index fddfc2cb..6d1263e0 100644 --- a/pkg/github/repos/item_item_contents_with_path_item_request_builder.go +++ b/pkg/github/repos/item_item_contents_with_path_item_request_builder.go @@ -223,7 +223,6 @@ func (m *ItemItemContentsWithPathItemRequestBuilder) Get(ctx context.Context, re // Put creates a new file or replaces an existing file in a repository.> [!NOTE]> If you use this endpoint and the "[Delete a file](https://docs.github.com/rest/repos/contents/#delete-a-file)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. The `workflow` scope is also required in order to modify files in the `.github/workflows` directory. // returns a FileCommitable when successful // returns a BasicError error when the service returns a 404 status code -// returns a BasicError error when the service returns a 409 status code // returns a ValidationError error when the service returns a 422 status code // [API method documentation] // @@ -235,7 +234,6 @@ func (m *ItemItemContentsWithPathItemRequestBuilder) Put(ctx context.Context, bo } errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "409": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, } res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateFileCommitFromDiscriminatorValue, errorMapping) diff --git a/pkg/github/repos/item_item_git_blobs_request_builder.go b/pkg/github/repos/item_item_git_blobs_request_builder.go index e1d313de..ec1513e3 100644 --- a/pkg/github/repos/item_item_git_blobs_request_builder.go +++ b/pkg/github/repos/item_item_git_blobs_request_builder.go @@ -40,7 +40,6 @@ func NewItemItemGitBlobsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d // returns a BasicError error when the service returns a 403 status code // returns a BasicError error when the service returns a 404 status code // returns a BasicError error when the service returns a 409 status code -// returns a ValidationError error when the service returns a 422 status code // [API method documentation] // // [API method documentation]: https://docs.github.com/rest/git/blobs#create-a-blob @@ -53,7 +52,6 @@ func (m *ItemItemGitBlobsRequestBuilder) Post(ctx context.Context, body ItemItem "403": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, "409": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, - "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, } res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateShortBlobFromDiscriminatorValue, errorMapping) if err != nil {