gists

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGistsPostRequestBodyFromDiscriminatorValue

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

CreateGistsPostRequestBody_filesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemCommentsItemWithComment_PatchRequestBodyFromDiscriminatorValue

CreateItemCommentsItemWithComment_PatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemCommentsPostRequestBodyFromDiscriminatorValue

CreateItemCommentsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemStar404ErrorFromDiscriminatorValue

CreateItemStar404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemWithGist_PatchRequestBodyFromDiscriminatorValue

CreateItemWithGist_PatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemWithGist_PatchRequestBody_filesFromDiscriminatorValue

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

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*GistsPostRequestBody) GetFiles

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

GetPublic gets the public property value. The public property returns a GistsPostRequestBody_GistsPostRequestBody_publicable when successful

func (*GistsPostRequestBody) Serialize

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

SetFiles sets the files property value. Names and content for the files that make up the gist

func (*GistsPostRequestBody) SetPublic

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

GetBoolean gets the boolean property value. Composed type representation for type bool returns a *bool when successful

func (*GistsPostRequestBody_GistsPostRequestBody_public) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*GistsPostRequestBody_GistsPostRequestBody_public) GetIsComposedType

GetIsComposedType determines if the current object is a wrapper around a composed type returns a bool when successful

func (*GistsPostRequestBody_GistsPostRequestBody_public) GetString

GetString gets the string property value. Composed type representation for type string returns a *string when successful

func (*GistsPostRequestBody_GistsPostRequestBody_public) Serialize

Serialize serializes information the current object

func (*GistsPostRequestBody_GistsPostRequestBody_public) SetBoolean

SetBoolean sets the boolean property value. Composed type representation for type bool

func (*GistsPostRequestBody_GistsPostRequestBody_public) SetString

SetString sets the string property value. Composed type representation for type string

type GistsPostRequestBody_GistsPostRequestBody_publicable

type GistsPostRequestBody_GistsPostRequestBody_publicable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetBoolean() *bool
	GetString() *string
	SetBoolean(value *bool)
	SetString(value *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

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*GistsPostRequestBody_files) Serialize

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 GistsRequestBuilder

GistsRequestBuilder builds and executes requests for operations under \gists

func NewGistsRequestBuilder

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

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

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

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

Public the public property returns a *PublicRequestBuilder when successful

func (*GistsRequestBuilder) Starred

Starred the starred property returns a *StarredRequestBuilder when successful

func (*GistsRequestBuilder) ToGetRequestInformation

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

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

GetBody gets the body property value. The comment text. returns a *string when successful

func (*ItemCommentsItemWithComment_PatchRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemCommentsItemWithComment_PatchRequestBody) Serialize

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

SetBody sets the body property value. The comment text.

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

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemCommentsPostRequestBody) Serialize

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 ItemCommentsRequestBuilder

ItemCommentsRequestBuilder builds and executes requests for operations under \gists\{gist_id}\comments

func NewItemCommentsRequestBuilder

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

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

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

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

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

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

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

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

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

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

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) ToGetRequestInformation

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

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

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

ItemCommitsRequestBuilder builds and executes requests for operations under \gists\{gist_id}\commits

func NewItemCommitsRequestBuilder

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

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) WithUrl

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

ItemForksRequestBuilder builds and executes requests for operations under \gists\{gist_id}\forks

func NewItemForksRequestBuilder

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

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

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) WithUrl

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

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

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemStar404Error) Serialize

Serialize serializes information the current object

type ItemStarRequestBuilder

ItemStarRequestBuilder builds and executes requests for operations under \gists\{gist_id}\star

func NewItemStarRequestBuilder

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

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

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

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) ToPutRequestInformation

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

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

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemWithGist_PatchRequestBody) GetFiles

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

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

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

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemWithGist_PatchRequestBody_files) Serialize

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 ItemWithShaItemRequestBuilder

ItemWithShaItemRequestBuilder builds and executes requests for operations under \gists\{gist_id}\{sha}

func NewItemWithShaItemRequestBuilder

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

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

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

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

PublicRequestBuilder builds and executes requests for operations under \gists\public

func NewPublicRequestBuilder

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

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

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

StarredRequestBuilder builds and executes requests for operations under \gists\starred

func NewStarredRequestBuilder

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

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

ToGetRequestInformation list the authenticated user's starred gists: returns a *RequestInformation when successful

func (*StarredRequestBuilder) WithUrl

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

WithGist_ItemRequestBuilder builds and executes requests for operations under \gists\{gist_id}

func NewWithGist_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

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

Comments the comments property returns a *ItemCommentsRequestBuilder when successful

func (*WithGist_ItemRequestBuilder) Commits

Commits the commits property returns a *ItemCommitsRequestBuilder when successful

func (*WithGist_ItemRequestBuilder) Delete

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

Forks the forks property returns a *ItemForksRequestBuilder when successful

func (*WithGist_ItemRequestBuilder) Get

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

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

Star the star property returns a *ItemStarRequestBuilder when successful

func (*WithGist_ItemRequestBuilder) ToGetRequestInformation

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL