applications

package
v0.0.30 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateItemGrantDeleteRequestBodyFromDiscriminatorValue

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

func CreateItemTokenDeleteRequestBodyFromDiscriminatorValue

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

func CreateItemTokenPatchRequestBodyFromDiscriminatorValue

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

func CreateItemTokenPostRequestBodyFromDiscriminatorValue

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

func CreateItemTokenScopedPostRequestBodyFromDiscriminatorValue

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

Types

type ApplicationsRequestBuilder

ApplicationsRequestBuilder builds and executes requests for operations under \applications

func NewApplicationsRequestBuilder

NewApplicationsRequestBuilder instantiates a new ApplicationsRequestBuilder and sets the default values.

func NewApplicationsRequestBuilderInternal

func NewApplicationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ApplicationsRequestBuilder

NewApplicationsRequestBuilderInternal instantiates a new ApplicationsRequestBuilder and sets the default values.

func (*ApplicationsRequestBuilder) ByClient_id

ByClient_id gets an item from the github.com/octokit/go-sdk/pkg/github.applications.item collection returns a *WithClient_ItemRequestBuilder when successful

type ItemGrantDeleteRequestBody

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

func NewItemGrantDeleteRequestBody

func NewItemGrantDeleteRequestBody() *ItemGrantDeleteRequestBody

NewItemGrantDeleteRequestBody instantiates a new ItemGrantDeleteRequestBody and sets the default values.

func (*ItemGrantDeleteRequestBody) GetAccessToken

func (m *ItemGrantDeleteRequestBody) GetAccessToken() *string

GetAccessToken gets the access_token property value. The OAuth access token used to authenticate to the GitHub API. returns a *string when successful

func (*ItemGrantDeleteRequestBody) GetAdditionalData

func (m *ItemGrantDeleteRequestBody) 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 (*ItemGrantDeleteRequestBody) GetFieldDeserializers

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

func (*ItemGrantDeleteRequestBody) Serialize

Serialize serializes information the current object

func (*ItemGrantDeleteRequestBody) SetAccessToken

func (m *ItemGrantDeleteRequestBody) SetAccessToken(value *string)

SetAccessToken sets the access_token property value. The OAuth access token used to authenticate to the GitHub API.

func (*ItemGrantDeleteRequestBody) SetAdditionalData

func (m *ItemGrantDeleteRequestBody) 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 ItemGrantRequestBuilder

ItemGrantRequestBuilder builds and executes requests for operations under \applications\{client_id}\grant

func NewItemGrantRequestBuilder

NewItemGrantRequestBuilder instantiates a new ItemGrantRequestBuilder and sets the default values.

func NewItemGrantRequestBuilderInternal

func NewItemGrantRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemGrantRequestBuilder

NewItemGrantRequestBuilderInternal instantiates a new ItemGrantRequestBuilder and sets the default values.

func (*ItemGrantRequestBuilder) Delete

Delete oAuth and GitHub application owners can revoke a grant for their application and a specific user. You must provide a valid OAuth `access_token` as an input parameter and the grant for the token's owner will be deleted.Deleting an application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ItemGrantRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation oAuth and GitHub application owners can revoke a grant for their application and a specific user. You must provide a valid OAuth `access_token` as an input parameter and the grant for the token's owner will be deleted.Deleting an application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). returns a *RequestInformation when successful

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

type ItemTokenDeleteRequestBody

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

func NewItemTokenDeleteRequestBody

func NewItemTokenDeleteRequestBody() *ItemTokenDeleteRequestBody

NewItemTokenDeleteRequestBody instantiates a new ItemTokenDeleteRequestBody and sets the default values.

func (*ItemTokenDeleteRequestBody) GetAccessToken

func (m *ItemTokenDeleteRequestBody) GetAccessToken() *string

GetAccessToken gets the access_token property value. The OAuth access token used to authenticate to the GitHub API. returns a *string when successful

func (*ItemTokenDeleteRequestBody) GetAdditionalData

func (m *ItemTokenDeleteRequestBody) 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 (*ItemTokenDeleteRequestBody) GetFieldDeserializers

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

func (*ItemTokenDeleteRequestBody) Serialize

Serialize serializes information the current object

func (*ItemTokenDeleteRequestBody) SetAccessToken

func (m *ItemTokenDeleteRequestBody) SetAccessToken(value *string)

SetAccessToken sets the access_token property value. The OAuth access token used to authenticate to the GitHub API.

func (*ItemTokenDeleteRequestBody) SetAdditionalData

func (m *ItemTokenDeleteRequestBody) 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 ItemTokenPatchRequestBody

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

func NewItemTokenPatchRequestBody

func NewItemTokenPatchRequestBody() *ItemTokenPatchRequestBody

NewItemTokenPatchRequestBody instantiates a new ItemTokenPatchRequestBody and sets the default values.

func (*ItemTokenPatchRequestBody) GetAccessToken

func (m *ItemTokenPatchRequestBody) GetAccessToken() *string

GetAccessToken gets the access_token property value. The access_token of the OAuth or GitHub application. returns a *string when successful

func (*ItemTokenPatchRequestBody) GetAdditionalData

func (m *ItemTokenPatchRequestBody) 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 (*ItemTokenPatchRequestBody) GetFieldDeserializers

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

func (*ItemTokenPatchRequestBody) Serialize

Serialize serializes information the current object

func (*ItemTokenPatchRequestBody) SetAccessToken

func (m *ItemTokenPatchRequestBody) SetAccessToken(value *string)

SetAccessToken sets the access_token property value. The access_token of the OAuth or GitHub application.

func (*ItemTokenPatchRequestBody) SetAdditionalData

func (m *ItemTokenPatchRequestBody) 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 ItemTokenPostRequestBody

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

func NewItemTokenPostRequestBody

func NewItemTokenPostRequestBody() *ItemTokenPostRequestBody

NewItemTokenPostRequestBody instantiates a new ItemTokenPostRequestBody and sets the default values.

func (*ItemTokenPostRequestBody) GetAccessToken

func (m *ItemTokenPostRequestBody) GetAccessToken() *string

GetAccessToken gets the access_token property value. The access_token of the OAuth or GitHub application. returns a *string when successful

func (*ItemTokenPostRequestBody) GetAdditionalData

func (m *ItemTokenPostRequestBody) 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 (*ItemTokenPostRequestBody) GetFieldDeserializers

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

func (*ItemTokenPostRequestBody) Serialize

Serialize serializes information the current object

func (*ItemTokenPostRequestBody) SetAccessToken

func (m *ItemTokenPostRequestBody) SetAccessToken(value *string)

SetAccessToken sets the access_token property value. The access_token of the OAuth or GitHub application.

func (*ItemTokenPostRequestBody) SetAdditionalData

func (m *ItemTokenPostRequestBody) 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 ItemTokenRequestBuilder

ItemTokenRequestBuilder builds and executes requests for operations under \applications\{client_id}\token

func NewItemTokenRequestBuilder

NewItemTokenRequestBuilder instantiates a new ItemTokenRequestBuilder and sets the default values.

func NewItemTokenRequestBuilderInternal

func NewItemTokenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemTokenRequestBuilder

NewItemTokenRequestBuilderInternal instantiates a new ItemTokenRequestBuilder and sets the default values.

func (*ItemTokenRequestBuilder) Delete

Delete oAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization. returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ItemTokenRequestBuilder) Patch

Patch oAuth applications and GitHub applications with OAuth authorizations can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. Invalid tokens will return `404 NOT FOUND`. returns a Authorizationable when successful returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ItemTokenRequestBuilder) Post

Post oAuth applications and GitHub applications with OAuth authorizations can use this API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. Invalid tokens will return `404 NOT FOUND`. returns a Authorizationable when successful returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ItemTokenRequestBuilder) Scoped

Scoped the scoped property returns a *ItemTokenScopedRequestBuilder when successful

func (*ItemTokenRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation oAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization. returns a *RequestInformation when successful

func (*ItemTokenRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation oAuth applications and GitHub applications with OAuth authorizations can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. Invalid tokens will return `404 NOT FOUND`. returns a *RequestInformation when successful

func (*ItemTokenRequestBuilder) ToPostRequestInformation

ToPostRequestInformation oAuth applications and GitHub applications with OAuth authorizations can use this API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. Invalid tokens will return `404 NOT FOUND`. returns a *RequestInformation when successful

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

type ItemTokenScopedPostRequestBody

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

func NewItemTokenScopedPostRequestBody

func NewItemTokenScopedPostRequestBody() *ItemTokenScopedPostRequestBody

NewItemTokenScopedPostRequestBody instantiates a new ItemTokenScopedPostRequestBody and sets the default values.

func (*ItemTokenScopedPostRequestBody) GetAccessToken

func (m *ItemTokenScopedPostRequestBody) GetAccessToken() *string

GetAccessToken gets the access_token property value. The access token used to authenticate to the GitHub API. returns a *string when successful

func (*ItemTokenScopedPostRequestBody) GetAdditionalData

func (m *ItemTokenScopedPostRequestBody) 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 (*ItemTokenScopedPostRequestBody) GetFieldDeserializers

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

func (*ItemTokenScopedPostRequestBody) GetPermissions

GetPermissions gets the permissions property value. The permissions granted to the user access token. returns a AppPermissionsable when successful

func (*ItemTokenScopedPostRequestBody) GetRepositories

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

GetRepositories gets the repositories property value. The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified. returns a []string when successful

func (*ItemTokenScopedPostRequestBody) GetRepositoryIds

func (m *ItemTokenScopedPostRequestBody) GetRepositoryIds() []int32

GetRepositoryIds gets the repository_ids property value. The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified. returns a []int32 when successful

func (*ItemTokenScopedPostRequestBody) GetTarget

func (m *ItemTokenScopedPostRequestBody) GetTarget() *string

GetTarget gets the target property value. The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified. returns a *string when successful

func (*ItemTokenScopedPostRequestBody) GetTargetId

func (m *ItemTokenScopedPostRequestBody) GetTargetId() *int32

GetTargetId gets the target_id property value. The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified. returns a *int32 when successful

func (*ItemTokenScopedPostRequestBody) Serialize

Serialize serializes information the current object

func (*ItemTokenScopedPostRequestBody) SetAccessToken

func (m *ItemTokenScopedPostRequestBody) SetAccessToken(value *string)

SetAccessToken sets the access_token property value. The access token used to authenticate to the GitHub API.

func (*ItemTokenScopedPostRequestBody) SetAdditionalData

func (m *ItemTokenScopedPostRequestBody) 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 (*ItemTokenScopedPostRequestBody) SetPermissions

SetPermissions sets the permissions property value. The permissions granted to the user access token.

func (*ItemTokenScopedPostRequestBody) SetRepositories

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

SetRepositories sets the repositories property value. The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.

func (*ItemTokenScopedPostRequestBody) SetRepositoryIds

func (m *ItemTokenScopedPostRequestBody) SetRepositoryIds(value []int32)

SetRepositoryIds sets the repository_ids property value. The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.

func (*ItemTokenScopedPostRequestBody) SetTarget

func (m *ItemTokenScopedPostRequestBody) SetTarget(value *string)

SetTarget sets the target property value. The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.

func (*ItemTokenScopedPostRequestBody) SetTargetId

func (m *ItemTokenScopedPostRequestBody) SetTargetId(value *int32)

SetTargetId sets the target_id property value. The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.

type ItemTokenScopedPostRequestBodyable

type ItemTokenScopedPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetAccessToken() *string
	GetPermissions() i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.AppPermissionsable
	GetRepositories() []string
	GetRepositoryIds() []int32
	GetTarget() *string
	GetTargetId() *int32
	SetAccessToken(value *string)
	SetPermissions(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.AppPermissionsable)
	SetRepositories(value []string)
	SetRepositoryIds(value []int32)
	SetTarget(value *string)
	SetTargetId(value *int32)
}

type ItemTokenScopedRequestBuilder

ItemTokenScopedRequestBuilder builds and executes requests for operations under \applications\{client_id}\token\scoped

func NewItemTokenScopedRequestBuilder

NewItemTokenScopedRequestBuilder instantiates a new ItemTokenScopedRequestBuilder and sets the default values.

func NewItemTokenScopedRequestBuilderInternal

func NewItemTokenScopedRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemTokenScopedRequestBuilder

NewItemTokenScopedRequestBuilderInternal instantiates a new ItemTokenScopedRequestBuilder and sets the default values.

func (*ItemTokenScopedRequestBuilder) Post

Post use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specifywhich repositories the token can access and which permissions are granted to thetoken.Invalid tokens will return `404 NOT FOUND`. returns a Authorizationable 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 (*ItemTokenScopedRequestBuilder) ToPostRequestInformation

ToPostRequestInformation use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specifywhich repositories the token can access and which permissions are granted to thetoken.Invalid tokens will return `404 NOT FOUND`. returns a *RequestInformation when successful

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

type WithClient_ItemRequestBuilder

WithClient_ItemRequestBuilder builds and executes requests for operations under \applications\{client_id}

func NewWithClient_ItemRequestBuilder

NewWithClient_ItemRequestBuilder instantiates a new WithClient_ItemRequestBuilder and sets the default values.

func NewWithClient_ItemRequestBuilderInternal

func NewWithClient_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithClient_ItemRequestBuilder

NewWithClient_ItemRequestBuilderInternal instantiates a new WithClient_ItemRequestBuilder and sets the default values.

func (*WithClient_ItemRequestBuilder) Grant

Grant the grant property returns a *ItemGrantRequestBuilder when successful

func (*WithClient_ItemRequestBuilder) Token

Token the token property returns a *ItemTokenRequestBuilder when successful

Jump to

Keyboard shortcuts

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