Skip to content

Commit

Permalink
GHES 3.12: Changes in generated code (#119)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
octokitbot authored Nov 5, 2024
1 parent 5387e5a commit 11d817b
Show file tree
Hide file tree
Showing 29 changed files with 2,307 additions and 2,372 deletions.
4,207 changes: 2,135 additions & 2,072 deletions pkg/github/.kiota.log

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pkg/github/app/hook_deliveries_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ type HookDeliveriesRequestBuilderGetQueryParameters struct {
Cursor *string `uriparametername:"cursor"`
// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/[email protected]/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Per_page *int32 `uriparametername:"per_page"`
Redelivery *bool `uriparametername:"redelivery"`
}
// ByDelivery_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.app.hook.deliveries.item collection
// returns a *HookDeliveriesWithDelivery_ItemRequestBuilder when successful
Expand All @@ -32,7 +31,7 @@ func (m *HookDeliveriesRequestBuilder) ByDelivery_id(delivery_id int32)(*HookDel
// NewHookDeliveriesRequestBuilderInternal instantiates a new HookDeliveriesRequestBuilder and sets the default values.
func NewHookDeliveriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*HookDeliveriesRequestBuilder) {
m := &HookDeliveriesRequestBuilder{
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/app/hook/deliveries{?cursor*,per_page*,redelivery*}", pathParameters),
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/app/hook/deliveries{?cursor*,per_page*}", pathParameters),
}
return m
}
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": "A75E913FF4BF45BD2A7909A9BF02FAB75A3CA0906E078385408E2F9220AD579273F18DBEA9CBA5256A94F2CAD4B0424467D2801E8C2548F84D795E7C7EFF9F03",
"descriptionHash": "47E2E4BAB1FCCC4C93F9E8336C14E39F1C565F163D0532529FE7DC934D540897C2B6B0FC97CE146505EDFAA7AAA931325702CEB432C513F9F7E2046CE0C21B2A",
"descriptionLocation": "../../../../../schemas/ghes-3.12.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",
Expand Down
16 changes: 8 additions & 8 deletions pkg/github/models/check_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CheckSuite struct {
// The SHA of the head commit that is being checked.
head_sha *string
// The id property
id *int32
id *int64
// The latest_check_runs_count property
latest_check_runs_count *int32
// The node_id property
Expand Down Expand Up @@ -190,7 +190,7 @@ func (m *CheckSuite) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268
return nil
}
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
val, err := n.GetInt64Value()
if err != nil {
return err
}
Expand Down Expand Up @@ -313,8 +313,8 @@ func (m *CheckSuite) GetHeadSha()(*string) {
return m.head_sha
}
// GetId gets the id property value. The id property
// returns a *int32 when successful
func (m *CheckSuite) GetId()(*int32) {
// returns a *int64 when successful
func (m *CheckSuite) GetId()(*int64) {
return m.id
}
// GetLatestCheckRunsCount gets the latest_check_runs_count property value. The latest_check_runs_count property
Expand Down Expand Up @@ -420,7 +420,7 @@ func (m *CheckSuite) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c
}
}
{
err := writer.WriteInt32Value("id", m.GetId())
err := writer.WriteInt64Value("id", m.GetId())
if err != nil {
return err
}
Expand Down Expand Up @@ -535,7 +535,7 @@ func (m *CheckSuite) SetHeadSha(value *string)() {
m.head_sha = value
}
// SetId sets the id property value. The id property
func (m *CheckSuite) SetId(value *int32)() {
func (m *CheckSuite) SetId(value *int64)() {
m.id = value
}
// SetLatestCheckRunsCount sets the latest_check_runs_count property value. The latest_check_runs_count property
Expand Down Expand Up @@ -586,7 +586,7 @@ type CheckSuiteable interface {
GetHeadBranch()(*string)
GetHeadCommit()(SimpleCommitable)
GetHeadSha()(*string)
GetId()(*int32)
GetId()(*int64)
GetLatestCheckRunsCount()(*int32)
GetNodeId()(*string)
GetPullRequests()([]PullRequestMinimalable)
Expand All @@ -605,7 +605,7 @@ type CheckSuiteable interface {
SetHeadBranch(value *string)()
SetHeadCommit(value SimpleCommitable)()
SetHeadSha(value *string)()
SetId(value *int32)()
SetId(value *int64)()
SetLatestCheckRunsCount(value *int32)()
SetNodeId(value *string)()
SetPullRequests(value []PullRequestMinimalable)()
Expand Down
35 changes: 32 additions & 3 deletions pkg/github/models/organization_programmatic_access_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type OrganizationProgrammaticAccessGrant struct {
access_granted_at *string
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// Unique identifier of the fine-grained personal access token. The `pat_id` used to get details about an approved fine-grained personal access token.
// Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token.
id *int32
// A GitHub user.
owner SimpleUserable
Expand All @@ -24,6 +24,8 @@ type OrganizationProgrammaticAccessGrant struct {
token_expired *bool
// Date and time when the associated fine-grained personal access token expires.
token_expires_at *string
// Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants.
token_id *int32
// Date and time when the associated fine-grained personal access token was last used for authentication.
token_last_used_at *string
}
Expand Down Expand Up @@ -133,6 +135,16 @@ func (m *OrganizationProgrammaticAccessGrant) GetFieldDeserializers()(map[string
}
return nil
}
res["token_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetTokenId(val)
}
return nil
}
res["token_last_used_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
Expand All @@ -145,7 +157,7 @@ func (m *OrganizationProgrammaticAccessGrant) GetFieldDeserializers()(map[string
}
return res
}
// GetId gets the id property value. Unique identifier of the fine-grained personal access token. The `pat_id` used to get details about an approved fine-grained personal access token.
// GetId gets the id property value. Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token.
// returns a *int32 when successful
func (m *OrganizationProgrammaticAccessGrant) GetId()(*int32) {
return m.id
Expand Down Expand Up @@ -180,6 +192,11 @@ func (m *OrganizationProgrammaticAccessGrant) GetTokenExpired()(*bool) {
func (m *OrganizationProgrammaticAccessGrant) GetTokenExpiresAt()(*string) {
return m.token_expires_at
}
// GetTokenId gets the token_id property value. Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants.
// returns a *int32 when successful
func (m *OrganizationProgrammaticAccessGrant) GetTokenId()(*int32) {
return m.token_id
}
// GetTokenLastUsedAt gets the token_last_used_at property value. Date and time when the associated fine-grained personal access token was last used for authentication.
// returns a *string when successful
func (m *OrganizationProgrammaticAccessGrant) GetTokenLastUsedAt()(*string) {
Expand Down Expand Up @@ -236,6 +253,12 @@ func (m *OrganizationProgrammaticAccessGrant) Serialize(writer i878a80d2330e89d2
return err
}
}
{
err := writer.WriteInt32Value("token_id", m.GetTokenId())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("token_last_used_at", m.GetTokenLastUsedAt())
if err != nil {
Expand All @@ -258,7 +281,7 @@ func (m *OrganizationProgrammaticAccessGrant) SetAccessGrantedAt(value *string)(
func (m *OrganizationProgrammaticAccessGrant) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetId sets the id property value. Unique identifier of the fine-grained personal access token. The `pat_id` used to get details about an approved fine-grained personal access token.
// SetId sets the id property value. Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token.
func (m *OrganizationProgrammaticAccessGrant) SetId(value *int32)() {
m.id = value
}
Expand Down Expand Up @@ -286,6 +309,10 @@ func (m *OrganizationProgrammaticAccessGrant) SetTokenExpired(value *bool)() {
func (m *OrganizationProgrammaticAccessGrant) SetTokenExpiresAt(value *string)() {
m.token_expires_at = value
}
// SetTokenId sets the token_id property value. Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants.
func (m *OrganizationProgrammaticAccessGrant) SetTokenId(value *int32)() {
m.token_id = value
}
// SetTokenLastUsedAt sets the token_last_used_at property value. Date and time when the associated fine-grained personal access token was last used for authentication.
func (m *OrganizationProgrammaticAccessGrant) SetTokenLastUsedAt(value *string)() {
m.token_last_used_at = value
Expand All @@ -301,6 +328,7 @@ type OrganizationProgrammaticAccessGrantable interface {
GetRepositorySelection()(*OrganizationProgrammaticAccessGrant_repository_selection)
GetTokenExpired()(*bool)
GetTokenExpiresAt()(*string)
GetTokenId()(*int32)
GetTokenLastUsedAt()(*string)
SetAccessGrantedAt(value *string)()
SetId(value *int32)()
Expand All @@ -310,5 +338,6 @@ type OrganizationProgrammaticAccessGrantable interface {
SetRepositorySelection(value *OrganizationProgrammaticAccessGrant_repository_selection)()
SetTokenExpired(value *bool)()
SetTokenExpiresAt(value *string)()
SetTokenId(value *int32)()
SetTokenLastUsedAt(value *string)()
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ type OrganizationProgrammaticAccessGrantRequest struct {
token_expired *bool
// Date and time when the associated fine-grained personal access token expires.
token_expires_at *string
// Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants.
token_id *int32
// Date and time when the associated fine-grained personal access token was last used for authentication.
token_last_used_at *string
}
Expand Down Expand Up @@ -145,6 +147,16 @@ func (m *OrganizationProgrammaticAccessGrantRequest) GetFieldDeserializers()(map
}
return nil
}
res["token_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetTokenId(val)
}
return nil
}
res["token_last_used_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
Expand Down Expand Up @@ -197,6 +209,11 @@ func (m *OrganizationProgrammaticAccessGrantRequest) GetTokenExpired()(*bool) {
func (m *OrganizationProgrammaticAccessGrantRequest) GetTokenExpiresAt()(*string) {
return m.token_expires_at
}
// GetTokenId gets the token_id property value. Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants.
// returns a *int32 when successful
func (m *OrganizationProgrammaticAccessGrantRequest) GetTokenId()(*int32) {
return m.token_id
}
// GetTokenLastUsedAt gets the token_last_used_at property value. Date and time when the associated fine-grained personal access token was last used for authentication.
// returns a *string when successful
func (m *OrganizationProgrammaticAccessGrantRequest) GetTokenLastUsedAt()(*string) {
Expand Down Expand Up @@ -259,6 +276,12 @@ func (m *OrganizationProgrammaticAccessGrantRequest) Serialize(writer i878a80d23
return err
}
}
{
err := writer.WriteInt32Value("token_id", m.GetTokenId())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("token_last_used_at", m.GetTokenLastUsedAt())
if err != nil {
Expand Down Expand Up @@ -313,6 +336,10 @@ func (m *OrganizationProgrammaticAccessGrantRequest) SetTokenExpired(value *bool
func (m *OrganizationProgrammaticAccessGrantRequest) SetTokenExpiresAt(value *string)() {
m.token_expires_at = value
}
// SetTokenId sets the token_id property value. Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants.
func (m *OrganizationProgrammaticAccessGrantRequest) SetTokenId(value *int32)() {
m.token_id = value
}
// SetTokenLastUsedAt sets the token_last_used_at property value. Date and time when the associated fine-grained personal access token was last used for authentication.
func (m *OrganizationProgrammaticAccessGrantRequest) SetTokenLastUsedAt(value *string)() {
m.token_last_used_at = value
Expand All @@ -329,6 +356,7 @@ type OrganizationProgrammaticAccessGrantRequestable interface {
GetRepositorySelection()(*OrganizationProgrammaticAccessGrantRequest_repository_selection)
GetTokenExpired()(*bool)
GetTokenExpiresAt()(*string)
GetTokenId()(*int32)
GetTokenLastUsedAt()(*string)
SetCreatedAt(value *string)()
SetId(value *int32)()
Expand All @@ -339,5 +367,6 @@ type OrganizationProgrammaticAccessGrantRequestable interface {
SetRepositorySelection(value *OrganizationProgrammaticAccessGrantRequest_repository_selection)()
SetTokenExpired(value *bool)()
SetTokenExpiresAt(value *string)()
SetTokenId(value *int32)()
SetTokenLastUsedAt(value *string)()
}
Loading

0 comments on commit 11d817b

Please sign in to comment.