user

package
v0.0.5-GHES.3.13 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

func CreateWithAccount_GetResponseFromDiscriminatorValue

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

Types

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 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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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 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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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 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 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 this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `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 pull request id, use the "[List pull requests](https://docs.github.com/enterprise-server@3.13/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/enterprise-server@3.13/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 this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `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 pull request id, use the "[List pull requests](https://docs.github.com/enterprise-server@3.13/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/enterprise-server@3.13/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 *if1ab960635ffd41eb7eab1756c5d146b16383eb2ff1e0b7e2e3d3e0d7cb926a1.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 *if1ab960635ffd41eb7eab1756c5d146b16383eb2ff1e0b7e2e3d3e0d7cb926a1.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/enterprise-server@3.13/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/enterprise-server@3.13/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 *if1ab960635ffd41eb7eab1756c5d146b16383eb2ff1e0b7e2e3d3e0d7cb926a1.GetSortQueryParameterType `uriparametername:"sort"`
	// Indicates the state of the issues to return.
	State *if1ab960635ffd41eb7eab1756c5d146b16383eb2ff1e0b7e2e3d3e0d7cb926a1.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 this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `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 pull request id, use the "[List pull requests](https://docs.github.com/enterprise-server@3.13/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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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 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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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 *i841e0512172b6bc6cebe7fa6307ef8fd6049762720795a9f1c68e59ce67a9757.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) 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) 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 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/enterprise-server@3.13/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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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) Repositories

Repositories the repositories property returns a *MigrationsItemRepositoriesRequestBuilder when successful

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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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 *ie3e38d3c245e5a60c6e23d0be682cf222ca82a823bcffdd08be0dd88d18ed80e.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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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 *idfe81f62bf34ae3347ccebafe6ad58dc6a612f663d209b1f2887e70ecb7726ff.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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."
	Visibility *idfe81f62bf34ae3347ccebafe6ad58dc6a612f663d209b1f2887e70ecb7726ff.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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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 *i8f8c4ae879d3b2cece00b776182b259c82b1f089c9c6960a8d7f1a7a4f77c524.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/enterprise-server@3.13/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/enterprise-server@3.13/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 *i8f8c4ae879d3b2cece00b776182b259c82b1f089c9c6960a8d7f1a7a4f77c524.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 *i8f8c4ae879d3b2cece00b776182b259c82b1f089c9c6960a8d7f1a7a4f77c524.GetTypeQueryParameterType `uriparametername:"type"`
	// Limit results to repositories with the specified visibility.
	Visibility *i8f8c4ae879d3b2cece00b776182b259c82b1f089c9c6960a8d7f1a7a4f77c524.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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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 *icd0d0eeb49e0011ccac02b4e4a0d91480a7f99532147b4eb2ededb1cd9194f0f.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/enterprise-server@3.13/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/enterprise-server@3.13/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 *icd0d0eeb49e0011ccac02b4e4a0d91480a7f99532147b4eb2ededb1cd9194f0f.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/enterprise-server@3.13/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-enterprise-server/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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/enterprise-server@3.13/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 ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.PrivateUserable, ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.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 ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.PrivateUserable returns a PrivateUserable when successful

func (*UserGetResponse) GetPublicUser

GetPublicUser gets the publicUser property value. Composed type representation for type ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.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 ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.PrivateUserable

func (*UserGetResponse) SetPublicUser

SetPublicUser sets the publicUser property value. Composed type representation for type ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.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) ByAccount_id

func (m *UserRequestBuilder) ByAccount_id(account_id int32) *WithAccount_ItemRequestBuilder

ByAccount_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.user.item collection returns a *WithAccount_ItemRequestBuilder when successful

func (*UserRequestBuilder) Docker

Docker the docker property returns a *DockerRequestBuilder 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) Issues

Issues the issues property returns a *IssuesRequestBuilder when successful

func (*UserRequestBuilder) Keys

Keys the keys property returns a *KeysRequestBuilder 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

type WithAccount_GetResponse

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

WithAccount_GetResponse composed type wrapper for classes ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.PrivateUserable, ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.PublicUserable

func NewWithAccount_GetResponse

func NewWithAccount_GetResponse() *WithAccount_GetResponse

NewWithAccount_GetResponse instantiates a new WithAccount_GetResponse and sets the default values.

func (*WithAccount_GetResponse) GetFieldDeserializers

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

func (*WithAccount_GetResponse) GetIsComposedType

func (m *WithAccount_GetResponse) GetIsComposedType() bool

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

func (*WithAccount_GetResponse) GetPrivateUser

GetPrivateUser gets the privateUser property value. Composed type representation for type ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.PrivateUserable returns a PrivateUserable when successful

func (*WithAccount_GetResponse) GetPublicUser

GetPublicUser gets the publicUser property value. Composed type representation for type ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.PublicUserable returns a PublicUserable when successful

func (*WithAccount_GetResponse) Serialize

Serialize serializes information the current object

func (*WithAccount_GetResponse) SetPrivateUser

SetPrivateUser sets the privateUser property value. Composed type representation for type ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.PrivateUserable

func (*WithAccount_GetResponse) SetPublicUser

SetPublicUser sets the publicUser property value. Composed type representation for type ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.PublicUserable

type WithAccount_ItemRequestBuilder

WithAccount_ItemRequestBuilder builds and executes requests for operations under \user\{account_id}

func NewWithAccount_ItemRequestBuilder

NewWithAccount_ItemRequestBuilder instantiates a new WithAccount_ItemRequestBuilder and sets the default values.

func NewWithAccount_ItemRequestBuilderInternal

func NewWithAccount_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithAccount_ItemRequestBuilder

NewWithAccount_ItemRequestBuilderInternal instantiates a new WithAccount_ItemRequestBuilder and sets the default values.

func (*WithAccount_ItemRequestBuilder) Get

Get provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.13/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.13/rest/users/emails)". returns a WithAccount_GetResponseable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*WithAccount_ItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.13/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.13/rest/users/emails)". returns a *RequestInformation when successful

func (*WithAccount_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 *WithAccount_ItemRequestBuilder when successful

Source Files

Directories

Path Synopsis
memberships

Jump to

Keyboard shortcuts

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