user

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCodespacesGetResponseFromDiscriminatorValue

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

func CreateCodespacesItemMachinesGetResponseFromDiscriminatorValue

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

func CreateCodespacesItemMachinesResponseFromDiscriminatorValue

CreateCodespacesItemMachinesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreateCodespacesItemPublishPostRequestBodyFromDiscriminatorValue

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

func CreateCodespacesItemWithCodespace_nameDeleteResponseFromDiscriminatorValue

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

func CreateCodespacesItemWithCodespace_namePatchRequestBodyFromDiscriminatorValue

func CreateCodespacesItemWithCodespace_namePatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreateCodespacesItemWithCodespace_nameResponseFromDiscriminatorValue

CreateCodespacesItemWithCodespace_nameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreateCodespacesPostRequestBodyFromDiscriminatorValue

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

func CreateCodespacesPostRequestBodyMember1FromDiscriminatorValue

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

func CreateCodespacesPostRequestBodyMember2FromDiscriminatorValue

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

func CreateCodespacesPostRequestBodyMember2_pull_requestFromDiscriminatorValue

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

func CreateCodespacesResponseFromDiscriminatorValue

CreateCodespacesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreateCodespacesSecretsGetResponseFromDiscriminatorValue

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

func CreateCodespacesSecretsItemRepositoriesGetResponseFromDiscriminatorValue

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

func CreateCodespacesSecretsItemRepositoriesPutRequestBodyFromDiscriminatorValue

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

func CreateCodespacesSecretsItemRepositoriesResponseFromDiscriminatorValue

CreateCodespacesSecretsItemRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreateCodespacesSecretsItemWithSecret_namePutRequestBodyFromDiscriminatorValue

func CreateCodespacesSecretsItemWithSecret_namePutRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreateCodespacesSecretsResponseFromDiscriminatorValue

CreateCodespacesSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreateEmailVisibilityPatchRequestBodyFromDiscriminatorValue

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

func CreateEmailsDeleteRequestBodyFromDiscriminatorValue

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

func CreateEmailsDeleteRequestBodyMember1FromDiscriminatorValue

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

func CreateEmailsPostRequestBodyFromDiscriminatorValue

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

func CreateEmailsPostRequestBodyMember1FromDiscriminatorValue

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

func CreateGpg_keysPostRequestBodyFromDiscriminatorValue

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

func CreateInstallationsGetResponseFromDiscriminatorValue

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

func CreateInstallationsItemRepositoriesGetResponseFromDiscriminatorValue

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

func CreateInstallationsItemRepositoriesResponseFromDiscriminatorValue

CreateInstallationsItemRepositoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreateInstallationsResponseFromDiscriminatorValue

CreateInstallationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreateInteractionLimitsGetResponseMember1FromDiscriminatorValue

CreateInteractionLimitsGetResponseMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreateKeysPostRequestBodyFromDiscriminatorValue

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

func CreateMembershipsOrgsItemWithOrgPatchRequestBodyFromDiscriminatorValue

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

func CreateMigrationsPostRequestBodyFromDiscriminatorValue

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

func CreateProjectsPostRequestBodyFromDiscriminatorValue

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

func CreateReposPostRequestBodyFromDiscriminatorValue

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

func CreateSocial_accountsDeleteRequestBodyFromDiscriminatorValue

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

func CreateSocial_accountsPostRequestBodyFromDiscriminatorValue

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

func CreateSsh_signing_keysPostRequestBodyFromDiscriminatorValue

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

func CreateUserGetResponseFromDiscriminatorValue

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

func CreateUserPatchRequestBodyFromDiscriminatorValue

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

Types

type BlocksRequestBuilder

BlocksRequestBuilder builds and executes requests for operations under \user\blocks

func NewBlocksRequestBuilder

NewBlocksRequestBuilder instantiates a new BlocksRequestBuilder and sets the default values.

func NewBlocksRequestBuilderInternal

func NewBlocksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *BlocksRequestBuilder

NewBlocksRequestBuilderInternal instantiates a new BlocksRequestBuilder and sets the default values.

func (*BlocksRequestBuilder) ByUsername

ByUsername gets an item from the github.com/octokit/go-sdk/pkg/github.user.blocks.item collection returns a *BlocksWithUsernameItemRequestBuilder when successful

func (*BlocksRequestBuilder) Get

Get list the users you've blocked on your personal account. returns a []SimpleUserable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*BlocksRequestBuilder) ToGetRequestInformation

ToGetRequestInformation list the users you've blocked on your personal account. returns a *RequestInformation when successful

func (*BlocksRequestBuilder) WithUrl

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

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

type BlocksRequestBuilderGetQueryParameters

type BlocksRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

BlocksRequestBuilderGetQueryParameters list the users you've blocked on your personal account.

type BlocksWithUsernameItemRequestBuilder

type BlocksWithUsernameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

BlocksWithUsernameItemRequestBuilder builds and executes requests for operations under \user\blocks\{username}

func NewBlocksWithUsernameItemRequestBuilder

NewBlocksWithUsernameItemRequestBuilder instantiates a new BlocksWithUsernameItemRequestBuilder and sets the default values.

func NewBlocksWithUsernameItemRequestBuilderInternal

func NewBlocksWithUsernameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *BlocksWithUsernameItemRequestBuilder

NewBlocksWithUsernameItemRequestBuilderInternal instantiates a new BlocksWithUsernameItemRequestBuilder and sets the default values.

func (*BlocksWithUsernameItemRequestBuilder) Delete

Delete unblocks the given user and returns a 204. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*BlocksWithUsernameItemRequestBuilder) Get

Get returns a 204 if the given user is blocked by the authenticated user. Returns a 404 if the given user is not blocked by the authenticated user, or if the given user account has been identified as spam by GitHub. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*BlocksWithUsernameItemRequestBuilder) Put

Put blocks the given user and returns a 204. If the authenticated user cannot block the given user a 422 is returned. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*BlocksWithUsernameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation unblocks the given user and returns a 204. returns a *RequestInformation when successful

func (*BlocksWithUsernameItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation returns a 204 if the given user is blocked by the authenticated user. Returns a 404 if the given user is not blocked by the authenticated user, or if the given user account has been identified as spam by GitHub. returns a *RequestInformation when successful

func (*BlocksWithUsernameItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation blocks the given user and returns a 204. If the authenticated user cannot block the given user a 422 is returned. returns a *RequestInformation when successful

func (*BlocksWithUsernameItemRequestBuilder) WithUrl

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

type CodespacesGetResponse

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

func NewCodespacesGetResponse

func NewCodespacesGetResponse() *CodespacesGetResponse

NewCodespacesGetResponse instantiates a new CodespacesGetResponse and sets the default values.

func (*CodespacesGetResponse) GetAdditionalData

func (m *CodespacesGetResponse) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesGetResponse) GetCodespaces

GetCodespaces gets the codespaces property value. The codespaces property returns a []Codespaceable when successful

func (*CodespacesGetResponse) GetFieldDeserializers

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

func (*CodespacesGetResponse) GetTotalCount

func (m *CodespacesGetResponse) GetTotalCount() *int32

GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful

func (*CodespacesGetResponse) Serialize

Serialize serializes information the current object

func (*CodespacesGetResponse) SetAdditionalData

func (m *CodespacesGetResponse) 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 (*CodespacesGetResponse) SetCodespaces

SetCodespaces sets the codespaces property value. The codespaces property

func (*CodespacesGetResponse) SetTotalCount

func (m *CodespacesGetResponse) SetTotalCount(value *int32)

SetTotalCount sets the total_count property value. The total_count property

type CodespacesItemExportsRequestBuilder

CodespacesItemExportsRequestBuilder builds and executes requests for operations under \user\codespaces\{codespace_name}\exports

func NewCodespacesItemExportsRequestBuilder

NewCodespacesItemExportsRequestBuilder instantiates a new CodespacesItemExportsRequestBuilder and sets the default values.

func NewCodespacesItemExportsRequestBuilderInternal

func NewCodespacesItemExportsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesItemExportsRequestBuilder

NewCodespacesItemExportsRequestBuilderInternal instantiates a new CodespacesItemExportsRequestBuilder and sets the default values.

func (*CodespacesItemExportsRequestBuilder) ByExport_id

ByExport_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.codespaces.item.exports.item collection returns a *CodespacesItemExportsWithExport_ItemRequestBuilder when successful

func (*CodespacesItemExportsRequestBuilder) Post

Post triggers an export of the specified codespace and returns a URL and ID where the status of the export can be monitored.If changes cannot be pushed to the codespace's repository, they will be pushed to a new or previously-existing fork instead.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a CodespaceExportDetailsable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesItemExportsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation triggers an export of the specified codespace and returns a URL and ID where the status of the export can be monitored.If changes cannot be pushed to the codespace's repository, they will be pushed to a new or previously-existing fork instead.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesItemExportsRequestBuilder) WithUrl

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

type CodespacesItemExportsWithExport_ItemRequestBuilder

type CodespacesItemExportsWithExport_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

CodespacesItemExportsWithExport_ItemRequestBuilder builds and executes requests for operations under \user\codespaces\{codespace_name}\exports\{export_id}

func NewCodespacesItemExportsWithExport_ItemRequestBuilder

NewCodespacesItemExportsWithExport_ItemRequestBuilder instantiates a new CodespacesItemExportsWithExport_ItemRequestBuilder and sets the default values.

func NewCodespacesItemExportsWithExport_ItemRequestBuilderInternal

func NewCodespacesItemExportsWithExport_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesItemExportsWithExport_ItemRequestBuilder

NewCodespacesItemExportsWithExport_ItemRequestBuilderInternal instantiates a new CodespacesItemExportsWithExport_ItemRequestBuilder and sets the default values.

func (*CodespacesItemExportsWithExport_ItemRequestBuilder) Get

Get gets information about an export of a codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a CodespaceExportDetailsable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*CodespacesItemExportsWithExport_ItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation gets information about an export of a codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesItemExportsWithExport_ItemRequestBuilder) WithUrl

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

type CodespacesItemMachinesGetResponse

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

func NewCodespacesItemMachinesGetResponse

func NewCodespacesItemMachinesGetResponse() *CodespacesItemMachinesGetResponse

NewCodespacesItemMachinesGetResponse instantiates a new CodespacesItemMachinesGetResponse and sets the default values.

func (*CodespacesItemMachinesGetResponse) GetAdditionalData

func (m *CodespacesItemMachinesGetResponse) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesItemMachinesGetResponse) GetFieldDeserializers

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

func (*CodespacesItemMachinesGetResponse) GetMachines

GetMachines gets the machines property value. The machines property returns a []CodespaceMachineable when successful

func (*CodespacesItemMachinesGetResponse) GetTotalCount

func (m *CodespacesItemMachinesGetResponse) GetTotalCount() *int32

GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful

func (*CodespacesItemMachinesGetResponse) Serialize

Serialize serializes information the current object

func (*CodespacesItemMachinesGetResponse) SetAdditionalData

func (m *CodespacesItemMachinesGetResponse) 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 (*CodespacesItemMachinesGetResponse) SetMachines

SetMachines sets the machines property value. The machines property

func (*CodespacesItemMachinesGetResponse) SetTotalCount

func (m *CodespacesItemMachinesGetResponse) SetTotalCount(value *int32)

SetTotalCount sets the total_count property value. The total_count property

type CodespacesItemMachinesRequestBuilder

type CodespacesItemMachinesRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

CodespacesItemMachinesRequestBuilder builds and executes requests for operations under \user\codespaces\{codespace_name}\machines

func NewCodespacesItemMachinesRequestBuilder

NewCodespacesItemMachinesRequestBuilder instantiates a new CodespacesItemMachinesRequestBuilder and sets the default values.

func NewCodespacesItemMachinesRequestBuilderInternal

func NewCodespacesItemMachinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesItemMachinesRequestBuilder

NewCodespacesItemMachinesRequestBuilderInternal instantiates a new CodespacesItemMachinesRequestBuilder and sets the default values.

func (*CodespacesItemMachinesRequestBuilder) Get

Get list the machine types a codespace can transition to use.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a CodespacesItemMachinesGetResponseable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesItemMachinesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation list the machine types a codespace can transition to use.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesItemMachinesRequestBuilder) WithUrl

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

type CodespacesItemMachinesResponse

type CodespacesItemMachinesResponse struct {
	CodespacesItemMachinesGetResponse
}

CodespacesItemMachinesResponse Deprecated: This class is obsolete. Use machinesGetResponse instead.

func NewCodespacesItemMachinesResponse

func NewCodespacesItemMachinesResponse() *CodespacesItemMachinesResponse

NewCodespacesItemMachinesResponse instantiates a new CodespacesItemMachinesResponse and sets the default values.

type CodespacesItemMachinesResponseable

CodespacesItemMachinesResponseable Deprecated: This class is obsolete. Use machinesGetResponse instead.

type CodespacesItemPublishPostRequestBody

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

func NewCodespacesItemPublishPostRequestBody

func NewCodespacesItemPublishPostRequestBody() *CodespacesItemPublishPostRequestBody

NewCodespacesItemPublishPostRequestBody instantiates a new CodespacesItemPublishPostRequestBody and sets the default values.

func (*CodespacesItemPublishPostRequestBody) GetAdditionalData

func (m *CodespacesItemPublishPostRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesItemPublishPostRequestBody) GetFieldDeserializers

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

func (*CodespacesItemPublishPostRequestBody) GetName

GetName gets the name property value. A name for the new repository. returns a *string when successful

func (*CodespacesItemPublishPostRequestBody) GetPrivate

func (m *CodespacesItemPublishPostRequestBody) GetPrivate() *bool

GetPrivate gets the private property value. Whether the new repository should be private. returns a *bool when successful

func (*CodespacesItemPublishPostRequestBody) Serialize

Serialize serializes information the current object

func (*CodespacesItemPublishPostRequestBody) SetAdditionalData

func (m *CodespacesItemPublishPostRequestBody) 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 (*CodespacesItemPublishPostRequestBody) SetName

func (m *CodespacesItemPublishPostRequestBody) SetName(value *string)

SetName sets the name property value. A name for the new repository.

func (*CodespacesItemPublishPostRequestBody) SetPrivate

func (m *CodespacesItemPublishPostRequestBody) SetPrivate(value *bool)

SetPrivate sets the private property value. Whether the new repository should be private.

type CodespacesItemPublishRequestBuilder

CodespacesItemPublishRequestBuilder builds and executes requests for operations under \user\codespaces\{codespace_name}\publish

func NewCodespacesItemPublishRequestBuilder

NewCodespacesItemPublishRequestBuilder instantiates a new CodespacesItemPublishRequestBuilder and sets the default values.

func NewCodespacesItemPublishRequestBuilderInternal

func NewCodespacesItemPublishRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesItemPublishRequestBuilder

NewCodespacesItemPublishRequestBuilderInternal instantiates a new CodespacesItemPublishRequestBuilder and sets the default values.

func (*CodespacesItemPublishRequestBuilder) Post

Post publishes an unpublished codespace, creating a new repository and assigning it to the codespace.The codespace's token is granted write permissions to the repository, allowing the user to push their changes.This will fail for a codespace that is already published, meaning it has an associated repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a CodespaceWithFullRepositoryable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*CodespacesItemPublishRequestBuilder) ToPostRequestInformation

ToPostRequestInformation publishes an unpublished codespace, creating a new repository and assigning it to the codespace.The codespace's token is granted write permissions to the repository, allowing the user to push their changes.This will fail for a codespace that is already published, meaning it has an associated repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesItemPublishRequestBuilder) WithUrl

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

type CodespacesItemStartRequestBuilder

CodespacesItemStartRequestBuilder builds and executes requests for operations under \user\codespaces\{codespace_name}\start

func NewCodespacesItemStartRequestBuilder

NewCodespacesItemStartRequestBuilder instantiates a new CodespacesItemStartRequestBuilder and sets the default values.

func NewCodespacesItemStartRequestBuilderInternal

func NewCodespacesItemStartRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesItemStartRequestBuilder

NewCodespacesItemStartRequestBuilderInternal instantiates a new CodespacesItemStartRequestBuilder and sets the default values.

func (*CodespacesItemStartRequestBuilder) Post

Post starts a user's codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a Codespaceable when successful returns a BasicError error when the service returns a 400 status code returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 402 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 409 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesItemStartRequestBuilder) ToPostRequestInformation

ToPostRequestInformation starts a user's codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesItemStartRequestBuilder) WithUrl

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

type CodespacesItemStopRequestBuilder

CodespacesItemStopRequestBuilder builds and executes requests for operations under \user\codespaces\{codespace_name}\stop

func NewCodespacesItemStopRequestBuilder

NewCodespacesItemStopRequestBuilder instantiates a new CodespacesItemStopRequestBuilder and sets the default values.

func NewCodespacesItemStopRequestBuilderInternal

func NewCodespacesItemStopRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesItemStopRequestBuilder

NewCodespacesItemStopRequestBuilderInternal instantiates a new CodespacesItemStopRequestBuilder and sets the default values.

func (*CodespacesItemStopRequestBuilder) Post

Post stops a user's codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a Codespaceable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesItemStopRequestBuilder) ToPostRequestInformation

ToPostRequestInformation stops a user's codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesItemStopRequestBuilder) WithUrl

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

type CodespacesItemWithCodespace_nameDeleteResponse

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

func NewCodespacesItemWithCodespace_nameDeleteResponse

func NewCodespacesItemWithCodespace_nameDeleteResponse() *CodespacesItemWithCodespace_nameDeleteResponse

NewCodespacesItemWithCodespace_nameDeleteResponse instantiates a new CodespacesItemWithCodespace_nameDeleteResponse and sets the default values.

func (*CodespacesItemWithCodespace_nameDeleteResponse) GetAdditionalData

func (m *CodespacesItemWithCodespace_nameDeleteResponse) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesItemWithCodespace_nameDeleteResponse) GetFieldDeserializers

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

func (*CodespacesItemWithCodespace_nameDeleteResponse) Serialize

Serialize serializes information the current object

func (*CodespacesItemWithCodespace_nameDeleteResponse) SetAdditionalData

func (m *CodespacesItemWithCodespace_nameDeleteResponse) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type CodespacesItemWithCodespace_namePatchRequestBody

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

func NewCodespacesItemWithCodespace_namePatchRequestBody

func NewCodespacesItemWithCodespace_namePatchRequestBody() *CodespacesItemWithCodespace_namePatchRequestBody

NewCodespacesItemWithCodespace_namePatchRequestBody instantiates a new CodespacesItemWithCodespace_namePatchRequestBody and sets the default values.

func (*CodespacesItemWithCodespace_namePatchRequestBody) GetAdditionalData

func (m *CodespacesItemWithCodespace_namePatchRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesItemWithCodespace_namePatchRequestBody) GetDisplayName

GetDisplayName gets the display_name property value. Display name for this codespace returns a *string when successful

func (*CodespacesItemWithCodespace_namePatchRequestBody) GetFieldDeserializers

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

func (*CodespacesItemWithCodespace_namePatchRequestBody) GetMachine

GetMachine gets the machine property value. A valid machine to transition this codespace to. returns a *string when successful

func (*CodespacesItemWithCodespace_namePatchRequestBody) GetRecentFolders

GetRecentFolders gets the recent_folders property value. Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in. returns a []string when successful

func (*CodespacesItemWithCodespace_namePatchRequestBody) Serialize

Serialize serializes information the current object

func (*CodespacesItemWithCodespace_namePatchRequestBody) SetAdditionalData

func (m *CodespacesItemWithCodespace_namePatchRequestBody) 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 (*CodespacesItemWithCodespace_namePatchRequestBody) SetDisplayName

func (m *CodespacesItemWithCodespace_namePatchRequestBody) SetDisplayName(value *string)

SetDisplayName sets the display_name property value. Display name for this codespace

func (*CodespacesItemWithCodespace_namePatchRequestBody) SetMachine

SetMachine sets the machine property value. A valid machine to transition this codespace to.

func (*CodespacesItemWithCodespace_namePatchRequestBody) SetRecentFolders

func (m *CodespacesItemWithCodespace_namePatchRequestBody) SetRecentFolders(value []string)

SetRecentFolders sets the recent_folders property value. Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.

type CodespacesItemWithCodespace_namePatchRequestBodyable

type CodespacesItemWithCodespace_namePatchRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetDisplayName() *string
	GetMachine() *string
	GetRecentFolders() []string
	SetDisplayName(value *string)
	SetMachine(value *string)
	SetRecentFolders(value []string)
}

type CodespacesItemWithCodespace_nameResponse

type CodespacesItemWithCodespace_nameResponse struct {
	CodespacesItemWithCodespace_nameDeleteResponse
}

CodespacesItemWithCodespace_nameResponse Deprecated: This class is obsolete. Use WithCodespace_nameDeleteResponse instead.

func NewCodespacesItemWithCodespace_nameResponse

func NewCodespacesItemWithCodespace_nameResponse() *CodespacesItemWithCodespace_nameResponse

NewCodespacesItemWithCodespace_nameResponse instantiates a new CodespacesItemWithCodespace_nameResponse and sets the default values.

type CodespacesItemWithCodespace_nameResponseable

CodespacesItemWithCodespace_nameResponseable Deprecated: This class is obsolete. Use WithCodespace_nameDeleteResponse instead.

type CodespacesPostRequestBody

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

CodespacesPostRequestBody composed type wrapper for classes CodespacesPostRequestBodyMember1able, CodespacesPostRequestBodyMember2able

func NewCodespacesPostRequestBody

func NewCodespacesPostRequestBody() *CodespacesPostRequestBody

NewCodespacesPostRequestBody instantiates a new CodespacesPostRequestBody and sets the default values.

func (*CodespacesPostRequestBody) GetCodespacesPostRequestBodyCodespacesPostRequestBodyMember1

func (m *CodespacesPostRequestBody) GetCodespacesPostRequestBodyCodespacesPostRequestBodyMember1() CodespacesPostRequestBodyMember1able

GetCodespacesPostRequestBodyCodespacesPostRequestBodyMember1 gets the CodespacesPostRequestBodyMember1 property value. Composed type representation for type CodespacesPostRequestBodyMember1able returns a CodespacesPostRequestBodyMember1able when successful

func (*CodespacesPostRequestBody) GetCodespacesPostRequestBodyCodespacesPostRequestBodyMember2

func (m *CodespacesPostRequestBody) GetCodespacesPostRequestBodyCodespacesPostRequestBodyMember2() CodespacesPostRequestBodyMember2able

GetCodespacesPostRequestBodyCodespacesPostRequestBodyMember2 gets the CodespacesPostRequestBodyMember2 property value. Composed type representation for type CodespacesPostRequestBodyMember2able returns a CodespacesPostRequestBodyMember2able when successful

func (*CodespacesPostRequestBody) GetCodespacesPostRequestBodyMember1

func (m *CodespacesPostRequestBody) GetCodespacesPostRequestBodyMember1() CodespacesPostRequestBodyMember1able

GetCodespacesPostRequestBodyMember1 gets the CodespacesPostRequestBodyMember1 property value. Composed type representation for type CodespacesPostRequestBodyMember1able returns a CodespacesPostRequestBodyMember1able when successful

func (*CodespacesPostRequestBody) GetCodespacesPostRequestBodyMember2

func (m *CodespacesPostRequestBody) GetCodespacesPostRequestBodyMember2() CodespacesPostRequestBodyMember2able

GetCodespacesPostRequestBodyMember2 gets the CodespacesPostRequestBodyMember2 property value. Composed type representation for type CodespacesPostRequestBodyMember2able returns a CodespacesPostRequestBodyMember2able when successful

func (*CodespacesPostRequestBody) GetFieldDeserializers

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

func (*CodespacesPostRequestBody) GetIsComposedType

func (m *CodespacesPostRequestBody) GetIsComposedType() bool

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

func (*CodespacesPostRequestBody) Serialize

Serialize serializes information the current object

func (*CodespacesPostRequestBody) SetCodespacesPostRequestBodyCodespacesPostRequestBodyMember1

func (m *CodespacesPostRequestBody) SetCodespacesPostRequestBodyCodespacesPostRequestBodyMember1(value CodespacesPostRequestBodyMember1able)

SetCodespacesPostRequestBodyCodespacesPostRequestBodyMember1 sets the CodespacesPostRequestBodyMember1 property value. Composed type representation for type CodespacesPostRequestBodyMember1able

func (*CodespacesPostRequestBody) SetCodespacesPostRequestBodyCodespacesPostRequestBodyMember2

func (m *CodespacesPostRequestBody) SetCodespacesPostRequestBodyCodespacesPostRequestBodyMember2(value CodespacesPostRequestBodyMember2able)

SetCodespacesPostRequestBodyCodespacesPostRequestBodyMember2 sets the CodespacesPostRequestBodyMember2 property value. Composed type representation for type CodespacesPostRequestBodyMember2able

func (*CodespacesPostRequestBody) SetCodespacesPostRequestBodyMember1

func (m *CodespacesPostRequestBody) SetCodespacesPostRequestBodyMember1(value CodespacesPostRequestBodyMember1able)

SetCodespacesPostRequestBodyMember1 sets the CodespacesPostRequestBodyMember1 property value. Composed type representation for type CodespacesPostRequestBodyMember1able

func (*CodespacesPostRequestBody) SetCodespacesPostRequestBodyMember2

func (m *CodespacesPostRequestBody) SetCodespacesPostRequestBodyMember2(value CodespacesPostRequestBodyMember2able)

SetCodespacesPostRequestBodyMember2 sets the CodespacesPostRequestBodyMember2 property value. Composed type representation for type CodespacesPostRequestBodyMember2able

type CodespacesPostRequestBodyMember1

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

func NewCodespacesPostRequestBodyMember1

func NewCodespacesPostRequestBodyMember1() *CodespacesPostRequestBodyMember1

NewCodespacesPostRequestBodyMember1 instantiates a new CodespacesPostRequestBodyMember1 and sets the default values.

func (*CodespacesPostRequestBodyMember1) GetAdditionalData

func (m *CodespacesPostRequestBodyMember1) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesPostRequestBodyMember1) GetClientIp

func (m *CodespacesPostRequestBodyMember1) GetClientIp() *string

GetClientIp gets the client_ip property value. IP for location auto-detection when proxying a request returns a *string when successful

func (*CodespacesPostRequestBodyMember1) GetDevcontainerPath

func (m *CodespacesPostRequestBodyMember1) GetDevcontainerPath() *string

GetDevcontainerPath gets the devcontainer_path property value. Path to devcontainer.json config to use for this codespace returns a *string when successful

func (*CodespacesPostRequestBodyMember1) GetDisplayName

func (m *CodespacesPostRequestBodyMember1) GetDisplayName() *string

GetDisplayName gets the display_name property value. Display name for this codespace returns a *string when successful

func (*CodespacesPostRequestBodyMember1) GetFieldDeserializers

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

func (*CodespacesPostRequestBodyMember1) GetIdleTimeoutMinutes

func (m *CodespacesPostRequestBodyMember1) GetIdleTimeoutMinutes() *int32

GetIdleTimeoutMinutes gets the idle_timeout_minutes property value. Time in minutes before codespace stops from inactivity returns a *int32 when successful

func (*CodespacesPostRequestBodyMember1) GetLocation

func (m *CodespacesPostRequestBodyMember1) GetLocation() *string

GetLocation gets the location property value. The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. returns a *string when successful

func (*CodespacesPostRequestBodyMember1) GetMachine

func (m *CodespacesPostRequestBodyMember1) GetMachine() *string

GetMachine gets the machine property value. Machine type to use for this codespace returns a *string when successful

func (*CodespacesPostRequestBodyMember1) GetMultiRepoPermissionsOptOut

func (m *CodespacesPostRequestBodyMember1) GetMultiRepoPermissionsOptOut() *bool

GetMultiRepoPermissionsOptOut gets the multi_repo_permissions_opt_out property value. Whether to authorize requested permissions from devcontainer.json returns a *bool when successful

func (*CodespacesPostRequestBodyMember1) GetRef

GetRef gets the ref property value. Git ref (typically a branch name) for this codespace returns a *string when successful

func (*CodespacesPostRequestBodyMember1) GetRepositoryId

func (m *CodespacesPostRequestBodyMember1) GetRepositoryId() *int32

GetRepositoryId gets the repository_id property value. Repository id for this codespace returns a *int32 when successful

func (*CodespacesPostRequestBodyMember1) GetRetentionPeriodMinutes

func (m *CodespacesPostRequestBodyMember1) GetRetentionPeriodMinutes() *int32

GetRetentionPeriodMinutes gets the retention_period_minutes property value. Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). returns a *int32 when successful

func (*CodespacesPostRequestBodyMember1) GetWorkingDirectory

func (m *CodespacesPostRequestBodyMember1) GetWorkingDirectory() *string

GetWorkingDirectory gets the working_directory property value. Working directory for this codespace returns a *string when successful

func (*CodespacesPostRequestBodyMember1) Serialize

Serialize serializes information the current object

func (*CodespacesPostRequestBodyMember1) SetAdditionalData

func (m *CodespacesPostRequestBodyMember1) 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 (*CodespacesPostRequestBodyMember1) SetClientIp

func (m *CodespacesPostRequestBodyMember1) SetClientIp(value *string)

SetClientIp sets the client_ip property value. IP for location auto-detection when proxying a request

func (*CodespacesPostRequestBodyMember1) SetDevcontainerPath

func (m *CodespacesPostRequestBodyMember1) SetDevcontainerPath(value *string)

SetDevcontainerPath sets the devcontainer_path property value. Path to devcontainer.json config to use for this codespace

func (*CodespacesPostRequestBodyMember1) SetDisplayName

func (m *CodespacesPostRequestBodyMember1) SetDisplayName(value *string)

SetDisplayName sets the display_name property value. Display name for this codespace

func (*CodespacesPostRequestBodyMember1) SetIdleTimeoutMinutes

func (m *CodespacesPostRequestBodyMember1) SetIdleTimeoutMinutes(value *int32)

SetIdleTimeoutMinutes sets the idle_timeout_minutes property value. Time in minutes before codespace stops from inactivity

func (*CodespacesPostRequestBodyMember1) SetLocation

func (m *CodespacesPostRequestBodyMember1) SetLocation(value *string)

SetLocation sets the location property value. The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.

func (*CodespacesPostRequestBodyMember1) SetMachine

func (m *CodespacesPostRequestBodyMember1) SetMachine(value *string)

SetMachine sets the machine property value. Machine type to use for this codespace

func (*CodespacesPostRequestBodyMember1) SetMultiRepoPermissionsOptOut

func (m *CodespacesPostRequestBodyMember1) SetMultiRepoPermissionsOptOut(value *bool)

SetMultiRepoPermissionsOptOut sets the multi_repo_permissions_opt_out property value. Whether to authorize requested permissions from devcontainer.json

func (*CodespacesPostRequestBodyMember1) SetRef

func (m *CodespacesPostRequestBodyMember1) SetRef(value *string)

SetRef sets the ref property value. Git ref (typically a branch name) for this codespace

func (*CodespacesPostRequestBodyMember1) SetRepositoryId

func (m *CodespacesPostRequestBodyMember1) SetRepositoryId(value *int32)

SetRepositoryId sets the repository_id property value. Repository id for this codespace

func (*CodespacesPostRequestBodyMember1) SetRetentionPeriodMinutes

func (m *CodespacesPostRequestBodyMember1) SetRetentionPeriodMinutes(value *int32)

SetRetentionPeriodMinutes sets the retention_period_minutes property value. Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).

func (*CodespacesPostRequestBodyMember1) SetWorkingDirectory

func (m *CodespacesPostRequestBodyMember1) SetWorkingDirectory(value *string)

SetWorkingDirectory sets the working_directory property value. Working directory for this codespace

type CodespacesPostRequestBodyMember1able

type CodespacesPostRequestBodyMember1able interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetClientIp() *string
	GetDevcontainerPath() *string
	GetDisplayName() *string
	GetIdleTimeoutMinutes() *int32
	GetLocation() *string
	GetMachine() *string
	GetMultiRepoPermissionsOptOut() *bool
	GetRef() *string
	GetRepositoryId() *int32
	GetRetentionPeriodMinutes() *int32
	GetWorkingDirectory() *string
	SetClientIp(value *string)
	SetDevcontainerPath(value *string)
	SetDisplayName(value *string)
	SetIdleTimeoutMinutes(value *int32)
	SetLocation(value *string)
	SetMachine(value *string)
	SetMultiRepoPermissionsOptOut(value *bool)
	SetRef(value *string)
	SetRepositoryId(value *int32)
	SetRetentionPeriodMinutes(value *int32)
	SetWorkingDirectory(value *string)
}

type CodespacesPostRequestBodyMember2

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

func NewCodespacesPostRequestBodyMember2

func NewCodespacesPostRequestBodyMember2() *CodespacesPostRequestBodyMember2

NewCodespacesPostRequestBodyMember2 instantiates a new CodespacesPostRequestBodyMember2 and sets the default values.

func (*CodespacesPostRequestBodyMember2) GetAdditionalData

func (m *CodespacesPostRequestBodyMember2) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesPostRequestBodyMember2) GetDevcontainerPath

func (m *CodespacesPostRequestBodyMember2) GetDevcontainerPath() *string

GetDevcontainerPath gets the devcontainer_path property value. Path to devcontainer.json config to use for this codespace returns a *string when successful

func (*CodespacesPostRequestBodyMember2) GetFieldDeserializers

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

func (*CodespacesPostRequestBodyMember2) GetIdleTimeoutMinutes

func (m *CodespacesPostRequestBodyMember2) GetIdleTimeoutMinutes() *int32

GetIdleTimeoutMinutes gets the idle_timeout_minutes property value. Time in minutes before codespace stops from inactivity returns a *int32 when successful

func (*CodespacesPostRequestBodyMember2) GetLocation

func (m *CodespacesPostRequestBodyMember2) GetLocation() *string

GetLocation gets the location property value. The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. returns a *string when successful

func (*CodespacesPostRequestBodyMember2) GetMachine

func (m *CodespacesPostRequestBodyMember2) GetMachine() *string

GetMachine gets the machine property value. Machine type to use for this codespace returns a *string when successful

func (*CodespacesPostRequestBodyMember2) GetPullRequest

GetPullRequest gets the pull_request property value. Pull request number for this codespace returns a CodespacesPostRequestBodyMember2_pull_requestable when successful

func (*CodespacesPostRequestBodyMember2) GetWorkingDirectory

func (m *CodespacesPostRequestBodyMember2) GetWorkingDirectory() *string

GetWorkingDirectory gets the working_directory property value. Working directory for this codespace returns a *string when successful

func (*CodespacesPostRequestBodyMember2) Serialize

Serialize serializes information the current object

func (*CodespacesPostRequestBodyMember2) SetAdditionalData

func (m *CodespacesPostRequestBodyMember2) 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 (*CodespacesPostRequestBodyMember2) SetDevcontainerPath

func (m *CodespacesPostRequestBodyMember2) SetDevcontainerPath(value *string)

SetDevcontainerPath sets the devcontainer_path property value. Path to devcontainer.json config to use for this codespace

func (*CodespacesPostRequestBodyMember2) SetIdleTimeoutMinutes

func (m *CodespacesPostRequestBodyMember2) SetIdleTimeoutMinutes(value *int32)

SetIdleTimeoutMinutes sets the idle_timeout_minutes property value. Time in minutes before codespace stops from inactivity

func (*CodespacesPostRequestBodyMember2) SetLocation

func (m *CodespacesPostRequestBodyMember2) SetLocation(value *string)

SetLocation sets the location property value. The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.

func (*CodespacesPostRequestBodyMember2) SetMachine

func (m *CodespacesPostRequestBodyMember2) SetMachine(value *string)

SetMachine sets the machine property value. Machine type to use for this codespace

func (*CodespacesPostRequestBodyMember2) SetPullRequest

SetPullRequest sets the pull_request property value. Pull request number for this codespace

func (*CodespacesPostRequestBodyMember2) SetWorkingDirectory

func (m *CodespacesPostRequestBodyMember2) SetWorkingDirectory(value *string)

SetWorkingDirectory sets the working_directory property value. Working directory for this codespace

type CodespacesPostRequestBodyMember2_pull_request

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

CodespacesPostRequestBodyMember2_pull_request pull request number for this codespace

func NewCodespacesPostRequestBodyMember2_pull_request

func NewCodespacesPostRequestBodyMember2_pull_request() *CodespacesPostRequestBodyMember2_pull_request

NewCodespacesPostRequestBodyMember2_pull_request instantiates a new CodespacesPostRequestBodyMember2_pull_request and sets the default values.

func (*CodespacesPostRequestBodyMember2_pull_request) GetAdditionalData

func (m *CodespacesPostRequestBodyMember2_pull_request) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesPostRequestBodyMember2_pull_request) GetFieldDeserializers

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

func (*CodespacesPostRequestBodyMember2_pull_request) GetPullRequestNumber

func (m *CodespacesPostRequestBodyMember2_pull_request) GetPullRequestNumber() *int32

GetPullRequestNumber gets the pull_request_number property value. Pull request number returns a *int32 when successful

func (*CodespacesPostRequestBodyMember2_pull_request) GetRepositoryId

GetRepositoryId gets the repository_id property value. Repository id for this codespace returns a *int32 when successful

func (*CodespacesPostRequestBodyMember2_pull_request) Serialize

Serialize serializes information the current object

func (*CodespacesPostRequestBodyMember2_pull_request) SetAdditionalData

func (m *CodespacesPostRequestBodyMember2_pull_request) 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 (*CodespacesPostRequestBodyMember2_pull_request) SetPullRequestNumber

func (m *CodespacesPostRequestBodyMember2_pull_request) SetPullRequestNumber(value *int32)

SetPullRequestNumber sets the pull_request_number property value. Pull request number

func (*CodespacesPostRequestBodyMember2_pull_request) SetRepositoryId

func (m *CodespacesPostRequestBodyMember2_pull_request) SetRepositoryId(value *int32)

SetRepositoryId sets the repository_id property value. Repository id for this codespace

type CodespacesPostRequestBodyMember2_pull_requestable

type CodespacesPostRequestBodyMember2_pull_requestable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetPullRequestNumber() *int32
	GetRepositoryId() *int32
	SetPullRequestNumber(value *int32)
	SetRepositoryId(value *int32)
}

type CodespacesPostRequestBodyMember2able

type CodespacesPostRequestBodyMember2able interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetDevcontainerPath() *string
	GetIdleTimeoutMinutes() *int32
	GetLocation() *string
	GetMachine() *string
	GetPullRequest() CodespacesPostRequestBodyMember2_pull_requestable
	GetWorkingDirectory() *string
	SetDevcontainerPath(value *string)
	SetIdleTimeoutMinutes(value *int32)
	SetLocation(value *string)
	SetMachine(value *string)
	SetPullRequest(value CodespacesPostRequestBodyMember2_pull_requestable)
	SetWorkingDirectory(value *string)
}

type CodespacesPostRequestBodyable

type CodespacesPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetCodespacesPostRequestBodyCodespacesPostRequestBodyMember1() CodespacesPostRequestBodyMember1able
	GetCodespacesPostRequestBodyCodespacesPostRequestBodyMember2() CodespacesPostRequestBodyMember2able
	GetCodespacesPostRequestBodyMember1() CodespacesPostRequestBodyMember1able
	GetCodespacesPostRequestBodyMember2() CodespacesPostRequestBodyMember2able
	SetCodespacesPostRequestBodyCodespacesPostRequestBodyMember1(value CodespacesPostRequestBodyMember1able)
	SetCodespacesPostRequestBodyCodespacesPostRequestBodyMember2(value CodespacesPostRequestBodyMember2able)
	SetCodespacesPostRequestBodyMember1(value CodespacesPostRequestBodyMember1able)
	SetCodespacesPostRequestBodyMember2(value CodespacesPostRequestBodyMember2able)
}

type CodespacesRequestBuilder

CodespacesRequestBuilder builds and executes requests for operations under \user\codespaces

func NewCodespacesRequestBuilder

NewCodespacesRequestBuilder instantiates a new CodespacesRequestBuilder and sets the default values.

func NewCodespacesRequestBuilderInternal

func NewCodespacesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesRequestBuilder

NewCodespacesRequestBuilderInternal instantiates a new CodespacesRequestBuilder and sets the default values.

func (*CodespacesRequestBuilder) ByCodespace_name

ByCodespace_name gets an item from the github.com/octokit/go-sdk/pkg/github.user.codespaces.item collection returns a *CodespacesWithCodespace_nameItemRequestBuilder when successful

func (*CodespacesRequestBuilder) Get

Get lists the authenticated user's codespaces.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a CodespacesGetResponseable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesRequestBuilder) Post

Post creates a new codespace, owned by the authenticated user.This endpoint requires either a `repository_id` OR a `pull_request` but not both.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a Codespaceable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a Codespace503Error error when the service returns a 503 status code API method documentation

func (*CodespacesRequestBuilder) Secrets

Secrets the secrets property returns a *CodespacesSecretsRequestBuilder when successful

func (*CodespacesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists the authenticated user's codespaces.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesRequestBuilder) ToPostRequestInformation

ToPostRequestInformation creates a new codespace, owned by the authenticated user.This endpoint requires either a `repository_id` OR a `pull_request` but not both.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesRequestBuilder) WithUrl

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

type CodespacesRequestBuilderGetQueryParameters

type CodespacesRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// ID of the Repository to filter on
	Repository_id *int32 `uriparametername:"repository_id"`
}

CodespacesRequestBuilderGetQueryParameters lists the authenticated user's codespaces.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.

type CodespacesResponse

type CodespacesResponse struct {
	CodespacesGetResponse
}

CodespacesResponse Deprecated: This class is obsolete. Use codespacesGetResponse instead.

func NewCodespacesResponse

func NewCodespacesResponse() *CodespacesResponse

NewCodespacesResponse instantiates a new CodespacesResponse and sets the default values.

type CodespacesResponseable

CodespacesResponseable Deprecated: This class is obsolete. Use codespacesGetResponse instead.

type CodespacesSecretsGetResponse

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

func NewCodespacesSecretsGetResponse

func NewCodespacesSecretsGetResponse() *CodespacesSecretsGetResponse

NewCodespacesSecretsGetResponse instantiates a new CodespacesSecretsGetResponse and sets the default values.

func (*CodespacesSecretsGetResponse) GetAdditionalData

func (m *CodespacesSecretsGetResponse) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesSecretsGetResponse) GetFieldDeserializers

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

func (*CodespacesSecretsGetResponse) GetSecrets

GetSecrets gets the secrets property value. The secrets property returns a []CodespacesSecretable when successful

func (*CodespacesSecretsGetResponse) GetTotalCount

func (m *CodespacesSecretsGetResponse) GetTotalCount() *int32

GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful

func (*CodespacesSecretsGetResponse) Serialize

Serialize serializes information the current object

func (*CodespacesSecretsGetResponse) SetAdditionalData

func (m *CodespacesSecretsGetResponse) 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 (*CodespacesSecretsGetResponse) SetSecrets

SetSecrets sets the secrets property value. The secrets property

func (*CodespacesSecretsGetResponse) SetTotalCount

func (m *CodespacesSecretsGetResponse) SetTotalCount(value *int32)

SetTotalCount sets the total_count property value. The total_count property

type CodespacesSecretsItemRepositoriesGetResponse

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

func NewCodespacesSecretsItemRepositoriesGetResponse

func NewCodespacesSecretsItemRepositoriesGetResponse() *CodespacesSecretsItemRepositoriesGetResponse

NewCodespacesSecretsItemRepositoriesGetResponse instantiates a new CodespacesSecretsItemRepositoriesGetResponse and sets the default values.

func (*CodespacesSecretsItemRepositoriesGetResponse) GetAdditionalData

func (m *CodespacesSecretsItemRepositoriesGetResponse) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesSecretsItemRepositoriesGetResponse) GetFieldDeserializers

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

func (*CodespacesSecretsItemRepositoriesGetResponse) GetRepositories

GetRepositories gets the repositories property value. The repositories property returns a []MinimalRepositoryable when successful

func (*CodespacesSecretsItemRepositoriesGetResponse) GetTotalCount

GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful

func (*CodespacesSecretsItemRepositoriesGetResponse) Serialize

Serialize serializes information the current object

func (*CodespacesSecretsItemRepositoriesGetResponse) SetAdditionalData

func (m *CodespacesSecretsItemRepositoriesGetResponse) 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 (*CodespacesSecretsItemRepositoriesGetResponse) SetRepositories

SetRepositories sets the repositories property value. The repositories property

func (*CodespacesSecretsItemRepositoriesGetResponse) SetTotalCount

func (m *CodespacesSecretsItemRepositoriesGetResponse) SetTotalCount(value *int32)

SetTotalCount sets the total_count property value. The total_count property

type CodespacesSecretsItemRepositoriesPutRequestBody

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

func NewCodespacesSecretsItemRepositoriesPutRequestBody

func NewCodespacesSecretsItemRepositoriesPutRequestBody() *CodespacesSecretsItemRepositoriesPutRequestBody

NewCodespacesSecretsItemRepositoriesPutRequestBody instantiates a new CodespacesSecretsItemRepositoriesPutRequestBody and sets the default values.

func (*CodespacesSecretsItemRepositoriesPutRequestBody) GetAdditionalData

func (m *CodespacesSecretsItemRepositoriesPutRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesSecretsItemRepositoriesPutRequestBody) GetFieldDeserializers

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

func (*CodespacesSecretsItemRepositoriesPutRequestBody) GetSelectedRepositoryIds

func (m *CodespacesSecretsItemRepositoriesPutRequestBody) GetSelectedRepositoryIds() []int32

GetSelectedRepositoryIds gets the selected_repository_ids property value. An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. returns a []int32 when successful

func (*CodespacesSecretsItemRepositoriesPutRequestBody) Serialize

Serialize serializes information the current object

func (*CodespacesSecretsItemRepositoriesPutRequestBody) SetAdditionalData

func (m *CodespacesSecretsItemRepositoriesPutRequestBody) 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 (*CodespacesSecretsItemRepositoriesPutRequestBody) SetSelectedRepositoryIds

func (m *CodespacesSecretsItemRepositoriesPutRequestBody) SetSelectedRepositoryIds(value []int32)

SetSelectedRepositoryIds sets the selected_repository_ids property value. An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.

type CodespacesSecretsItemRepositoriesPutRequestBodyable

type CodespacesSecretsItemRepositoriesPutRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetSelectedRepositoryIds() []int32
	SetSelectedRepositoryIds(value []int32)
}

type CodespacesSecretsItemRepositoriesRequestBuilder

type CodespacesSecretsItemRepositoriesRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

CodespacesSecretsItemRepositoriesRequestBuilder builds and executes requests for operations under \user\codespaces\secrets\{secret_name}\repositories

func NewCodespacesSecretsItemRepositoriesRequestBuilder

NewCodespacesSecretsItemRepositoriesRequestBuilder instantiates a new CodespacesSecretsItemRepositoriesRequestBuilder and sets the default values.

func NewCodespacesSecretsItemRepositoriesRequestBuilderInternal

func NewCodespacesSecretsItemRepositoriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesSecretsItemRepositoriesRequestBuilder

NewCodespacesSecretsItemRepositoriesRequestBuilderInternal instantiates a new CodespacesSecretsItemRepositoriesRequestBuilder and sets the default values.

func (*CodespacesSecretsItemRepositoriesRequestBuilder) ByRepository_id

ByRepository_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.codespaces.secrets.item.repositories.item collection returns a *CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder when successful

func (*CodespacesSecretsItemRepositoriesRequestBuilder) Get

Get list the repositories that have been granted the ability to use a user's development environment secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a CodespacesSecretsItemRepositoriesGetResponseable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesSecretsItemRepositoriesRequestBuilder) Put

Put select the repositories that will use a user's development environment secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesSecretsItemRepositoriesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation list the repositories that have been granted the ability to use a user's development environment secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesSecretsItemRepositoriesRequestBuilder) ToPutRequestInformation

ToPutRequestInformation select the repositories that will use a user's development environment secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesSecretsItemRepositoriesRequestBuilder) WithUrl

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

type CodespacesSecretsItemRepositoriesResponse

type CodespacesSecretsItemRepositoriesResponse struct {
	CodespacesSecretsItemRepositoriesGetResponse
}

CodespacesSecretsItemRepositoriesResponse Deprecated: This class is obsolete. Use repositoriesGetResponse instead.

func NewCodespacesSecretsItemRepositoriesResponse

func NewCodespacesSecretsItemRepositoriesResponse() *CodespacesSecretsItemRepositoriesResponse

NewCodespacesSecretsItemRepositoriesResponse instantiates a new CodespacesSecretsItemRepositoriesResponse and sets the default values.

type CodespacesSecretsItemRepositoriesResponseable

CodespacesSecretsItemRepositoriesResponseable Deprecated: This class is obsolete. Use repositoriesGetResponse instead.

type CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder

type CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder builds and executes requests for operations under \user\codespaces\secrets\{secret_name}\repositories\{repository_id}

func NewCodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder

func NewCodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder

NewCodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder instantiates a new CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder and sets the default values.

func NewCodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilderInternal

func NewCodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder

NewCodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilderInternal instantiates a new CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder and sets the default values.

func (*CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder) Delete

Delete removes a repository from the selected repositories for a user's development environment secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder) Put

Put adds a repository to the selected repositories for a user's development environment secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation removes a repository from the selected repositories for a user's development environment secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation adds a repository to the selected repositories for a user's development environment secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesSecretsItemRepositoriesWithRepository_ItemRequestBuilder) WithUrl

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

type CodespacesSecretsItemWithSecret_namePutRequestBody

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

func NewCodespacesSecretsItemWithSecret_namePutRequestBody

func NewCodespacesSecretsItemWithSecret_namePutRequestBody() *CodespacesSecretsItemWithSecret_namePutRequestBody

NewCodespacesSecretsItemWithSecret_namePutRequestBody instantiates a new CodespacesSecretsItemWithSecret_namePutRequestBody and sets the default values.

func (*CodespacesSecretsItemWithSecret_namePutRequestBody) GetAdditionalData

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*CodespacesSecretsItemWithSecret_namePutRequestBody) GetEncryptedValue

GetEncryptedValue gets the encrypted_value property value. Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint. returns a *string when successful

func (*CodespacesSecretsItemWithSecret_namePutRequestBody) GetFieldDeserializers

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

func (*CodespacesSecretsItemWithSecret_namePutRequestBody) GetKeyId

GetKeyId gets the key_id property value. ID of the key you used to encrypt the secret. returns a *string when successful

func (*CodespacesSecretsItemWithSecret_namePutRequestBody) GetSelectedRepositoryIds

func (m *CodespacesSecretsItemWithSecret_namePutRequestBody) GetSelectedRepositoryIds() []int32

GetSelectedRepositoryIds gets the selected_repository_ids property value. An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints. returns a []int32 when successful

func (*CodespacesSecretsItemWithSecret_namePutRequestBody) Serialize

Serialize serializes information the current object

func (*CodespacesSecretsItemWithSecret_namePutRequestBody) SetAdditionalData

func (m *CodespacesSecretsItemWithSecret_namePutRequestBody) 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 (*CodespacesSecretsItemWithSecret_namePutRequestBody) SetEncryptedValue

func (m *CodespacesSecretsItemWithSecret_namePutRequestBody) SetEncryptedValue(value *string)

SetEncryptedValue sets the encrypted_value property value. Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.

func (*CodespacesSecretsItemWithSecret_namePutRequestBody) SetKeyId

SetKeyId sets the key_id property value. ID of the key you used to encrypt the secret.

func (*CodespacesSecretsItemWithSecret_namePutRequestBody) SetSelectedRepositoryIds

func (m *CodespacesSecretsItemWithSecret_namePutRequestBody) SetSelectedRepositoryIds(value []int32)

SetSelectedRepositoryIds sets the selected_repository_ids property value. An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.

type CodespacesSecretsItemWithSecret_namePutRequestBodyable

type CodespacesSecretsItemWithSecret_namePutRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetEncryptedValue() *string
	GetKeyId() *string
	GetSelectedRepositoryIds() []int32
	SetEncryptedValue(value *string)
	SetKeyId(value *string)
	SetSelectedRepositoryIds(value []int32)
}

type CodespacesSecretsPublicKeyRequestBuilder

type CodespacesSecretsPublicKeyRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

CodespacesSecretsPublicKeyRequestBuilder builds and executes requests for operations under \user\codespaces\secrets\public-key

func NewCodespacesSecretsPublicKeyRequestBuilder

NewCodespacesSecretsPublicKeyRequestBuilder instantiates a new CodespacesSecretsPublicKeyRequestBuilder and sets the default values.

func NewCodespacesSecretsPublicKeyRequestBuilderInternal

func NewCodespacesSecretsPublicKeyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesSecretsPublicKeyRequestBuilder

NewCodespacesSecretsPublicKeyRequestBuilderInternal instantiates a new CodespacesSecretsPublicKeyRequestBuilder and sets the default values.

func (*CodespacesSecretsPublicKeyRequestBuilder) Get

Get gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a CodespacesUserPublicKeyable when successful API method documentation

func (*CodespacesSecretsPublicKeyRequestBuilder) ToGetRequestInformation

ToGetRequestInformation gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesSecretsPublicKeyRequestBuilder) WithUrl

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

type CodespacesSecretsRequestBuilder

CodespacesSecretsRequestBuilder builds and executes requests for operations under \user\codespaces\secrets

func NewCodespacesSecretsRequestBuilder

NewCodespacesSecretsRequestBuilder instantiates a new CodespacesSecretsRequestBuilder and sets the default values.

func NewCodespacesSecretsRequestBuilderInternal

func NewCodespacesSecretsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesSecretsRequestBuilder

NewCodespacesSecretsRequestBuilderInternal instantiates a new CodespacesSecretsRequestBuilder and sets the default values.

func (*CodespacesSecretsRequestBuilder) BySecret_name

BySecret_name gets an item from the github.com/octokit/go-sdk/pkg/github.user.codespaces.secrets.item collection returns a *CodespacesSecretsWithSecret_nameItemRequestBuilder when successful

func (*CodespacesSecretsRequestBuilder) Get

Get lists all development environment secrets available for a user's codespaces without revealing theirencrypted values.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a CodespacesSecretsGetResponseable when successful API method documentation

func (*CodespacesSecretsRequestBuilder) PublicKey

PublicKey the publicKey property returns a *CodespacesSecretsPublicKeyRequestBuilder when successful

func (*CodespacesSecretsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all development environment secrets available for a user's codespaces without revealing theirencrypted values.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesSecretsRequestBuilder) WithUrl

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

type CodespacesSecretsRequestBuilderGetQueryParameters

type CodespacesSecretsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

CodespacesSecretsRequestBuilderGetQueryParameters lists all development environment secrets available for a user's codespaces without revealing theirencrypted values.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint.

type CodespacesSecretsResponse

type CodespacesSecretsResponse struct {
	CodespacesSecretsGetResponse
}

CodespacesSecretsResponse Deprecated: This class is obsolete. Use secretsGetResponse instead.

func NewCodespacesSecretsResponse

func NewCodespacesSecretsResponse() *CodespacesSecretsResponse

NewCodespacesSecretsResponse instantiates a new CodespacesSecretsResponse and sets the default values.

type CodespacesSecretsResponseable

CodespacesSecretsResponseable Deprecated: This class is obsolete. Use secretsGetResponse instead.

type CodespacesSecretsWithSecret_nameItemRequestBuilder

type CodespacesSecretsWithSecret_nameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

CodespacesSecretsWithSecret_nameItemRequestBuilder builds and executes requests for operations under \user\codespaces\secrets\{secret_name}

func NewCodespacesSecretsWithSecret_nameItemRequestBuilder

NewCodespacesSecretsWithSecret_nameItemRequestBuilder instantiates a new CodespacesSecretsWithSecret_nameItemRequestBuilder and sets the default values.

func NewCodespacesSecretsWithSecret_nameItemRequestBuilderInternal

func NewCodespacesSecretsWithSecret_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesSecretsWithSecret_nameItemRequestBuilder

NewCodespacesSecretsWithSecret_nameItemRequestBuilderInternal instantiates a new CodespacesSecretsWithSecret_nameItemRequestBuilder and sets the default values.

func (*CodespacesSecretsWithSecret_nameItemRequestBuilder) Delete

Delete deletes a development environment secret from a user's codespaces using the secret name. Deleting the secret will remove access from all codespaces that were allowed to access the secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. API method documentation

func (*CodespacesSecretsWithSecret_nameItemRequestBuilder) Get

Get gets a development environment secret available to a user's codespaces without revealing its encrypted value.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a CodespacesSecretable when successful API method documentation

func (*CodespacesSecretsWithSecret_nameItemRequestBuilder) Put

Put creates or updates a development environment secret for a user's codespace with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a EmptyObjectable when successful returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*CodespacesSecretsWithSecret_nameItemRequestBuilder) Repositories

Repositories the repositories property returns a *CodespacesSecretsItemRepositoriesRequestBuilder when successful

func (*CodespacesSecretsWithSecret_nameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes a development environment secret from a user's codespaces using the secret name. Deleting the secret will remove access from all codespaces that were allowed to access the secret.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesSecretsWithSecret_nameItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation gets a development environment secret available to a user's codespaces without revealing its encrypted value.The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesSecretsWithSecret_nameItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation creates or updates a development environment secret for a user's codespace with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."The authenticated user must have Codespaces access to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `codespace` or `codespace:secrets` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesSecretsWithSecret_nameItemRequestBuilder) WithUrl

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

type CodespacesWithCodespace_nameItemRequestBuilder

type CodespacesWithCodespace_nameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

CodespacesWithCodespace_nameItemRequestBuilder builds and executes requests for operations under \user\codespaces\{codespace_name}

func NewCodespacesWithCodespace_nameItemRequestBuilder

NewCodespacesWithCodespace_nameItemRequestBuilder instantiates a new CodespacesWithCodespace_nameItemRequestBuilder and sets the default values.

func NewCodespacesWithCodespace_nameItemRequestBuilderInternal

func NewCodespacesWithCodespace_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *CodespacesWithCodespace_nameItemRequestBuilder

NewCodespacesWithCodespace_nameItemRequestBuilderInternal instantiates a new CodespacesWithCodespace_nameItemRequestBuilder and sets the default values.

func (*CodespacesWithCodespace_nameItemRequestBuilder) Delete

Delete deletes a user's codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a CodespacesItemWithCodespace_nameDeleteResponseable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesWithCodespace_nameItemRequestBuilder) Exports

Exports the exports property returns a *CodespacesItemExportsRequestBuilder when successful

func (*CodespacesWithCodespace_nameItemRequestBuilder) Get

Get gets information about a user's codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a Codespaceable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 500 status code API method documentation

func (*CodespacesWithCodespace_nameItemRequestBuilder) Machines

Machines the machines property returns a *CodespacesItemMachinesRequestBuilder when successful

func (*CodespacesWithCodespace_nameItemRequestBuilder) Patch

Patch updates a codespace owned by the authenticated user. Currently only the codespace's machine type and recent folders can be modified using this endpoint.If you specify a new machine type it will be applied the next time your codespace is started.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a Codespaceable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*CodespacesWithCodespace_nameItemRequestBuilder) Publish

Publish the publish property returns a *CodespacesItemPublishRequestBuilder when successful

func (*CodespacesWithCodespace_nameItemRequestBuilder) Start

Start the start property returns a *CodespacesItemStartRequestBuilder when successful

func (*CodespacesWithCodespace_nameItemRequestBuilder) Stop

Stop the stop property returns a *CodespacesItemStopRequestBuilder when successful

func (*CodespacesWithCodespace_nameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes a user's codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesWithCodespace_nameItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation gets information about a user's codespace.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesWithCodespace_nameItemRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation updates a codespace owned by the authenticated user. Currently only the codespace's machine type and recent folders can be modified using this endpoint.If you specify a new machine type it will be applied the next time your codespace is started.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. returns a *RequestInformation when successful

func (*CodespacesWithCodespace_nameItemRequestBuilder) WithUrl

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

type DockerConflictsRequestBuilder

DockerConflictsRequestBuilder builds and executes requests for operations under \user\docker\conflicts

func NewDockerConflictsRequestBuilder

NewDockerConflictsRequestBuilder instantiates a new DockerConflictsRequestBuilder and sets the default values.

func NewDockerConflictsRequestBuilderInternal

func NewDockerConflictsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *DockerConflictsRequestBuilder

NewDockerConflictsRequestBuilderInternal instantiates a new DockerConflictsRequestBuilder and sets the default values.

func (*DockerConflictsRequestBuilder) Get

Get lists all packages that are owned by the authenticated user within the user's namespace, and that encountered a conflict during a Docker migration.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. returns a []PackageEscapedable when successful API method documentation

func (*DockerConflictsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all packages that are owned by the authenticated user within the user's namespace, and that encountered a conflict during a Docker migration.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. returns a *RequestInformation when successful

func (*DockerConflictsRequestBuilder) WithUrl

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

type DockerRequestBuilder

DockerRequestBuilder builds and executes requests for operations under \user\docker

func NewDockerRequestBuilder

NewDockerRequestBuilder instantiates a new DockerRequestBuilder and sets the default values.

func NewDockerRequestBuilderInternal

func NewDockerRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *DockerRequestBuilder

NewDockerRequestBuilderInternal instantiates a new DockerRequestBuilder and sets the default values.

func (*DockerRequestBuilder) Conflicts

Conflicts the conflicts property returns a *DockerConflictsRequestBuilder when successful

type EmailRequestBuilder

EmailRequestBuilder builds and executes requests for operations under \user\email

func NewEmailRequestBuilder

NewEmailRequestBuilder instantiates a new EmailRequestBuilder and sets the default values.

func NewEmailRequestBuilderInternal

func NewEmailRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *EmailRequestBuilder

NewEmailRequestBuilderInternal instantiates a new EmailRequestBuilder and sets the default values.

func (*EmailRequestBuilder) Visibility

Visibility the visibility property returns a *EmailVisibilityRequestBuilder when successful

type EmailVisibilityPatchRequestBody

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

func NewEmailVisibilityPatchRequestBody

func NewEmailVisibilityPatchRequestBody() *EmailVisibilityPatchRequestBody

NewEmailVisibilityPatchRequestBody instantiates a new EmailVisibilityPatchRequestBody and sets the default values.

func (*EmailVisibilityPatchRequestBody) GetAdditionalData

func (m *EmailVisibilityPatchRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*EmailVisibilityPatchRequestBody) GetFieldDeserializers

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

func (*EmailVisibilityPatchRequestBody) Serialize

Serialize serializes information the current object

func (*EmailVisibilityPatchRequestBody) SetAdditionalData

func (m *EmailVisibilityPatchRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type EmailVisibilityRequestBuilder

EmailVisibilityRequestBuilder builds and executes requests for operations under \user\email\visibility

func NewEmailVisibilityRequestBuilder

NewEmailVisibilityRequestBuilder instantiates a new EmailVisibilityRequestBuilder and sets the default values.

func NewEmailVisibilityRequestBuilderInternal

func NewEmailVisibilityRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *EmailVisibilityRequestBuilder

NewEmailVisibilityRequestBuilderInternal instantiates a new EmailVisibilityRequestBuilder and sets the default values.

func (*EmailVisibilityRequestBuilder) Patch

Patch sets the visibility for your primary email addresses. returns a []Emailable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*EmailVisibilityRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation sets the visibility for your primary email addresses. returns a *RequestInformation when successful

func (*EmailVisibilityRequestBuilder) WithUrl

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

type EmailsDeleteRequestBody

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

EmailsDeleteRequestBody composed type wrapper for classes EmailsDeleteRequestBodyMember1able, string

func NewEmailsDeleteRequestBody

func NewEmailsDeleteRequestBody() *EmailsDeleteRequestBody

NewEmailsDeleteRequestBody instantiates a new EmailsDeleteRequestBody and sets the default values.

func (*EmailsDeleteRequestBody) GetEmailsDeleteRequestBodyEmailsDeleteRequestBodyMember1

func (m *EmailsDeleteRequestBody) GetEmailsDeleteRequestBodyEmailsDeleteRequestBodyMember1() EmailsDeleteRequestBodyMember1able

GetEmailsDeleteRequestBodyEmailsDeleteRequestBodyMember1 gets the EmailsDeleteRequestBodyMember1 property value. Composed type representation for type EmailsDeleteRequestBodyMember1able returns a EmailsDeleteRequestBodyMember1able when successful

func (*EmailsDeleteRequestBody) GetEmailsDeleteRequestBodyMember1

func (m *EmailsDeleteRequestBody) GetEmailsDeleteRequestBodyMember1() EmailsDeleteRequestBodyMember1able

GetEmailsDeleteRequestBodyMember1 gets the EmailsDeleteRequestBodyMember1 property value. Composed type representation for type EmailsDeleteRequestBodyMember1able returns a EmailsDeleteRequestBodyMember1able when successful

func (*EmailsDeleteRequestBody) GetEmailsDeleteRequestBodyString

func (m *EmailsDeleteRequestBody) GetEmailsDeleteRequestBodyString() *string

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

func (*EmailsDeleteRequestBody) GetFieldDeserializers

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

func (*EmailsDeleteRequestBody) GetIsComposedType

func (m *EmailsDeleteRequestBody) GetIsComposedType() bool

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

func (*EmailsDeleteRequestBody) GetString

func (m *EmailsDeleteRequestBody) GetString() *string

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

func (*EmailsDeleteRequestBody) Serialize

Serialize serializes information the current object

func (*EmailsDeleteRequestBody) SetEmailsDeleteRequestBodyEmailsDeleteRequestBodyMember1

func (m *EmailsDeleteRequestBody) SetEmailsDeleteRequestBodyEmailsDeleteRequestBodyMember1(value EmailsDeleteRequestBodyMember1able)

SetEmailsDeleteRequestBodyEmailsDeleteRequestBodyMember1 sets the EmailsDeleteRequestBodyMember1 property value. Composed type representation for type EmailsDeleteRequestBodyMember1able

func (*EmailsDeleteRequestBody) SetEmailsDeleteRequestBodyMember1

func (m *EmailsDeleteRequestBody) SetEmailsDeleteRequestBodyMember1(value EmailsDeleteRequestBodyMember1able)

SetEmailsDeleteRequestBodyMember1 sets the EmailsDeleteRequestBodyMember1 property value. Composed type representation for type EmailsDeleteRequestBodyMember1able

func (*EmailsDeleteRequestBody) SetEmailsDeleteRequestBodyString

func (m *EmailsDeleteRequestBody) SetEmailsDeleteRequestBodyString(value *string)

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

func (*EmailsDeleteRequestBody) SetString

func (m *EmailsDeleteRequestBody) SetString(value *string)

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

type EmailsDeleteRequestBodyMember1

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

EmailsDeleteRequestBodyMember1 deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.

func NewEmailsDeleteRequestBodyMember1

func NewEmailsDeleteRequestBodyMember1() *EmailsDeleteRequestBodyMember1

NewEmailsDeleteRequestBodyMember1 instantiates a new EmailsDeleteRequestBodyMember1 and sets the default values.

func (*EmailsDeleteRequestBodyMember1) GetAdditionalData

func (m *EmailsDeleteRequestBodyMember1) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*EmailsDeleteRequestBodyMember1) GetEmails

func (m *EmailsDeleteRequestBodyMember1) GetEmails() []string

GetEmails gets the emails property value. Email addresses associated with the GitHub user account. returns a []string when successful

func (*EmailsDeleteRequestBodyMember1) GetFieldDeserializers

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

func (*EmailsDeleteRequestBodyMember1) Serialize

Serialize serializes information the current object

func (*EmailsDeleteRequestBodyMember1) SetAdditionalData

func (m *EmailsDeleteRequestBodyMember1) 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 (*EmailsDeleteRequestBodyMember1) SetEmails

func (m *EmailsDeleteRequestBodyMember1) SetEmails(value []string)

SetEmails sets the emails property value. Email addresses associated with the GitHub user account.

type EmailsDeleteRequestBodyable

type EmailsDeleteRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetEmailsDeleteRequestBodyEmailsDeleteRequestBodyMember1() EmailsDeleteRequestBodyMember1able
	GetEmailsDeleteRequestBodyMember1() EmailsDeleteRequestBodyMember1able
	GetEmailsDeleteRequestBodyString() *string
	GetString() *string
	SetEmailsDeleteRequestBodyEmailsDeleteRequestBodyMember1(value EmailsDeleteRequestBodyMember1able)
	SetEmailsDeleteRequestBodyMember1(value EmailsDeleteRequestBodyMember1able)
	SetEmailsDeleteRequestBodyString(value *string)
	SetString(value *string)
}

type EmailsPostRequestBody

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

EmailsPostRequestBody composed type wrapper for classes EmailsPostRequestBodyMember1able, string

func NewEmailsPostRequestBody

func NewEmailsPostRequestBody() *EmailsPostRequestBody

NewEmailsPostRequestBody instantiates a new EmailsPostRequestBody and sets the default values.

func (*EmailsPostRequestBody) GetEmailsPostRequestBodyEmailsPostRequestBodyMember1

func (m *EmailsPostRequestBody) GetEmailsPostRequestBodyEmailsPostRequestBodyMember1() EmailsPostRequestBodyMember1able

GetEmailsPostRequestBodyEmailsPostRequestBodyMember1 gets the EmailsPostRequestBodyMember1 property value. Composed type representation for type EmailsPostRequestBodyMember1able returns a EmailsPostRequestBodyMember1able when successful

func (*EmailsPostRequestBody) GetEmailsPostRequestBodyMember1

func (m *EmailsPostRequestBody) GetEmailsPostRequestBodyMember1() EmailsPostRequestBodyMember1able

GetEmailsPostRequestBodyMember1 gets the EmailsPostRequestBodyMember1 property value. Composed type representation for type EmailsPostRequestBodyMember1able returns a EmailsPostRequestBodyMember1able when successful

func (*EmailsPostRequestBody) GetEmailsPostRequestBodyString

func (m *EmailsPostRequestBody) GetEmailsPostRequestBodyString() *string

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

func (*EmailsPostRequestBody) GetFieldDeserializers

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

func (*EmailsPostRequestBody) GetIsComposedType

func (m *EmailsPostRequestBody) GetIsComposedType() bool

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

func (*EmailsPostRequestBody) GetString

func (m *EmailsPostRequestBody) GetString() *string

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

func (*EmailsPostRequestBody) Serialize

Serialize serializes information the current object

func (*EmailsPostRequestBody) SetEmailsPostRequestBodyEmailsPostRequestBodyMember1

func (m *EmailsPostRequestBody) SetEmailsPostRequestBodyEmailsPostRequestBodyMember1(value EmailsPostRequestBodyMember1able)

SetEmailsPostRequestBodyEmailsPostRequestBodyMember1 sets the EmailsPostRequestBodyMember1 property value. Composed type representation for type EmailsPostRequestBodyMember1able

func (*EmailsPostRequestBody) SetEmailsPostRequestBodyMember1

func (m *EmailsPostRequestBody) SetEmailsPostRequestBodyMember1(value EmailsPostRequestBodyMember1able)

SetEmailsPostRequestBodyMember1 sets the EmailsPostRequestBodyMember1 property value. Composed type representation for type EmailsPostRequestBodyMember1able

func (*EmailsPostRequestBody) SetEmailsPostRequestBodyString

func (m *EmailsPostRequestBody) SetEmailsPostRequestBodyString(value *string)

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

func (*EmailsPostRequestBody) SetString

func (m *EmailsPostRequestBody) SetString(value *string)

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

type EmailsPostRequestBodyMember1

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

func NewEmailsPostRequestBodyMember1

func NewEmailsPostRequestBodyMember1() *EmailsPostRequestBodyMember1

NewEmailsPostRequestBodyMember1 instantiates a new EmailsPostRequestBodyMember1 and sets the default values.

func (*EmailsPostRequestBodyMember1) GetAdditionalData

func (m *EmailsPostRequestBodyMember1) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*EmailsPostRequestBodyMember1) GetEmails

func (m *EmailsPostRequestBodyMember1) GetEmails() []string

GetEmails gets the emails property value. Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. returns a []string when successful

func (*EmailsPostRequestBodyMember1) GetFieldDeserializers

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

func (*EmailsPostRequestBodyMember1) Serialize

Serialize serializes information the current object

func (*EmailsPostRequestBodyMember1) SetAdditionalData

func (m *EmailsPostRequestBodyMember1) 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 (*EmailsPostRequestBodyMember1) SetEmails

func (m *EmailsPostRequestBodyMember1) SetEmails(value []string)

SetEmails sets the emails property value. Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.

type EmailsPostRequestBodyable

type EmailsPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetEmailsPostRequestBodyEmailsPostRequestBodyMember1() EmailsPostRequestBodyMember1able
	GetEmailsPostRequestBodyMember1() EmailsPostRequestBodyMember1able
	GetEmailsPostRequestBodyString() *string
	GetString() *string
	SetEmailsPostRequestBodyEmailsPostRequestBodyMember1(value EmailsPostRequestBodyMember1able)
	SetEmailsPostRequestBodyMember1(value EmailsPostRequestBodyMember1able)
	SetEmailsPostRequestBodyString(value *string)
	SetString(value *string)
}

type EmailsRequestBuilder

EmailsRequestBuilder builds and executes requests for operations under \user\emails

func NewEmailsRequestBuilder

NewEmailsRequestBuilder instantiates a new EmailsRequestBuilder and sets the default values.

func NewEmailsRequestBuilderInternal

func NewEmailsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *EmailsRequestBuilder

NewEmailsRequestBuilderInternal instantiates a new EmailsRequestBuilder and sets the default values.

func (*EmailsRequestBuilder) Delete

Delete oAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*EmailsRequestBuilder) Get

Get lists all of your email addresses, and specifies which one is visibleto the public.OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint. returns a []Emailable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*EmailsRequestBuilder) Post

Post oAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. returns a []Emailable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*EmailsRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation oAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. returns a *RequestInformation when successful

func (*EmailsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all of your email addresses, and specifies which one is visibleto the public.OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint. returns a *RequestInformation when successful

func (*EmailsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation oAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. returns a *RequestInformation when successful

func (*EmailsRequestBuilder) WithUrl

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

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

type EmailsRequestBuilderGetQueryParameters

type EmailsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

EmailsRequestBuilderGetQueryParameters lists all of your email addresses, and specifies which one is visibleto the public.OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint.

type FollowersRequestBuilder

FollowersRequestBuilder builds and executes requests for operations under \user\followers

func NewFollowersRequestBuilder

NewFollowersRequestBuilder instantiates a new FollowersRequestBuilder and sets the default values.

func NewFollowersRequestBuilderInternal

func NewFollowersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *FollowersRequestBuilder

NewFollowersRequestBuilderInternal instantiates a new FollowersRequestBuilder and sets the default values.

func (*FollowersRequestBuilder) Get

Get lists the people following the authenticated user. returns a []SimpleUserable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code API method documentation

func (*FollowersRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists the people following the authenticated user. returns a *RequestInformation when successful

func (*FollowersRequestBuilder) WithUrl

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

type FollowersRequestBuilderGetQueryParameters

type FollowersRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

FollowersRequestBuilderGetQueryParameters lists the people following the authenticated user.

type FollowingRequestBuilder

FollowingRequestBuilder builds and executes requests for operations under \user\following

func NewFollowingRequestBuilder

NewFollowingRequestBuilder instantiates a new FollowingRequestBuilder and sets the default values.

func NewFollowingRequestBuilderInternal

func NewFollowingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *FollowingRequestBuilder

NewFollowingRequestBuilderInternal instantiates a new FollowingRequestBuilder and sets the default values.

func (*FollowingRequestBuilder) ByUsername

ByUsername gets an item from the github.com/octokit/go-sdk/pkg/github.user.following.item collection returns a *FollowingWithUsernameItemRequestBuilder when successful

func (*FollowingRequestBuilder) Get

Get lists the people who the authenticated user follows. returns a []SimpleUserable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code API method documentation

func (*FollowingRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists the people who the authenticated user follows. returns a *RequestInformation when successful

func (*FollowingRequestBuilder) WithUrl

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

type FollowingRequestBuilderGetQueryParameters

type FollowingRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

FollowingRequestBuilderGetQueryParameters lists the people who the authenticated user follows.

type FollowingWithUsernameItemRequestBuilder

type FollowingWithUsernameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

FollowingWithUsernameItemRequestBuilder builds and executes requests for operations under \user\following\{username}

func NewFollowingWithUsernameItemRequestBuilder

NewFollowingWithUsernameItemRequestBuilder instantiates a new FollowingWithUsernameItemRequestBuilder and sets the default values.

func NewFollowingWithUsernameItemRequestBuilderInternal

func NewFollowingWithUsernameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *FollowingWithUsernameItemRequestBuilder

NewFollowingWithUsernameItemRequestBuilderInternal instantiates a new FollowingWithUsernameItemRequestBuilder and sets the default values.

func (*FollowingWithUsernameItemRequestBuilder) Delete

Delete oAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*FollowingWithUsernameItemRequestBuilder) Get

Get check if a person is followed by the authenticated user returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*FollowingWithUsernameItemRequestBuilder) Put

Put note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."OAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*FollowingWithUsernameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation oAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint. returns a *RequestInformation when successful

func (*FollowingWithUsernameItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."OAuth app tokens and personal access tokens (classic) need the `user:follow` scope to use this endpoint. returns a *RequestInformation when successful

func (*FollowingWithUsernameItemRequestBuilder) WithUrl

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

type Gpg_keysPostRequestBody

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

func NewGpg_keysPostRequestBody

func NewGpg_keysPostRequestBody() *Gpg_keysPostRequestBody

NewGpg_keysPostRequestBody instantiates a new Gpg_keysPostRequestBody and sets the default values.

func (*Gpg_keysPostRequestBody) GetAdditionalData

func (m *Gpg_keysPostRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*Gpg_keysPostRequestBody) GetArmoredPublicKey

func (m *Gpg_keysPostRequestBody) GetArmoredPublicKey() *string

GetArmoredPublicKey gets the armored_public_key property value. A GPG key in ASCII-armored format. returns a *string when successful

func (*Gpg_keysPostRequestBody) GetFieldDeserializers

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

func (*Gpg_keysPostRequestBody) GetName

func (m *Gpg_keysPostRequestBody) GetName() *string

GetName gets the name property value. A descriptive name for the new key. returns a *string when successful

func (*Gpg_keysPostRequestBody) Serialize

Serialize serializes information the current object

func (*Gpg_keysPostRequestBody) SetAdditionalData

func (m *Gpg_keysPostRequestBody) 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 (*Gpg_keysPostRequestBody) SetArmoredPublicKey

func (m *Gpg_keysPostRequestBody) SetArmoredPublicKey(value *string)

SetArmoredPublicKey sets the armored_public_key property value. A GPG key in ASCII-armored format.

func (*Gpg_keysPostRequestBody) SetName

func (m *Gpg_keysPostRequestBody) SetName(value *string)

SetName sets the name property value. A descriptive name for the new key.

type Gpg_keysPostRequestBodyable

type Gpg_keysPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetArmoredPublicKey() *string
	GetName() *string
	SetArmoredPublicKey(value *string)
	SetName(value *string)
}

type Gpg_keysRequestBuilder

Gpg_keysRequestBuilder builds and executes requests for operations under \user\gpg_keys

func NewGpg_keysRequestBuilder

NewGpg_keysRequestBuilder instantiates a new Gpg_keysRequestBuilder and sets the default values.

func NewGpg_keysRequestBuilderInternal

func NewGpg_keysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Gpg_keysRequestBuilder

NewGpg_keysRequestBuilderInternal instantiates a new Gpg_keysRequestBuilder and sets the default values.

func (*Gpg_keysRequestBuilder) ByGpg_key_id

ByGpg_key_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.gpg_keys.item collection returns a *Gpg_keysWithGpg_key_ItemRequestBuilder when successful

func (*Gpg_keysRequestBuilder) Get

Get lists the current user's GPG keys.OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint. returns a []GpgKeyable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*Gpg_keysRequestBuilder) Post

Post adds a GPG key to the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `write:gpg_key` scope to use this endpoint. returns a GpgKeyable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*Gpg_keysRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists the current user's GPG keys.OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*Gpg_keysRequestBuilder) ToPostRequestInformation

ToPostRequestInformation adds a GPG key to the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `write:gpg_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*Gpg_keysRequestBuilder) WithUrl

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

type Gpg_keysRequestBuilderGetQueryParameters

type Gpg_keysRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

Gpg_keysRequestBuilderGetQueryParameters lists the current user's GPG keys.OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint.

type Gpg_keysWithGpg_key_ItemRequestBuilder

type Gpg_keysWithGpg_key_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

Gpg_keysWithGpg_key_ItemRequestBuilder builds and executes requests for operations under \user\gpg_keys\{gpg_key_id}

func NewGpg_keysWithGpg_key_ItemRequestBuilder

NewGpg_keysWithGpg_key_ItemRequestBuilder instantiates a new Gpg_keysWithGpg_key_ItemRequestBuilder and sets the default values.

func NewGpg_keysWithGpg_key_ItemRequestBuilderInternal

func NewGpg_keysWithGpg_key_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Gpg_keysWithGpg_key_ItemRequestBuilder

NewGpg_keysWithGpg_key_ItemRequestBuilderInternal instantiates a new Gpg_keysWithGpg_key_ItemRequestBuilder and sets the default values.

func (*Gpg_keysWithGpg_key_ItemRequestBuilder) Delete

Delete removes a GPG key from the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `admin:gpg_key` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*Gpg_keysWithGpg_key_ItemRequestBuilder) Get

Get view extended details for a single GPG key.OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint. returns a GpgKeyable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*Gpg_keysWithGpg_key_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation removes a GPG key from the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `admin:gpg_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*Gpg_keysWithGpg_key_ItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation view extended details for a single GPG key.OAuth app tokens and personal access tokens (classic) need the `read:gpg_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*Gpg_keysWithGpg_key_ItemRequestBuilder) WithUrl

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

type InstallationsGetResponse

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

func NewInstallationsGetResponse

func NewInstallationsGetResponse() *InstallationsGetResponse

NewInstallationsGetResponse instantiates a new InstallationsGetResponse and sets the default values.

func (*InstallationsGetResponse) GetAdditionalData

func (m *InstallationsGetResponse) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*InstallationsGetResponse) GetFieldDeserializers

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

func (*InstallationsGetResponse) GetInstallations

GetInstallations gets the installations property value. The installations property returns a []Installationable when successful

func (*InstallationsGetResponse) GetTotalCount

func (m *InstallationsGetResponse) GetTotalCount() *int32

GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful

func (*InstallationsGetResponse) Serialize

Serialize serializes information the current object

func (*InstallationsGetResponse) SetAdditionalData

func (m *InstallationsGetResponse) 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 (*InstallationsGetResponse) SetInstallations

SetInstallations sets the installations property value. The installations property

func (*InstallationsGetResponse) SetTotalCount

func (m *InstallationsGetResponse) SetTotalCount(value *int32)

SetTotalCount sets the total_count property value. The total_count property

type InstallationsItemRepositoriesGetResponse

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

func NewInstallationsItemRepositoriesGetResponse

func NewInstallationsItemRepositoriesGetResponse() *InstallationsItemRepositoriesGetResponse

NewInstallationsItemRepositoriesGetResponse instantiates a new InstallationsItemRepositoriesGetResponse and sets the default values.

func (*InstallationsItemRepositoriesGetResponse) GetAdditionalData

func (m *InstallationsItemRepositoriesGetResponse) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*InstallationsItemRepositoriesGetResponse) GetFieldDeserializers

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

func (*InstallationsItemRepositoriesGetResponse) GetRepositories

GetRepositories gets the repositories property value. The repositories property returns a []Repositoryable when successful

func (*InstallationsItemRepositoriesGetResponse) GetRepositorySelection

func (m *InstallationsItemRepositoriesGetResponse) GetRepositorySelection() *string

GetRepositorySelection gets the repository_selection property value. The repository_selection property returns a *string when successful

func (*InstallationsItemRepositoriesGetResponse) GetTotalCount

func (m *InstallationsItemRepositoriesGetResponse) GetTotalCount() *int32

GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful

func (*InstallationsItemRepositoriesGetResponse) Serialize

Serialize serializes information the current object

func (*InstallationsItemRepositoriesGetResponse) SetAdditionalData

func (m *InstallationsItemRepositoriesGetResponse) 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 (*InstallationsItemRepositoriesGetResponse) SetRepositories

SetRepositories sets the repositories property value. The repositories property

func (*InstallationsItemRepositoriesGetResponse) SetRepositorySelection

func (m *InstallationsItemRepositoriesGetResponse) SetRepositorySelection(value *string)

SetRepositorySelection sets the repository_selection property value. The repository_selection property

func (*InstallationsItemRepositoriesGetResponse) SetTotalCount

func (m *InstallationsItemRepositoriesGetResponse) SetTotalCount(value *int32)

SetTotalCount sets the total_count property value. The total_count property

type InstallationsItemRepositoriesRequestBuilder

type InstallationsItemRepositoriesRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

InstallationsItemRepositoriesRequestBuilder builds and executes requests for operations under \user\installations\{installation_id}\repositories

func NewInstallationsItemRepositoriesRequestBuilder

NewInstallationsItemRepositoriesRequestBuilder instantiates a new InstallationsItemRepositoriesRequestBuilder and sets the default values.

func NewInstallationsItemRepositoriesRequestBuilderInternal

func NewInstallationsItemRepositoriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsItemRepositoriesRequestBuilder

NewInstallationsItemRepositoriesRequestBuilderInternal instantiates a new InstallationsItemRepositoriesRequestBuilder and sets the default values.

func (*InstallationsItemRepositoriesRequestBuilder) ByRepository_id

ByRepository_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.installations.item.repositories.item collection returns a *InstallationsItemRepositoriesWithRepository_ItemRequestBuilder when successful

func (*InstallationsItemRepositoriesRequestBuilder) Get

Get list repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.The access the user has to each repository is included in the hash under the `permissions` key. returns a InstallationsItemRepositoriesGetResponseable when successful returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*InstallationsItemRepositoriesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation list repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.The access the user has to each repository is included in the hash under the `permissions` key. returns a *RequestInformation when successful

func (*InstallationsItemRepositoriesRequestBuilder) WithUrl

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

type InstallationsItemRepositoriesRequestBuilderGetQueryParameters

type InstallationsItemRepositoriesRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

InstallationsItemRepositoriesRequestBuilderGetQueryParameters list repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.The access the user has to each repository is included in the hash under the `permissions` key.

type InstallationsItemRepositoriesResponse

type InstallationsItemRepositoriesResponse struct {
	InstallationsItemRepositoriesGetResponse
}

InstallationsItemRepositoriesResponse Deprecated: This class is obsolete. Use repositoriesGetResponse instead.

func NewInstallationsItemRepositoriesResponse

func NewInstallationsItemRepositoriesResponse() *InstallationsItemRepositoriesResponse

NewInstallationsItemRepositoriesResponse instantiates a new InstallationsItemRepositoriesResponse and sets the default values.

type InstallationsItemRepositoriesResponseable

InstallationsItemRepositoriesResponseable Deprecated: This class is obsolete. Use repositoriesGetResponse instead.

type InstallationsItemRepositoriesWithRepository_ItemRequestBuilder

type InstallationsItemRepositoriesWithRepository_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

InstallationsItemRepositoriesWithRepository_ItemRequestBuilder builds and executes requests for operations under \user\installations\{installation_id}\repositories\{repository_id}

func NewInstallationsItemRepositoriesWithRepository_ItemRequestBuilder

func NewInstallationsItemRepositoriesWithRepository_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsItemRepositoriesWithRepository_ItemRequestBuilder

NewInstallationsItemRepositoriesWithRepository_ItemRequestBuilder instantiates a new InstallationsItemRepositoriesWithRepository_ItemRequestBuilder and sets the default values.

func NewInstallationsItemRepositoriesWithRepository_ItemRequestBuilderInternal

func NewInstallationsItemRepositoriesWithRepository_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsItemRepositoriesWithRepository_ItemRequestBuilder

NewInstallationsItemRepositoriesWithRepository_ItemRequestBuilderInternal instantiates a new InstallationsItemRepositoriesWithRepository_ItemRequestBuilder and sets the default values.

func (*InstallationsItemRepositoriesWithRepository_ItemRequestBuilder) Delete

Delete remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the `repository_selection` of `selected`. This endpoint only works for PATs (classic) with the `repo` scope. returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*InstallationsItemRepositoriesWithRepository_ItemRequestBuilder) Put

Put add a single repository to an installation. The authenticated user must have admin access to the repository. This endpoint only works for PATs (classic) with the `repo` scope. returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*InstallationsItemRepositoriesWithRepository_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the `repository_selection` of `selected`. This endpoint only works for PATs (classic) with the `repo` scope. returns a *RequestInformation when successful

func (*InstallationsItemRepositoriesWithRepository_ItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation add a single repository to an installation. The authenticated user must have admin access to the repository. This endpoint only works for PATs (classic) with the `repo` scope. returns a *RequestInformation when successful

func (*InstallationsItemRepositoriesWithRepository_ItemRequestBuilder) WithUrl

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

type InstallationsRequestBuilder

InstallationsRequestBuilder builds and executes requests for operations under \user\installations

func NewInstallationsRequestBuilder

NewInstallationsRequestBuilder instantiates a new InstallationsRequestBuilder and sets the default values.

func NewInstallationsRequestBuilderInternal

func NewInstallationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsRequestBuilder

NewInstallationsRequestBuilderInternal instantiates a new InstallationsRequestBuilder and sets the default values.

func (*InstallationsRequestBuilder) ByInstallation_id

ByInstallation_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.installations.item collection returns a *InstallationsWithInstallation_ItemRequestBuilder when successful

func (*InstallationsRequestBuilder) Get

Get lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.You can find the permissions for the installation under the `permissions` key. returns a InstallationsGetResponseable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code API method documentation

func (*InstallationsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.You can find the permissions for the installation under the `permissions` key. returns a *RequestInformation when successful

func (*InstallationsRequestBuilder) WithUrl

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

type InstallationsRequestBuilderGetQueryParameters

type InstallationsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

InstallationsRequestBuilderGetQueryParameters lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.You can find the permissions for the installation under the `permissions` key.

type InstallationsResponse

type InstallationsResponse struct {
	InstallationsGetResponse
}

InstallationsResponse Deprecated: This class is obsolete. Use installationsGetResponse instead.

func NewInstallationsResponse

func NewInstallationsResponse() *InstallationsResponse

NewInstallationsResponse instantiates a new InstallationsResponse and sets the default values.

type InstallationsResponseable

InstallationsResponseable Deprecated: This class is obsolete. Use installationsGetResponse instead.

type InstallationsWithInstallation_ItemRequestBuilder

type InstallationsWithInstallation_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

InstallationsWithInstallation_ItemRequestBuilder builds and executes requests for operations under \user\installations\{installation_id}

func NewInstallationsWithInstallation_ItemRequestBuilder

NewInstallationsWithInstallation_ItemRequestBuilder instantiates a new InstallationsWithInstallation_ItemRequestBuilder and sets the default values.

func NewInstallationsWithInstallation_ItemRequestBuilderInternal

func NewInstallationsWithInstallation_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsWithInstallation_ItemRequestBuilder

NewInstallationsWithInstallation_ItemRequestBuilderInternal instantiates a new InstallationsWithInstallation_ItemRequestBuilder and sets the default values.

func (*InstallationsWithInstallation_ItemRequestBuilder) Repositories

Repositories the repositories property returns a *InstallationsItemRepositoriesRequestBuilder when successful

type InteractionLimitsGetResponseMember1

type InteractionLimitsGetResponseMember1 struct {
}

InteractionLimitsGetResponseMember1

func NewInteractionLimitsGetResponseMember1

func NewInteractionLimitsGetResponseMember1() *InteractionLimitsGetResponseMember1

NewInteractionLimitsGetResponseMember1 instantiates a new InteractionLimitsGetResponseMember1 and sets the default values.

func (*InteractionLimitsGetResponseMember1) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model

func (*InteractionLimitsGetResponseMember1) Serialize

Serialize serializes information the current object

type InteractionLimitsGetResponseMember1able

type InteractionLimitsGetResponseMember1able interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
}

InteractionLimitsGetResponseMember1able

type InteractionLimitsRequestBuilder

InteractionLimitsRequestBuilder builds and executes requests for operations under \user\interaction-limits

func NewInteractionLimitsRequestBuilder

NewInteractionLimitsRequestBuilder instantiates a new InteractionLimitsRequestBuilder and sets the default values.

func NewInteractionLimitsRequestBuilderInternal

func NewInteractionLimitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InteractionLimitsRequestBuilder

NewInteractionLimitsRequestBuilderInternal instantiates a new InteractionLimitsRequestBuilder and sets the default values.

func (*InteractionLimitsRequestBuilder) Delete

Delete removes any interaction restrictions from your public repositories. API method documentation

func (*InteractionLimitsRequestBuilder) Get

Get shows which type of GitHub user can interact with your public repositories and when the restriction expires. returns a InteractionLimitResponseable when successful API method documentation

func (*InteractionLimitsRequestBuilder) Put

Put temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user. returns a InteractionLimitResponseable when successful returns a ValidationError error when the service returns a 422 status code API method documentation

func (*InteractionLimitsRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation removes any interaction restrictions from your public repositories. returns a *RequestInformation when successful

func (*InteractionLimitsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation shows which type of GitHub user can interact with your public repositories and when the restriction expires. returns a *RequestInformation when successful

func (*InteractionLimitsRequestBuilder) ToPutRequestInformation

ToPutRequestInformation temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user. returns a *RequestInformation when successful

func (*InteractionLimitsRequestBuilder) WithUrl

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

type IssuesRequestBuilder

IssuesRequestBuilder builds and executes requests for operations under \user\issues

func NewIssuesRequestBuilder

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

Get list issues across owned and member repositories assigned to the authenticated user.**Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For thisreason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests bythe `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pullrequest id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. returns a []Issueable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*IssuesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation list issues across owned and member repositories assigned to the authenticated user.**Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For thisreason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests bythe `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pullrequest id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. returns a *RequestInformation when successful

func (*IssuesRequestBuilder) WithUrl

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

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

type IssuesRequestBuilderGetQueryParameters

type IssuesRequestBuilderGetQueryParameters struct {
	// The direction to sort the results by.
	Direction *i4ff4b7a4d09875186c447aac75fb9ce4cc99e7c847ea443e2165c288b294b0c9.GetDirectionQueryParameterType `uriparametername:"direction"`
	// Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation.
	Filter *i4ff4b7a4d09875186c447aac75fb9ce4cc99e7c847ea443e2165c288b294b0c9.GetFilterQueryParameterType `uriparametername:"filter"`
	// A list of comma separated label names. Example: `bug,ui,@high`
	Labels *string `uriparametername:"labels"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	Since *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time `uriparametername:"since"`
	// What to sort results by.
	Sort *i4ff4b7a4d09875186c447aac75fb9ce4cc99e7c847ea443e2165c288b294b0c9.GetSortQueryParameterType `uriparametername:"sort"`
	// Indicates the state of the issues to return.
	State *i4ff4b7a4d09875186c447aac75fb9ce4cc99e7c847ea443e2165c288b294b0c9.GetStateQueryParameterType `uriparametername:"state"`
}

IssuesRequestBuilderGetQueryParameters list issues across owned and member repositories assigned to the authenticated user.**Note**: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For thisreason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests bythe `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pullrequest id, use the "[List pull requests](https://docs.github.com/rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.

type KeysPostRequestBody

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

func NewKeysPostRequestBody

func NewKeysPostRequestBody() *KeysPostRequestBody

NewKeysPostRequestBody instantiates a new KeysPostRequestBody and sets the default values.

func (*KeysPostRequestBody) GetAdditionalData

func (m *KeysPostRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*KeysPostRequestBody) GetFieldDeserializers

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

func (*KeysPostRequestBody) GetKey

func (m *KeysPostRequestBody) GetKey() *string

GetKey gets the key property value. The public SSH key to add to your GitHub account. returns a *string when successful

func (*KeysPostRequestBody) GetTitle

func (m *KeysPostRequestBody) GetTitle() *string

GetTitle gets the title property value. A descriptive name for the new key. returns a *string when successful

func (*KeysPostRequestBody) Serialize

Serialize serializes information the current object

func (*KeysPostRequestBody) SetAdditionalData

func (m *KeysPostRequestBody) 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 (*KeysPostRequestBody) SetKey

func (m *KeysPostRequestBody) SetKey(value *string)

SetKey sets the key property value. The public SSH key to add to your GitHub account.

func (*KeysPostRequestBody) SetTitle

func (m *KeysPostRequestBody) SetTitle(value *string)

SetTitle sets the title property value. A descriptive name for the new key.

type KeysRequestBuilder

KeysRequestBuilder builds and executes requests for operations under \user\keys

func NewKeysRequestBuilder

NewKeysRequestBuilder instantiates a new KeysRequestBuilder and sets the default values.

func NewKeysRequestBuilderInternal

func NewKeysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *KeysRequestBuilder

NewKeysRequestBuilderInternal instantiates a new KeysRequestBuilder and sets the default values.

func (*KeysRequestBuilder) ByKey_id

ByKey_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.keys.item collection returns a *KeysWithKey_ItemRequestBuilder when successful

func (*KeysRequestBuilder) Get

Get lists the public SSH keys for the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint. returns a []Keyable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*KeysRequestBuilder) Post

Post adds a public SSH key to the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `write:gpg_key` scope to use this endpoint. returns a Keyable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*KeysRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists the public SSH keys for the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*KeysRequestBuilder) ToPostRequestInformation

ToPostRequestInformation adds a public SSH key to the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `write:gpg_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*KeysRequestBuilder) WithUrl

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

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

type KeysRequestBuilderGetQueryParameters

type KeysRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

KeysRequestBuilderGetQueryParameters lists the public SSH keys for the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint.

type KeysWithKey_ItemRequestBuilder

KeysWithKey_ItemRequestBuilder builds and executes requests for operations under \user\keys\{key_id}

func NewKeysWithKey_ItemRequestBuilder

NewKeysWithKey_ItemRequestBuilder instantiates a new KeysWithKey_ItemRequestBuilder and sets the default values.

func NewKeysWithKey_ItemRequestBuilderInternal

func NewKeysWithKey_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *KeysWithKey_ItemRequestBuilder

NewKeysWithKey_ItemRequestBuilderInternal instantiates a new KeysWithKey_ItemRequestBuilder and sets the default values.

func (*KeysWithKey_ItemRequestBuilder) Delete

Delete removes a public SSH key from the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `admin:public_key` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*KeysWithKey_ItemRequestBuilder) Get

Get view extended details for a single public SSH key.OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint. returns a Keyable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*KeysWithKey_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation removes a public SSH key from the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `admin:public_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*KeysWithKey_ItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation view extended details for a single public SSH key.OAuth app tokens and personal access tokens (classic) need the `read:public_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*KeysWithKey_ItemRequestBuilder) WithUrl

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

type Marketplace_purchasesRequestBuilder

Marketplace_purchasesRequestBuilder builds and executes requests for operations under \user\marketplace_purchases

func NewMarketplace_purchasesRequestBuilder

NewMarketplace_purchasesRequestBuilder instantiates a new Marketplace_purchasesRequestBuilder and sets the default values.

func NewMarketplace_purchasesRequestBuilderInternal

func NewMarketplace_purchasesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Marketplace_purchasesRequestBuilder

NewMarketplace_purchasesRequestBuilderInternal instantiates a new Marketplace_purchasesRequestBuilder and sets the default values.

func (*Marketplace_purchasesRequestBuilder) Get

Get lists the active subscriptions for the authenticated user. returns a []UserMarketplacePurchaseable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*Marketplace_purchasesRequestBuilder) Stubbed

Stubbed the stubbed property returns a *Marketplace_purchasesStubbedRequestBuilder when successful

func (*Marketplace_purchasesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists the active subscriptions for the authenticated user. returns a *RequestInformation when successful

func (*Marketplace_purchasesRequestBuilder) WithUrl

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

type Marketplace_purchasesRequestBuilderGetQueryParameters

type Marketplace_purchasesRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

Marketplace_purchasesRequestBuilderGetQueryParameters lists the active subscriptions for the authenticated user.

type Marketplace_purchasesStubbedRequestBuilder

type Marketplace_purchasesStubbedRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

Marketplace_purchasesStubbedRequestBuilder builds and executes requests for operations under \user\marketplace_purchases\stubbed

func NewMarketplace_purchasesStubbedRequestBuilder

NewMarketplace_purchasesStubbedRequestBuilder instantiates a new Marketplace_purchasesStubbedRequestBuilder and sets the default values.

func NewMarketplace_purchasesStubbedRequestBuilderInternal

func NewMarketplace_purchasesStubbedRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Marketplace_purchasesStubbedRequestBuilder

NewMarketplace_purchasesStubbedRequestBuilderInternal instantiates a new Marketplace_purchasesStubbedRequestBuilder and sets the default values.

func (*Marketplace_purchasesStubbedRequestBuilder) Get

Get lists the active subscriptions for the authenticated user. returns a []UserMarketplacePurchaseable when successful returns a BasicError error when the service returns a 401 status code API method documentation

func (*Marketplace_purchasesStubbedRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists the active subscriptions for the authenticated user. returns a *RequestInformation when successful

func (*Marketplace_purchasesStubbedRequestBuilder) WithUrl

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

type Marketplace_purchasesStubbedRequestBuilderGetQueryParameters

type Marketplace_purchasesStubbedRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

Marketplace_purchasesStubbedRequestBuilderGetQueryParameters lists the active subscriptions for the authenticated user.

type MembershipsOrgsItemWithOrgPatchRequestBody

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

func NewMembershipsOrgsItemWithOrgPatchRequestBody

func NewMembershipsOrgsItemWithOrgPatchRequestBody() *MembershipsOrgsItemWithOrgPatchRequestBody

NewMembershipsOrgsItemWithOrgPatchRequestBody instantiates a new MembershipsOrgsItemWithOrgPatchRequestBody and sets the default values.

func (*MembershipsOrgsItemWithOrgPatchRequestBody) GetAdditionalData

func (m *MembershipsOrgsItemWithOrgPatchRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*MembershipsOrgsItemWithOrgPatchRequestBody) GetFieldDeserializers

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

func (*MembershipsOrgsItemWithOrgPatchRequestBody) Serialize

Serialize serializes information the current object

func (*MembershipsOrgsItemWithOrgPatchRequestBody) SetAdditionalData

func (m *MembershipsOrgsItemWithOrgPatchRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type MembershipsOrgsRequestBuilder

MembershipsOrgsRequestBuilder builds and executes requests for operations under \user\memberships\orgs

func NewMembershipsOrgsRequestBuilder

NewMembershipsOrgsRequestBuilder instantiates a new MembershipsOrgsRequestBuilder and sets the default values.

func NewMembershipsOrgsRequestBuilderInternal

func NewMembershipsOrgsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MembershipsOrgsRequestBuilder

NewMembershipsOrgsRequestBuilderInternal instantiates a new MembershipsOrgsRequestBuilder and sets the default values.

func (*MembershipsOrgsRequestBuilder) ByOrg

ByOrg gets an item from the github.com/octokit/go-sdk/pkg/github.user.memberships.orgs.item collection returns a *MembershipsOrgsWithOrgItemRequestBuilder when successful

func (*MembershipsOrgsRequestBuilder) Get

Get lists all of the authenticated user's organization memberships. returns a []OrgMembershipable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*MembershipsOrgsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all of the authenticated user's organization memberships. returns a *RequestInformation when successful

func (*MembershipsOrgsRequestBuilder) WithUrl

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

type MembershipsOrgsRequestBuilderGetQueryParameters

type MembershipsOrgsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships.
	State *i6248a706a395d319f3e66611fac0b2654fe48b61e0e7152b109cc83e1d984972.GetStateQueryParameterType `uriparametername:"state"`
}

MembershipsOrgsRequestBuilderGetQueryParameters lists all of the authenticated user's organization memberships.

type MembershipsOrgsWithOrgItemRequestBuilder

type MembershipsOrgsWithOrgItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

MembershipsOrgsWithOrgItemRequestBuilder builds and executes requests for operations under \user\memberships\orgs\{org}

func NewMembershipsOrgsWithOrgItemRequestBuilder

NewMembershipsOrgsWithOrgItemRequestBuilder instantiates a new MembershipsOrgsWithOrgItemRequestBuilder and sets the default values.

func NewMembershipsOrgsWithOrgItemRequestBuilderInternal

func NewMembershipsOrgsWithOrgItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MembershipsOrgsWithOrgItemRequestBuilder

NewMembershipsOrgsWithOrgItemRequestBuilderInternal instantiates a new MembershipsOrgsWithOrgItemRequestBuilder and sets the default values.

func (*MembershipsOrgsWithOrgItemRequestBuilder) Get

Get if the authenticated user is an active or pending member of the organization, this endpoint will return the user's membership. If the authenticated user is not affiliated with the organization, a `404` is returned. This endpoint will return a `403` if the request is made by a GitHub App that is blocked by the organization. returns a OrgMembershipable when successful returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*MembershipsOrgsWithOrgItemRequestBuilder) Patch

Patch converts the authenticated user to an active member of the organization, if that user has a pending invitation from the organization. returns a OrgMembershipable when successful returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*MembershipsOrgsWithOrgItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation if the authenticated user is an active or pending member of the organization, this endpoint will return the user's membership. If the authenticated user is not affiliated with the organization, a `404` is returned. This endpoint will return a `403` if the request is made by a GitHub App that is blocked by the organization. returns a *RequestInformation when successful

func (*MembershipsOrgsWithOrgItemRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation converts the authenticated user to an active member of the organization, if that user has a pending invitation from the organization. returns a *RequestInformation when successful

func (*MembershipsOrgsWithOrgItemRequestBuilder) WithUrl

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

type MembershipsRequestBuilder

MembershipsRequestBuilder builds and executes requests for operations under \user\memberships

func NewMembershipsRequestBuilder

NewMembershipsRequestBuilder instantiates a new MembershipsRequestBuilder and sets the default values.

func NewMembershipsRequestBuilderInternal

func NewMembershipsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MembershipsRequestBuilder

NewMembershipsRequestBuilderInternal instantiates a new MembershipsRequestBuilder and sets the default values.

func (*MembershipsRequestBuilder) Orgs

Orgs the orgs property returns a *MembershipsOrgsRequestBuilder when successful

type MigrationsItemArchiveRequestBuilder

MigrationsItemArchiveRequestBuilder builds and executes requests for operations under \user\migrations\{migration_id}\archive

func NewMigrationsItemArchiveRequestBuilder

NewMigrationsItemArchiveRequestBuilder instantiates a new MigrationsItemArchiveRequestBuilder and sets the default values.

func NewMigrationsItemArchiveRequestBuilderInternal

func NewMigrationsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MigrationsItemArchiveRequestBuilder

NewMigrationsItemArchiveRequestBuilderInternal instantiates a new MigrationsItemArchiveRequestBuilder and sets the default values.

func (*MigrationsItemArchiveRequestBuilder) Delete

Delete deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://docs.github.com/rest/migrations/users#list-user-migrations) and [Get a user migration status](https://docs.github.com/rest/migrations/users#get-a-user-migration-status) endpoints, will continue to be available even after an archive is deleted. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*MigrationsItemArchiveRequestBuilder) Get

Get fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects:* attachments* bases* commit\_comments* issue\_comments* issue\_events* issues* milestones* organizations* projects* protected\_branches* pull\_request\_reviews* pull\_requests* releases* repositories* review\_comments* schema* usersThe archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code API method documentation

func (*MigrationsItemArchiveRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://docs.github.com/rest/migrations/users#list-user-migrations) and [Get a user migration status](https://docs.github.com/rest/migrations/users#get-a-user-migration-status) endpoints, will continue to be available even after an archive is deleted. returns a *RequestInformation when successful

func (*MigrationsItemArchiveRequestBuilder) ToGetRequestInformation

ToGetRequestInformation fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects:* attachments* bases* commit\_comments* issue\_comments* issue\_events* issues* milestones* organizations* projects* protected\_branches* pull\_request\_reviews* pull\_requests* releases* repositories* review\_comments* schema* usersThe archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data. returns a *RequestInformation when successful

func (*MigrationsItemArchiveRequestBuilder) WithUrl

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

type MigrationsItemReposItemLockRequestBuilder

type MigrationsItemReposItemLockRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

MigrationsItemReposItemLockRequestBuilder builds and executes requests for operations under \user\migrations\{migration_id}\repos\{repo_name}\lock

func NewMigrationsItemReposItemLockRequestBuilder

NewMigrationsItemReposItemLockRequestBuilder instantiates a new MigrationsItemReposItemLockRequestBuilder and sets the default values.

func NewMigrationsItemReposItemLockRequestBuilderInternal

func NewMigrationsItemReposItemLockRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MigrationsItemReposItemLockRequestBuilder

NewMigrationsItemReposItemLockRequestBuilderInternal instantiates a new MigrationsItemReposItemLockRequestBuilder and sets the default values.

func (*MigrationsItemReposItemLockRequestBuilder) Delete

Delete unlocks a repository. You can lock repositories when you [start a user migration](https://docs.github.com/rest/migrations/users#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://docs.github.com/rest/repos/repos#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*MigrationsItemReposItemLockRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation unlocks a repository. You can lock repositories when you [start a user migration](https://docs.github.com/rest/migrations/users#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://docs.github.com/rest/repos/repos#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked. returns a *RequestInformation when successful

func (*MigrationsItemReposItemLockRequestBuilder) WithUrl

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

type MigrationsItemReposRequestBuilder

MigrationsItemReposRequestBuilder builds and executes requests for operations under \user\migrations\{migration_id}\repos

func NewMigrationsItemReposRequestBuilder

NewMigrationsItemReposRequestBuilder instantiates a new MigrationsItemReposRequestBuilder and sets the default values.

func NewMigrationsItemReposRequestBuilderInternal

func NewMigrationsItemReposRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MigrationsItemReposRequestBuilder

NewMigrationsItemReposRequestBuilderInternal instantiates a new MigrationsItemReposRequestBuilder and sets the default values.

func (*MigrationsItemReposRequestBuilder) ByRepo_name

ByRepo_name gets an item from the github.com/octokit/go-sdk/pkg/github.user.migrations.item.repos.item collection returns a *MigrationsItemReposWithRepo_nameItemRequestBuilder when successful

type MigrationsItemReposWithRepo_nameItemRequestBuilder

type MigrationsItemReposWithRepo_nameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

MigrationsItemReposWithRepo_nameItemRequestBuilder builds and executes requests for operations under \user\migrations\{migration_id}\repos\{repo_name}

func NewMigrationsItemReposWithRepo_nameItemRequestBuilder

NewMigrationsItemReposWithRepo_nameItemRequestBuilder instantiates a new MigrationsItemReposWithRepo_nameItemRequestBuilder and sets the default values.

func NewMigrationsItemReposWithRepo_nameItemRequestBuilderInternal

func NewMigrationsItemReposWithRepo_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MigrationsItemReposWithRepo_nameItemRequestBuilder

NewMigrationsItemReposWithRepo_nameItemRequestBuilderInternal instantiates a new MigrationsItemReposWithRepo_nameItemRequestBuilder and sets the default values.

func (*MigrationsItemReposWithRepo_nameItemRequestBuilder) Lock

Lock the lock property returns a *MigrationsItemReposItemLockRequestBuilder when successful

type MigrationsItemRepositoriesRequestBuilder

type MigrationsItemRepositoriesRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

MigrationsItemRepositoriesRequestBuilder builds and executes requests for operations under \user\migrations\{migration_id}\repositories

func NewMigrationsItemRepositoriesRequestBuilder

NewMigrationsItemRepositoriesRequestBuilder instantiates a new MigrationsItemRepositoriesRequestBuilder and sets the default values.

func NewMigrationsItemRepositoriesRequestBuilderInternal

func NewMigrationsItemRepositoriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MigrationsItemRepositoriesRequestBuilder

NewMigrationsItemRepositoriesRequestBuilderInternal instantiates a new MigrationsItemRepositoriesRequestBuilder and sets the default values.

func (*MigrationsItemRepositoriesRequestBuilder) Get

Get lists all the repositories for this user migration. returns a []MinimalRepositoryable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*MigrationsItemRepositoriesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all the repositories for this user migration. returns a *RequestInformation when successful

func (*MigrationsItemRepositoriesRequestBuilder) WithUrl

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

type MigrationsItemRepositoriesRequestBuilderGetQueryParameters

type MigrationsItemRepositoriesRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

MigrationsItemRepositoriesRequestBuilderGetQueryParameters lists all the repositories for this user migration.

type MigrationsPostRequestBody

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

func NewMigrationsPostRequestBody

func NewMigrationsPostRequestBody() *MigrationsPostRequestBody

NewMigrationsPostRequestBody instantiates a new MigrationsPostRequestBody and sets the default values.

func (*MigrationsPostRequestBody) GetAdditionalData

func (m *MigrationsPostRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*MigrationsPostRequestBody) GetExcludeAttachments

func (m *MigrationsPostRequestBody) GetExcludeAttachments() *bool

GetExcludeAttachments gets the exclude_attachments property value. Do not include attachments in the migration returns a *bool when successful

func (*MigrationsPostRequestBody) GetExcludeGitData

func (m *MigrationsPostRequestBody) GetExcludeGitData() *bool

GetExcludeGitData gets the exclude_git_data property value. Indicates whether the repository git data should be excluded from the migration. returns a *bool when successful

func (*MigrationsPostRequestBody) GetExcludeMetadata

func (m *MigrationsPostRequestBody) GetExcludeMetadata() *bool

GetExcludeMetadata gets the exclude_metadata property value. Indicates whether metadata should be excluded and only git source should be included for the migration. returns a *bool when successful

func (*MigrationsPostRequestBody) GetExcludeOwnerProjects

func (m *MigrationsPostRequestBody) GetExcludeOwnerProjects() *bool

GetExcludeOwnerProjects gets the exclude_owner_projects property value. Indicates whether projects owned by the organization or users should be excluded. returns a *bool when successful

func (*MigrationsPostRequestBody) GetExcludeReleases

func (m *MigrationsPostRequestBody) GetExcludeReleases() *bool

GetExcludeReleases gets the exclude_releases property value. Do not include releases in the migration returns a *bool when successful

func (*MigrationsPostRequestBody) GetFieldDeserializers

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

func (*MigrationsPostRequestBody) GetLockRepositories

func (m *MigrationsPostRequestBody) GetLockRepositories() *bool

GetLockRepositories gets the lock_repositories property value. Lock the repositories being migrated at the start of the migration returns a *bool when successful

func (*MigrationsPostRequestBody) GetOrgMetadataOnly

func (m *MigrationsPostRequestBody) GetOrgMetadataOnly() *bool

GetOrgMetadataOnly gets the org_metadata_only property value. Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags). returns a *bool when successful

func (*MigrationsPostRequestBody) GetRepositories

func (m *MigrationsPostRequestBody) GetRepositories() []string

GetRepositories gets the repositories property value. The repositories property returns a []string when successful

func (*MigrationsPostRequestBody) Serialize

Serialize serializes information the current object

func (*MigrationsPostRequestBody) SetAdditionalData

func (m *MigrationsPostRequestBody) 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 (*MigrationsPostRequestBody) SetExcludeAttachments

func (m *MigrationsPostRequestBody) SetExcludeAttachments(value *bool)

SetExcludeAttachments sets the exclude_attachments property value. Do not include attachments in the migration

func (*MigrationsPostRequestBody) SetExcludeGitData

func (m *MigrationsPostRequestBody) SetExcludeGitData(value *bool)

SetExcludeGitData sets the exclude_git_data property value. Indicates whether the repository git data should be excluded from the migration.

func (*MigrationsPostRequestBody) SetExcludeMetadata

func (m *MigrationsPostRequestBody) SetExcludeMetadata(value *bool)

SetExcludeMetadata sets the exclude_metadata property value. Indicates whether metadata should be excluded and only git source should be included for the migration.

func (*MigrationsPostRequestBody) SetExcludeOwnerProjects

func (m *MigrationsPostRequestBody) SetExcludeOwnerProjects(value *bool)

SetExcludeOwnerProjects sets the exclude_owner_projects property value. Indicates whether projects owned by the organization or users should be excluded.

func (*MigrationsPostRequestBody) SetExcludeReleases

func (m *MigrationsPostRequestBody) SetExcludeReleases(value *bool)

SetExcludeReleases sets the exclude_releases property value. Do not include releases in the migration

func (*MigrationsPostRequestBody) SetLockRepositories

func (m *MigrationsPostRequestBody) SetLockRepositories(value *bool)

SetLockRepositories sets the lock_repositories property value. Lock the repositories being migrated at the start of the migration

func (*MigrationsPostRequestBody) SetOrgMetadataOnly

func (m *MigrationsPostRequestBody) SetOrgMetadataOnly(value *bool)

SetOrgMetadataOnly sets the org_metadata_only property value. Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).

func (*MigrationsPostRequestBody) SetRepositories

func (m *MigrationsPostRequestBody) SetRepositories(value []string)

SetRepositories sets the repositories property value. The repositories property

type MigrationsPostRequestBodyable

type MigrationsPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetExcludeAttachments() *bool
	GetExcludeGitData() *bool
	GetExcludeMetadata() *bool
	GetExcludeOwnerProjects() *bool
	GetExcludeReleases() *bool
	GetLockRepositories() *bool
	GetOrgMetadataOnly() *bool
	GetRepositories() []string
	SetExcludeAttachments(value *bool)
	SetExcludeGitData(value *bool)
	SetExcludeMetadata(value *bool)
	SetExcludeOwnerProjects(value *bool)
	SetExcludeReleases(value *bool)
	SetLockRepositories(value *bool)
	SetOrgMetadataOnly(value *bool)
	SetRepositories(value []string)
}

type MigrationsRequestBuilder

MigrationsRequestBuilder builds and executes requests for operations under \user\migrations

func NewMigrationsRequestBuilder

NewMigrationsRequestBuilder instantiates a new MigrationsRequestBuilder and sets the default values.

func NewMigrationsRequestBuilderInternal

func NewMigrationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MigrationsRequestBuilder

NewMigrationsRequestBuilderInternal instantiates a new MigrationsRequestBuilder and sets the default values.

func (*MigrationsRequestBuilder) ByMigration_id

ByMigration_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.migrations.item collection returns a *MigrationsWithMigration_ItemRequestBuilder when successful

func (*MigrationsRequestBuilder) Get

Get lists all migrations a user has started. returns a []Migrationable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code API method documentation

func (*MigrationsRequestBuilder) Post

Post initiates the generation of a user migration archive. returns a Migrationable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*MigrationsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all migrations a user has started. returns a *RequestInformation when successful

func (*MigrationsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation initiates the generation of a user migration archive. returns a *RequestInformation when successful

func (*MigrationsRequestBuilder) WithUrl

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

type MigrationsRequestBuilderGetQueryParameters

type MigrationsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

MigrationsRequestBuilderGetQueryParameters lists all migrations a user has started.

type MigrationsWithMigration_ItemRequestBuilder

type MigrationsWithMigration_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

MigrationsWithMigration_ItemRequestBuilder builds and executes requests for operations under \user\migrations\{migration_id}

func NewMigrationsWithMigration_ItemRequestBuilder

NewMigrationsWithMigration_ItemRequestBuilder instantiates a new MigrationsWithMigration_ItemRequestBuilder and sets the default values.

func NewMigrationsWithMigration_ItemRequestBuilderInternal

func NewMigrationsWithMigration_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *MigrationsWithMigration_ItemRequestBuilder

NewMigrationsWithMigration_ItemRequestBuilderInternal instantiates a new MigrationsWithMigration_ItemRequestBuilder and sets the default values.

func (*MigrationsWithMigration_ItemRequestBuilder) Archive

Archive the archive property returns a *MigrationsItemArchiveRequestBuilder when successful

func (*MigrationsWithMigration_ItemRequestBuilder) Get

Get fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values:* `pending` - the migration hasn't started yet.* `exporting` - the migration is in progress.* `exported` - the migration finished successfully.* `failed` - the migration failed.Once the migration has been `exported` you can [download the migration archive](https://docs.github.com/rest/migrations/users#download-a-user-migration-archive). returns a Migrationable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*MigrationsWithMigration_ItemRequestBuilder) Repos

Repos the repos property returns a *MigrationsItemReposRequestBuilder when successful

func (*MigrationsWithMigration_ItemRequestBuilder) Repositories

Repositories the repositories property returns a *MigrationsItemRepositoriesRequestBuilder when successful

func (*MigrationsWithMigration_ItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values:* `pending` - the migration hasn't started yet.* `exporting` - the migration is in progress.* `exported` - the migration finished successfully.* `failed` - the migration failed.Once the migration has been `exported` you can [download the migration archive](https://docs.github.com/rest/migrations/users#download-a-user-migration-archive). returns a *RequestInformation when successful

func (*MigrationsWithMigration_ItemRequestBuilder) WithUrl

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

type MigrationsWithMigration_ItemRequestBuilderGetQueryParameters

type MigrationsWithMigration_ItemRequestBuilderGetQueryParameters struct {
	Exclude []string `uriparametername:"exclude"`
}

MigrationsWithMigration_ItemRequestBuilderGetQueryParameters fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values:* `pending` - the migration hasn't started yet.* `exporting` - the migration is in progress.* `exported` - the migration finished successfully.* `failed` - the migration failed.Once the migration has been `exported` you can [download the migration archive](https://docs.github.com/rest/migrations/users#download-a-user-migration-archive).

type OrgsRequestBuilder

OrgsRequestBuilder builds and executes requests for operations under \user\orgs

func NewOrgsRequestBuilder

NewOrgsRequestBuilder instantiates a new OrgsRequestBuilder and sets the default values.

func NewOrgsRequestBuilderInternal

func NewOrgsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *OrgsRequestBuilder

NewOrgsRequestBuilderInternal instantiates a new OrgsRequestBuilder and sets the default values.

func (*OrgsRequestBuilder) Get

Get list organizations for the authenticated user.For OAuth app tokens and personal access tokens (classic), this endpoint only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope for OAuth app tokens and personal access tokens (classic). Requests with insufficient scope will receive a `403 Forbidden` response. returns a []OrganizationSimpleable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code API method documentation

func (*OrgsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation list organizations for the authenticated user.For OAuth app tokens and personal access tokens (classic), this endpoint only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope for OAuth app tokens and personal access tokens (classic). Requests with insufficient scope will receive a `403 Forbidden` response. returns a *RequestInformation when successful

func (*OrgsRequestBuilder) WithUrl

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

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

type OrgsRequestBuilderGetQueryParameters

type OrgsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

OrgsRequestBuilderGetQueryParameters list organizations for the authenticated user.For OAuth app tokens and personal access tokens (classic), this endpoint only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope for OAuth app tokens and personal access tokens (classic). Requests with insufficient scope will receive a `403 Forbidden` response.

type PackagesItemItemRestoreRequestBuilder

type PackagesItemItemRestoreRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PackagesItemItemRestoreRequestBuilder builds and executes requests for operations under \user\packages\{package_type}\{package_name}\restore

func NewPackagesItemItemRestoreRequestBuilder

NewPackagesItemItemRestoreRequestBuilder instantiates a new PackagesItemItemRestoreRequestBuilder and sets the default values.

func NewPackagesItemItemRestoreRequestBuilderInternal

func NewPackagesItemItemRestoreRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PackagesItemItemRestoreRequestBuilder

NewPackagesItemItemRestoreRequestBuilderInternal instantiates a new PackagesItemItemRestoreRequestBuilder and sets the default values.

func (*PackagesItemItemRestoreRequestBuilder) Post

Post restores a package owned by the authenticated user.You can restore a deleted package under the following conditions: - The package was deleted within the last 30 days. - The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*PackagesItemItemRestoreRequestBuilder) ToPostRequestInformation

ToPostRequestInformation restores a package owned by the authenticated user.You can restore a deleted package under the following conditions: - The package was deleted within the last 30 days. - The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a *RequestInformation when successful

func (*PackagesItemItemRestoreRequestBuilder) WithUrl

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

type PackagesItemItemRestoreRequestBuilderPostQueryParameters

type PackagesItemItemRestoreRequestBuilderPostQueryParameters struct {
	// package token
	Token *string `uriparametername:"token"`
}

PackagesItemItemRestoreRequestBuilderPostQueryParameters restores a package owned by the authenticated user.You can restore a deleted package under the following conditions: - The package was deleted within the last 30 days. - The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."

type PackagesItemItemVersionsItemRestoreRequestBuilder

type PackagesItemItemVersionsItemRestoreRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PackagesItemItemVersionsItemRestoreRequestBuilder builds and executes requests for operations under \user\packages\{package_type}\{package_name}\versions\{package_version_id}\restore

func NewPackagesItemItemVersionsItemRestoreRequestBuilder

NewPackagesItemItemVersionsItemRestoreRequestBuilder instantiates a new PackagesItemItemVersionsItemRestoreRequestBuilder and sets the default values.

func NewPackagesItemItemVersionsItemRestoreRequestBuilderInternal

func NewPackagesItemItemVersionsItemRestoreRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PackagesItemItemVersionsItemRestoreRequestBuilder

NewPackagesItemItemVersionsItemRestoreRequestBuilderInternal instantiates a new PackagesItemItemVersionsItemRestoreRequestBuilder and sets the default values.

func (*PackagesItemItemVersionsItemRestoreRequestBuilder) Post

Post restores a package version owned by the authenticated user.You can restore a deleted package version under the following conditions: - The package was deleted within the last 30 days. - The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*PackagesItemItemVersionsItemRestoreRequestBuilder) ToPostRequestInformation

ToPostRequestInformation restores a package version owned by the authenticated user.You can restore a deleted package version under the following conditions: - The package was deleted within the last 30 days. - The same package namespace and version is still available and not reused for a new package. If the same package namespace is not available, you will not be able to restore your package. In this scenario, to restore the deleted package, you must delete the new package that uses the deleted package's namespace first.OAuth app tokens and personal access tokens (classic) need the `read:packages` and `write:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a *RequestInformation when successful

func (*PackagesItemItemVersionsItemRestoreRequestBuilder) WithUrl

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

type PackagesItemItemVersionsRequestBuilder

type PackagesItemItemVersionsRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PackagesItemItemVersionsRequestBuilder builds and executes requests for operations under \user\packages\{package_type}\{package_name}\versions

func NewPackagesItemItemVersionsRequestBuilder

NewPackagesItemItemVersionsRequestBuilder instantiates a new PackagesItemItemVersionsRequestBuilder and sets the default values.

func NewPackagesItemItemVersionsRequestBuilderInternal

func NewPackagesItemItemVersionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PackagesItemItemVersionsRequestBuilder

NewPackagesItemItemVersionsRequestBuilderInternal instantiates a new PackagesItemItemVersionsRequestBuilder and sets the default values.

func (*PackagesItemItemVersionsRequestBuilder) ByPackage_version_id

ByPackage_version_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.packages.item.item.versions.item collection returns a *PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder when successful

func (*PackagesItemItemVersionsRequestBuilder) Get

Get lists package versions for a package owned by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a []PackageVersionable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*PackagesItemItemVersionsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists package versions for a package owned by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a *RequestInformation when successful

func (*PackagesItemItemVersionsRequestBuilder) WithUrl

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

type PackagesItemItemVersionsRequestBuilderGetQueryParameters

type PackagesItemItemVersionsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// The state of the package, either active or deleted.
	State *i74b3087dddecf30253e135889419530355ad6be6bee6d9ec44ce931f8f78bc3f.GetStateQueryParameterType `uriparametername:"state"`
}

PackagesItemItemVersionsRequestBuilderGetQueryParameters lists package versions for a package owned by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."

type PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder

type PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder builds and executes requests for operations under \user\packages\{package_type}\{package_name}\versions\{package_version_id}

func NewPackagesItemItemVersionsWithPackage_version_ItemRequestBuilder

func NewPackagesItemItemVersionsWithPackage_version_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder

NewPackagesItemItemVersionsWithPackage_version_ItemRequestBuilder instantiates a new PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder and sets the default values.

func NewPackagesItemItemVersionsWithPackage_version_ItemRequestBuilderInternal

func NewPackagesItemItemVersionsWithPackage_version_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder

NewPackagesItemItemVersionsWithPackage_version_ItemRequestBuilderInternal instantiates a new PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder and sets the default values.

func (*PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder) Delete

Delete deletes a specific package version for a package owned by the authenticated user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance.The authenticated user must have admin permissions in the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder) Get

Get gets a specific package version for a package owned by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a PackageVersionable when successful API method documentation

func (*PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder) Restore

Restore the restore property returns a *PackagesItemItemVersionsItemRestoreRequestBuilder when successful

func (*PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes a specific package version for a package owned by the authenticated user. If the package is public and the package version has more than 5,000 downloads, you cannot delete the package version. In this scenario, contact GitHub support for further assistance.The authenticated user must have admin permissions in the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a *RequestInformation when successful

func (*PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation gets a specific package version for a package owned by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a *RequestInformation when successful

func (*PackagesItemItemVersionsWithPackage_version_ItemRequestBuilder) WithUrl

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

type PackagesItemWithPackage_nameItemRequestBuilder

type PackagesItemWithPackage_nameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PackagesItemWithPackage_nameItemRequestBuilder builds and executes requests for operations under \user\packages\{package_type}\{package_name}

func NewPackagesItemWithPackage_nameItemRequestBuilder

NewPackagesItemWithPackage_nameItemRequestBuilder instantiates a new PackagesItemWithPackage_nameItemRequestBuilder and sets the default values.

func NewPackagesItemWithPackage_nameItemRequestBuilderInternal

func NewPackagesItemWithPackage_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PackagesItemWithPackage_nameItemRequestBuilder

NewPackagesItemWithPackage_nameItemRequestBuilderInternal instantiates a new PackagesItemWithPackage_nameItemRequestBuilder and sets the default values.

func (*PackagesItemWithPackage_nameItemRequestBuilder) Delete

Delete deletes a package owned by the authenticated user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, `repo` scope is also required. For the list these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*PackagesItemWithPackage_nameItemRequestBuilder) Get

Get gets a specific package for a package owned by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a PackageEscapedable when successful API method documentation

func (*PackagesItemWithPackage_nameItemRequestBuilder) Restore

Restore the restore property returns a *PackagesItemItemRestoreRequestBuilder when successful

func (*PackagesItemWithPackage_nameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes a package owned by the authenticated user. You cannot delete a public package if any version of the package has more than 5,000 downloads. In this scenario, contact GitHub support for further assistance.OAuth app tokens and personal access tokens (classic) need the `read:packages` and `delete:packages` scopes to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, `repo` scope is also required. For the list these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a *RequestInformation when successful

func (*PackagesItemWithPackage_nameItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation gets a specific package for a package owned by the authenticated user.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a *RequestInformation when successful

func (*PackagesItemWithPackage_nameItemRequestBuilder) Versions

Versions the versions property returns a *PackagesItemItemVersionsRequestBuilder when successful

func (*PackagesItemWithPackage_nameItemRequestBuilder) WithUrl

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

type PackagesRequestBuilder

PackagesRequestBuilder builds and executes requests for operations under \user\packages

func NewPackagesRequestBuilder

NewPackagesRequestBuilder instantiates a new PackagesRequestBuilder and sets the default values.

func NewPackagesRequestBuilderInternal

func NewPackagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PackagesRequestBuilder

NewPackagesRequestBuilderInternal instantiates a new PackagesRequestBuilder and sets the default values.

func (*PackagesRequestBuilder) ByPackage_type

ByPackage_type gets an item from the github.com/octokit/go-sdk/pkg/github.user.packages.item collection returns a *PackagesWithPackage_typeItemRequestBuilder when successful

func (*PackagesRequestBuilder) Get

Get lists packages owned by the authenticated user within the user's namespace.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a []PackageEscapedable when successful API method documentation

func (*PackagesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists packages owned by the authenticated user within the user's namespace.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)." returns a *RequestInformation when successful

func (*PackagesRequestBuilder) WithUrl

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

type PackagesRequestBuilderGetQueryParameters

type PackagesRequestBuilderGetQueryParameters struct {
	// The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry.
	Package_type *ia90ad7174ccc536446ffbf323e44f93ad4e7b5bc6ecfa01a7999e03949929e86.GetPackage_typeQueryParameterType `uriparametername:"package_type"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// The selected visibility of the packages.  This parameter is optional and only filters an existing result set.The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`.For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
	Visibility *ia90ad7174ccc536446ffbf323e44f93ad4e7b5bc6ecfa01a7999e03949929e86.GetVisibilityQueryParameterType `uriparametername:"visibility"`
}

PackagesRequestBuilderGetQueryParameters lists packages owned by the authenticated user within the user's namespace.OAuth app tokens and personal access tokens (classic) need the `read:packages` scope to use this endpoint. If the `package_type` belongs to a GitHub Packages registry that only supports repository-scoped permissions, the `repo` scope is also required. For the list of these registries, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#permissions-for-repository-scoped-packages)."

type PackagesWithPackage_typeItemRequestBuilder

type PackagesWithPackage_typeItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PackagesWithPackage_typeItemRequestBuilder builds and executes requests for operations under \user\packages\{package_type}

func NewPackagesWithPackage_typeItemRequestBuilder

NewPackagesWithPackage_typeItemRequestBuilder instantiates a new PackagesWithPackage_typeItemRequestBuilder and sets the default values.

func NewPackagesWithPackage_typeItemRequestBuilderInternal

func NewPackagesWithPackage_typeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PackagesWithPackage_typeItemRequestBuilder

NewPackagesWithPackage_typeItemRequestBuilderInternal instantiates a new PackagesWithPackage_typeItemRequestBuilder and sets the default values.

func (*PackagesWithPackage_typeItemRequestBuilder) ByPackage_name

ByPackage_name gets an item from the github.com/octokit/go-sdk/pkg/github.user.packages.item.item collection returns a *PackagesItemWithPackage_nameItemRequestBuilder when successful

type ProjectsPostRequestBody

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

func NewProjectsPostRequestBody

func NewProjectsPostRequestBody() *ProjectsPostRequestBody

NewProjectsPostRequestBody instantiates a new ProjectsPostRequestBody and sets the default values.

func (*ProjectsPostRequestBody) GetAdditionalData

func (m *ProjectsPostRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*ProjectsPostRequestBody) GetBody

func (m *ProjectsPostRequestBody) GetBody() *string

GetBody gets the body property value. Body of the project returns a *string when successful

func (*ProjectsPostRequestBody) GetFieldDeserializers

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

func (*ProjectsPostRequestBody) GetName

func (m *ProjectsPostRequestBody) GetName() *string

GetName gets the name property value. Name of the project returns a *string when successful

func (*ProjectsPostRequestBody) Serialize

Serialize serializes information the current object

func (*ProjectsPostRequestBody) SetAdditionalData

func (m *ProjectsPostRequestBody) 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 (*ProjectsPostRequestBody) SetBody

func (m *ProjectsPostRequestBody) SetBody(value *string)

SetBody sets the body property value. Body of the project

func (*ProjectsPostRequestBody) SetName

func (m *ProjectsPostRequestBody) SetName(value *string)

SetName sets the name property value. Name of the project

type ProjectsRequestBuilder

ProjectsRequestBuilder builds and executes requests for operations under \user\projects

func NewProjectsRequestBuilder

NewProjectsRequestBuilder instantiates a new ProjectsRequestBuilder and sets the default values.

func NewProjectsRequestBuilderInternal

func NewProjectsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ProjectsRequestBuilder

NewProjectsRequestBuilderInternal instantiates a new ProjectsRequestBuilder and sets the default values.

func (*ProjectsRequestBuilder) Post

Post creates a user project board. Returns a `410 Gone` status if the user does not have existing classic projects. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. returns a Projectable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a ValidationErrorSimple error when the service returns a 422 status code API method documentation

func (*ProjectsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation creates a user project board. Returns a `410 Gone` status if the user does not have existing classic projects. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. returns a *RequestInformation when successful

func (*ProjectsRequestBuilder) WithUrl

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

type Public_emailsRequestBuilder

Public_emailsRequestBuilder builds and executes requests for operations under \user\public_emails

func NewPublic_emailsRequestBuilder

NewPublic_emailsRequestBuilder instantiates a new Public_emailsRequestBuilder and sets the default values.

func NewPublic_emailsRequestBuilderInternal

func NewPublic_emailsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Public_emailsRequestBuilder

NewPublic_emailsRequestBuilderInternal instantiates a new Public_emailsRequestBuilder and sets the default values.

func (*Public_emailsRequestBuilder) Get

Get lists your publicly visible email address, which you can set with the[Set primary email visibility for the authenticated user](https://docs.github.com/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user)endpoint.OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint. returns a []Emailable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*Public_emailsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists your publicly visible email address, which you can set with the[Set primary email visibility for the authenticated user](https://docs.github.com/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user)endpoint.OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint. returns a *RequestInformation when successful

func (*Public_emailsRequestBuilder) WithUrl

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

type Public_emailsRequestBuilderGetQueryParameters

type Public_emailsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

Public_emailsRequestBuilderGetQueryParameters lists your publicly visible email address, which you can set with the[Set primary email visibility for the authenticated user](https://docs.github.com/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user)endpoint.OAuth app tokens and personal access tokens (classic) need the `user:email` scope to use this endpoint.

type ReposPostRequestBody

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

func NewReposPostRequestBody

func NewReposPostRequestBody() *ReposPostRequestBody

NewReposPostRequestBody instantiates a new ReposPostRequestBody and sets the default values.

func (*ReposPostRequestBody) GetAdditionalData

func (m *ReposPostRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*ReposPostRequestBody) GetAllowAutoMerge

func (m *ReposPostRequestBody) GetAllowAutoMerge() *bool

GetAllowAutoMerge gets the allow_auto_merge property value. Whether to allow Auto-merge to be used on pull requests. returns a *bool when successful

func (*ReposPostRequestBody) GetAllowMergeCommit

func (m *ReposPostRequestBody) GetAllowMergeCommit() *bool

GetAllowMergeCommit gets the allow_merge_commit property value. Whether to allow merge commits for pull requests. returns a *bool when successful

func (*ReposPostRequestBody) GetAllowRebaseMerge

func (m *ReposPostRequestBody) GetAllowRebaseMerge() *bool

GetAllowRebaseMerge gets the allow_rebase_merge property value. Whether to allow rebase merges for pull requests. returns a *bool when successful

func (*ReposPostRequestBody) GetAllowSquashMerge

func (m *ReposPostRequestBody) GetAllowSquashMerge() *bool

GetAllowSquashMerge gets the allow_squash_merge property value. Whether to allow squash merges for pull requests. returns a *bool when successful

func (*ReposPostRequestBody) GetAutoInit

func (m *ReposPostRequestBody) GetAutoInit() *bool

GetAutoInit gets the auto_init property value. Whether the repository is initialized with a minimal README. returns a *bool when successful

func (*ReposPostRequestBody) GetDeleteBranchOnMerge

func (m *ReposPostRequestBody) GetDeleteBranchOnMerge() *bool

GetDeleteBranchOnMerge gets the delete_branch_on_merge property value. Whether to delete head branches when pull requests are merged returns a *bool when successful

func (*ReposPostRequestBody) GetDescription

func (m *ReposPostRequestBody) GetDescription() *string

GetDescription gets the description property value. A short description of the repository. returns a *string when successful

func (*ReposPostRequestBody) GetFieldDeserializers

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

func (*ReposPostRequestBody) GetGitignoreTemplate

func (m *ReposPostRequestBody) GetGitignoreTemplate() *string

GetGitignoreTemplate gets the gitignore_template property value. The desired language or platform to apply to the .gitignore. returns a *string when successful

func (*ReposPostRequestBody) GetHasDiscussions

func (m *ReposPostRequestBody) GetHasDiscussions() *bool

GetHasDiscussions gets the has_discussions property value. Whether discussions are enabled. returns a *bool when successful

func (*ReposPostRequestBody) GetHasDownloads

func (m *ReposPostRequestBody) GetHasDownloads() *bool

GetHasDownloads gets the has_downloads property value. Whether downloads are enabled. returns a *bool when successful

func (*ReposPostRequestBody) GetHasIssues

func (m *ReposPostRequestBody) GetHasIssues() *bool

GetHasIssues gets the has_issues property value. Whether issues are enabled. returns a *bool when successful

func (*ReposPostRequestBody) GetHasProjects

func (m *ReposPostRequestBody) GetHasProjects() *bool

GetHasProjects gets the has_projects property value. Whether projects are enabled. returns a *bool when successful

func (*ReposPostRequestBody) GetHasWiki

func (m *ReposPostRequestBody) GetHasWiki() *bool

GetHasWiki gets the has_wiki property value. Whether the wiki is enabled. returns a *bool when successful

func (*ReposPostRequestBody) GetHomepage

func (m *ReposPostRequestBody) GetHomepage() *string

GetHomepage gets the homepage property value. A URL with more information about the repository. returns a *string when successful

func (*ReposPostRequestBody) GetIsTemplate

func (m *ReposPostRequestBody) GetIsTemplate() *bool

GetIsTemplate gets the is_template property value. Whether this repository acts as a template that can be used to generate new repositories. returns a *bool when successful

func (*ReposPostRequestBody) GetLicenseTemplate

func (m *ReposPostRequestBody) GetLicenseTemplate() *string

GetLicenseTemplate gets the license_template property value. The license keyword of the open source license for this repository. returns a *string when successful

func (*ReposPostRequestBody) GetName

func (m *ReposPostRequestBody) GetName() *string

GetName gets the name property value. The name of the repository. returns a *string when successful

func (*ReposPostRequestBody) GetPrivate

func (m *ReposPostRequestBody) GetPrivate() *bool

GetPrivate gets the private property value. Whether the repository is private. returns a *bool when successful

func (*ReposPostRequestBody) GetTeamId

func (m *ReposPostRequestBody) GetTeamId() *int32

GetTeamId gets the team_id property value. The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. returns a *int32 when successful

func (*ReposPostRequestBody) Serialize

Serialize serializes information the current object

func (*ReposPostRequestBody) SetAdditionalData

func (m *ReposPostRequestBody) 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 (*ReposPostRequestBody) SetAllowAutoMerge

func (m *ReposPostRequestBody) SetAllowAutoMerge(value *bool)

SetAllowAutoMerge sets the allow_auto_merge property value. Whether to allow Auto-merge to be used on pull requests.

func (*ReposPostRequestBody) SetAllowMergeCommit

func (m *ReposPostRequestBody) SetAllowMergeCommit(value *bool)

SetAllowMergeCommit sets the allow_merge_commit property value. Whether to allow merge commits for pull requests.

func (*ReposPostRequestBody) SetAllowRebaseMerge

func (m *ReposPostRequestBody) SetAllowRebaseMerge(value *bool)

SetAllowRebaseMerge sets the allow_rebase_merge property value. Whether to allow rebase merges for pull requests.

func (*ReposPostRequestBody) SetAllowSquashMerge

func (m *ReposPostRequestBody) SetAllowSquashMerge(value *bool)

SetAllowSquashMerge sets the allow_squash_merge property value. Whether to allow squash merges for pull requests.

func (*ReposPostRequestBody) SetAutoInit

func (m *ReposPostRequestBody) SetAutoInit(value *bool)

SetAutoInit sets the auto_init property value. Whether the repository is initialized with a minimal README.

func (*ReposPostRequestBody) SetDeleteBranchOnMerge

func (m *ReposPostRequestBody) SetDeleteBranchOnMerge(value *bool)

SetDeleteBranchOnMerge sets the delete_branch_on_merge property value. Whether to delete head branches when pull requests are merged

func (*ReposPostRequestBody) SetDescription

func (m *ReposPostRequestBody) SetDescription(value *string)

SetDescription sets the description property value. A short description of the repository.

func (*ReposPostRequestBody) SetGitignoreTemplate

func (m *ReposPostRequestBody) SetGitignoreTemplate(value *string)

SetGitignoreTemplate sets the gitignore_template property value. The desired language or platform to apply to the .gitignore.

func (*ReposPostRequestBody) SetHasDiscussions

func (m *ReposPostRequestBody) SetHasDiscussions(value *bool)

SetHasDiscussions sets the has_discussions property value. Whether discussions are enabled.

func (*ReposPostRequestBody) SetHasDownloads

func (m *ReposPostRequestBody) SetHasDownloads(value *bool)

SetHasDownloads sets the has_downloads property value. Whether downloads are enabled.

func (*ReposPostRequestBody) SetHasIssues

func (m *ReposPostRequestBody) SetHasIssues(value *bool)

SetHasIssues sets the has_issues property value. Whether issues are enabled.

func (*ReposPostRequestBody) SetHasProjects

func (m *ReposPostRequestBody) SetHasProjects(value *bool)

SetHasProjects sets the has_projects property value. Whether projects are enabled.

func (*ReposPostRequestBody) SetHasWiki

func (m *ReposPostRequestBody) SetHasWiki(value *bool)

SetHasWiki sets the has_wiki property value. Whether the wiki is enabled.

func (*ReposPostRequestBody) SetHomepage

func (m *ReposPostRequestBody) SetHomepage(value *string)

SetHomepage sets the homepage property value. A URL with more information about the repository.

func (*ReposPostRequestBody) SetIsTemplate

func (m *ReposPostRequestBody) SetIsTemplate(value *bool)

SetIsTemplate sets the is_template property value. Whether this repository acts as a template that can be used to generate new repositories.

func (*ReposPostRequestBody) SetLicenseTemplate

func (m *ReposPostRequestBody) SetLicenseTemplate(value *string)

SetLicenseTemplate sets the license_template property value. The license keyword of the open source license for this repository.

func (*ReposPostRequestBody) SetName

func (m *ReposPostRequestBody) SetName(value *string)

SetName sets the name property value. The name of the repository.

func (*ReposPostRequestBody) SetPrivate

func (m *ReposPostRequestBody) SetPrivate(value *bool)

SetPrivate sets the private property value. Whether the repository is private.

func (*ReposPostRequestBody) SetTeamId

func (m *ReposPostRequestBody) SetTeamId(value *int32)

SetTeamId sets the team_id property value. The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.

type ReposPostRequestBodyable

type ReposPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetAllowAutoMerge() *bool
	GetAllowMergeCommit() *bool
	GetAllowRebaseMerge() *bool
	GetAllowSquashMerge() *bool
	GetAutoInit() *bool
	GetDeleteBranchOnMerge() *bool
	GetDescription() *string
	GetGitignoreTemplate() *string
	GetHasDiscussions() *bool
	GetHasDownloads() *bool
	GetHasIssues() *bool
	GetHasProjects() *bool
	GetHasWiki() *bool
	GetHomepage() *string
	GetIsTemplate() *bool
	GetLicenseTemplate() *string
	GetName() *string
	GetPrivate() *bool
	GetTeamId() *int32
	SetAllowAutoMerge(value *bool)
	SetAllowMergeCommit(value *bool)
	SetAllowRebaseMerge(value *bool)
	SetAllowSquashMerge(value *bool)
	SetAutoInit(value *bool)
	SetDeleteBranchOnMerge(value *bool)
	SetDescription(value *string)
	SetGitignoreTemplate(value *string)
	SetHasDiscussions(value *bool)
	SetHasDownloads(value *bool)
	SetHasIssues(value *bool)
	SetHasProjects(value *bool)
	SetHasWiki(value *bool)
	SetHomepage(value *string)
	SetIsTemplate(value *bool)
	SetLicenseTemplate(value *string)
	SetName(value *string)
	SetPrivate(value *bool)
	SetTeamId(value *int32)
}

type ReposRequestBuilder

ReposRequestBuilder builds and executes requests for operations under \user\repos

func NewReposRequestBuilder

NewReposRequestBuilder instantiates a new ReposRequestBuilder and sets the default values.

func NewReposRequestBuilderInternal

func NewReposRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ReposRequestBuilder

NewReposRequestBuilderInternal instantiates a new ReposRequestBuilder and sets the default values.

func (*ReposRequestBuilder) Get

Get lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. returns a []Repositoryable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ReposRequestBuilder) Post

Post creates a new repository for the authenticated user.OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to create a public repository, and `repo` scope to create a private repository. returns a FullRepositoryable when successful returns a BasicError error when the service returns a 400 status code returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ReposRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. returns a *RequestInformation when successful

func (*ReposRequestBuilder) ToPostRequestInformation

ToPostRequestInformation creates a new repository for the authenticated user.OAuth app tokens and personal access tokens (classic) need the `public_repo` or `repo` scope to create a public repository, and `repo` scope to create a private repository. returns a *RequestInformation when successful

func (*ReposRequestBuilder) WithUrl

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

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

type ReposRequestBuilderGetQueryParameters

type ReposRequestBuilderGetQueryParameters struct {
	// Comma-separated list of values. Can include:   * `owner`: Repositories that are owned by the authenticated user.   * `collaborator`: Repositories that the user has been added to as a collaborator.   * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on.
	Affiliation *string `uriparametername:"affiliation"`
	// Only show repositories updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	Before *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time `uriparametername:"before"`
	// The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`.
	Direction *ic41ef9159df965bc9bcc557811709320ac0b4b0d40eefb8bfc234c584bcd174e.GetDirectionQueryParameterType `uriparametername:"direction"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// Only show repositories updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	Since *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time `uriparametername:"since"`
	// The property to sort the results by.
	Sort *ic41ef9159df965bc9bcc557811709320ac0b4b0d40eefb8bfc234c584bcd174e.GetSortQueryParameterType `uriparametername:"sort"`
	// Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**.
	Type *ic41ef9159df965bc9bcc557811709320ac0b4b0d40eefb8bfc234c584bcd174e.GetTypeQueryParameterType `uriparametername:"type"`
	// Limit results to repositories with the specified visibility.
	Visibility *ic41ef9159df965bc9bcc557811709320ac0b4b0d40eefb8bfc234c584bcd174e.GetVisibilityQueryParameterType `uriparametername:"visibility"`
}

ReposRequestBuilderGetQueryParameters lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.

type Repository_invitationsRequestBuilder

type Repository_invitationsRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

Repository_invitationsRequestBuilder builds and executes requests for operations under \user\repository_invitations

func NewRepository_invitationsRequestBuilder

NewRepository_invitationsRequestBuilder instantiates a new Repository_invitationsRequestBuilder and sets the default values.

func NewRepository_invitationsRequestBuilderInternal

func NewRepository_invitationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Repository_invitationsRequestBuilder

NewRepository_invitationsRequestBuilderInternal instantiates a new Repository_invitationsRequestBuilder and sets the default values.

func (*Repository_invitationsRequestBuilder) ByInvitation_id

ByInvitation_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.repository_invitations.item collection returns a *Repository_invitationsWithInvitation_ItemRequestBuilder when successful

func (*Repository_invitationsRequestBuilder) Get

Get when authenticating as a user, this endpoint will list all currently open repository invitations for that user. returns a []RepositoryInvitationable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*Repository_invitationsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation when authenticating as a user, this endpoint will list all currently open repository invitations for that user. returns a *RequestInformation when successful

func (*Repository_invitationsRequestBuilder) WithUrl

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

type Repository_invitationsRequestBuilderGetQueryParameters

type Repository_invitationsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

Repository_invitationsRequestBuilderGetQueryParameters when authenticating as a user, this endpoint will list all currently open repository invitations for that user.

type Repository_invitationsWithInvitation_ItemRequestBuilder

type Repository_invitationsWithInvitation_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

Repository_invitationsWithInvitation_ItemRequestBuilder builds and executes requests for operations under \user\repository_invitations\{invitation_id}

func NewRepository_invitationsWithInvitation_ItemRequestBuilder

func NewRepository_invitationsWithInvitation_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Repository_invitationsWithInvitation_ItemRequestBuilder

NewRepository_invitationsWithInvitation_ItemRequestBuilder instantiates a new Repository_invitationsWithInvitation_ItemRequestBuilder and sets the default values.

func NewRepository_invitationsWithInvitation_ItemRequestBuilderInternal

func NewRepository_invitationsWithInvitation_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Repository_invitationsWithInvitation_ItemRequestBuilder

NewRepository_invitationsWithInvitation_ItemRequestBuilderInternal instantiates a new Repository_invitationsWithInvitation_ItemRequestBuilder and sets the default values.

func (*Repository_invitationsWithInvitation_ItemRequestBuilder) Delete

Delete decline a repository invitation returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 409 status code API method documentation

func (*Repository_invitationsWithInvitation_ItemRequestBuilder) Patch

Patch accept a repository invitation returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a BasicError error when the service returns a 409 status code API method documentation

func (*Repository_invitationsWithInvitation_ItemRequestBuilder) WithUrl

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

type Social_accountsDeleteRequestBody

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

func NewSocial_accountsDeleteRequestBody

func NewSocial_accountsDeleteRequestBody() *Social_accountsDeleteRequestBody

NewSocial_accountsDeleteRequestBody instantiates a new Social_accountsDeleteRequestBody and sets the default values.

func (*Social_accountsDeleteRequestBody) GetAccountUrls

func (m *Social_accountsDeleteRequestBody) GetAccountUrls() []string

GetAccountUrls gets the account_urls property value. Full URLs for the social media profiles to delete. returns a []string when successful

func (*Social_accountsDeleteRequestBody) GetAdditionalData

func (m *Social_accountsDeleteRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*Social_accountsDeleteRequestBody) GetFieldDeserializers

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

func (*Social_accountsDeleteRequestBody) Serialize

Serialize serializes information the current object

func (*Social_accountsDeleteRequestBody) SetAccountUrls

func (m *Social_accountsDeleteRequestBody) SetAccountUrls(value []string)

SetAccountUrls sets the account_urls property value. Full URLs for the social media profiles to delete.

func (*Social_accountsDeleteRequestBody) SetAdditionalData

func (m *Social_accountsDeleteRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type Social_accountsPostRequestBody

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

func NewSocial_accountsPostRequestBody

func NewSocial_accountsPostRequestBody() *Social_accountsPostRequestBody

NewSocial_accountsPostRequestBody instantiates a new Social_accountsPostRequestBody and sets the default values.

func (*Social_accountsPostRequestBody) GetAccountUrls

func (m *Social_accountsPostRequestBody) GetAccountUrls() []string

GetAccountUrls gets the account_urls property value. Full URLs for the social media profiles to add. returns a []string when successful

func (*Social_accountsPostRequestBody) GetAdditionalData

func (m *Social_accountsPostRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*Social_accountsPostRequestBody) GetFieldDeserializers

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

func (*Social_accountsPostRequestBody) Serialize

Serialize serializes information the current object

func (*Social_accountsPostRequestBody) SetAccountUrls

func (m *Social_accountsPostRequestBody) SetAccountUrls(value []string)

SetAccountUrls sets the account_urls property value. Full URLs for the social media profiles to add.

func (*Social_accountsPostRequestBody) SetAdditionalData

func (m *Social_accountsPostRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type Social_accountsRequestBuilder

Social_accountsRequestBuilder builds and executes requests for operations under \user\social_accounts

func NewSocial_accountsRequestBuilder

NewSocial_accountsRequestBuilder instantiates a new Social_accountsRequestBuilder and sets the default values.

func NewSocial_accountsRequestBuilderInternal

func NewSocial_accountsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Social_accountsRequestBuilder

NewSocial_accountsRequestBuilderInternal instantiates a new Social_accountsRequestBuilder and sets the default values.

func (*Social_accountsRequestBuilder) Delete

Delete deletes one or more social accounts from the authenticated user's profile.OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*Social_accountsRequestBuilder) Get

Get lists all of your social accounts. returns a []SocialAccountable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*Social_accountsRequestBuilder) Post

Post add one or more social accounts to the authenticated user's profile.OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. returns a []SocialAccountable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*Social_accountsRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes one or more social accounts from the authenticated user's profile.OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. returns a *RequestInformation when successful

func (*Social_accountsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all of your social accounts. returns a *RequestInformation when successful

func (*Social_accountsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation add one or more social accounts to the authenticated user's profile.OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint. returns a *RequestInformation when successful

func (*Social_accountsRequestBuilder) WithUrl

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

type Social_accountsRequestBuilderGetQueryParameters

type Social_accountsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

Social_accountsRequestBuilderGetQueryParameters lists all of your social accounts.

type Ssh_signing_keysPostRequestBody

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

func NewSsh_signing_keysPostRequestBody

func NewSsh_signing_keysPostRequestBody() *Ssh_signing_keysPostRequestBody

NewSsh_signing_keysPostRequestBody instantiates a new Ssh_signing_keysPostRequestBody and sets the default values.

func (*Ssh_signing_keysPostRequestBody) GetAdditionalData

func (m *Ssh_signing_keysPostRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*Ssh_signing_keysPostRequestBody) GetFieldDeserializers

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

func (*Ssh_signing_keysPostRequestBody) GetKey

GetKey gets the key property value. The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)." returns a *string when successful

func (*Ssh_signing_keysPostRequestBody) GetTitle

func (m *Ssh_signing_keysPostRequestBody) GetTitle() *string

GetTitle gets the title property value. A descriptive name for the new key. returns a *string when successful

func (*Ssh_signing_keysPostRequestBody) Serialize

Serialize serializes information the current object

func (*Ssh_signing_keysPostRequestBody) SetAdditionalData

func (m *Ssh_signing_keysPostRequestBody) 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 (*Ssh_signing_keysPostRequestBody) SetKey

func (m *Ssh_signing_keysPostRequestBody) SetKey(value *string)

SetKey sets the key property value. The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."

func (*Ssh_signing_keysPostRequestBody) SetTitle

func (m *Ssh_signing_keysPostRequestBody) SetTitle(value *string)

SetTitle sets the title property value. A descriptive name for the new key.

type Ssh_signing_keysRequestBuilder

Ssh_signing_keysRequestBuilder builds and executes requests for operations under \user\ssh_signing_keys

func NewSsh_signing_keysRequestBuilder

NewSsh_signing_keysRequestBuilder instantiates a new Ssh_signing_keysRequestBuilder and sets the default values.

func NewSsh_signing_keysRequestBuilderInternal

func NewSsh_signing_keysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Ssh_signing_keysRequestBuilder

NewSsh_signing_keysRequestBuilderInternal instantiates a new Ssh_signing_keysRequestBuilder and sets the default values.

func (*Ssh_signing_keysRequestBuilder) BySsh_signing_key_id

BySsh_signing_key_id gets an item from the github.com/octokit/go-sdk/pkg/github.user.ssh_signing_keys.item collection returns a *Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder when successful

func (*Ssh_signing_keysRequestBuilder) Get

Get lists the SSH signing keys for the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint. returns a []SshSigningKeyable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*Ssh_signing_keysRequestBuilder) Post

Post creates an SSH signing key for the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `write:ssh_signing_key` scope to use this endpoint. returns a SshSigningKeyable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*Ssh_signing_keysRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists the SSH signing keys for the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*Ssh_signing_keysRequestBuilder) ToPostRequestInformation

ToPostRequestInformation creates an SSH signing key for the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `write:ssh_signing_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*Ssh_signing_keysRequestBuilder) WithUrl

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

type Ssh_signing_keysRequestBuilderGetQueryParameters

type Ssh_signing_keysRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

Ssh_signing_keysRequestBuilderGetQueryParameters lists the SSH signing keys for the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint.

type Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder

type Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder builds and executes requests for operations under \user\ssh_signing_keys\{ssh_signing_key_id}

func NewSsh_signing_keysWithSsh_signing_key_ItemRequestBuilder

func NewSsh_signing_keysWithSsh_signing_key_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder

NewSsh_signing_keysWithSsh_signing_key_ItemRequestBuilder instantiates a new Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder and sets the default values.

func NewSsh_signing_keysWithSsh_signing_key_ItemRequestBuilderInternal

func NewSsh_signing_keysWithSsh_signing_key_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder

NewSsh_signing_keysWithSsh_signing_key_ItemRequestBuilderInternal instantiates a new Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder and sets the default values.

func (*Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder) Delete

Delete deletes an SSH signing key from the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `admin:ssh_signing_key` scope to use this endpoint. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder) Get

Get gets extended details for an SSH signing key.OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint. returns a SshSigningKeyable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes an SSH signing key from the authenticated user's GitHub account.OAuth app tokens and personal access tokens (classic) need the `admin:ssh_signing_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation gets extended details for an SSH signing key.OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint. returns a *RequestInformation when successful

func (*Ssh_signing_keysWithSsh_signing_key_ItemRequestBuilder) WithUrl

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

type StarredItemWithRepoItemRequestBuilder

type StarredItemWithRepoItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

StarredItemWithRepoItemRequestBuilder builds and executes requests for operations under \user\starred\{owner}\{repo}

func NewStarredItemWithRepoItemRequestBuilder

NewStarredItemWithRepoItemRequestBuilder instantiates a new StarredItemWithRepoItemRequestBuilder and sets the default values.

func NewStarredItemWithRepoItemRequestBuilderInternal

func NewStarredItemWithRepoItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *StarredItemWithRepoItemRequestBuilder

NewStarredItemWithRepoItemRequestBuilderInternal instantiates a new StarredItemWithRepoItemRequestBuilder and sets the default values.

func (*StarredItemWithRepoItemRequestBuilder) Delete

Delete unstar a repository that the authenticated user has previously starred. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*StarredItemWithRepoItemRequestBuilder) Get

Get whether the authenticated user has starred the repository. returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*StarredItemWithRepoItemRequestBuilder) Put

Put note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*StarredItemWithRepoItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation unstar a repository that the authenticated user has previously starred. returns a *RequestInformation when successful

func (*StarredItemWithRepoItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation whether the authenticated user has starred the repository. returns a *RequestInformation when successful

func (*StarredItemWithRepoItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)." returns a *RequestInformation when successful

func (*StarredItemWithRepoItemRequestBuilder) WithUrl

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

type StarredRequestBuilder

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

func NewStarredRequestBuilder

NewStarredRequestBuilder instantiates a new StarredRequestBuilder and sets the default values.

func NewStarredRequestBuilderInternal

func NewStarredRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *StarredRequestBuilder

NewStarredRequestBuilderInternal instantiates a new StarredRequestBuilder and sets the default values.

func (*StarredRequestBuilder) ByOwner

ByOwner gets an item from the github.com/octokit/go-sdk/pkg/github.user.starred.item collection returns a *StarredWithOwnerItemRequestBuilder when successful

func (*StarredRequestBuilder) Get

Get lists repositories the authenticated user has starred.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.star+json`**: Includes a timestamp of when the star was created. returns a []Repositoryable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code API method documentation

func (*StarredRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists repositories the authenticated user has starred.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.star+json`**: Includes a timestamp of when the star was created. returns a *RequestInformation when successful

func (*StarredRequestBuilder) WithUrl

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

type StarredRequestBuilderGetQueryParameters

type StarredRequestBuilderGetQueryParameters struct {
	// The direction to sort the results by.
	Direction *ib70b7407366e940878b2bf2a2ba5d70a3ff5c77a8b73175161353f0ca9989d8b.GetDirectionQueryParameterType `uriparametername:"direction"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to.
	Sort *ib70b7407366e940878b2bf2a2ba5d70a3ff5c77a8b73175161353f0ca9989d8b.GetSortQueryParameterType `uriparametername:"sort"`
}

StarredRequestBuilderGetQueryParameters lists repositories the authenticated user has starred.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.star+json`**: Includes a timestamp of when the star was created.

type StarredWithOwnerItemRequestBuilder

StarredWithOwnerItemRequestBuilder builds and executes requests for operations under \user\starred\{owner}

func NewStarredWithOwnerItemRequestBuilder

NewStarredWithOwnerItemRequestBuilder instantiates a new StarredWithOwnerItemRequestBuilder and sets the default values.

func NewStarredWithOwnerItemRequestBuilderInternal

func NewStarredWithOwnerItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *StarredWithOwnerItemRequestBuilder

NewStarredWithOwnerItemRequestBuilderInternal instantiates a new StarredWithOwnerItemRequestBuilder and sets the default values.

func (*StarredWithOwnerItemRequestBuilder) ByRepo

ByRepo gets an item from the github.com/octokit/go-sdk/pkg/github.user.starred.item.item collection returns a *StarredItemWithRepoItemRequestBuilder when successful

type SubscriptionsRequestBuilder

SubscriptionsRequestBuilder builds and executes requests for operations under \user\subscriptions

func NewSubscriptionsRequestBuilder

NewSubscriptionsRequestBuilder instantiates a new SubscriptionsRequestBuilder and sets the default values.

func NewSubscriptionsRequestBuilderInternal

func NewSubscriptionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *SubscriptionsRequestBuilder

NewSubscriptionsRequestBuilderInternal instantiates a new SubscriptionsRequestBuilder and sets the default values.

func (*SubscriptionsRequestBuilder) Get

Get lists repositories the authenticated user is watching. returns a []MinimalRepositoryable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code API method documentation

func (*SubscriptionsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists repositories the authenticated user is watching. returns a *RequestInformation when successful

func (*SubscriptionsRequestBuilder) WithUrl

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

type SubscriptionsRequestBuilderGetQueryParameters

type SubscriptionsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

SubscriptionsRequestBuilderGetQueryParameters lists repositories the authenticated user is watching.

type TeamsRequestBuilder

TeamsRequestBuilder builds and executes requests for operations under \user\teams

func NewTeamsRequestBuilder

NewTeamsRequestBuilder instantiates a new TeamsRequestBuilder and sets the default values.

func NewTeamsRequestBuilderInternal

func NewTeamsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *TeamsRequestBuilder

NewTeamsRequestBuilderInternal instantiates a new TeamsRequestBuilder and sets the default values.

func (*TeamsRequestBuilder) Get

Get list all of the teams across all of the organizations to which the authenticateduser belongs.OAuth app tokens and personal access tokens (classic) need the `user`, `repo`, or `read:org` scope to use this endpoint.When using a fine-grained personal access token, the resource owner of the token must be a single organization, and the response will only include the teams from that organization. returns a []TeamFullable when successful returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code API method documentation

func (*TeamsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation list all of the teams across all of the organizations to which the authenticateduser belongs.OAuth app tokens and personal access tokens (classic) need the `user`, `repo`, or `read:org` scope to use this endpoint.When using a fine-grained personal access token, the resource owner of the token must be a single organization, and the response will only include the teams from that organization. returns a *RequestInformation when successful

func (*TeamsRequestBuilder) WithUrl

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

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

type TeamsRequestBuilderGetQueryParameters

type TeamsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

TeamsRequestBuilderGetQueryParameters list all of the teams across all of the organizations to which the authenticateduser belongs.OAuth app tokens and personal access tokens (classic) need the `user`, `repo`, or `read:org` scope to use this endpoint.When using a fine-grained personal access token, the resource owner of the token must be a single organization, and the response will only include the teams from that organization.

type UserGetResponse

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

UserGetResponse composed type wrapper for classes i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.PrivateUserable, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.PublicUserable

func NewUserGetResponse

func NewUserGetResponse() *UserGetResponse

NewUserGetResponse instantiates a new UserGetResponse and sets the default values.

func (*UserGetResponse) GetFieldDeserializers

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

func (*UserGetResponse) GetIsComposedType

func (m *UserGetResponse) GetIsComposedType() bool

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

func (*UserGetResponse) GetPrivateUser

GetPrivateUser gets the privateUser property value. Composed type representation for type i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.PrivateUserable returns a PrivateUserable when successful

func (*UserGetResponse) GetPublicUser

GetPublicUser gets the publicUser property value. Composed type representation for type i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.PublicUserable returns a PublicUserable when successful

func (*UserGetResponse) Serialize

Serialize serializes information the current object

func (*UserGetResponse) SetPrivateUser

SetPrivateUser sets the privateUser property value. Composed type representation for type i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.PrivateUserable

func (*UserGetResponse) SetPublicUser

SetPublicUser sets the publicUser property value. Composed type representation for type i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.PublicUserable

type UserPatchRequestBody

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

func NewUserPatchRequestBody

func NewUserPatchRequestBody() *UserPatchRequestBody

NewUserPatchRequestBody instantiates a new UserPatchRequestBody and sets the default values.

func (*UserPatchRequestBody) GetAdditionalData

func (m *UserPatchRequestBody) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*UserPatchRequestBody) GetBio

func (m *UserPatchRequestBody) GetBio() *string

GetBio gets the bio property value. The new short biography of the user. returns a *string when successful

func (*UserPatchRequestBody) GetBlog

func (m *UserPatchRequestBody) GetBlog() *string

GetBlog gets the blog property value. The new blog URL of the user. returns a *string when successful

func (*UserPatchRequestBody) GetCompany

func (m *UserPatchRequestBody) GetCompany() *string

GetCompany gets the company property value. The new company of the user. returns a *string when successful

func (*UserPatchRequestBody) GetEmail

func (m *UserPatchRequestBody) GetEmail() *string

GetEmail gets the email property value. The publicly visible email address of the user. returns a *string when successful

func (*UserPatchRequestBody) GetFieldDeserializers

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

func (*UserPatchRequestBody) GetHireable

func (m *UserPatchRequestBody) GetHireable() *bool

GetHireable gets the hireable property value. The new hiring availability of the user. returns a *bool when successful

func (*UserPatchRequestBody) GetLocation

func (m *UserPatchRequestBody) GetLocation() *string

GetLocation gets the location property value. The new location of the user. returns a *string when successful

func (*UserPatchRequestBody) GetName

func (m *UserPatchRequestBody) GetName() *string

GetName gets the name property value. The new name of the user. returns a *string when successful

func (*UserPatchRequestBody) GetTwitterUsername

func (m *UserPatchRequestBody) GetTwitterUsername() *string

GetTwitterUsername gets the twitter_username property value. The new Twitter username of the user. returns a *string when successful

func (*UserPatchRequestBody) Serialize

Serialize serializes information the current object

func (*UserPatchRequestBody) SetAdditionalData

func (m *UserPatchRequestBody) 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 (*UserPatchRequestBody) SetBio

func (m *UserPatchRequestBody) SetBio(value *string)

SetBio sets the bio property value. The new short biography of the user.

func (*UserPatchRequestBody) SetBlog

func (m *UserPatchRequestBody) SetBlog(value *string)

SetBlog sets the blog property value. The new blog URL of the user.

func (*UserPatchRequestBody) SetCompany

func (m *UserPatchRequestBody) SetCompany(value *string)

SetCompany sets the company property value. The new company of the user.

func (*UserPatchRequestBody) SetEmail

func (m *UserPatchRequestBody) SetEmail(value *string)

SetEmail sets the email property value. The publicly visible email address of the user.

func (*UserPatchRequestBody) SetHireable

func (m *UserPatchRequestBody) SetHireable(value *bool)

SetHireable sets the hireable property value. The new hiring availability of the user.

func (*UserPatchRequestBody) SetLocation

func (m *UserPatchRequestBody) SetLocation(value *string)

SetLocation sets the location property value. The new location of the user.

func (*UserPatchRequestBody) SetName

func (m *UserPatchRequestBody) SetName(value *string)

SetName sets the name property value. The new name of the user.

func (*UserPatchRequestBody) SetTwitterUsername

func (m *UserPatchRequestBody) SetTwitterUsername(value *string)

SetTwitterUsername sets the twitter_username property value. The new Twitter username of the user.

type UserPatchRequestBodyable

type UserPatchRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetBio() *string
	GetBlog() *string
	GetCompany() *string
	GetEmail() *string
	GetHireable() *bool
	GetLocation() *string
	GetName() *string
	GetTwitterUsername() *string
	SetBio(value *string)
	SetBlog(value *string)
	SetCompany(value *string)
	SetEmail(value *string)
	SetHireable(value *bool)
	SetLocation(value *string)
	SetName(value *string)
	SetTwitterUsername(value *string)
}

type UserRequestBuilder

UserRequestBuilder builds and executes requests for operations under \user

func NewUserRequestBuilder

NewUserRequestBuilder instantiates a new UserRequestBuilder and sets the default values.

func NewUserRequestBuilderInternal

func NewUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *UserRequestBuilder

NewUserRequestBuilderInternal instantiates a new UserRequestBuilder and sets the default values.

func (*UserRequestBuilder) Blocks

Blocks the blocks property returns a *BlocksRequestBuilder when successful

func (*UserRequestBuilder) Codespaces

Codespaces the codespaces property returns a *CodespacesRequestBuilder when successful

func (*UserRequestBuilder) Docker

Docker the docker property returns a *DockerRequestBuilder when successful

func (*UserRequestBuilder) Email

Email the email property returns a *EmailRequestBuilder when successful

func (*UserRequestBuilder) Emails

Emails the emails property returns a *EmailsRequestBuilder when successful

func (*UserRequestBuilder) Followers

Followers the followers property returns a *FollowersRequestBuilder when successful

func (*UserRequestBuilder) Following

Following the following property returns a *FollowingRequestBuilder when successful

func (*UserRequestBuilder) Get

Get oAuth app tokens and personal access tokens (classic) need the `user` scope in order for the response to include private profile information. returns a UserGetResponseable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code API method documentation

func (*UserRequestBuilder) Gpg_keys

Gpg_keys the gpg_keys property returns a *Gpg_keysRequestBuilder when successful

func (*UserRequestBuilder) Installations

func (m *UserRequestBuilder) Installations() *InstallationsRequestBuilder

Installations the installations property returns a *InstallationsRequestBuilder when successful

func (*UserRequestBuilder) InteractionLimits

func (m *UserRequestBuilder) InteractionLimits() *InteractionLimitsRequestBuilder

InteractionLimits the interactionLimits property returns a *InteractionLimitsRequestBuilder when successful

func (*UserRequestBuilder) Issues

Issues the issues property returns a *IssuesRequestBuilder when successful

func (*UserRequestBuilder) Keys

Keys the keys property returns a *KeysRequestBuilder when successful

func (*UserRequestBuilder) Marketplace_purchases

func (m *UserRequestBuilder) Marketplace_purchases() *Marketplace_purchasesRequestBuilder

Marketplace_purchases the marketplace_purchases property returns a *Marketplace_purchasesRequestBuilder when successful

func (*UserRequestBuilder) Memberships

Memberships the memberships property returns a *MembershipsRequestBuilder when successful

func (*UserRequestBuilder) Migrations

Migrations the migrations property returns a *MigrationsRequestBuilder when successful

func (*UserRequestBuilder) Orgs

Orgs the orgs property returns a *OrgsRequestBuilder when successful

func (*UserRequestBuilder) Packages

Packages the packages property returns a *PackagesRequestBuilder when successful

func (*UserRequestBuilder) Patch

Patch **Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API. returns a PrivateUserable when successful returns a BasicError error when the service returns a 401 status code returns a BasicError error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*UserRequestBuilder) Projects

Projects the projects property returns a *ProjectsRequestBuilder when successful

func (*UserRequestBuilder) Public_emails

func (m *UserRequestBuilder) Public_emails() *Public_emailsRequestBuilder

Public_emails the public_emails property returns a *Public_emailsRequestBuilder when successful

func (*UserRequestBuilder) Repos

Repos the repos property returns a *ReposRequestBuilder when successful

func (*UserRequestBuilder) Repository_invitations

func (m *UserRequestBuilder) Repository_invitations() *Repository_invitationsRequestBuilder

Repository_invitations the repository_invitations property returns a *Repository_invitationsRequestBuilder when successful

func (*UserRequestBuilder) Social_accounts

func (m *UserRequestBuilder) Social_accounts() *Social_accountsRequestBuilder

Social_accounts the social_accounts property returns a *Social_accountsRequestBuilder when successful

func (*UserRequestBuilder) Ssh_signing_keys

func (m *UserRequestBuilder) Ssh_signing_keys() *Ssh_signing_keysRequestBuilder

Ssh_signing_keys the ssh_signing_keys property returns a *Ssh_signing_keysRequestBuilder when successful

func (*UserRequestBuilder) Starred

Starred the starred property returns a *StarredRequestBuilder when successful

func (*UserRequestBuilder) Subscriptions

func (m *UserRequestBuilder) Subscriptions() *SubscriptionsRequestBuilder

Subscriptions the subscriptions property returns a *SubscriptionsRequestBuilder when successful

func (*UserRequestBuilder) Teams

Teams the teams property returns a *TeamsRequestBuilder when successful

func (*UserRequestBuilder) ToGetRequestInformation

ToGetRequestInformation oAuth app tokens and personal access tokens (classic) need the `user` scope in order for the response to include private profile information. returns a *RequestInformation when successful

func (*UserRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation **Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API. returns a *RequestInformation when successful

func (*UserRequestBuilder) WithUrl

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

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

Source Files

Directories

Path Synopsis
email
memberships

Jump to

Keyboard shortcuts

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