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
- func (m *CodeRequestBuilder) Get(ctx context.Context, ...) (CodeResponseable, error)
- func (m *CodeRequestBuilder) GetAsCodeGetResponse(ctx context.Context, ...) (CodeGetResponseable, error)
- func (m *CodeRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *CodeRequestBuilder) WithUrl(rawUrl string) *CodeRequestBuilder
- type CodeRequestBuilderGetQueryParameters
- type CodeRequestBuilderGetRequestConfiguration
- 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
- func (m *CommitsRequestBuilder) Get(ctx context.Context, ...) (CommitsResponseable, error)
- func (m *CommitsRequestBuilder) GetAsCommitsGetResponse(ctx context.Context, ...) (CommitsGetResponseable, error)
- func (m *CommitsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *CommitsRequestBuilder) WithUrl(rawUrl string) *CommitsRequestBuilder
- type CommitsRequestBuilderGetQueryParameters
- type CommitsRequestBuilderGetRequestConfiguration
- 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
- func (m *IssuesRequestBuilder) Get(ctx context.Context, ...) (IssuesResponseable, error)
- func (m *IssuesRequestBuilder) GetAsIssuesGetResponse(ctx context.Context, ...) (IssuesGetResponseable, error)
- func (m *IssuesRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *IssuesRequestBuilder) WithUrl(rawUrl string) *IssuesRequestBuilder
- type IssuesRequestBuilderGetQueryParameters
- type IssuesRequestBuilderGetRequestConfiguration
- 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
- func (m *LabelsRequestBuilder) Get(ctx context.Context, ...) (LabelsResponseable, error)
- func (m *LabelsRequestBuilder) GetAsLabelsGetResponse(ctx context.Context, ...) (LabelsGetResponseable, error)
- func (m *LabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *LabelsRequestBuilder) WithUrl(rawUrl string) *LabelsRequestBuilder
- type LabelsRequestBuilderGetQueryParameters
- type LabelsRequestBuilderGetRequestConfiguration
- 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
- func (m *RepositoriesRequestBuilder) Get(ctx context.Context, ...) (RepositoriesResponseable, error)
- func (m *RepositoriesRequestBuilder) GetAsRepositoriesGetResponse(ctx context.Context, ...) (RepositoriesGetResponseable, error)
- func (m *RepositoriesRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *RepositoriesRequestBuilder) WithUrl(rawUrl string) *RepositoriesRequestBuilder
- type RepositoriesRequestBuilderGetQueryParameters
- type RepositoriesRequestBuilderGetRequestConfiguration
- 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
- func (m *TopicsRequestBuilder) Get(ctx context.Context, ...) (TopicsResponseable, error)
- func (m *TopicsRequestBuilder) GetAsTopicsGetResponse(ctx context.Context, ...) (TopicsGetResponseable, error)
- func (m *TopicsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *TopicsRequestBuilder) WithUrl(rawUrl string) *TopicsRequestBuilder
- type TopicsRequestBuilderGetQueryParameters
- type TopicsRequestBuilderGetRequestConfiguration
- 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
- func (m *UsersRequestBuilder) Get(ctx context.Context, ...) (UsersResponseable, error)
- func (m *UsersRequestBuilder) GetAsUsersGetResponse(ctx context.Context, ...) (UsersGetResponseable, error)
- func (m *UsersRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *UsersRequestBuilder) WithUrl(rawUrl string) *UsersRequestBuilder
- type UsersRequestBuilderGetQueryParameters
- type UsersRequestBuilderGetRequestConfiguration
- 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
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
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
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
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
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
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
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
}
CodeGetResponse
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.
func (*CodeGetResponse) GetFieldDeserializers ¶
func (m *CodeGetResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
func (*CodeGetResponse) GetIncompleteResults ¶
func (m *CodeGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property
func (*CodeGetResponse) GetItems ¶
func (m *CodeGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CodeSearchResultItemable
GetItems gets the items property value. The items property
func (*CodeGetResponse) GetTotalCount ¶
func (m *CodeGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property
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) }
CodeGetResponseable
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 *CodeRequestBuilderGetRequestConfiguration) (CodeResponseable, 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. Deprecated: This method is obsolete. Use GetAsCodeGetResponse instead. API method documentation
func (*CodeRequestBuilder) GetAsCodeGetResponse ¶
func (m *CodeRequestBuilder) GetAsCodeGetResponse(ctx context.Context, requestConfiguration *CodeRequestBuilderGetRequestConfiguration) (CodeGetResponseable, error)
GetAsCodeGetResponse 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. API method documentation
func (*CodeRequestBuilder) ToGetRequestInformation ¶
func (m *CodeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CodeRequestBuilderGetRequestConfiguration) (*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.
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.
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: This property is deprecated, use orderAsGetOrderQueryParameterType instead Order *string `uriparametername:"order"` // **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: OrderAsGetOrderQueryParameterType *i077352aa902c51bfc500a83132f68b8da1051f8b770660094032b189b1a9f293.GetOrderQueryParameterType `uriparametername:"order"` // Page number of the results to fetch. Page *int32 `uriparametername:"page"` // The number of results per page (max 100). 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: This property is deprecated, use sortAsGetSortQueryParameterType instead Sort *string `uriparametername:"sort"` // **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: SortAsGetSortQueryParameterType *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 CodeRequestBuilderGetRequestConfiguration ¶
type CodeRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *CodeRequestBuilderGetQueryParameters }
CodeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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
}
CommitsGetResponse
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.
func (*CommitsGetResponse) GetFieldDeserializers ¶
func (m *CommitsGetResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
func (*CommitsGetResponse) GetIncompleteResults ¶
func (m *CommitsGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property
func (*CommitsGetResponse) GetItems ¶
func (m *CommitsGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CommitSearchResultItemable
GetItems gets the items property value. The items property
func (*CommitsGetResponse) GetTotalCount ¶
func (m *CommitsGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property
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) }
CommitsGetResponseable
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 *CommitsRequestBuilderGetRequestConfiguration) (CommitsResponseable, 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` Deprecated: This method is obsolete. Use GetAsCommitsGetResponse instead. API method documentation
func (*CommitsRequestBuilder) GetAsCommitsGetResponse ¶
func (m *CommitsRequestBuilder) GetAsCommitsGetResponse(ctx context.Context, requestConfiguration *CommitsRequestBuilderGetRequestConfiguration) (CommitsGetResponseable, error)
GetAsCommitsGetResponse 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` API method documentation
func (*CommitsRequestBuilder) ToGetRequestInformation ¶
func (m *CommitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommitsRequestBuilderGetRequestConfiguration) (*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`
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.
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`. // Deprecated: This property is deprecated, use orderAsGetOrderQueryParameterType instead Order *string `uriparametername:"order"` // 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`. OrderAsGetOrderQueryParameterType *i625e45c268d4ab4a42a97d02ce2d6719584691128398ca7ec6cca25ecc82eda8.GetOrderQueryParameterType `uriparametername:"order"` // Page number of the results to fetch. Page *int32 `uriparametername:"page"` // The number of results per page (max 100). 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) // Deprecated: This property is deprecated, use sortAsGetSortQueryParameterType instead Sort *string `uriparametername:"sort"` // 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) SortAsGetSortQueryParameterType *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 CommitsRequestBuilderGetRequestConfiguration ¶
type CommitsRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *CommitsRequestBuilderGetQueryParameters }
CommitsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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
}
IssuesGetResponse
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.
func (*IssuesGetResponse) GetFieldDeserializers ¶
func (m *IssuesGetResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
func (*IssuesGetResponse) GetIncompleteResults ¶
func (m *IssuesGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property
func (*IssuesGetResponse) GetItems ¶
func (m *IssuesGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.IssueSearchResultItemable
GetItems gets the items property value. The items property
func (*IssuesGetResponse) GetTotalCount ¶
func (m *IssuesGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property
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) }
IssuesGetResponseable
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 *IssuesRequestBuilderGetRequestConfiguration) (IssuesResponseable, 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)." Deprecated: This method is obsolete. Use GetAsIssuesGetResponse instead. API method documentation
func (*IssuesRequestBuilder) GetAsIssuesGetResponse ¶
func (m *IssuesRequestBuilder) GetAsIssuesGetResponse(ctx context.Context, requestConfiguration *IssuesRequestBuilderGetRequestConfiguration) (IssuesGetResponseable, error)
GetAsIssuesGetResponse 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)." API method documentation
func (*IssuesRequestBuilder) ToGetRequestInformation ¶
func (m *IssuesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IssuesRequestBuilderGetRequestConfiguration) (*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)."
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.
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`. // Deprecated: This property is deprecated, use orderAsGetOrderQueryParameterType instead Order *string `uriparametername:"order"` // 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`. OrderAsGetOrderQueryParameterType *i60f7782ca360402c5ca504d6e0a3ccd1fa72dc30352dc710edab252368039c3f.GetOrderQueryParameterType `uriparametername:"order"` // Page number of the results to fetch. Page *int32 `uriparametername:"page"` // The number of results per page (max 100). 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) // Deprecated: This property is deprecated, use sortAsGetSortQueryParameterType instead Sort *string `uriparametername:"sort"` // 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) SortAsGetSortQueryParameterType *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 IssuesRequestBuilderGetRequestConfiguration ¶
type IssuesRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *IssuesRequestBuilderGetQueryParameters }
IssuesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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
}
LabelsGetResponse
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.
func (*LabelsGetResponse) GetFieldDeserializers ¶
func (m *LabelsGetResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
func (*LabelsGetResponse) GetIncompleteResults ¶
func (m *LabelsGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property
func (*LabelsGetResponse) GetItems ¶
func (m *LabelsGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.LabelSearchResultItemable
GetItems gets the items property value. The items property
func (*LabelsGetResponse) GetTotalCount ¶
func (m *LabelsGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property
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) }
LabelsGetResponseable
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 *LabelsRequestBuilderGetRequestConfiguration) (LabelsResponseable, 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. Deprecated: This method is obsolete. Use GetAsLabelsGetResponse instead. API method documentation
func (*LabelsRequestBuilder) GetAsLabelsGetResponse ¶
func (m *LabelsRequestBuilder) GetAsLabelsGetResponse(ctx context.Context, requestConfiguration *LabelsRequestBuilderGetRequestConfiguration) (LabelsGetResponseable, error)
GetAsLabelsGetResponse 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. API method documentation
func (*LabelsRequestBuilder) ToGetRequestInformation ¶
func (m *LabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LabelsRequestBuilderGetRequestConfiguration) (*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.
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.
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`. // Deprecated: This property is deprecated, use orderAsGetOrderQueryParameterType instead Order *string `uriparametername:"order"` // 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`. OrderAsGetOrderQueryParameterType *i7add74210511a3bba07275779ce4518d4e5b8c0b4c74994de39cfb93f5b96ecf.GetOrderQueryParameterType `uriparametername:"order"` // Page number of the results to fetch. Page *int32 `uriparametername:"page"` // The number of results per page (max 100). 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) // Deprecated: This property is deprecated, use sortAsGetSortQueryParameterType instead Sort *string `uriparametername:"sort"` // 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) SortAsGetSortQueryParameterType *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 LabelsRequestBuilderGetRequestConfiguration ¶
type LabelsRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *LabelsRequestBuilderGetQueryParameters }
LabelsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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
}
RepositoriesGetResponse
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.
func (*RepositoriesGetResponse) GetFieldDeserializers ¶
func (m *RepositoriesGetResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
func (*RepositoriesGetResponse) GetIncompleteResults ¶
func (m *RepositoriesGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property
func (*RepositoriesGetResponse) GetItems ¶
func (m *RepositoriesGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.RepoSearchResultItemable
GetItems gets the items property value. The items property
func (*RepositoriesGetResponse) GetTotalCount ¶
func (m *RepositoriesGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property
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) }
RepositoriesGetResponseable
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 *RepositoriesRequestBuilderGetRequestConfiguration) (RepositoriesResponseable, 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. Deprecated: This method is obsolete. Use GetAsRepositoriesGetResponse instead. API method documentation
func (*RepositoriesRequestBuilder) GetAsRepositoriesGetResponse ¶
func (m *RepositoriesRequestBuilder) GetAsRepositoriesGetResponse(ctx context.Context, requestConfiguration *RepositoriesRequestBuilderGetRequestConfiguration) (RepositoriesGetResponseable, error)
GetAsRepositoriesGetResponse 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. API method documentation
func (*RepositoriesRequestBuilder) ToGetRequestInformation ¶
func (m *RepositoriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RepositoriesRequestBuilderGetRequestConfiguration) (*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.
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.
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`. // Deprecated: This property is deprecated, use orderAsGetOrderQueryParameterType instead Order *string `uriparametername:"order"` // 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`. OrderAsGetOrderQueryParameterType *if00612db3ee43f8c11c434312c0490ee1b643ea9471a2b1c2a889018d89cf8b3.GetOrderQueryParameterType `uriparametername:"order"` // Page number of the results to fetch. Page *int32 `uriparametername:"page"` // The number of results per page (max 100). 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) // Deprecated: This property is deprecated, use sortAsGetSortQueryParameterType instead Sort *string `uriparametername:"sort"` // 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) SortAsGetSortQueryParameterType *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 RepositoriesRequestBuilderGetRequestConfiguration ¶
type RepositoriesRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *RepositoriesRequestBuilderGetQueryParameters }
RepositoriesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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
func (*SearchRequestBuilder) Commits ¶
func (m *SearchRequestBuilder) Commits() *CommitsRequestBuilder
Commits the commits property
func (*SearchRequestBuilder) Issues ¶
func (m *SearchRequestBuilder) Issues() *IssuesRequestBuilder
Issues the issues property
func (*SearchRequestBuilder) Labels ¶
func (m *SearchRequestBuilder) Labels() *LabelsRequestBuilder
Labels the labels property
func (*SearchRequestBuilder) Repositories ¶
func (m *SearchRequestBuilder) Repositories() *RepositoriesRequestBuilder
Repositories the repositories property
func (*SearchRequestBuilder) Topics ¶
func (m *SearchRequestBuilder) Topics() *TopicsRequestBuilder
Topics the topics property
func (*SearchRequestBuilder) Users ¶
func (m *SearchRequestBuilder) Users() *UsersRequestBuilder
Users the users property
type TopicsGetResponse ¶
type TopicsGetResponse struct {
// contains filtered or unexported fields
}
TopicsGetResponse
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.
func (*TopicsGetResponse) GetFieldDeserializers ¶
func (m *TopicsGetResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
func (*TopicsGetResponse) GetIncompleteResults ¶
func (m *TopicsGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property
func (*TopicsGetResponse) GetItems ¶
func (m *TopicsGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.TopicSearchResultItemable
GetItems gets the items property value. The items property
func (*TopicsGetResponse) GetTotalCount ¶
func (m *TopicsGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property
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) }
TopicsGetResponseable
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 *TopicsRequestBuilderGetRequestConfiguration) (TopicsResponseable, 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. Deprecated: This method is obsolete. Use GetAsTopicsGetResponse instead. API method documentation
func (*TopicsRequestBuilder) GetAsTopicsGetResponse ¶
func (m *TopicsRequestBuilder) GetAsTopicsGetResponse(ctx context.Context, requestConfiguration *TopicsRequestBuilderGetRequestConfiguration) (TopicsGetResponseable, error)
GetAsTopicsGetResponse 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. API method documentation
func (*TopicsRequestBuilder) ToGetRequestInformation ¶
func (m *TopicsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TopicsRequestBuilderGetRequestConfiguration) (*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.
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.
type TopicsRequestBuilderGetQueryParameters ¶
type TopicsRequestBuilderGetQueryParameters struct { // Page number of the results to fetch. Page *int32 `uriparametername:"page"` // The number of results per page (max 100). 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 TopicsRequestBuilderGetRequestConfiguration ¶
type TopicsRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *TopicsRequestBuilderGetQueryParameters }
TopicsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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
}
UsersGetResponse
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.
func (*UsersGetResponse) GetFieldDeserializers ¶
func (m *UsersGetResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
func (*UsersGetResponse) GetIncompleteResults ¶
func (m *UsersGetResponse) GetIncompleteResults() *bool
GetIncompleteResults gets the incomplete_results property value. The incomplete_results property
func (*UsersGetResponse) GetItems ¶
func (m *UsersGetResponse) GetItems() []i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.UserSearchResultItemable
GetItems gets the items property value. The items property
func (*UsersGetResponse) GetTotalCount ¶
func (m *UsersGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The total_count property
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) }
UsersGetResponseable
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 *UsersRequestBuilderGetRequestConfiguration) (UsersResponseable, 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)." Deprecated: This method is obsolete. Use GetAsUsersGetResponse instead. API method documentation
func (*UsersRequestBuilder) GetAsUsersGetResponse ¶
func (m *UsersRequestBuilder) GetAsUsersGetResponse(ctx context.Context, requestConfiguration *UsersRequestBuilderGetRequestConfiguration) (UsersGetResponseable, error)
GetAsUsersGetResponse 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)." API method documentation
func (*UsersRequestBuilder) ToGetRequestInformation ¶
func (m *UsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UsersRequestBuilderGetRequestConfiguration) (*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)."
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.
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`. // Deprecated: This property is deprecated, use orderAsGetOrderQueryParameterType instead Order *string `uriparametername:"order"` // 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`. OrderAsGetOrderQueryParameterType *i4bbf61dd92ec14fb80440b575ce08a197a518044325eb9dc0b476c3deafdcfbd.GetOrderQueryParameterType `uriparametername:"order"` // Page number of the results to fetch. Page *int32 `uriparametername:"page"` // The number of results per page (max 100). 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) // Deprecated: This property is deprecated, use sortAsGetSortQueryParameterType instead Sort *string `uriparametername:"sort"` // 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) SortAsGetSortQueryParameterType *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 UsersRequestBuilderGetRequestConfiguration ¶
type UsersRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *UsersRequestBuilderGetQueryParameters }
UsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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