Skip to content

Commit

Permalink
maint: Updates Kiota from v1.11.0 to v1.11.1 (#38)
Browse files Browse the repository at this point in the history
* New updates to generated code

* New updates to generated code

---------

Co-authored-by: Octokit Bot <octokitbot@martynus.net>
Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 13, 2024
1 parent d0dc631 commit d6e2e46
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 13 deletions.
4 changes: 2 additions & 2 deletions pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "92551A848ADF27488F9C993485A2F1360C80E5F50052B64E86305EC714058621162EECB56F1E9DCBA3D3D632650057B4D482AEEBC83C11BD823C154651951263",
"descriptionHash": "0FFCEF2E76E5F57B82DD566F419B5A7A79F60B3472F7BA4AA926486D854B4D93B0D20C51E1A06A4B1A6BE5C892F650D553267BDBDB9C79BEFB8CE678EE558815",
"descriptionLocation": "../../../source-generator/schemas/downloaded.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.11.0",
"kiotaVersion": "1.11.1",
"clientClassName": "ApiClient",
"clientNamespaceName": "github.com/octokit/go-sdk/pkg/github/",
"language": "Go",
Expand Down
118 changes: 118 additions & 0 deletions pkg/github/models/page_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,105 @@ import (
type PageDeployment 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 ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit.
id PageDeployment_PageDeployment_idable
// The URI to the deployed GitHub Pages.
page_url *string
// The URI to the deployed GitHub Pages preview.
preview_url *string
// The URI to monitor GitHub Pages deployment status.
status_url *string
}
// PageDeployment_PageDeployment_id composed type wrapper for classes integer, string
type PageDeployment_PageDeployment_id struct {
// Composed type representation for type integer
integer *int32
// Composed type representation for type string
string *string
}
// NewPageDeployment_PageDeployment_id instantiates a new pageDeployment_id and sets the default values.
func NewPageDeployment_PageDeployment_id()(*PageDeployment_PageDeployment_id) {
m := &PageDeployment_PageDeployment_id{
}
return m
}
// CreatePageDeployment_PageDeployment_idFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreatePageDeployment_PageDeployment_idFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
result := NewPageDeployment_PageDeployment_id()
if parseNode != nil {
mappingValueNode, err := parseNode.GetChildNode("")
if err != nil {
return nil, err
}
if mappingValueNode != nil {
mappingValue, err := mappingValueNode.GetStringValue()
if err != nil {
return nil, err
}
if mappingValue != nil {
}
}
}
if val, err := parseNode.GetInt32Value(); val != nil {
if err != nil {
return nil, err
}
result.SetInteger(val)
} else if val, err := parseNode.GetStringValue(); val != nil {
if err != nil {
return nil, err
}
result.SetString(val)
}
return result, nil
}
// GetFieldDeserializers the deserialization information for the current model
func (m *PageDeployment_PageDeployment_id) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
}
// GetInteger gets the integer property value. Composed type representation for type integer
func (m *PageDeployment_PageDeployment_id) GetInteger()(*int32) {
return m.integer
}
// GetIsComposedType determines if the current object is a wrapper around a composed type
func (m *PageDeployment_PageDeployment_id) GetIsComposedType()(bool) {
return true
}
// GetString gets the string property value. Composed type representation for type string
func (m *PageDeployment_PageDeployment_id) GetString()(*string) {
return m.string
}
// Serialize serializes information the current object
func (m *PageDeployment_PageDeployment_id) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
if m.GetInteger() != nil {
err := writer.WriteInt32Value("", m.GetInteger())
if err != nil {
return err
}
} else if m.GetString() != nil {
err := writer.WriteStringValue("", m.GetString())
if err != nil {
return err
}
}
return nil
}
// SetInteger sets the integer property value. Composed type representation for type integer
func (m *PageDeployment_PageDeployment_id) SetInteger(value *int32)() {
m.integer = value
}
// SetString sets the string property value. Composed type representation for type string
func (m *PageDeployment_PageDeployment_id) SetString(value *string)() {
m.string = value
}
// PageDeployment_PageDeployment_idable
type PageDeployment_PageDeployment_idable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetInteger()(*int32)
GetString()(*string)
SetInteger(value *int32)()
SetString(value *string)()
}
// NewPageDeployment instantiates a new pageDeployment and sets the default values.
func NewPageDeployment()(*PageDeployment) {
m := &PageDeployment{
Expand All @@ -33,6 +125,16 @@ func (m *PageDeployment) GetAdditionalData()(map[string]any) {
// GetFieldDeserializers the deserialization information for the current model
func (m *PageDeployment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreatePageDeployment_PageDeployment_idFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetId(val.(PageDeployment_PageDeployment_idable))
}
return nil
}
res["page_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
Expand Down Expand Up @@ -65,6 +167,10 @@ func (m *PageDeployment) GetFieldDeserializers()(map[string]func(i878a80d2330e89
}
return res
}
// GetId gets the id property value. The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit.
func (m *PageDeployment) GetId()(PageDeployment_PageDeployment_idable) {
return m.id
}
// GetPageUrl gets the page_url property value. The URI to the deployed GitHub Pages.
func (m *PageDeployment) GetPageUrl()(*string) {
return m.page_url
Expand All @@ -79,6 +185,12 @@ func (m *PageDeployment) GetStatusUrl()(*string) {
}
// Serialize serializes information the current object
func (m *PageDeployment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
{
err := writer.WriteObjectValue("id", m.GetId())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("page_url", m.GetPageUrl())
if err != nil {
Expand Down Expand Up @@ -109,6 +221,10 @@ func (m *PageDeployment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a
func (m *PageDeployment) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetId sets the id property value. The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit.
func (m *PageDeployment) SetId(value PageDeployment_PageDeployment_idable)() {
m.id = value
}
// SetPageUrl sets the page_url property value. The URI to the deployed GitHub Pages.
func (m *PageDeployment) SetPageUrl(value *string)() {
m.page_url = value
Expand All @@ -125,9 +241,11 @@ func (m *PageDeployment) SetStatusUrl(value *string)() {
type PageDeploymentable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetId()(PageDeployment_PageDeployment_idable)
GetPageUrl()(*string)
GetPreviewUrl()(*string)
GetStatusUrl()(*string)
SetId(value PageDeployment_PageDeployment_idable)()
SetPageUrl(value *string)()
SetPreviewUrl(value *string)()
SetStatusUrl(value *string)()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder(rawUrl string
urlParams["request-raw-url"] = rawUrl
return NewItemItemCodespacesSecretsWithSecret_nameItemRequestBuilderInternal(urlParams, requestAdapter)
}
// Delete deletes a development environment secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets` repository permission to use this endpoint.
// Delete deletes a development environment secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets` repository permission to use this endpoint.This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/codespaces/repository-secrets#delete-a-repository-secret
Expand Down Expand Up @@ -56,7 +56,7 @@ func (m *ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder) Get(ctx con
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.RepoCodespacesSecretable), nil
}
// Put creates or updates a repository development environment secret with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."You must authenticate using an accesstoken with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`repository permission to use this endpoint.
// Put creates or updates a repository development environment secret with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."You must authenticate using an accesstoken with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`repository permission to use this endpoint.This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/codespaces/repository-secrets#create-or-update-a-repository-secret
Expand All @@ -74,7 +74,7 @@ func (m *ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder) Put(ctx con
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.EmptyObjectable), nil
}
// ToDeleteRequestInformation deletes a development environment secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets` repository permission to use this endpoint.
// ToDeleteRequestInformation deletes a development environment secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets` repository permission to use this endpoint.This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
func (m *ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration)
Expand All @@ -87,7 +87,7 @@ func (m *ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder) ToGetReques
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToPutRequestInformation creates or updates a repository development environment secret with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."You must authenticate using an accesstoken with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`repository permission to use this endpoint.
// ToPutRequestInformation creates or updates a repository development environment secret with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."You must authenticate using an accesstoken with the `repo` scope to use this endpoint. GitHub Apps must have write access to the `codespaces_secrets`repository permission to use this endpoint.This endpoint does not support fine-grained personal access tokens. For more information about personal access tokens, see "[Managing your personal access tokens](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic)."
func (m *ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemItemCodespacesSecretsItemWithSecret_namePutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration)
Expand Down
Loading

0 comments on commit d6e2e46

Please sign in to comment.