Documentation
¶
Index ¶
- func CreateCodeGetResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateCodeResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateCommitsGetResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateCommitsResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateIssuesGetResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateIssuesResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateLabelsGetResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateLabelsResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateRepositoriesGetResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateRepositoriesResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateTopicsGetResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateTopicsResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateUsersGetResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateUsersResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- type CodeGetResponse
- func (m *CodeGetResponse) GetAdditionalData() map[string]any
- func (m *CodeGetResponse) GetFieldDeserializers() ...
- func (m *CodeGetResponse) GetIncompleteResults() *bool
- func (m *CodeGetResponse) GetItems() ...
- func (m *CodeGetResponse) GetTotalCount() *int32
- func (m *CodeGetResponse) Serialize(...) error
- func (m *CodeGetResponse) SetAdditionalData(value map[string]any)
- func (m *CodeGetResponse) SetIncompleteResults(value *bool)
- func (m *CodeGetResponse) SetItems(...)
- func (m *CodeGetResponse) SetTotalCount(value *int32)
- type CodeGetResponseable
- type CodeRequestBuilder
- type CodeRequestBuilderGetQueryParameters
- type CodeResponse
- type CodeResponseable
- type CommitsGetResponse
- func (m *CommitsGetResponse) GetAdditionalData() map[string]any
- func (m *CommitsGetResponse) GetFieldDeserializers() ...
- func (m *CommitsGetResponse) GetIncompleteResults() *bool
- func (m *CommitsGetResponse) GetItems() ...
- func (m *CommitsGetResponse) GetTotalCount() *int32
- func (m *CommitsGetResponse) Serialize(...) error
- func (m *CommitsGetResponse) SetAdditionalData(value map[string]any)
- func (m *CommitsGetResponse) SetIncompleteResults(value *bool)
- func (m *CommitsGetResponse) SetItems(...)
- func (m *CommitsGetResponse) SetTotalCount(value *int32)
- type CommitsGetResponseable
- type CommitsRequestBuilder
- type CommitsRequestBuilderGetQueryParameters
- type CommitsResponse
- type CommitsResponseable
- type IssuesGetResponse
- func (m *IssuesGetResponse) GetAdditionalData() map[string]any
- func (m *IssuesGetResponse) GetFieldDeserializers() ...
- func (m *IssuesGetResponse) GetIncompleteResults() *bool
- func (m *IssuesGetResponse) GetItems() ...
- func (m *IssuesGetResponse) GetTotalCount() *int32
- func (m *IssuesGetResponse) Serialize(...) error
- func (m *IssuesGetResponse) SetAdditionalData(value map[string]any)
- func (m *IssuesGetResponse) SetIncompleteResults(value *bool)
- func (m *IssuesGetResponse) SetItems(...)
- func (m *IssuesGetResponse) SetTotalCount(value *int32)
- type IssuesGetResponseable
- type IssuesRequestBuilder
- type IssuesRequestBuilderGetQueryParameters
- type IssuesResponse
- type IssuesResponseable
- type LabelsGetResponse
- func (m *LabelsGetResponse) GetAdditionalData() map[string]any
- func (m *LabelsGetResponse) GetFieldDeserializers() ...
- func (m *LabelsGetResponse) GetIncompleteResults() *bool
- func (m *LabelsGetResponse) GetItems() ...
- func (m *LabelsGetResponse) GetTotalCount() *int32
- func (m *LabelsGetResponse) Serialize(...) error
- func (m *LabelsGetResponse) SetAdditionalData(value map[string]any)
- func (m *LabelsGetResponse) SetIncompleteResults(value *bool)
- func (m *LabelsGetResponse) SetItems(...)
- func (m *LabelsGetResponse) SetTotalCount(value *int32)
- type LabelsGetResponseable
- type LabelsRequestBuilder
- type LabelsRequestBuilderGetQueryParameters
- type LabelsResponse
- type LabelsResponseable
- type RepositoriesGetResponse
- func (m *RepositoriesGetResponse) GetAdditionalData() map[string]any
- func (m *RepositoriesGetResponse) GetFieldDeserializers() ...
- func (m *RepositoriesGetResponse) GetIncompleteResults() *bool
- func (m *RepositoriesGetResponse) GetItems() ...
- func (m *RepositoriesGetResponse) GetTotalCount() *int32
- func (m *RepositoriesGetResponse) Serialize(...) error
- func (m *RepositoriesGetResponse) SetAdditionalData(value map[string]any)
- func (m *RepositoriesGetResponse) SetIncompleteResults(value *bool)
- func (m *RepositoriesGetResponse) SetItems(...)
- func (m *RepositoriesGetResponse) SetTotalCount(value *int32)
- type RepositoriesGetResponseable
- type RepositoriesRequestBuilder
- type RepositoriesRequestBuilderGetQueryParameters
- type RepositoriesResponse
- type RepositoriesResponseable
- type SearchRequestBuilder
- func (m *SearchRequestBuilder) Code() *CodeRequestBuilder
- func (m *SearchRequestBuilder) Commits() *CommitsRequestBuilder
- func (m *SearchRequestBuilder) Issues() *IssuesRequestBuilder
- func (m *SearchRequestBuilder) Labels() *LabelsRequestBuilder
- func (m *SearchRequestBuilder) Repositories() *RepositoriesRequestBuilder
- func (m *SearchRequestBuilder) Topics() *TopicsRequestBuilder
- func (m *SearchRequestBuilder) Users() *UsersRequestBuilder
- type TopicsGetResponse
- func (m *TopicsGetResponse) GetAdditionalData() map[string]any
- func (m *TopicsGetResponse) GetFieldDeserializers() ...
- func (m *TopicsGetResponse) GetIncompleteResults() *bool
- func (m *TopicsGetResponse) GetItems() ...
- func (m *TopicsGetResponse) GetTotalCount() *int32
- func (m *TopicsGetResponse) Serialize(...) error
- func (m *TopicsGetResponse) SetAdditionalData(value map[string]any)
- func (m *TopicsGetResponse) SetIncompleteResults(value *bool)
- func (m *TopicsGetResponse) SetItems(...)
- func (m *TopicsGetResponse) SetTotalCount(value *int32)
- type TopicsGetResponseable
- type TopicsRequestBuilder
- type TopicsRequestBuilderGetQueryParameters
- type TopicsResponse
- type TopicsResponseable
- type UsersGetResponse
- func (m *UsersGetResponse) GetAdditionalData() map[string]any
- func (m *UsersGetResponse) GetFieldDeserializers() ...
- func (m *UsersGetResponse) GetIncompleteResults() *bool
- func (m *UsersGetResponse) GetItems() ...
- func (m *UsersGetResponse) GetTotalCount() *int32
- func (m *UsersGetResponse) Serialize(...) error
- func (m *UsersGetResponse) SetAdditionalData(value map[string]any)
- func (m *UsersGetResponse) SetIncompleteResults(value *bool)
- func (m *UsersGetResponse) SetItems(...)
- func (m *UsersGetResponse) SetTotalCount(value *int32)
- type UsersGetResponseable
- type UsersRequestBuilder
- type UsersRequestBuilderGetQueryParameters
- type UsersResponse
- type UsersResponseable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCodeGetResponseFromDiscriminatorValue ¶
func CreateCodeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateCodeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateCodeResponseFromDiscriminatorValue ¶
func CreateCodeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateCodeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateCommitsGetResponseFromDiscriminatorValue ¶
func CreateCommitsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateCommitsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateCommitsResponseFromDiscriminatorValue ¶
func CreateCommitsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateCommitsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateIssuesGetResponseFromDiscriminatorValue ¶
func CreateIssuesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateIssuesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateIssuesResponseFromDiscriminatorValue ¶
func CreateIssuesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateIssuesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateLabelsGetResponseFromDiscriminatorValue ¶
func CreateLabelsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateLabelsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateLabelsResponseFromDiscriminatorValue ¶
func CreateLabelsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateLabelsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateRepositoriesGetResponseFromDiscriminatorValue ¶
func CreateRepositoriesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateRepositoriesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateRepositoriesResponseFromDiscriminatorValue ¶
func CreateRepositoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateTopicsGetResponseFromDiscriminatorValue ¶
func CreateTopicsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateTopicsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateTopicsResponseFromDiscriminatorValue ¶
func CreateTopicsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateTopicsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateUsersGetResponseFromDiscriminatorValue ¶
func CreateUsersGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateUsersGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateUsersResponseFromDiscriminatorValue ¶
func CreateUsersResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateUsersResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
Types ¶
type CodeGetResponse ¶
type CodeGetResponse struct {
// contains filtered or unexported fields
}
func NewCodeGetResponse ¶
func NewCodeGetResponse() *CodeGetResponse
NewCodeGetResponse instantiates a new CodeGetResponse and sets the default values.
func (*CodeGetResponse) GetAdditionalData ¶
func (m *CodeGetResponse) 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 (*CodeGetResponse) GetFieldDeserializers ¶
func (m *CodeGetResponse) 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 (*CodeGetResponse) GetIncompleteResults ¶
func (m *CodeGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property returns a *bool when successful
func (*CodeGetResponse) GetItems ¶
func (m *CodeGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CodeSearchResultItemable
GetItems gets the items property value. The items property returns a []CodeSearchResultItemable when successful
func (*CodeGetResponse) GetTotalCount ¶
func (m *CodeGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful
func (*CodeGetResponse) Serialize ¶
func (m *CodeGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*CodeGetResponse) SetAdditionalData ¶
func (m *CodeGetResponse) 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 (*CodeGetResponse) SetIncompleteResults ¶
func (m *CodeGetResponse) SetIncompleteResults(value *bool)
SetIncompleteResults sets the incomplete_results property value. The incomplete_results property
func (*CodeGetResponse) SetItems ¶
func (m *CodeGetResponse) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CodeSearchResultItemable)
SetItems sets the items property value. The items property
func (*CodeGetResponse) SetTotalCount ¶
func (m *CodeGetResponse) SetTotalCount(value *int32)
SetTotalCount sets the total_count property value. The total_count property
type CodeGetResponseable ¶
type CodeGetResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIncompleteResults() *bool GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CodeSearchResultItemable GetTotalCount() *int32 SetIncompleteResults(value *bool) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CodeSearchResultItemable) SetTotalCount(value *int32) }
type CodeRequestBuilder ¶
type CodeRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
CodeRequestBuilder builds and executes requests for operations under \search\code
func NewCodeRequestBuilder ¶
func NewCodeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodeRequestBuilder
NewCodeRequestBuilder instantiates a new CodeRequestBuilder and sets the default values.
func NewCodeRequestBuilderInternal ¶
func NewCodeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodeRequestBuilder
NewCodeRequestBuilderInternal instantiates a new CodeRequestBuilder and sets the default values.
func (*CodeRequestBuilder) Get ¶
func (m *CodeRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[CodeRequestBuilderGetQueryParameters]) (CodeGetResponseable, error)
Get searches for query terms inside of a file. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery) repository, your query would look something like this:`q=addClass+in:file+language:js+repo:jquery/jquery`This query searches for the keyword `addClass` within a file's contents. The query limits the search to files where the language is JavaScript in the `jquery/jquery` repository.Considerations for code search:Due to the complexity of searching code, there are a few restrictions on how searches are performed:* Only the _default branch_ is considered. In most cases, this will be the `master` branch.* Only files smaller than 384 KB are searchable.* You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazinglanguage:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is.This endpoint requires you to authenticate and limits you to 10 requests per minute. returns a CodeGetResponseable 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 returns a Code503Error error when the service returns a 503 status code API method documentation
func (*CodeRequestBuilder) ToGetRequestInformation ¶
func (m *CodeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[CodeRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation searches for query terms inside of a file. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery) repository, your query would look something like this:`q=addClass+in:file+language:js+repo:jquery/jquery`This query searches for the keyword `addClass` within a file's contents. The query limits the search to files where the language is JavaScript in the `jquery/jquery` repository.Considerations for code search:Due to the complexity of searching code, there are a few restrictions on how searches are performed:* Only the _default branch_ is considered. In most cases, this will be the `master` branch.* Only files smaller than 384 KB are searchable.* You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazinglanguage:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is.This endpoint requires you to authenticate and limits you to 10 requests per minute. returns a *RequestInformation when successful
func (*CodeRequestBuilder) WithUrl ¶
func (m *CodeRequestBuilder) WithUrl(rawUrl string) *CodeRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *CodeRequestBuilder when successful
type CodeRequestBuilderGetQueryParameters ¶
type CodeRequestBuilderGetQueryParameters struct { // **This field is deprecated.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. // Deprecated: Order *i077352aa902c51bfc500a83132f68b8da1051f8b770660094032b189b1a9f293.GetOrderQueryParameterType `uriparametername:"order"` // 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"` // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching code](https://docs.github.com/search-github/searching-on-github/searching-code)" for a detailed list of qualifiers. Q *string `uriparametername:"q"` // **This field is deprecated.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) // Deprecated: Sort *i077352aa902c51bfc500a83132f68b8da1051f8b770660094032b189b1a9f293.GetSortQueryParameterType `uriparametername:"sort"` }
CodeRequestBuilderGetQueryParameters searches for query terms inside of a file. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery) repository, your query would look something like this:`q=addClass+in:file+language:js+repo:jquery/jquery`This query searches for the keyword `addClass` within a file's contents. The query limits the search to files where the language is JavaScript in the `jquery/jquery` repository.Considerations for code search:Due to the complexity of searching code, there are a few restrictions on how searches are performed:* Only the _default branch_ is considered. In most cases, this will be the `master` branch.* Only files smaller than 384 KB are searchable.* You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazinglanguage:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is.This endpoint requires you to authenticate and limits you to 10 requests per minute.
type CodeResponse ¶
type CodeResponse struct {
CodeGetResponse
}
CodeResponse Deprecated: This class is obsolete. Use codeGetResponse instead.
func NewCodeResponse ¶
func NewCodeResponse() *CodeResponse
NewCodeResponse instantiates a new CodeResponse and sets the default values.
type CodeResponseable ¶
type CodeResponseable interface { CodeGetResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
CodeResponseable Deprecated: This class is obsolete. Use codeGetResponse instead.
type CommitsGetResponse ¶
type CommitsGetResponse struct {
// contains filtered or unexported fields
}
func NewCommitsGetResponse ¶
func NewCommitsGetResponse() *CommitsGetResponse
NewCommitsGetResponse instantiates a new CommitsGetResponse and sets the default values.
func (*CommitsGetResponse) GetAdditionalData ¶
func (m *CommitsGetResponse) 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 (*CommitsGetResponse) GetFieldDeserializers ¶
func (m *CommitsGetResponse) 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 (*CommitsGetResponse) GetIncompleteResults ¶
func (m *CommitsGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property returns a *bool when successful
func (*CommitsGetResponse) GetItems ¶
func (m *CommitsGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CommitSearchResultItemable
GetItems gets the items property value. The items property returns a []CommitSearchResultItemable when successful
func (*CommitsGetResponse) GetTotalCount ¶
func (m *CommitsGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful
func (*CommitsGetResponse) Serialize ¶
func (m *CommitsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*CommitsGetResponse) SetAdditionalData ¶
func (m *CommitsGetResponse) 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 (*CommitsGetResponse) SetIncompleteResults ¶
func (m *CommitsGetResponse) SetIncompleteResults(value *bool)
SetIncompleteResults sets the incomplete_results property value. The incomplete_results property
func (*CommitsGetResponse) SetItems ¶
func (m *CommitsGetResponse) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CommitSearchResultItemable)
SetItems sets the items property value. The items property
func (*CommitsGetResponse) SetTotalCount ¶
func (m *CommitsGetResponse) SetTotalCount(value *int32)
SetTotalCount sets the total_count property value. The total_count property
type CommitsGetResponseable ¶
type CommitsGetResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIncompleteResults() *bool GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CommitSearchResultItemable GetTotalCount() *int32 SetIncompleteResults(value *bool) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CommitSearchResultItemable) SetTotalCount(value *int32) }
type CommitsRequestBuilder ¶
type CommitsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
CommitsRequestBuilder builds and executes requests for operations under \search\commits
func NewCommitsRequestBuilder ¶
func NewCommitsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CommitsRequestBuilder
NewCommitsRequestBuilder instantiates a new CommitsRequestBuilder and sets the default values.
func NewCommitsRequestBuilderInternal ¶
func NewCommitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CommitsRequestBuilder
NewCommitsRequestBuilderInternal instantiates a new CommitsRequestBuilder and sets the default values.
func (*CommitsRequestBuilder) Get ¶
func (m *CommitsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[CommitsRequestBuilderGetQueryParameters]) (CommitsGetResponseable, error)
Get find commits via various criteria on the default branch (usually `main`). This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text matchmetadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find commits related to CSS in the octocat/Spoon-Knife(https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:`q=repo:octocat/Spoon-Knife+css` returns a CommitsGetResponseable when successful API method documentation
func (*CommitsRequestBuilder) ToGetRequestInformation ¶
func (m *CommitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[CommitsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation find commits via various criteria on the default branch (usually `main`). This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text matchmetadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find commits related to CSS in the octocat/Spoon-Knife(https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:`q=repo:octocat/Spoon-Knife+css` returns a *RequestInformation when successful
func (*CommitsRequestBuilder) WithUrl ¶
func (m *CommitsRequestBuilder) WithUrl(rawUrl string) *CommitsRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *CommitsRequestBuilder when successful
type CommitsRequestBuilderGetQueryParameters ¶
type CommitsRequestBuilderGetQueryParameters struct { // Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. Order *i625e45c268d4ab4a42a97d02ce2d6719584691128398ca7ec6cca25ecc82eda8.GetOrderQueryParameterType `uriparametername:"order"` // 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"` // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching commits](https://docs.github.com/search-github/searching-on-github/searching-commits)" for a detailed list of qualifiers. Q *string `uriparametername:"q"` // Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) Sort *i625e45c268d4ab4a42a97d02ce2d6719584691128398ca7ec6cca25ecc82eda8.GetSortQueryParameterType `uriparametername:"sort"` }
CommitsRequestBuilderGetQueryParameters find commits via various criteria on the default branch (usually `main`). This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text matchmetadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find commits related to CSS in the octocat/Spoon-Knife(https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:`q=repo:octocat/Spoon-Knife+css`
type CommitsResponse ¶
type CommitsResponse struct {
CommitsGetResponse
}
CommitsResponse Deprecated: This class is obsolete. Use commitsGetResponse instead.
func NewCommitsResponse ¶
func NewCommitsResponse() *CommitsResponse
NewCommitsResponse instantiates a new CommitsResponse and sets the default values.
type CommitsResponseable ¶
type CommitsResponseable interface { CommitsGetResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
CommitsResponseable Deprecated: This class is obsolete. Use commitsGetResponse instead.
type IssuesGetResponse ¶
type IssuesGetResponse struct {
// contains filtered or unexported fields
}
func NewIssuesGetResponse ¶
func NewIssuesGetResponse() *IssuesGetResponse
NewIssuesGetResponse instantiates a new IssuesGetResponse and sets the default values.
func (*IssuesGetResponse) GetAdditionalData ¶
func (m *IssuesGetResponse) 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 (*IssuesGetResponse) GetFieldDeserializers ¶
func (m *IssuesGetResponse) 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 (*IssuesGetResponse) GetIncompleteResults ¶
func (m *IssuesGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property returns a *bool when successful
func (*IssuesGetResponse) GetItems ¶
func (m *IssuesGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.IssueSearchResultItemable
GetItems gets the items property value. The items property returns a []IssueSearchResultItemable when successful
func (*IssuesGetResponse) GetTotalCount ¶
func (m *IssuesGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful
func (*IssuesGetResponse) Serialize ¶
func (m *IssuesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*IssuesGetResponse) SetAdditionalData ¶
func (m *IssuesGetResponse) 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 (*IssuesGetResponse) SetIncompleteResults ¶
func (m *IssuesGetResponse) SetIncompleteResults(value *bool)
SetIncompleteResults sets the incomplete_results property value. The incomplete_results property
func (*IssuesGetResponse) SetItems ¶
func (m *IssuesGetResponse) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.IssueSearchResultItemable)
SetItems sets the items property value. The items property
func (*IssuesGetResponse) SetTotalCount ¶
func (m *IssuesGetResponse) SetTotalCount(value *int32)
SetTotalCount sets the total_count property value. The total_count property
type IssuesGetResponseable ¶
type IssuesGetResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIncompleteResults() *bool GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.IssueSearchResultItemable GetTotalCount() *int32 SetIncompleteResults(value *bool) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.IssueSearchResultItemable) SetTotalCount(value *int32) }
type IssuesRequestBuilder ¶
type IssuesRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
IssuesRequestBuilder builds and executes requests for operations under \search\issues
func NewIssuesRequestBuilder ¶
func NewIssuesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *IssuesRequestBuilder
NewIssuesRequestBuilder instantiates a new IssuesRequestBuilder and sets the default values.
func NewIssuesRequestBuilderInternal ¶
func NewIssuesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *IssuesRequestBuilder
NewIssuesRequestBuilderInternal instantiates a new IssuesRequestBuilder and sets the default values.
func (*IssuesRequestBuilder) Get ¶
func (m *IssuesRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[IssuesRequestBuilderGetQueryParameters]) (IssuesGetResponseable, error)
Get find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlightedsearch results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.`q=windows+label:bug+language:python+state:open&sort=created&order=asc`This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.**Note:** For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." returns a IssuesGetResponseable 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 returns a Issues503Error error when the service returns a 503 status code API method documentation
func (*IssuesRequestBuilder) ToGetRequestInformation ¶
func (m *IssuesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[IssuesRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlightedsearch results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.`q=windows+label:bug+language:python+state:open&sort=created&order=asc`This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.**Note:** For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." returns a *RequestInformation when successful
func (*IssuesRequestBuilder) WithUrl ¶
func (m *IssuesRequestBuilder) WithUrl(rawUrl string) *IssuesRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *IssuesRequestBuilder when successful
type IssuesRequestBuilderGetQueryParameters ¶
type IssuesRequestBuilderGetQueryParameters struct { // Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. Order *i60f7782ca360402c5ca504d6e0a3ccd1fa72dc30352dc710edab252368039c3f.GetOrderQueryParameterType `uriparametername:"order"` // 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"` // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching issues and pull requests](https://docs.github.com/search-github/searching-on-github/searching-issues-and-pull-requests)" for a detailed list of qualifiers. Q *string `uriparametername:"q"` // Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) Sort *i60f7782ca360402c5ca504d6e0a3ccd1fa72dc30352dc710edab252368039c3f.GetSortQueryParameterType `uriparametername:"sort"` }
IssuesRequestBuilderGetQueryParameters find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlightedsearch results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.`q=windows+label:bug+language:python+state:open&sort=created&order=asc`This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.**Note:** For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)."
type IssuesResponse ¶
type IssuesResponse struct {
IssuesGetResponse
}
IssuesResponse Deprecated: This class is obsolete. Use issuesGetResponse instead.
func NewIssuesResponse ¶
func NewIssuesResponse() *IssuesResponse
NewIssuesResponse instantiates a new IssuesResponse and sets the default values.
type IssuesResponseable ¶
type IssuesResponseable interface { IssuesGetResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
IssuesResponseable Deprecated: This class is obsolete. Use issuesGetResponse instead.
type LabelsGetResponse ¶
type LabelsGetResponse struct {
// contains filtered or unexported fields
}
func NewLabelsGetResponse ¶
func NewLabelsGetResponse() *LabelsGetResponse
NewLabelsGetResponse instantiates a new LabelsGetResponse and sets the default values.
func (*LabelsGetResponse) GetAdditionalData ¶
func (m *LabelsGetResponse) 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 (*LabelsGetResponse) GetFieldDeserializers ¶
func (m *LabelsGetResponse) 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 (*LabelsGetResponse) GetIncompleteResults ¶
func (m *LabelsGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property returns a *bool when successful
func (*LabelsGetResponse) GetItems ¶
func (m *LabelsGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.LabelSearchResultItemable
GetItems gets the items property value. The items property returns a []LabelSearchResultItemable when successful
func (*LabelsGetResponse) GetTotalCount ¶
func (m *LabelsGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful
func (*LabelsGetResponse) Serialize ¶
func (m *LabelsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*LabelsGetResponse) SetAdditionalData ¶
func (m *LabelsGetResponse) 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 (*LabelsGetResponse) SetIncompleteResults ¶
func (m *LabelsGetResponse) SetIncompleteResults(value *bool)
SetIncompleteResults sets the incomplete_results property value. The incomplete_results property
func (*LabelsGetResponse) SetItems ¶
func (m *LabelsGetResponse) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.LabelSearchResultItemable)
SetItems sets the items property value. The items property
func (*LabelsGetResponse) SetTotalCount ¶
func (m *LabelsGetResponse) SetTotalCount(value *int32)
SetTotalCount sets the total_count property value. The total_count property
type LabelsGetResponseable ¶
type LabelsGetResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIncompleteResults() *bool GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.LabelSearchResultItemable GetTotalCount() *int32 SetIncompleteResults(value *bool) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.LabelSearchResultItemable) SetTotalCount(value *int32) }
type LabelsRequestBuilder ¶
type LabelsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
LabelsRequestBuilder builds and executes requests for operations under \search\labels
func NewLabelsRequestBuilder ¶
func NewLabelsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LabelsRequestBuilder
NewLabelsRequestBuilder instantiates a new LabelsRequestBuilder and sets the default values.
func NewLabelsRequestBuilderInternal ¶
func NewLabelsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LabelsRequestBuilder
NewLabelsRequestBuilderInternal instantiates a new LabelsRequestBuilder and sets the default values.
func (*LabelsRequestBuilder) Get ¶
func (m *LabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[LabelsRequestBuilderGetQueryParameters]) (LabelsGetResponseable, error)
Get find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:`q=bug+defect+enhancement&repository_id=64778136`The labels that best match the query appear first in the search results. returns a LabelsGetResponseable 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 (*LabelsRequestBuilder) ToGetRequestInformation ¶
func (m *LabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[LabelsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:`q=bug+defect+enhancement&repository_id=64778136`The labels that best match the query appear first in the search results. returns a *RequestInformation when successful
func (*LabelsRequestBuilder) WithUrl ¶
func (m *LabelsRequestBuilder) WithUrl(rawUrl string) *LabelsRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *LabelsRequestBuilder when successful
type LabelsRequestBuilderGetQueryParameters ¶
type LabelsRequestBuilderGetQueryParameters struct { // Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. Order *i7add74210511a3bba07275779ce4518d4e5b8c0b4c74994de39cfb93f5b96ecf.GetOrderQueryParameterType `uriparametername:"order"` // 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"` // The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). Q *string `uriparametername:"q"` // The id of the repository. Repository_id *int32 `uriparametername:"repository_id"` // Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) Sort *i7add74210511a3bba07275779ce4518d4e5b8c0b4c74994de39cfb93f5b96ecf.GetSortQueryParameterType `uriparametername:"sort"` }
LabelsRequestBuilderGetQueryParameters find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:`q=bug+defect+enhancement&repository_id=64778136`The labels that best match the query appear first in the search results.
type LabelsResponse ¶
type LabelsResponse struct {
LabelsGetResponse
}
LabelsResponse Deprecated: This class is obsolete. Use labelsGetResponse instead.
func NewLabelsResponse ¶
func NewLabelsResponse() *LabelsResponse
NewLabelsResponse instantiates a new LabelsResponse and sets the default values.
type LabelsResponseable ¶
type LabelsResponseable interface { LabelsGetResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
LabelsResponseable Deprecated: This class is obsolete. Use labelsGetResponse instead.
type RepositoriesGetResponse ¶
type RepositoriesGetResponse struct {
// contains filtered or unexported fields
}
func NewRepositoriesGetResponse ¶
func NewRepositoriesGetResponse() *RepositoriesGetResponse
NewRepositoriesGetResponse instantiates a new RepositoriesGetResponse and sets the default values.
func (*RepositoriesGetResponse) GetAdditionalData ¶
func (m *RepositoriesGetResponse) 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 (*RepositoriesGetResponse) GetFieldDeserializers ¶
func (m *RepositoriesGetResponse) 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 (*RepositoriesGetResponse) GetIncompleteResults ¶
func (m *RepositoriesGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property returns a *bool when successful
func (*RepositoriesGetResponse) GetItems ¶
func (m *RepositoriesGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.RepoSearchResultItemable
GetItems gets the items property value. The items property returns a []RepoSearchResultItemable when successful
func (*RepositoriesGetResponse) GetTotalCount ¶
func (m *RepositoriesGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful
func (*RepositoriesGetResponse) Serialize ¶
func (m *RepositoriesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*RepositoriesGetResponse) SetAdditionalData ¶
func (m *RepositoriesGetResponse) 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 (*RepositoriesGetResponse) SetIncompleteResults ¶
func (m *RepositoriesGetResponse) SetIncompleteResults(value *bool)
SetIncompleteResults sets the incomplete_results property value. The incomplete_results property
func (*RepositoriesGetResponse) SetItems ¶
func (m *RepositoriesGetResponse) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.RepoSearchResultItemable)
SetItems sets the items property value. The items property
func (*RepositoriesGetResponse) SetTotalCount ¶
func (m *RepositoriesGetResponse) SetTotalCount(value *int32)
SetTotalCount sets the total_count property value. The total_count property
type RepositoriesGetResponseable ¶
type RepositoriesGetResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIncompleteResults() *bool GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.RepoSearchResultItemable GetTotalCount() *int32 SetIncompleteResults(value *bool) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.RepoSearchResultItemable) SetTotalCount(value *int32) }
type RepositoriesRequestBuilder ¶
type RepositoriesRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
RepositoriesRequestBuilder builds and executes requests for operations under \search\repositories
func NewRepositoriesRequestBuilder ¶
func NewRepositoriesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *RepositoriesRequestBuilder
NewRepositoriesRequestBuilder instantiates a new RepositoriesRequestBuilder and sets the default values.
func NewRepositoriesRequestBuilderInternal ¶
func NewRepositoriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *RepositoriesRequestBuilder
NewRepositoriesRequestBuilderInternal instantiates a new RepositoriesRequestBuilder and sets the default values.
func (*RepositoriesRequestBuilder) Get ¶
func (m *RepositoriesRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[RepositoriesRequestBuilderGetQueryParameters]) (RepositoriesGetResponseable, error)
Get find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:`q=tetris+language:assembly&sort=stars&order=desc`This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. returns a RepositoriesGetResponseable when successful returns a ValidationError error when the service returns a 422 status code returns a Repositories503Error error when the service returns a 503 status code API method documentation
func (*RepositoriesRequestBuilder) ToGetRequestInformation ¶
func (m *RepositoriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[RepositoriesRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:`q=tetris+language:assembly&sort=stars&order=desc`This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. returns a *RequestInformation when successful
func (*RepositoriesRequestBuilder) WithUrl ¶
func (m *RepositoriesRequestBuilder) WithUrl(rawUrl string) *RepositoriesRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *RepositoriesRequestBuilder when successful
type RepositoriesRequestBuilderGetQueryParameters ¶
type RepositoriesRequestBuilderGetQueryParameters struct { // Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. Order *if00612db3ee43f8c11c434312c0490ee1b643ea9471a2b1c2a889018d89cf8b3.GetOrderQueryParameterType `uriparametername:"order"` // 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"` // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. Q *string `uriparametername:"q"` // Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) Sort *if00612db3ee43f8c11c434312c0490ee1b643ea9471a2b1c2a889018d89cf8b3.GetSortQueryParameterType `uriparametername:"sort"` }
RepositoriesRequestBuilderGetQueryParameters find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:`q=tetris+language:assembly&sort=stars&order=desc`This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.
type RepositoriesResponse ¶
type RepositoriesResponse struct {
RepositoriesGetResponse
}
RepositoriesResponse Deprecated: This class is obsolete. Use repositoriesGetResponse instead.
func NewRepositoriesResponse ¶
func NewRepositoriesResponse() *RepositoriesResponse
NewRepositoriesResponse instantiates a new RepositoriesResponse and sets the default values.
type RepositoriesResponseable ¶
type RepositoriesResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable RepositoriesGetResponseable }
RepositoriesResponseable Deprecated: This class is obsolete. Use repositoriesGetResponse instead.
type SearchRequestBuilder ¶
type SearchRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
SearchRequestBuilder builds and executes requests for operations under \search
func NewSearchRequestBuilder ¶
func NewSearchRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *SearchRequestBuilder
NewSearchRequestBuilder instantiates a new SearchRequestBuilder and sets the default values.
func NewSearchRequestBuilderInternal ¶
func NewSearchRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *SearchRequestBuilder
NewSearchRequestBuilderInternal instantiates a new SearchRequestBuilder and sets the default values.
func (*SearchRequestBuilder) Code ¶
func (m *SearchRequestBuilder) Code() *CodeRequestBuilder
Code the code property returns a *CodeRequestBuilder when successful
func (*SearchRequestBuilder) Commits ¶
func (m *SearchRequestBuilder) Commits() *CommitsRequestBuilder
Commits the commits property returns a *CommitsRequestBuilder when successful
func (*SearchRequestBuilder) Issues ¶
func (m *SearchRequestBuilder) Issues() *IssuesRequestBuilder
Issues the issues property returns a *IssuesRequestBuilder when successful
func (*SearchRequestBuilder) Labels ¶
func (m *SearchRequestBuilder) Labels() *LabelsRequestBuilder
Labels the labels property returns a *LabelsRequestBuilder when successful
func (*SearchRequestBuilder) Repositories ¶
func (m *SearchRequestBuilder) Repositories() *RepositoriesRequestBuilder
Repositories the repositories property returns a *RepositoriesRequestBuilder when successful
func (*SearchRequestBuilder) Topics ¶
func (m *SearchRequestBuilder) Topics() *TopicsRequestBuilder
Topics the topics property returns a *TopicsRequestBuilder when successful
func (*SearchRequestBuilder) Users ¶
func (m *SearchRequestBuilder) Users() *UsersRequestBuilder
Users the users property returns a *UsersRequestBuilder when successful
type TopicsGetResponse ¶
type TopicsGetResponse struct {
// contains filtered or unexported fields
}
func NewTopicsGetResponse ¶
func NewTopicsGetResponse() *TopicsGetResponse
NewTopicsGetResponse instantiates a new TopicsGetResponse and sets the default values.
func (*TopicsGetResponse) GetAdditionalData ¶
func (m *TopicsGetResponse) 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 (*TopicsGetResponse) GetFieldDeserializers ¶
func (m *TopicsGetResponse) 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 (*TopicsGetResponse) GetIncompleteResults ¶
func (m *TopicsGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property returns a *bool when successful
func (*TopicsGetResponse) GetItems ¶
func (m *TopicsGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.TopicSearchResultItemable
GetItems gets the items property value. The items property returns a []TopicSearchResultItemable when successful
func (*TopicsGetResponse) GetTotalCount ¶
func (m *TopicsGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful
func (*TopicsGetResponse) Serialize ¶
func (m *TopicsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*TopicsGetResponse) SetAdditionalData ¶
func (m *TopicsGetResponse) 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 (*TopicsGetResponse) SetIncompleteResults ¶
func (m *TopicsGetResponse) SetIncompleteResults(value *bool)
SetIncompleteResults sets the incomplete_results property value. The incomplete_results property
func (*TopicsGetResponse) SetItems ¶
func (m *TopicsGetResponse) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.TopicSearchResultItemable)
SetItems sets the items property value. The items property
func (*TopicsGetResponse) SetTotalCount ¶
func (m *TopicsGetResponse) SetTotalCount(value *int32)
SetTotalCount sets the total_count property value. The total_count property
type TopicsGetResponseable ¶
type TopicsGetResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIncompleteResults() *bool GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.TopicSearchResultItemable GetTotalCount() *int32 SetIncompleteResults(value *bool) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.TopicSearchResultItemable) SetTotalCount(value *int32) }
type TopicsRequestBuilder ¶
type TopicsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
TopicsRequestBuilder builds and executes requests for operations under \search\topics
func NewTopicsRequestBuilder ¶
func NewTopicsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *TopicsRequestBuilder
NewTopicsRequestBuilder instantiates a new TopicsRequestBuilder and sets the default values.
func NewTopicsRequestBuilderInternal ¶
func NewTopicsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *TopicsRequestBuilder
NewTopicsRequestBuilderInternal instantiates a new TopicsRequestBuilder and sets the default values.
func (*TopicsRequestBuilder) Get ¶
func (m *TopicsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[TopicsRequestBuilderGetQueryParameters]) (TopicsGetResponseable, error)
Get find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). See "[Searching topics](https://docs.github.com/articles/searching-topics/)" for a detailed list of qualifiers.When searching for topics, you can get text match metadata for the topic's **short\_description**, **description**, **name**, or **display\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:`q=ruby+is:featured`This query searches for topics with the keyword `ruby` and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results. returns a TopicsGetResponseable when successful API method documentation
func (*TopicsRequestBuilder) ToGetRequestInformation ¶
func (m *TopicsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[TopicsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). See "[Searching topics](https://docs.github.com/articles/searching-topics/)" for a detailed list of qualifiers.When searching for topics, you can get text match metadata for the topic's **short\_description**, **description**, **name**, or **display\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:`q=ruby+is:featured`This query searches for topics with the keyword `ruby` and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results. returns a *RequestInformation when successful
func (*TopicsRequestBuilder) WithUrl ¶
func (m *TopicsRequestBuilder) WithUrl(rawUrl string) *TopicsRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *TopicsRequestBuilder when successful
type TopicsRequestBuilderGetQueryParameters ¶
type TopicsRequestBuilderGetQueryParameters 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"` // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). Q *string `uriparametername:"q"` }
TopicsRequestBuilderGetQueryParameters find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api). See "[Searching topics](https://docs.github.com/articles/searching-topics/)" for a detailed list of qualifiers.When searching for topics, you can get text match metadata for the topic's **short\_description**, **description**, **name**, or **display\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:`q=ruby+is:featured`This query searches for topics with the keyword `ruby` and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.
type TopicsResponse ¶
type TopicsResponse struct {
TopicsGetResponse
}
TopicsResponse Deprecated: This class is obsolete. Use topicsGetResponse instead.
func NewTopicsResponse ¶
func NewTopicsResponse() *TopicsResponse
NewTopicsResponse instantiates a new TopicsResponse and sets the default values.
type TopicsResponseable ¶
type TopicsResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable TopicsGetResponseable }
TopicsResponseable Deprecated: This class is obsolete. Use topicsGetResponse instead.
type UsersGetResponse ¶
type UsersGetResponse struct {
// contains filtered or unexported fields
}
func NewUsersGetResponse ¶
func NewUsersGetResponse() *UsersGetResponse
NewUsersGetResponse instantiates a new UsersGetResponse and sets the default values.
func (*UsersGetResponse) GetAdditionalData ¶
func (m *UsersGetResponse) 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 (*UsersGetResponse) GetFieldDeserializers ¶
func (m *UsersGetResponse) 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 (*UsersGetResponse) GetIncompleteResults ¶
func (m *UsersGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property returns a *bool when successful
func (*UsersGetResponse) GetItems ¶
func (m *UsersGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.UserSearchResultItemable
GetItems gets the items property value. The items property returns a []UserSearchResultItemable when successful
func (*UsersGetResponse) GetTotalCount ¶
func (m *UsersGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful
func (*UsersGetResponse) Serialize ¶
func (m *UsersGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*UsersGetResponse) SetAdditionalData ¶
func (m *UsersGetResponse) 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 (*UsersGetResponse) SetIncompleteResults ¶
func (m *UsersGetResponse) SetIncompleteResults(value *bool)
SetIncompleteResults sets the incomplete_results property value. The incomplete_results property
func (*UsersGetResponse) SetItems ¶
func (m *UsersGetResponse) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.UserSearchResultItemable)
SetItems sets the items property value. The items property
func (*UsersGetResponse) SetTotalCount ¶
func (m *UsersGetResponse) SetTotalCount(value *int32)
SetTotalCount sets the total_count property value. The total_count property
type UsersGetResponseable ¶
type UsersGetResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIncompleteResults() *bool GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.UserSearchResultItemable GetTotalCount() *int32 SetIncompleteResults(value *bool) SetItems(value []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.UserSearchResultItemable) SetTotalCount(value *int32) }
type UsersRequestBuilder ¶
type UsersRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
UsersRequestBuilder builds and executes requests for operations under \search\users
func NewUsersRequestBuilder ¶
func NewUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *UsersRequestBuilder
NewUsersRequestBuilder instantiates a new UsersRequestBuilder and sets the default values.
func NewUsersRequestBuilderInternal ¶
func NewUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *UsersRequestBuilder
NewUsersRequestBuilderInternal instantiates a new UsersRequestBuilder and sets the default values.
func (*UsersRequestBuilder) Get ¶
func (m *UsersRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[UsersRequestBuilderGetQueryParameters]) (UsersGetResponseable, error)
Get find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for users, you can get text match metadata for the issue **login**, public **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you're looking for a list of popular users, you might try this query:`q=tom+repos:%3E42+followers:%3E1000`This query searches for users with the name `tom`. The results are restricted to users with more than 42 repositories and over 1,000 followers.This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see "[GraphQL Queries](https://docs.github.com/graphql/reference/queries#search)." returns a UsersGetResponseable when successful returns a ValidationError error when the service returns a 422 status code returns a Users503Error error when the service returns a 503 status code API method documentation
func (*UsersRequestBuilder) ToGetRequestInformation ¶
func (m *UsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[UsersRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for users, you can get text match metadata for the issue **login**, public **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you're looking for a list of popular users, you might try this query:`q=tom+repos:%3E42+followers:%3E1000`This query searches for users with the name `tom`. The results are restricted to users with more than 42 repositories and over 1,000 followers.This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see "[GraphQL Queries](https://docs.github.com/graphql/reference/queries#search)." returns a *RequestInformation when successful
func (*UsersRequestBuilder) WithUrl ¶
func (m *UsersRequestBuilder) WithUrl(rawUrl string) *UsersRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *UsersRequestBuilder when successful
type UsersRequestBuilderGetQueryParameters ¶
type UsersRequestBuilderGetQueryParameters struct { // Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. Order *i4bbf61dd92ec14fb80440b575ce08a197a518044325eb9dc0b476c3deafdcfbd.GetOrderQueryParameterType `uriparametername:"order"` // 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"` // The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching users](https://docs.github.com/search-github/searching-on-github/searching-users)" for a detailed list of qualifiers. Q *string `uriparametername:"q"` // Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) Sort *i4bbf61dd92ec14fb80440b575ce08a197a518044325eb9dc0b476c3deafdcfbd.GetSortQueryParameterType `uriparametername:"sort"` }
UsersRequestBuilderGetQueryParameters find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).When searching for users, you can get text match metadata for the issue **login**, public **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you're looking for a list of popular users, you might try this query:`q=tom+repos:%3E42+followers:%3E1000`This query searches for users with the name `tom`. The results are restricted to users with more than 42 repositories and over 1,000 followers.This endpoint does not accept authentication and will only include publicly visible users. As an alternative, you can use the GraphQL API. The GraphQL API requires authentication and will return private users, including Enterprise Managed Users (EMUs), that you are authorized to view. For more information, see "[GraphQL Queries](https://docs.github.com/graphql/reference/queries#search)."
type UsersResponse ¶
type UsersResponse struct {
UsersGetResponse
}
UsersResponse Deprecated: This class is obsolete. Use usersGetResponse instead.
func NewUsersResponse ¶
func NewUsersResponse() *UsersResponse
NewUsersResponse instantiates a new UsersResponse and sets the default values.
type UsersResponseable ¶
type UsersResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable UsersGetResponseable }
UsersResponseable Deprecated: This class is obsolete. Use usersGetResponse instead.
Source Files
¶
- code_get_response.go
- code_request_builder.go
- code_response.go
- commits_get_response.go
- commits_request_builder.go
- commits_response.go
- issues_get_response.go
- issues_request_builder.go
- issues_response.go
- labels_get_response.go
- labels_request_builder.go
- labels_response.go
- repositories_get_response.go
- repositories_request_builder.go
- repositories_response.go
- search_request_builder.go
- topics_get_response.go
- topics_request_builder.go
- topics_response.go
- users_get_response.go
- users_request_builder.go
- users_response.go