markdown

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMarkdownPostRequestBodyFromDiscriminatorValue

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

func ParseMarkdownPostRequestBody_mode

func ParseMarkdownPostRequestBody_mode(v string) (any, error)

func SerializeMarkdownPostRequestBody_mode

func SerializeMarkdownPostRequestBody_mode(values []MarkdownPostRequestBody_mode) []string

Types

type MarkdownPostRequestBody

type MarkdownPostRequestBody struct {
	// contains filtered or unexported fields
}

func NewMarkdownPostRequestBody

func NewMarkdownPostRequestBody() *MarkdownPostRequestBody

NewMarkdownPostRequestBody instantiates a new MarkdownPostRequestBody and sets the default values.

func (*MarkdownPostRequestBody) GetAdditionalData

func (m *MarkdownPostRequestBody) 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 (*MarkdownPostRequestBody) GetContext

func (m *MarkdownPostRequestBody) GetContext() *string

GetContext gets the context property value. The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository. returns a *string when successful

func (*MarkdownPostRequestBody) GetFieldDeserializers

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

func (*MarkdownPostRequestBody) GetMode

GetMode gets the mode property value. The rendering mode. returns a *MarkdownPostRequestBody_mode when successful

func (*MarkdownPostRequestBody) GetText

func (m *MarkdownPostRequestBody) GetText() *string

GetText gets the text property value. The Markdown text to render in HTML. returns a *string when successful

func (*MarkdownPostRequestBody) Serialize

Serialize serializes information the current object

func (*MarkdownPostRequestBody) SetAdditionalData

func (m *MarkdownPostRequestBody) 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 (*MarkdownPostRequestBody) SetContext

func (m *MarkdownPostRequestBody) SetContext(value *string)

SetContext sets the context property value. The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.

func (*MarkdownPostRequestBody) SetMode

SetMode sets the mode property value. The rendering mode.

func (*MarkdownPostRequestBody) SetText

func (m *MarkdownPostRequestBody) SetText(value *string)

SetText sets the text property value. The Markdown text to render in HTML.

type MarkdownPostRequestBody_mode

type MarkdownPostRequestBody_mode int

The rendering mode.

const (
	MARKDOWN_MARKDOWNPOSTREQUESTBODY_MODE MarkdownPostRequestBody_mode = iota
	GFM_MARKDOWNPOSTREQUESTBODY_MODE
)

func (MarkdownPostRequestBody_mode) String

type MarkdownRequestBuilder

MarkdownRequestBuilder builds and executes requests for operations under \markdown

func NewMarkdownRequestBuilder

NewMarkdownRequestBuilder instantiates a new MarkdownRequestBuilder and sets the default values.

func NewMarkdownRequestBuilderInternal

func NewMarkdownRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MarkdownRequestBuilder

NewMarkdownRequestBuilderInternal instantiates a new MarkdownRequestBuilder and sets the default values.

func (*MarkdownRequestBuilder) Raw

Raw the raw property returns a *RawRequestBuilder when successful

func (*MarkdownRequestBuilder) 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 *MarkdownRequestBuilder when successful

type RawRequestBuilder

RawRequestBuilder builds and executes requests for operations under \markdown\raw

func NewRawRequestBuilder

NewRawRequestBuilder instantiates a new RawRequestBuilder and sets the default values.

func NewRawRequestBuilderInternal

func NewRawRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *RawRequestBuilder

NewRawRequestBuilderInternal instantiates a new RawRequestBuilder and sets the default values.

func (*RawRequestBuilder) Post

Post you must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less. API method documentation

func (*RawRequestBuilder) ToPostRequestInformation

ToPostRequestInformation you must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less. returns a *RequestInformation when successful

func (*RawRequestBuilder) WithUrl

func (m *RawRequestBuilder) WithUrl(rawUrl string) *RawRequestBuilder

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *RawRequestBuilder when successful

Jump to

Keyboard shortcuts

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