Documentation
¶
Index ¶
- func CreateItemGrantDeleteRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemTokenDeleteRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemTokenPatchRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemTokenPostRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemTokenScopedPostRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- type ApplicationsRequestBuilder
- type ItemGrantDeleteRequestBody
- func (m *ItemGrantDeleteRequestBody) GetAccessToken() *string
- func (m *ItemGrantDeleteRequestBody) GetAdditionalData() map[string]any
- func (m *ItemGrantDeleteRequestBody) GetFieldDeserializers() ...
- func (m *ItemGrantDeleteRequestBody) Serialize(...) error
- func (m *ItemGrantDeleteRequestBody) SetAccessToken(value *string)
- func (m *ItemGrantDeleteRequestBody) SetAdditionalData(value map[string]any)
- type ItemGrantDeleteRequestBodyable
- type ItemGrantRequestBuilder
- func (m *ItemGrantRequestBuilder) Delete(ctx context.Context, body ItemGrantDeleteRequestBodyable, ...) error
- func (m *ItemGrantRequestBuilder) ToDeleteRequestInformation(ctx context.Context, body ItemGrantDeleteRequestBodyable, ...) (...)
- func (m *ItemGrantRequestBuilder) WithUrl(rawUrl string) *ItemGrantRequestBuilder
- type ItemTokenDeleteRequestBody
- func (m *ItemTokenDeleteRequestBody) GetAccessToken() *string
- func (m *ItemTokenDeleteRequestBody) GetAdditionalData() map[string]any
- func (m *ItemTokenDeleteRequestBody) GetFieldDeserializers() ...
- func (m *ItemTokenDeleteRequestBody) Serialize(...) error
- func (m *ItemTokenDeleteRequestBody) SetAccessToken(value *string)
- func (m *ItemTokenDeleteRequestBody) SetAdditionalData(value map[string]any)
- type ItemTokenDeleteRequestBodyable
- type ItemTokenPatchRequestBody
- func (m *ItemTokenPatchRequestBody) GetAccessToken() *string
- func (m *ItemTokenPatchRequestBody) GetAdditionalData() map[string]any
- func (m *ItemTokenPatchRequestBody) GetFieldDeserializers() ...
- func (m *ItemTokenPatchRequestBody) Serialize(...) error
- func (m *ItemTokenPatchRequestBody) SetAccessToken(value *string)
- func (m *ItemTokenPatchRequestBody) SetAdditionalData(value map[string]any)
- type ItemTokenPatchRequestBodyable
- type ItemTokenPostRequestBody
- func (m *ItemTokenPostRequestBody) GetAccessToken() *string
- func (m *ItemTokenPostRequestBody) GetAdditionalData() map[string]any
- func (m *ItemTokenPostRequestBody) GetFieldDeserializers() ...
- func (m *ItemTokenPostRequestBody) Serialize(...) error
- func (m *ItemTokenPostRequestBody) SetAccessToken(value *string)
- func (m *ItemTokenPostRequestBody) SetAdditionalData(value map[string]any)
- type ItemTokenPostRequestBodyable
- type ItemTokenRequestBuilder
- func (m *ItemTokenRequestBuilder) Delete(ctx context.Context, body ItemTokenDeleteRequestBodyable, ...) error
- func (m *ItemTokenRequestBuilder) Patch(ctx context.Context, body ItemTokenPatchRequestBodyable, ...) (...)
- func (m *ItemTokenRequestBuilder) Post(ctx context.Context, body ItemTokenPostRequestBodyable, ...) (...)
- func (m *ItemTokenRequestBuilder) Scoped() *ItemTokenScopedRequestBuilder
- func (m *ItemTokenRequestBuilder) ToDeleteRequestInformation(ctx context.Context, body ItemTokenDeleteRequestBodyable, ...) (...)
- func (m *ItemTokenRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemTokenPatchRequestBodyable, ...) (...)
- func (m *ItemTokenRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTokenPostRequestBodyable, ...) (...)
- func (m *ItemTokenRequestBuilder) WithUrl(rawUrl string) *ItemTokenRequestBuilder
- type ItemTokenScopedPostRequestBody
- func (m *ItemTokenScopedPostRequestBody) GetAccessToken() *string
- func (m *ItemTokenScopedPostRequestBody) GetAdditionalData() map[string]any
- func (m *ItemTokenScopedPostRequestBody) GetFieldDeserializers() ...
- func (m *ItemTokenScopedPostRequestBody) GetPermissions() ...
- func (m *ItemTokenScopedPostRequestBody) GetRepositories() []string
- func (m *ItemTokenScopedPostRequestBody) GetRepositoryIds() []int32
- func (m *ItemTokenScopedPostRequestBody) GetTarget() *string
- func (m *ItemTokenScopedPostRequestBody) GetTargetId() *int32
- func (m *ItemTokenScopedPostRequestBody) Serialize(...) error
- func (m *ItemTokenScopedPostRequestBody) SetAccessToken(value *string)
- func (m *ItemTokenScopedPostRequestBody) SetAdditionalData(value map[string]any)
- func (m *ItemTokenScopedPostRequestBody) SetPermissions(...)
- func (m *ItemTokenScopedPostRequestBody) SetRepositories(value []string)
- func (m *ItemTokenScopedPostRequestBody) SetRepositoryIds(value []int32)
- func (m *ItemTokenScopedPostRequestBody) SetTarget(value *string)
- func (m *ItemTokenScopedPostRequestBody) SetTargetId(value *int32)
- type ItemTokenScopedPostRequestBodyable
- type ItemTokenScopedRequestBuilder
- func (m *ItemTokenScopedRequestBuilder) Post(ctx context.Context, body ItemTokenScopedPostRequestBodyable, ...) (...)
- func (m *ItemTokenScopedRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTokenScopedPostRequestBodyable, ...) (...)
- func (m *ItemTokenScopedRequestBuilder) WithUrl(rawUrl string) *ItemTokenScopedRequestBuilder
- type WithClient_ItemRequestBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateItemGrantDeleteRequestBodyFromDiscriminatorValue ¶
func CreateItemGrantDeleteRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemGrantDeleteRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemTokenDeleteRequestBodyFromDiscriminatorValue ¶
func CreateItemTokenDeleteRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemTokenDeleteRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemTokenPatchRequestBodyFromDiscriminatorValue ¶
func CreateItemTokenPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemTokenPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemTokenPostRequestBodyFromDiscriminatorValue ¶
func CreateItemTokenPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemTokenPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemTokenScopedPostRequestBodyFromDiscriminatorValue ¶
func CreateItemTokenScopedPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemTokenScopedPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
Types ¶
type ApplicationsRequestBuilder ¶
type ApplicationsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ApplicationsRequestBuilder builds and executes requests for operations under \applications
func NewApplicationsRequestBuilder ¶
func NewApplicationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ApplicationsRequestBuilder
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 ¶
func (m *ApplicationsRequestBuilder) ByClient_id(client_id string) *WithClient_ItemRequestBuilder
ByClient_id gets an item from the github.com/octokit/go-sdk-enterprise-cloud/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 ¶
func (m *ItemGrantDeleteRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemGrantDeleteRequestBody) Serialize ¶
func (m *ItemGrantDeleteRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ItemGrantDeleteRequestBodyable ¶
type ItemGrantDeleteRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccessToken() *string SetAccessToken(value *string) }
type ItemGrantRequestBuilder ¶
type ItemGrantRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemGrantRequestBuilder builds and executes requests for operations under \applications\{client_id}\grant
func NewItemGrantRequestBuilder ¶
func NewItemGrantRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemGrantRequestBuilder
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 ¶
func (m *ItemGrantRequestBuilder) Delete(ctx context.Context, body ItemGrantDeleteRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemGrantRequestBuilder) ToDeleteRequestInformation(ctx context.Context, body ItemGrantDeleteRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemGrantRequestBuilder) WithUrl(rawUrl string) *ItemGrantRequestBuilder
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 ¶
func (m *ItemTokenDeleteRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemTokenDeleteRequestBody) Serialize ¶
func (m *ItemTokenDeleteRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ItemTokenDeleteRequestBodyable ¶
type ItemTokenDeleteRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccessToken() *string SetAccessToken(value *string) }
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 ¶
func (m *ItemTokenPatchRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemTokenPatchRequestBody) Serialize ¶
func (m *ItemTokenPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ItemTokenPatchRequestBodyable ¶
type ItemTokenPatchRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccessToken() *string SetAccessToken(value *string) }
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 ¶
func (m *ItemTokenPostRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemTokenPostRequestBody) Serialize ¶
func (m *ItemTokenPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ItemTokenPostRequestBodyable ¶
type ItemTokenPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccessToken() *string SetAccessToken(value *string) }
type ItemTokenRequestBuilder ¶
type ItemTokenRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemTokenRequestBuilder builds and executes requests for operations under \applications\{client_id}\token
func NewItemTokenRequestBuilder ¶
func NewItemTokenRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemTokenRequestBuilder
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 ¶
func (m *ItemTokenRequestBuilder) Delete(ctx context.Context, body ItemTokenDeleteRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemTokenRequestBuilder) Patch(ctx context.Context, body ItemTokenPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i65c45deea5ef786561f9cd3a81f83eacee03df1f39b7b57e269c7f0477b77b5d.Authorizationable, error)
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 ¶
func (m *ItemTokenRequestBuilder) Post(ctx context.Context, body ItemTokenPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i65c45deea5ef786561f9cd3a81f83eacee03df1f39b7b57e269c7f0477b77b5d.Authorizationable, error)
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 ¶
func (m *ItemTokenRequestBuilder) Scoped() *ItemTokenScopedRequestBuilder
Scoped the scoped property returns a *ItemTokenScopedRequestBuilder when successful
func (*ItemTokenRequestBuilder) ToDeleteRequestInformation ¶
func (m *ItemTokenRequestBuilder) ToDeleteRequestInformation(ctx context.Context, body ItemTokenDeleteRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemTokenRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemTokenPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemTokenRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTokenPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemTokenRequestBuilder) WithUrl(rawUrl string) *ItemTokenRequestBuilder
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 ¶
func (m *ItemTokenScopedPostRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemTokenScopedPostRequestBody) GetPermissions ¶
func (m *ItemTokenScopedPostRequestBody) GetPermissions() i65c45deea5ef786561f9cd3a81f83eacee03df1f39b7b57e269c7f0477b77b5d.AppPermissionsable
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 ¶
func (m *ItemTokenScopedPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ¶
func (m *ItemTokenScopedPostRequestBody) SetPermissions(value i65c45deea5ef786561f9cd3a81f83eacee03df1f39b7b57e269c7f0477b77b5d.AppPermissionsable)
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() i65c45deea5ef786561f9cd3a81f83eacee03df1f39b7b57e269c7f0477b77b5d.AppPermissionsable GetRepositories() []string GetRepositoryIds() []int32 GetTarget() *string GetTargetId() *int32 SetAccessToken(value *string) SetPermissions(value i65c45deea5ef786561f9cd3a81f83eacee03df1f39b7b57e269c7f0477b77b5d.AppPermissionsable) SetRepositories(value []string) SetRepositoryIds(value []int32) SetTarget(value *string) SetTargetId(value *int32) }
type ItemTokenScopedRequestBuilder ¶
type ItemTokenScopedRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemTokenScopedRequestBuilder builds and executes requests for operations under \applications\{client_id}\token\scoped
func NewItemTokenScopedRequestBuilder ¶
func NewItemTokenScopedRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemTokenScopedRequestBuilder
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 ¶
func (m *ItemTokenScopedRequestBuilder) Post(ctx context.Context, body ItemTokenScopedPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i65c45deea5ef786561f9cd3a81f83eacee03df1f39b7b57e269c7f0477b77b5d.Authorizationable, error)
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 ¶
func (m *ItemTokenScopedRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTokenScopedPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemTokenScopedRequestBuilder) WithUrl(rawUrl string) *ItemTokenScopedRequestBuilder
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 ¶
type WithClient_ItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
WithClient_ItemRequestBuilder builds and executes requests for operations under \applications\{client_id}
func NewWithClient_ItemRequestBuilder ¶
func NewWithClient_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithClient_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 ¶
func (m *WithClient_ItemRequestBuilder) Grant() *ItemGrantRequestBuilder
Grant the grant property returns a *ItemGrantRequestBuilder when successful
func (*WithClient_ItemRequestBuilder) Token ¶
func (m *WithClient_ItemRequestBuilder) Token() *ItemTokenRequestBuilder
Token the token property returns a *ItemTokenRequestBuilder when successful
Source Files
¶
- applications_request_builder.go
- item_grant_delete_request_body.go
- item_grant_request_builder.go
- item_token_delete_request_body.go
- item_token_patch_request_body.go
- item_token_post_request_body.go
- item_token_request_builder.go
- item_token_scoped_post_request_body.go
- item_token_scoped_request_builder.go
- with_client_escaped_item_request_builder.go