Documentation
¶
Index ¶
- func CreateGistsPostRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateGistsPostRequestBody_GistsPostRequestBody_publicFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateGistsPostRequestBody_filesFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemCommentsItemWithComment_PatchRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemCommentsPostRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemStar404ErrorFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemWithGist_PatchRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemWithGist_PatchRequestBody_filesFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- type GistsPostRequestBody
- func (m *GistsPostRequestBody) GetAdditionalData() map[string]any
- func (m *GistsPostRequestBody) GetDescription() *string
- func (m *GistsPostRequestBody) GetFieldDeserializers() ...
- func (m *GistsPostRequestBody) GetFiles() GistsPostRequestBody_filesable
- func (m *GistsPostRequestBody) GetPublic() GistsPostRequestBody_GistsPostRequestBody_publicable
- func (m *GistsPostRequestBody) Serialize(...) error
- func (m *GistsPostRequestBody) SetAdditionalData(value map[string]any)
- func (m *GistsPostRequestBody) SetDescription(value *string)
- func (m *GistsPostRequestBody) SetFiles(value GistsPostRequestBody_filesable)
- func (m *GistsPostRequestBody) SetPublic(value GistsPostRequestBody_GistsPostRequestBody_publicable)
- type GistsPostRequestBody_GistsPostRequestBody_public
- func (m *GistsPostRequestBody_GistsPostRequestBody_public) GetBoolean() *bool
- func (m *GistsPostRequestBody_GistsPostRequestBody_public) GetFieldDeserializers() ...
- func (m *GistsPostRequestBody_GistsPostRequestBody_public) GetIsComposedType() bool
- func (m *GistsPostRequestBody_GistsPostRequestBody_public) GetString() *string
- func (m *GistsPostRequestBody_GistsPostRequestBody_public) Serialize(...) error
- func (m *GistsPostRequestBody_GistsPostRequestBody_public) SetBoolean(value *bool)
- func (m *GistsPostRequestBody_GistsPostRequestBody_public) SetString(value *string)
- type GistsPostRequestBody_GistsPostRequestBody_publicable
- type GistsPostRequestBody_files
- type GistsPostRequestBody_filesable
- type GistsPostRequestBodyable
- type GistsRequestBuilder
- func (m *GistsRequestBuilder) ByGist_id(gist_id string) *WithGist_ItemRequestBuilder
- func (m *GistsRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *GistsRequestBuilder) Post(ctx context.Context, body GistsPostRequestBodyable, ...) (...)
- func (m *GistsRequestBuilder) Public() *PublicRequestBuilder
- func (m *GistsRequestBuilder) Starred() *StarredRequestBuilder
- func (m *GistsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *GistsRequestBuilder) ToPostRequestInformation(ctx context.Context, body GistsPostRequestBodyable, ...) (...)
- func (m *GistsRequestBuilder) WithUrl(rawUrl string) *GistsRequestBuilder
- type GistsRequestBuilderGetQueryParameters
- type ItemCommentsItemWithComment_PatchRequestBody
- func (m *ItemCommentsItemWithComment_PatchRequestBody) GetAdditionalData() map[string]any
- func (m *ItemCommentsItemWithComment_PatchRequestBody) GetBody() *string
- func (m *ItemCommentsItemWithComment_PatchRequestBody) GetFieldDeserializers() ...
- func (m *ItemCommentsItemWithComment_PatchRequestBody) Serialize(...) error
- func (m *ItemCommentsItemWithComment_PatchRequestBody) SetAdditionalData(value map[string]any)
- func (m *ItemCommentsItemWithComment_PatchRequestBody) SetBody(value *string)
- type ItemCommentsItemWithComment_PatchRequestBodyable
- type ItemCommentsPostRequestBody
- func (m *ItemCommentsPostRequestBody) GetAdditionalData() map[string]any
- func (m *ItemCommentsPostRequestBody) GetBody() *string
- func (m *ItemCommentsPostRequestBody) GetFieldDeserializers() ...
- func (m *ItemCommentsPostRequestBody) Serialize(...) error
- func (m *ItemCommentsPostRequestBody) SetAdditionalData(value map[string]any)
- func (m *ItemCommentsPostRequestBody) SetBody(value *string)
- type ItemCommentsPostRequestBodyable
- type ItemCommentsRequestBuilder
- func (m *ItemCommentsRequestBuilder) ByComment_id(comment_id int64) *ItemCommentsWithComment_ItemRequestBuilder
- func (m *ItemCommentsRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemCommentsRequestBuilder) Post(ctx context.Context, body ItemCommentsPostRequestBodyable, ...) (...)
- func (m *ItemCommentsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemCommentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCommentsPostRequestBodyable, ...) (...)
- func (m *ItemCommentsRequestBuilder) WithUrl(rawUrl string) *ItemCommentsRequestBuilder
- type ItemCommentsRequestBuilderGetQueryParameters
- type ItemCommentsWithComment_ItemRequestBuilder
- func (m *ItemCommentsWithComment_ItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *ItemCommentsWithComment_ItemRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemCommentsWithComment_ItemRequestBuilder) Patch(ctx context.Context, body ItemCommentsItemWithComment_PatchRequestBodyable, ...) (...)
- func (m *ItemCommentsWithComment_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemCommentsWithComment_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemCommentsWithComment_ItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemCommentsItemWithComment_PatchRequestBodyable, ...) (...)
- func (m *ItemCommentsWithComment_ItemRequestBuilder) WithUrl(rawUrl string) *ItemCommentsWithComment_ItemRequestBuilder
- type ItemCommitsRequestBuilder
- type ItemCommitsRequestBuilderGetQueryParameters
- type ItemForksRequestBuilder
- func (m *ItemForksRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemForksRequestBuilder) Post(ctx context.Context, ...) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.BaseGistable, ...)
- func (m *ItemForksRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemForksRequestBuilder) ToPostRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemForksRequestBuilder) WithUrl(rawUrl string) *ItemForksRequestBuilder
- type ItemForksRequestBuilderGetQueryParameters
- type ItemStar404Error
- type ItemStar404Errorable
- type ItemStarRequestBuilder
- func (m *ItemStarRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *ItemStarRequestBuilder) Get(ctx context.Context, ...) error
- func (m *ItemStarRequestBuilder) Put(ctx context.Context, ...) error
- func (m *ItemStarRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemStarRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemStarRequestBuilder) ToPutRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemStarRequestBuilder) WithUrl(rawUrl string) *ItemStarRequestBuilder
- type ItemWithGist_PatchRequestBody
- func (m *ItemWithGist_PatchRequestBody) GetAdditionalData() map[string]any
- func (m *ItemWithGist_PatchRequestBody) GetDescription() *string
- func (m *ItemWithGist_PatchRequestBody) GetFieldDeserializers() ...
- func (m *ItemWithGist_PatchRequestBody) GetFiles() ItemWithGist_PatchRequestBody_filesable
- func (m *ItemWithGist_PatchRequestBody) Serialize(...) error
- func (m *ItemWithGist_PatchRequestBody) SetAdditionalData(value map[string]any)
- func (m *ItemWithGist_PatchRequestBody) SetDescription(value *string)
- func (m *ItemWithGist_PatchRequestBody) SetFiles(value ItemWithGist_PatchRequestBody_filesable)
- type ItemWithGist_PatchRequestBody_files
- func (m *ItemWithGist_PatchRequestBody_files) GetAdditionalData() map[string]any
- func (m *ItemWithGist_PatchRequestBody_files) GetFieldDeserializers() ...
- func (m *ItemWithGist_PatchRequestBody_files) Serialize(...) error
- func (m *ItemWithGist_PatchRequestBody_files) SetAdditionalData(value map[string]any)
- type ItemWithGist_PatchRequestBody_filesable
- type ItemWithGist_PatchRequestBodyable
- type ItemWithShaItemRequestBuilder
- type PublicRequestBuilder
- type PublicRequestBuilderGetQueryParameters
- type StarredRequestBuilder
- type StarredRequestBuilderGetQueryParameters
- type WithGist_ItemRequestBuilder
- func (m *WithGist_ItemRequestBuilder) BySha(sha string) *ItemWithShaItemRequestBuilder
- func (m *WithGist_ItemRequestBuilder) Comments() *ItemCommentsRequestBuilder
- func (m *WithGist_ItemRequestBuilder) Commits() *ItemCommitsRequestBuilder
- func (m *WithGist_ItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *WithGist_ItemRequestBuilder) Forks() *ItemForksRequestBuilder
- func (m *WithGist_ItemRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *WithGist_ItemRequestBuilder) Patch(ctx context.Context, body ItemWithGist_PatchRequestBodyable, ...) (...)
- func (m *WithGist_ItemRequestBuilder) Star() *ItemStarRequestBuilder
- func (m *WithGist_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *WithGist_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *WithGist_ItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemWithGist_PatchRequestBodyable, ...) (...)
- func (m *WithGist_ItemRequestBuilder) WithUrl(rawUrl string) *WithGist_ItemRequestBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGistsPostRequestBodyFromDiscriminatorValue ¶
func CreateGistsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateGistsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateGistsPostRequestBody_GistsPostRequestBody_publicFromDiscriminatorValue ¶
func CreateGistsPostRequestBody_GistsPostRequestBody_publicFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateGistsPostRequestBody_GistsPostRequestBody_publicFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateGistsPostRequestBody_filesFromDiscriminatorValue ¶
func CreateGistsPostRequestBody_filesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateGistsPostRequestBody_filesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemCommentsItemWithComment_PatchRequestBodyFromDiscriminatorValue ¶
func CreateItemCommentsItemWithComment_PatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemCommentsItemWithComment_PatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemCommentsPostRequestBodyFromDiscriminatorValue ¶
func CreateItemCommentsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemCommentsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemStar404ErrorFromDiscriminatorValue ¶
func CreateItemStar404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemStar404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemWithGist_PatchRequestBodyFromDiscriminatorValue ¶
func CreateItemWithGist_PatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemWithGist_PatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemWithGist_PatchRequestBody_filesFromDiscriminatorValue ¶
func CreateItemWithGist_PatchRequestBody_filesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemWithGist_PatchRequestBody_filesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
Types ¶
type GistsPostRequestBody ¶
type GistsPostRequestBody struct {
// contains filtered or unexported fields
}
func NewGistsPostRequestBody ¶
func NewGistsPostRequestBody() *GistsPostRequestBody
NewGistsPostRequestBody instantiates a new GistsPostRequestBody and sets the default values.
func (*GistsPostRequestBody) GetAdditionalData ¶
func (m *GistsPostRequestBody) GetAdditionalData() map[string]any
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 (*GistsPostRequestBody) GetDescription ¶
func (m *GistsPostRequestBody) GetDescription() *string
GetDescription gets the description property value. Description of the gist returns a *string when successful
func (*GistsPostRequestBody) GetFieldDeserializers ¶
func (m *GistsPostRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*GistsPostRequestBody) GetFiles ¶
func (m *GistsPostRequestBody) GetFiles() GistsPostRequestBody_filesable
GetFiles gets the files property value. Names and content for the files that make up the gist returns a GistsPostRequestBody_filesable when successful
func (*GistsPostRequestBody) GetPublic ¶
func (m *GistsPostRequestBody) GetPublic() GistsPostRequestBody_GistsPostRequestBody_publicable
GetPublic gets the public property value. The public property returns a GistsPostRequestBody_GistsPostRequestBody_publicable when successful
func (*GistsPostRequestBody) Serialize ¶
func (m *GistsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*GistsPostRequestBody) SetAdditionalData ¶
func (m *GistsPostRequestBody) SetAdditionalData(value map[string]any)
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 (*GistsPostRequestBody) SetDescription ¶
func (m *GistsPostRequestBody) SetDescription(value *string)
SetDescription sets the description property value. Description of the gist
func (*GistsPostRequestBody) SetFiles ¶
func (m *GistsPostRequestBody) SetFiles(value GistsPostRequestBody_filesable)
SetFiles sets the files property value. Names and content for the files that make up the gist
func (*GistsPostRequestBody) SetPublic ¶
func (m *GistsPostRequestBody) SetPublic(value GistsPostRequestBody_GistsPostRequestBody_publicable)
SetPublic sets the public property value. The public property
type GistsPostRequestBody_GistsPostRequestBody_public ¶
type GistsPostRequestBody_GistsPostRequestBody_public struct {
// contains filtered or unexported fields
}
GistsPostRequestBody_GistsPostRequestBody_public composed type wrapper for classes bool, string
func NewGistsPostRequestBody_GistsPostRequestBody_public ¶
func NewGistsPostRequestBody_GistsPostRequestBody_public() *GistsPostRequestBody_GistsPostRequestBody_public
NewGistsPostRequestBody_GistsPostRequestBody_public instantiates a new GistsPostRequestBody_GistsPostRequestBody_public and sets the default values.
func (*GistsPostRequestBody_GistsPostRequestBody_public) GetBoolean ¶
func (m *GistsPostRequestBody_GistsPostRequestBody_public) GetBoolean() *bool
GetBoolean gets the boolean property value. Composed type representation for type bool returns a *bool when successful
func (*GistsPostRequestBody_GistsPostRequestBody_public) GetFieldDeserializers ¶
func (m *GistsPostRequestBody_GistsPostRequestBody_public) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*GistsPostRequestBody_GistsPostRequestBody_public) GetIsComposedType ¶
func (m *GistsPostRequestBody_GistsPostRequestBody_public) GetIsComposedType() bool
GetIsComposedType determines if the current object is a wrapper around a composed type returns a bool when successful
func (*GistsPostRequestBody_GistsPostRequestBody_public) GetString ¶
func (m *GistsPostRequestBody_GistsPostRequestBody_public) GetString() *string
GetString gets the string property value. Composed type representation for type string returns a *string when successful
func (*GistsPostRequestBody_GistsPostRequestBody_public) Serialize ¶
func (m *GistsPostRequestBody_GistsPostRequestBody_public) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*GistsPostRequestBody_GistsPostRequestBody_public) SetBoolean ¶
func (m *GistsPostRequestBody_GistsPostRequestBody_public) SetBoolean(value *bool)
SetBoolean sets the boolean property value. Composed type representation for type bool
func (*GistsPostRequestBody_GistsPostRequestBody_public) SetString ¶
func (m *GistsPostRequestBody_GistsPostRequestBody_public) SetString(value *string)
SetString sets the string property value. Composed type representation for type string
type GistsPostRequestBody_files ¶
type GistsPostRequestBody_files struct {
// contains filtered or unexported fields
}
GistsPostRequestBody_files names and content for the files that make up the gist
func NewGistsPostRequestBody_files ¶
func NewGistsPostRequestBody_files() *GistsPostRequestBody_files
NewGistsPostRequestBody_files instantiates a new GistsPostRequestBody_files and sets the default values.
func (*GistsPostRequestBody_files) GetAdditionalData ¶
func (m *GistsPostRequestBody_files) GetAdditionalData() map[string]any
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 (*GistsPostRequestBody_files) GetFieldDeserializers ¶
func (m *GistsPostRequestBody_files) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*GistsPostRequestBody_files) Serialize ¶
func (m *GistsPostRequestBody_files) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*GistsPostRequestBody_files) SetAdditionalData ¶
func (m *GistsPostRequestBody_files) SetAdditionalData(value map[string]any)
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.
type GistsPostRequestBody_filesable ¶
type GistsPostRequestBody_filesable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
type GistsPostRequestBodyable ¶
type GistsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDescription() *string GetFiles() GistsPostRequestBody_filesable GetPublic() GistsPostRequestBody_GistsPostRequestBody_publicable SetDescription(value *string) SetFiles(value GistsPostRequestBody_filesable) SetPublic(value GistsPostRequestBody_GistsPostRequestBody_publicable) }
type GistsRequestBuilder ¶
type GistsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
GistsRequestBuilder builds and executes requests for operations under \gists
func NewGistsRequestBuilder ¶
func NewGistsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *GistsRequestBuilder
NewGistsRequestBuilder instantiates a new GistsRequestBuilder and sets the default values.
func NewGistsRequestBuilderInternal ¶
func NewGistsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *GistsRequestBuilder
NewGistsRequestBuilderInternal instantiates a new GistsRequestBuilder and sets the default values.
func (*GistsRequestBuilder) ByGist_id ¶
func (m *GistsRequestBuilder) ByGist_id(gist_id string) *WithGist_ItemRequestBuilder
ByGist_id gets an item from the github.com/octokit/go-sdk/pkg/github.gists.item collection returns a *WithGist_ItemRequestBuilder when successful
func (*GistsRequestBuilder) Get ¶
func (m *GistsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[GistsRequestBuilderGetQueryParameters]) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.BaseGistable, error)
Get lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists: returns a []BaseGistable when successful returns a BasicError error when the service returns a 403 status code API method documentation
func (*GistsRequestBuilder) Post ¶
func (m *GistsRequestBuilder) Post(ctx context.Context, body GistsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistSimpleable, error)
Post allows you to add a new gist with one or more files.> [!NOTE]> Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally. returns a GistSimpleable when successful 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 ValidationError error when the service returns a 422 status code API method documentation
func (*GistsRequestBuilder) Public ¶
func (m *GistsRequestBuilder) Public() *PublicRequestBuilder
Public the public property returns a *PublicRequestBuilder when successful
func (*GistsRequestBuilder) Starred ¶
func (m *GistsRequestBuilder) Starred() *StarredRequestBuilder
Starred the starred property returns a *StarredRequestBuilder when successful
func (*GistsRequestBuilder) ToGetRequestInformation ¶
func (m *GistsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[GistsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists: returns a *RequestInformation when successful
func (*GistsRequestBuilder) ToPostRequestInformation ¶
func (m *GistsRequestBuilder) ToPostRequestInformation(ctx context.Context, body GistsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToPostRequestInformation allows you to add a new gist with one or more files.> [!NOTE]> Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally. returns a *RequestInformation when successful
func (*GistsRequestBuilder) WithUrl ¶
func (m *GistsRequestBuilder) WithUrl(rawUrl string) *GistsRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *GistsRequestBuilder when successful
type GistsRequestBuilderGetQueryParameters ¶
type GistsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` // Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Since *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time `uriparametername:"since"` }
GistsRequestBuilderGetQueryParameters lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists:
type ItemCommentsItemWithComment_PatchRequestBody ¶
type ItemCommentsItemWithComment_PatchRequestBody struct {
// contains filtered or unexported fields
}
func NewItemCommentsItemWithComment_PatchRequestBody ¶
func NewItemCommentsItemWithComment_PatchRequestBody() *ItemCommentsItemWithComment_PatchRequestBody
NewItemCommentsItemWithComment_PatchRequestBody instantiates a new ItemCommentsItemWithComment_PatchRequestBody and sets the default values.
func (*ItemCommentsItemWithComment_PatchRequestBody) GetAdditionalData ¶
func (m *ItemCommentsItemWithComment_PatchRequestBody) GetAdditionalData() map[string]any
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 (*ItemCommentsItemWithComment_PatchRequestBody) GetBody ¶
func (m *ItemCommentsItemWithComment_PatchRequestBody) GetBody() *string
GetBody gets the body property value. The comment text. returns a *string when successful
func (*ItemCommentsItemWithComment_PatchRequestBody) GetFieldDeserializers ¶
func (m *ItemCommentsItemWithComment_PatchRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemCommentsItemWithComment_PatchRequestBody) Serialize ¶
func (m *ItemCommentsItemWithComment_PatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*ItemCommentsItemWithComment_PatchRequestBody) SetAdditionalData ¶
func (m *ItemCommentsItemWithComment_PatchRequestBody) SetAdditionalData(value map[string]any)
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 (*ItemCommentsItemWithComment_PatchRequestBody) SetBody ¶
func (m *ItemCommentsItemWithComment_PatchRequestBody) SetBody(value *string)
SetBody sets the body property value. The comment text.
type ItemCommentsItemWithComment_PatchRequestBodyable ¶
type ItemCommentsItemWithComment_PatchRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBody() *string SetBody(value *string) }
type ItemCommentsPostRequestBody ¶
type ItemCommentsPostRequestBody struct {
// contains filtered or unexported fields
}
func NewItemCommentsPostRequestBody ¶
func NewItemCommentsPostRequestBody() *ItemCommentsPostRequestBody
NewItemCommentsPostRequestBody instantiates a new ItemCommentsPostRequestBody and sets the default values.
func (*ItemCommentsPostRequestBody) GetAdditionalData ¶
func (m *ItemCommentsPostRequestBody) GetAdditionalData() map[string]any
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 (*ItemCommentsPostRequestBody) GetBody ¶
func (m *ItemCommentsPostRequestBody) GetBody() *string
GetBody gets the body property value. The comment text. returns a *string when successful
func (*ItemCommentsPostRequestBody) GetFieldDeserializers ¶
func (m *ItemCommentsPostRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemCommentsPostRequestBody) Serialize ¶
func (m *ItemCommentsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*ItemCommentsPostRequestBody) SetAdditionalData ¶
func (m *ItemCommentsPostRequestBody) SetAdditionalData(value map[string]any)
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 (*ItemCommentsPostRequestBody) SetBody ¶
func (m *ItemCommentsPostRequestBody) SetBody(value *string)
SetBody sets the body property value. The comment text.
type ItemCommentsPostRequestBodyable ¶
type ItemCommentsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBody() *string SetBody(value *string) }
type ItemCommentsRequestBuilder ¶
type ItemCommentsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemCommentsRequestBuilder builds and executes requests for operations under \gists\{gist_id}\comments
func NewItemCommentsRequestBuilder ¶
func NewItemCommentsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemCommentsRequestBuilder
NewItemCommentsRequestBuilder instantiates a new ItemCommentsRequestBuilder and sets the default values.
func NewItemCommentsRequestBuilderInternal ¶
func NewItemCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemCommentsRequestBuilder
NewItemCommentsRequestBuilderInternal instantiates a new ItemCommentsRequestBuilder and sets the default values.
func (*ItemCommentsRequestBuilder) ByComment_id ¶
func (m *ItemCommentsRequestBuilder) ByComment_id(comment_id int64) *ItemCommentsWithComment_ItemRequestBuilder
ByComment_id gets an item from the github.com/octokit/go-sdk/pkg/github.gists.item.comments.item collection returns a *ItemCommentsWithComment_ItemRequestBuilder when successful
func (*ItemCommentsRequestBuilder) Get ¶
func (m *ItemCommentsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemCommentsRequestBuilderGetQueryParameters]) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistCommentable, error)
Get lists the comments on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a []GistCommentable when successful returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*ItemCommentsRequestBuilder) Post ¶
func (m *ItemCommentsRequestBuilder) Post(ctx context.Context, body ItemCommentsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistCommentable, error)
Post creates a comment on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a GistCommentable when successful returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*ItemCommentsRequestBuilder) ToGetRequestInformation ¶
func (m *ItemCommentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemCommentsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation lists the comments on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a *RequestInformation when successful
func (*ItemCommentsRequestBuilder) ToPostRequestInformation ¶
func (m *ItemCommentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCommentsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToPostRequestInformation creates a comment on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a *RequestInformation when successful
func (*ItemCommentsRequestBuilder) WithUrl ¶
func (m *ItemCommentsRequestBuilder) WithUrl(rawUrl string) *ItemCommentsRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemCommentsRequestBuilder when successful
type ItemCommentsRequestBuilderGetQueryParameters ¶
type ItemCommentsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` }
ItemCommentsRequestBuilderGetQueryParameters lists the comments on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
type ItemCommentsWithComment_ItemRequestBuilder ¶
type ItemCommentsWithComment_ItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemCommentsWithComment_ItemRequestBuilder builds and executes requests for operations under \gists\{gist_id}\comments\{comment_id}
func NewItemCommentsWithComment_ItemRequestBuilder ¶
func NewItemCommentsWithComment_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemCommentsWithComment_ItemRequestBuilder
NewItemCommentsWithComment_ItemRequestBuilder instantiates a new ItemCommentsWithComment_ItemRequestBuilder and sets the default values.
func NewItemCommentsWithComment_ItemRequestBuilderInternal ¶
func NewItemCommentsWithComment_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemCommentsWithComment_ItemRequestBuilder
NewItemCommentsWithComment_ItemRequestBuilderInternal instantiates a new ItemCommentsWithComment_ItemRequestBuilder and sets the default values.
func (*ItemCommentsWithComment_ItemRequestBuilder) Delete ¶
func (m *ItemCommentsWithComment_ItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
Delete delete a gist comment returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*ItemCommentsWithComment_ItemRequestBuilder) Get ¶
func (m *ItemCommentsWithComment_ItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistCommentable, error)
Get gets a comment on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a GistCommentable when successful returns a GistComment403Error error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*ItemCommentsWithComment_ItemRequestBuilder) Patch ¶
func (m *ItemCommentsWithComment_ItemRequestBuilder) Patch(ctx context.Context, body ItemCommentsItemWithComment_PatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistCommentable, error)
Patch updates a comment on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a GistCommentable when successful returns a BasicError error when the service returns a 404 status code API method documentation
func (*ItemCommentsWithComment_ItemRequestBuilder) ToDeleteRequestInformation ¶
func (m *ItemCommentsWithComment_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
returns a *RequestInformation when successful
func (*ItemCommentsWithComment_ItemRequestBuilder) ToGetRequestInformation ¶
func (m *ItemCommentsWithComment_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation gets a comment on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a *RequestInformation when successful
func (*ItemCommentsWithComment_ItemRequestBuilder) ToPatchRequestInformation ¶
func (m *ItemCommentsWithComment_ItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemCommentsItemWithComment_PatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToPatchRequestInformation updates a comment on a gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a *RequestInformation when successful
func (*ItemCommentsWithComment_ItemRequestBuilder) WithUrl ¶
func (m *ItemCommentsWithComment_ItemRequestBuilder) WithUrl(rawUrl string) *ItemCommentsWithComment_ItemRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemCommentsWithComment_ItemRequestBuilder when successful
type ItemCommitsRequestBuilder ¶
type ItemCommitsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemCommitsRequestBuilder builds and executes requests for operations under \gists\{gist_id}\commits
func NewItemCommitsRequestBuilder ¶
func NewItemCommitsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemCommitsRequestBuilder
NewItemCommitsRequestBuilder instantiates a new ItemCommitsRequestBuilder and sets the default values.
func NewItemCommitsRequestBuilderInternal ¶
func NewItemCommitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemCommitsRequestBuilder
NewItemCommitsRequestBuilderInternal instantiates a new ItemCommitsRequestBuilder and sets the default values.
func (*ItemCommitsRequestBuilder) Get ¶
func (m *ItemCommitsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemCommitsRequestBuilderGetQueryParameters]) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistCommitable, error)
Get list gist commits returns a []GistCommitable when successful returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*ItemCommitsRequestBuilder) ToGetRequestInformation ¶
func (m *ItemCommitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemCommitsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
returns a *RequestInformation when successful
func (*ItemCommitsRequestBuilder) WithUrl ¶
func (m *ItemCommitsRequestBuilder) WithUrl(rawUrl string) *ItemCommitsRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemCommitsRequestBuilder when successful
type ItemCommitsRequestBuilderGetQueryParameters ¶
type ItemCommitsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` }
ItemCommitsRequestBuilderGetQueryParameters list gist commits
type ItemForksRequestBuilder ¶
type ItemForksRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemForksRequestBuilder builds and executes requests for operations under \gists\{gist_id}\forks
func NewItemForksRequestBuilder ¶
func NewItemForksRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemForksRequestBuilder
NewItemForksRequestBuilder instantiates a new ItemForksRequestBuilder and sets the default values.
func NewItemForksRequestBuilderInternal ¶
func NewItemForksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemForksRequestBuilder
NewItemForksRequestBuilderInternal instantiates a new ItemForksRequestBuilder and sets the default values.
func (*ItemForksRequestBuilder) Get ¶
func (m *ItemForksRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemForksRequestBuilderGetQueryParameters]) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistSimpleable, error)
Get list gist forks returns a []GistSimpleable when successful returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*ItemForksRequestBuilder) Post ¶
func (m *ItemForksRequestBuilder) Post(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.BaseGistable, error)
Post fork a gist returns a BaseGistable when successful 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 ValidationError error when the service returns a 422 status code API method documentation
func (*ItemForksRequestBuilder) ToGetRequestInformation ¶
func (m *ItemForksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemForksRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
returns a *RequestInformation when successful
func (*ItemForksRequestBuilder) ToPostRequestInformation ¶
func (m *ItemForksRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
returns a *RequestInformation when successful
func (*ItemForksRequestBuilder) WithUrl ¶
func (m *ItemForksRequestBuilder) WithUrl(rawUrl string) *ItemForksRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemForksRequestBuilder when successful
type ItemForksRequestBuilderGetQueryParameters ¶
type ItemForksRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` }
ItemForksRequestBuilderGetQueryParameters list gist forks
type ItemStar404Error ¶
type ItemStar404Error struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError
}
func NewItemStar404Error ¶
func NewItemStar404Error() *ItemStar404Error
NewItemStar404Error instantiates a new ItemStar404Error and sets the default values.
func (*ItemStar404Error) Error ¶
func (m *ItemStar404Error) Error() string
Error the primary error message. returns a string when successful
func (*ItemStar404Error) GetFieldDeserializers ¶
func (m *ItemStar404Error) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemStar404Error) Serialize ¶
func (m *ItemStar404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
type ItemStar404Errorable ¶
type ItemStar404Errorable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
type ItemStarRequestBuilder ¶
type ItemStarRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemStarRequestBuilder builds and executes requests for operations under \gists\{gist_id}\star
func NewItemStarRequestBuilder ¶
func NewItemStarRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemStarRequestBuilder
NewItemStarRequestBuilder instantiates a new ItemStarRequestBuilder and sets the default values.
func NewItemStarRequestBuilderInternal ¶
func NewItemStarRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemStarRequestBuilder
NewItemStarRequestBuilderInternal instantiates a new ItemStarRequestBuilder and sets the default values.
func (*ItemStarRequestBuilder) Delete ¶
func (m *ItemStarRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
Delete unstar a gist returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*ItemStarRequestBuilder) Get ¶
func (m *ItemStarRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
Get check if a gist is starred returns a BasicError error when the service returns a 403 status code returns a ItemStar404Error error when the service returns a 404 status code API method documentation
func (*ItemStarRequestBuilder) Put ¶
func (m *ItemStarRequestBuilder) Put(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
Put note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*ItemStarRequestBuilder) ToDeleteRequestInformation ¶
func (m *ItemStarRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
returns a *RequestInformation when successful
func (*ItemStarRequestBuilder) ToGetRequestInformation ¶
func (m *ItemStarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
returns a *RequestInformation when successful
func (*ItemStarRequestBuilder) ToPutRequestInformation ¶
func (m *ItemStarRequestBuilder) ToPutRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToPutRequestInformation note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." returns a *RequestInformation when successful
func (*ItemStarRequestBuilder) WithUrl ¶
func (m *ItemStarRequestBuilder) WithUrl(rawUrl string) *ItemStarRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemStarRequestBuilder when successful
type ItemWithGist_PatchRequestBody ¶
type ItemWithGist_PatchRequestBody struct {
// contains filtered or unexported fields
}
func NewItemWithGist_PatchRequestBody ¶
func NewItemWithGist_PatchRequestBody() *ItemWithGist_PatchRequestBody
NewItemWithGist_PatchRequestBody instantiates a new ItemWithGist_PatchRequestBody and sets the default values.
func (*ItemWithGist_PatchRequestBody) GetAdditionalData ¶
func (m *ItemWithGist_PatchRequestBody) GetAdditionalData() map[string]any
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 (*ItemWithGist_PatchRequestBody) GetDescription ¶
func (m *ItemWithGist_PatchRequestBody) GetDescription() *string
GetDescription gets the description property value. The description of the gist. returns a *string when successful
func (*ItemWithGist_PatchRequestBody) GetFieldDeserializers ¶
func (m *ItemWithGist_PatchRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemWithGist_PatchRequestBody) GetFiles ¶
func (m *ItemWithGist_PatchRequestBody) GetFiles() ItemWithGist_PatchRequestBody_filesable
GetFiles gets the files property value. The gist files to be updated, renamed, or deleted. Each `key` must match the current filename(including extension) of the targeted gist file. For example: `hello.py`.To delete a file, set the whole file to null. For example: `hello.py : null`. The file will also bedeleted if the specified object does not contain at least one of `content` or `filename`. returns a ItemWithGist_PatchRequestBody_filesable when successful
func (*ItemWithGist_PatchRequestBody) Serialize ¶
func (m *ItemWithGist_PatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*ItemWithGist_PatchRequestBody) SetAdditionalData ¶
func (m *ItemWithGist_PatchRequestBody) SetAdditionalData(value map[string]any)
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 (*ItemWithGist_PatchRequestBody) SetDescription ¶
func (m *ItemWithGist_PatchRequestBody) SetDescription(value *string)
SetDescription sets the description property value. The description of the gist.
func (*ItemWithGist_PatchRequestBody) SetFiles ¶
func (m *ItemWithGist_PatchRequestBody) SetFiles(value ItemWithGist_PatchRequestBody_filesable)
SetFiles sets the files property value. The gist files to be updated, renamed, or deleted. Each `key` must match the current filename(including extension) of the targeted gist file. For example: `hello.py`.To delete a file, set the whole file to null. For example: `hello.py : null`. The file will also bedeleted if the specified object does not contain at least one of `content` or `filename`.
type ItemWithGist_PatchRequestBody_files ¶
type ItemWithGist_PatchRequestBody_files struct {
// contains filtered or unexported fields
}
ItemWithGist_PatchRequestBody_files the gist files to be updated, renamed, or deleted. Each `key` must match the current filename(including extension) of the targeted gist file. For example: `hello.py`.To delete a file, set the whole file to null. For example: `hello.py : null`. The file will also bedeleted if the specified object does not contain at least one of `content` or `filename`.
func NewItemWithGist_PatchRequestBody_files ¶
func NewItemWithGist_PatchRequestBody_files() *ItemWithGist_PatchRequestBody_files
NewItemWithGist_PatchRequestBody_files instantiates a new ItemWithGist_PatchRequestBody_files and sets the default values.
func (*ItemWithGist_PatchRequestBody_files) GetAdditionalData ¶
func (m *ItemWithGist_PatchRequestBody_files) GetAdditionalData() map[string]any
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 (*ItemWithGist_PatchRequestBody_files) GetFieldDeserializers ¶
func (m *ItemWithGist_PatchRequestBody_files) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemWithGist_PatchRequestBody_files) Serialize ¶
func (m *ItemWithGist_PatchRequestBody_files) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*ItemWithGist_PatchRequestBody_files) SetAdditionalData ¶
func (m *ItemWithGist_PatchRequestBody_files) SetAdditionalData(value map[string]any)
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.
type ItemWithGist_PatchRequestBody_filesable ¶
type ItemWithGist_PatchRequestBody_filesable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
type ItemWithGist_PatchRequestBodyable ¶
type ItemWithGist_PatchRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDescription() *string GetFiles() ItemWithGist_PatchRequestBody_filesable SetDescription(value *string) SetFiles(value ItemWithGist_PatchRequestBody_filesable) }
type ItemWithShaItemRequestBuilder ¶
type ItemWithShaItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemWithShaItemRequestBuilder builds and executes requests for operations under \gists\{gist_id}\{sha}
func NewItemWithShaItemRequestBuilder ¶
func NewItemWithShaItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemWithShaItemRequestBuilder
NewItemWithShaItemRequestBuilder instantiates a new ItemWithShaItemRequestBuilder and sets the default values.
func NewItemWithShaItemRequestBuilderInternal ¶
func NewItemWithShaItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemWithShaItemRequestBuilder
NewItemWithShaItemRequestBuilderInternal instantiates a new ItemWithShaItemRequestBuilder and sets the default values.
func (*ItemWithShaItemRequestBuilder) Get ¶
func (m *ItemWithShaItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistSimpleable, error)
Get gets a specified gist revision.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a GistSimpleable when successful 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 ValidationError error when the service returns a 422 status code API method documentation
func (*ItemWithShaItemRequestBuilder) ToGetRequestInformation ¶
func (m *ItemWithShaItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation gets a specified gist revision.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a *RequestInformation when successful
func (*ItemWithShaItemRequestBuilder) WithUrl ¶
func (m *ItemWithShaItemRequestBuilder) WithUrl(rawUrl string) *ItemWithShaItemRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemWithShaItemRequestBuilder when successful
type PublicRequestBuilder ¶
type PublicRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
PublicRequestBuilder builds and executes requests for operations under \gists\public
func NewPublicRequestBuilder ¶
func NewPublicRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PublicRequestBuilder
NewPublicRequestBuilder instantiates a new PublicRequestBuilder and sets the default values.
func NewPublicRequestBuilderInternal ¶
func NewPublicRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PublicRequestBuilder
NewPublicRequestBuilderInternal instantiates a new PublicRequestBuilder and sets the default values.
func (*PublicRequestBuilder) Get ¶
func (m *PublicRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[PublicRequestBuilderGetQueryParameters]) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.BaseGistable, error)
Get list public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. returns a []BaseGistable when successful returns a BasicError error when the service returns a 403 status code returns a ValidationError error when the service returns a 422 status code API method documentation
func (*PublicRequestBuilder) ToGetRequestInformation ¶
func (m *PublicRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[PublicRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation list public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. returns a *RequestInformation when successful
func (*PublicRequestBuilder) WithUrl ¶
func (m *PublicRequestBuilder) WithUrl(rawUrl string) *PublicRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *PublicRequestBuilder when successful
type PublicRequestBuilderGetQueryParameters ¶
type PublicRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` // Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Since *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time `uriparametername:"since"` }
PublicRequestBuilderGetQueryParameters list public gists sorted by most recently updated to least recently updated.Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
type StarredRequestBuilder ¶
type StarredRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
StarredRequestBuilder builds and executes requests for operations under \gists\starred
func NewStarredRequestBuilder ¶
func NewStarredRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *StarredRequestBuilder
NewStarredRequestBuilder instantiates a new StarredRequestBuilder and sets the default values.
func NewStarredRequestBuilderInternal ¶
func NewStarredRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *StarredRequestBuilder
NewStarredRequestBuilderInternal instantiates a new StarredRequestBuilder and sets the default values.
func (*StarredRequestBuilder) Get ¶
func (m *StarredRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[StarredRequestBuilderGetQueryParameters]) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.BaseGistable, error)
Get list the authenticated user's starred gists: returns a []BaseGistable 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 API method documentation
func (*StarredRequestBuilder) ToGetRequestInformation ¶
func (m *StarredRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[StarredRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation list the authenticated user's starred gists: returns a *RequestInformation when successful
func (*StarredRequestBuilder) WithUrl ¶
func (m *StarredRequestBuilder) WithUrl(rawUrl string) *StarredRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *StarredRequestBuilder when successful
type StarredRequestBuilderGetQueryParameters ¶
type StarredRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` // Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Since *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time `uriparametername:"since"` }
StarredRequestBuilderGetQueryParameters list the authenticated user's starred gists:
type WithGist_ItemRequestBuilder ¶
type WithGist_ItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
WithGist_ItemRequestBuilder builds and executes requests for operations under \gists\{gist_id}
func NewWithGist_ItemRequestBuilder ¶
func NewWithGist_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithGist_ItemRequestBuilder
NewWithGist_ItemRequestBuilder instantiates a new WithGist_ItemRequestBuilder and sets the default values.
func NewWithGist_ItemRequestBuilderInternal ¶
func NewWithGist_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithGist_ItemRequestBuilder
NewWithGist_ItemRequestBuilderInternal instantiates a new WithGist_ItemRequestBuilder and sets the default values.
func (*WithGist_ItemRequestBuilder) BySha ¶
func (m *WithGist_ItemRequestBuilder) BySha(sha string) *ItemWithShaItemRequestBuilder
BySha gets an item from the github.com/octokit/go-sdk/pkg/github.gists.item.item collection returns a *ItemWithShaItemRequestBuilder when successful
func (*WithGist_ItemRequestBuilder) Comments ¶
func (m *WithGist_ItemRequestBuilder) Comments() *ItemCommentsRequestBuilder
Comments the comments property returns a *ItemCommentsRequestBuilder when successful
func (*WithGist_ItemRequestBuilder) Commits ¶
func (m *WithGist_ItemRequestBuilder) Commits() *ItemCommitsRequestBuilder
Commits the commits property returns a *ItemCommitsRequestBuilder when successful
func (*WithGist_ItemRequestBuilder) Delete ¶
func (m *WithGist_ItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
Delete delete a gist returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*WithGist_ItemRequestBuilder) Forks ¶
func (m *WithGist_ItemRequestBuilder) Forks() *ItemForksRequestBuilder
Forks the forks property returns a *ItemForksRequestBuilder when successful
func (*WithGist_ItemRequestBuilder) Get ¶
func (m *WithGist_ItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistSimpleable, error)
Get gets a specified gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a GistSimpleable when successful returns a GistSimple403Error error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation
func (*WithGist_ItemRequestBuilder) Patch ¶
func (m *WithGist_ItemRequestBuilder) Patch(ctx context.Context, body ItemWithGist_PatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GistSimpleable, error)
Patch allows you to update a gist's description and to update, delete, or rename gist files. Filesfrom the previous version of the gist that aren't explicitly changed during an editare unchanged.At least one of `description` or `files` is required.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a GistSimpleable when successful returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation
func (*WithGist_ItemRequestBuilder) Star ¶
func (m *WithGist_ItemRequestBuilder) Star() *ItemStarRequestBuilder
Star the star property returns a *ItemStarRequestBuilder when successful
func (*WithGist_ItemRequestBuilder) ToDeleteRequestInformation ¶
func (m *WithGist_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
returns a *RequestInformation when successful
func (*WithGist_ItemRequestBuilder) ToGetRequestInformation ¶
func (m *WithGist_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation gets a specified gist.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a *RequestInformation when successful
func (*WithGist_ItemRequestBuilder) ToPatchRequestInformation ¶
func (m *WithGist_ItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemWithGist_PatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToPatchRequestInformation allows you to update a gist's description and to update, delete, or rename gist files. Filesfrom the previous version of the gist that aren't explicitly changed during an editare unchanged.At least one of `description` or `files` is required.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. returns a *RequestInformation when successful
func (*WithGist_ItemRequestBuilder) WithUrl ¶
func (m *WithGist_ItemRequestBuilder) WithUrl(rawUrl string) *WithGist_ItemRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *WithGist_ItemRequestBuilder when successful
Source Files
¶
- gists_post_request_body.go
- gists_post_request_body_escaped_files.go
- gists_request_builder.go
- item_comments_item_with_comment_escaped_patch_request_body.go
- item_comments_post_request_body.go
- item_comments_request_builder.go
- item_comments_with_comment_escaped_item_request_builder.go
- item_commits_request_builder.go
- item_forks_request_builder.go
- item_star404_error.go
- item_star_request_builder.go
- item_with_gist_escaped_patch_request_body.go
- item_with_gist_escaped_patch_request_body_escaped_files.go
- item_with_sha_item_request_builder.go
- public_request_builder.go
- starred_request_builder.go
- with_gist_escaped_item_request_builder.go