Documentation
¶
Index ¶
- func CreateHookConfigPatchRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateHookDeliveriesItemAttemptsPostResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateHookDeliveriesItemAttemptsResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateInstallationsItemAccess_tokensPostRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- type AppRequestBuilder
- func (m *AppRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *AppRequestBuilder) Hook() *HookRequestBuilder
- func (m *AppRequestBuilder) InstallationRequests() *InstallationRequestsRequestBuilder
- func (m *AppRequestBuilder) Installations() *InstallationsRequestBuilder
- func (m *AppRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *AppRequestBuilder) WithUrl(rawUrl string) *AppRequestBuilder
- type HookConfigPatchRequestBody
- func (m *HookConfigPatchRequestBody) GetAdditionalData() map[string]any
- func (m *HookConfigPatchRequestBody) GetContentType() *string
- func (m *HookConfigPatchRequestBody) GetFieldDeserializers() ...
- func (m *HookConfigPatchRequestBody) GetInsecureSsl() ...
- func (m *HookConfigPatchRequestBody) GetSecret() *string
- func (m *HookConfigPatchRequestBody) GetUrl() *string
- func (m *HookConfigPatchRequestBody) Serialize(...) error
- func (m *HookConfigPatchRequestBody) SetAdditionalData(value map[string]any)
- func (m *HookConfigPatchRequestBody) SetContentType(value *string)
- func (m *HookConfigPatchRequestBody) SetInsecureSsl(...)
- func (m *HookConfigPatchRequestBody) SetSecret(value *string)
- func (m *HookConfigPatchRequestBody) SetUrl(value *string)
- type HookConfigPatchRequestBodyable
- type HookConfigRequestBuilder
- func (m *HookConfigRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *HookConfigRequestBuilder) Patch(ctx context.Context, body HookConfigPatchRequestBodyable, ...) (...)
- func (m *HookConfigRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *HookConfigRequestBuilder) ToPatchRequestInformation(ctx context.Context, body HookConfigPatchRequestBodyable, ...) (...)
- func (m *HookConfigRequestBuilder) WithUrl(rawUrl string) *HookConfigRequestBuilder
- type HookDeliveriesItemAttemptsPostResponse
- func (m *HookDeliveriesItemAttemptsPostResponse) GetAdditionalData() map[string]any
- func (m *HookDeliveriesItemAttemptsPostResponse) GetFieldDeserializers() ...
- func (m *HookDeliveriesItemAttemptsPostResponse) Serialize(...) error
- func (m *HookDeliveriesItemAttemptsPostResponse) SetAdditionalData(value map[string]any)
- type HookDeliveriesItemAttemptsPostResponseable
- type HookDeliveriesItemAttemptsRequestBuilder
- func (m *HookDeliveriesItemAttemptsRequestBuilder) Post(ctx context.Context, ...) (HookDeliveriesItemAttemptsPostResponseable, error)
- func (m *HookDeliveriesItemAttemptsRequestBuilder) ToPostRequestInformation(ctx context.Context, ...) (...)
- func (m *HookDeliveriesItemAttemptsRequestBuilder) WithUrl(rawUrl string) *HookDeliveriesItemAttemptsRequestBuilder
- type HookDeliveriesItemAttemptsResponse
- type HookDeliveriesItemAttemptsResponseable
- type HookDeliveriesRequestBuilder
- func (m *HookDeliveriesRequestBuilder) ByDelivery_id(delivery_id int32) *HookDeliveriesWithDelivery_ItemRequestBuilder
- func (m *HookDeliveriesRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *HookDeliveriesRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *HookDeliveriesRequestBuilder) WithUrl(rawUrl string) *HookDeliveriesRequestBuilder
- type HookDeliveriesRequestBuilderGetQueryParameters
- type HookDeliveriesWithDelivery_ItemRequestBuilder
- func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) Attempts() *HookDeliveriesItemAttemptsRequestBuilder
- func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) WithUrl(rawUrl string) *HookDeliveriesWithDelivery_ItemRequestBuilder
- type HookRequestBuilder
- type InstallationRequestsRequestBuilder
- type InstallationRequestsRequestBuilderGetQueryParameters
- type InstallationsItemAccess_tokensPostRequestBody
- func (m *InstallationsItemAccess_tokensPostRequestBody) GetAdditionalData() map[string]any
- func (m *InstallationsItemAccess_tokensPostRequestBody) GetFieldDeserializers() ...
- func (m *InstallationsItemAccess_tokensPostRequestBody) GetPermissions() ...
- func (m *InstallationsItemAccess_tokensPostRequestBody) GetRepositories() []string
- func (m *InstallationsItemAccess_tokensPostRequestBody) GetRepositoryIds() []int32
- func (m *InstallationsItemAccess_tokensPostRequestBody) Serialize(...) error
- func (m *InstallationsItemAccess_tokensPostRequestBody) SetAdditionalData(value map[string]any)
- func (m *InstallationsItemAccess_tokensPostRequestBody) SetPermissions(...)
- func (m *InstallationsItemAccess_tokensPostRequestBody) SetRepositories(value []string)
- func (m *InstallationsItemAccess_tokensPostRequestBody) SetRepositoryIds(value []int32)
- type InstallationsItemAccess_tokensPostRequestBodyable
- type InstallationsItemAccess_tokensRequestBuilder
- func (m *InstallationsItemAccess_tokensRequestBuilder) Post(ctx context.Context, body InstallationsItemAccess_tokensPostRequestBodyable, ...) (...)
- func (m *InstallationsItemAccess_tokensRequestBuilder) ToPostRequestInformation(ctx context.Context, body InstallationsItemAccess_tokensPostRequestBodyable, ...) (...)
- func (m *InstallationsItemAccess_tokensRequestBuilder) WithUrl(rawUrl string) *InstallationsItemAccess_tokensRequestBuilder
- type InstallationsItemSuspendedRequestBuilder
- func (m *InstallationsItemSuspendedRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *InstallationsItemSuspendedRequestBuilder) Put(ctx context.Context, ...) error
- func (m *InstallationsItemSuspendedRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *InstallationsItemSuspendedRequestBuilder) ToPutRequestInformation(ctx context.Context, ...) (...)
- func (m *InstallationsItemSuspendedRequestBuilder) WithUrl(rawUrl string) *InstallationsItemSuspendedRequestBuilder
- type InstallationsRequestBuilder
- func (m *InstallationsRequestBuilder) ByInstallation_id(installation_id int32) *InstallationsWithInstallation_ItemRequestBuilder
- func (m *InstallationsRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *InstallationsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *InstallationsRequestBuilder) WithUrl(rawUrl string) *InstallationsRequestBuilder
- type InstallationsRequestBuilderGetQueryParameters
- type InstallationsWithInstallation_ItemRequestBuilder
- func (m *InstallationsWithInstallation_ItemRequestBuilder) Access_tokens() *InstallationsItemAccess_tokensRequestBuilder
- func (m *InstallationsWithInstallation_ItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *InstallationsWithInstallation_ItemRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *InstallationsWithInstallation_ItemRequestBuilder) Suspended() *InstallationsItemSuspendedRequestBuilder
- func (m *InstallationsWithInstallation_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *InstallationsWithInstallation_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *InstallationsWithInstallation_ItemRequestBuilder) WithUrl(rawUrl string) *InstallationsWithInstallation_ItemRequestBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHookConfigPatchRequestBodyFromDiscriminatorValue ¶
func CreateHookConfigPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateHookConfigPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateHookDeliveriesItemAttemptsPostResponseFromDiscriminatorValue ¶
func CreateHookDeliveriesItemAttemptsPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateHookDeliveriesItemAttemptsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateHookDeliveriesItemAttemptsResponseFromDiscriminatorValue ¶
func CreateHookDeliveriesItemAttemptsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateHookDeliveriesItemAttemptsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateInstallationsItemAccess_tokensPostRequestBodyFromDiscriminatorValue ¶
func CreateInstallationsItemAccess_tokensPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateInstallationsItemAccess_tokensPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
Types ¶
type AppRequestBuilder ¶
type AppRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
AppRequestBuilder builds and executes requests for operations under \app
func NewAppRequestBuilder ¶
func NewAppRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *AppRequestBuilder
NewAppRequestBuilder instantiates a new AppRequestBuilder and sets the default values.
func NewAppRequestBuilderInternal ¶
func NewAppRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *AppRequestBuilder
NewAppRequestBuilderInternal instantiates a new AppRequestBuilder and sets the default values.
func (*AppRequestBuilder) Get ¶
func (m *AppRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Integrationable, error)
Get returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations for the authenticated app](https://docs.github.com/rest/apps/apps#list-installations-for-the-authenticated-app)" endpoint.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a Integrationable when successful API method documentation
func (*AppRequestBuilder) Hook ¶
func (m *AppRequestBuilder) Hook() *HookRequestBuilder
Hook the hook property returns a *HookRequestBuilder when successful
func (*AppRequestBuilder) InstallationRequests ¶
func (m *AppRequestBuilder) InstallationRequests() *InstallationRequestsRequestBuilder
InstallationRequests the installationRequests property returns a *InstallationRequestsRequestBuilder when successful
func (*AppRequestBuilder) Installations ¶
func (m *AppRequestBuilder) Installations() *InstallationsRequestBuilder
Installations the installations property returns a *InstallationsRequestBuilder when successful
func (*AppRequestBuilder) ToGetRequestInformation ¶
func (m *AppRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations for the authenticated app](https://docs.github.com/rest/apps/apps#list-installations-for-the-authenticated-app)" endpoint.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*AppRequestBuilder) WithUrl ¶
func (m *AppRequestBuilder) WithUrl(rawUrl string) *AppRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *AppRequestBuilder when successful
type HookConfigPatchRequestBody ¶
type HookConfigPatchRequestBody struct {
// contains filtered or unexported fields
}
func NewHookConfigPatchRequestBody ¶
func NewHookConfigPatchRequestBody() *HookConfigPatchRequestBody
NewHookConfigPatchRequestBody instantiates a new HookConfigPatchRequestBody and sets the default values.
func (*HookConfigPatchRequestBody) GetAdditionalData ¶
func (m *HookConfigPatchRequestBody) 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 (*HookConfigPatchRequestBody) GetContentType ¶
func (m *HookConfigPatchRequestBody) GetContentType() *string
GetContentType gets the content_type property value. The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. returns a *string when successful
func (*HookConfigPatchRequestBody) GetFieldDeserializers ¶
func (m *HookConfigPatchRequestBody) 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 (*HookConfigPatchRequestBody) GetInsecureSsl ¶
func (m *HookConfigPatchRequestBody) GetInsecureSsl() i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable
GetInsecureSsl gets the insecure_ssl property value. The insecure_ssl property returns a WebhookConfigInsecureSslable when successful
func (*HookConfigPatchRequestBody) GetSecret ¶
func (m *HookConfigPatchRequestBody) GetSecret() *string
GetSecret gets the secret property value. If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). returns a *string when successful
func (*HookConfigPatchRequestBody) GetUrl ¶
func (m *HookConfigPatchRequestBody) GetUrl() *string
GetUrl gets the url property value. The URL to which the payloads will be delivered. returns a *string when successful
func (*HookConfigPatchRequestBody) Serialize ¶
func (m *HookConfigPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*HookConfigPatchRequestBody) SetAdditionalData ¶
func (m *HookConfigPatchRequestBody) 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 (*HookConfigPatchRequestBody) SetContentType ¶
func (m *HookConfigPatchRequestBody) SetContentType(value *string)
SetContentType sets the content_type property value. The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
func (*HookConfigPatchRequestBody) SetInsecureSsl ¶
func (m *HookConfigPatchRequestBody) SetInsecureSsl(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable)
SetInsecureSsl sets the insecure_ssl property value. The insecure_ssl property
func (*HookConfigPatchRequestBody) SetSecret ¶
func (m *HookConfigPatchRequestBody) SetSecret(value *string)
SetSecret sets the secret property value. If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).
func (*HookConfigPatchRequestBody) SetUrl ¶
func (m *HookConfigPatchRequestBody) SetUrl(value *string)
SetUrl sets the url property value. The URL to which the payloads will be delivered.
type HookConfigPatchRequestBodyable ¶
type HookConfigPatchRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetContentType() *string GetInsecureSsl() i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable GetSecret() *string GetUrl() *string SetContentType(value *string) SetInsecureSsl(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable) SetSecret(value *string) SetUrl(value *string) }
type HookConfigRequestBuilder ¶
type HookConfigRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
HookConfigRequestBuilder builds and executes requests for operations under \app\hook\config
func NewHookConfigRequestBuilder ¶
func NewHookConfigRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookConfigRequestBuilder
NewHookConfigRequestBuilder instantiates a new HookConfigRequestBuilder and sets the default values.
func NewHookConfigRequestBuilderInternal ¶
func NewHookConfigRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookConfigRequestBuilder
NewHookConfigRequestBuilderInternal instantiates a new HookConfigRequestBuilder and sets the default values.
func (*HookConfigRequestBuilder) Get ¶
func (m *HookConfigRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigable, error)
Get returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a WebhookConfigable when successful API method documentation
func (*HookConfigRequestBuilder) Patch ¶
func (m *HookConfigRequestBuilder) Patch(ctx context.Context, body HookConfigPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigable, error)
Patch updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a WebhookConfigable when successful API method documentation
func (*HookConfigRequestBuilder) ToGetRequestInformation ¶
func (m *HookConfigRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*HookConfigRequestBuilder) ToPatchRequestInformation ¶
func (m *HookConfigRequestBuilder) ToPatchRequestInformation(ctx context.Context, body HookConfigPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToPatchRequestInformation updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)."You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*HookConfigRequestBuilder) WithUrl ¶
func (m *HookConfigRequestBuilder) WithUrl(rawUrl string) *HookConfigRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *HookConfigRequestBuilder when successful
type HookDeliveriesItemAttemptsPostResponse ¶
type HookDeliveriesItemAttemptsPostResponse struct {
// contains filtered or unexported fields
}
func NewHookDeliveriesItemAttemptsPostResponse ¶
func NewHookDeliveriesItemAttemptsPostResponse() *HookDeliveriesItemAttemptsPostResponse
NewHookDeliveriesItemAttemptsPostResponse instantiates a new HookDeliveriesItemAttemptsPostResponse and sets the default values.
func (*HookDeliveriesItemAttemptsPostResponse) GetAdditionalData ¶
func (m *HookDeliveriesItemAttemptsPostResponse) 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 (*HookDeliveriesItemAttemptsPostResponse) GetFieldDeserializers ¶
func (m *HookDeliveriesItemAttemptsPostResponse) 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 (*HookDeliveriesItemAttemptsPostResponse) Serialize ¶
func (m *HookDeliveriesItemAttemptsPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*HookDeliveriesItemAttemptsPostResponse) SetAdditionalData ¶
func (m *HookDeliveriesItemAttemptsPostResponse) 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 HookDeliveriesItemAttemptsPostResponseable ¶
type HookDeliveriesItemAttemptsPostResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
type HookDeliveriesItemAttemptsRequestBuilder ¶
type HookDeliveriesItemAttemptsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
HookDeliveriesItemAttemptsRequestBuilder builds and executes requests for operations under \app\hook\deliveries\{delivery_id}\attempts
func NewHookDeliveriesItemAttemptsRequestBuilder ¶
func NewHookDeliveriesItemAttemptsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookDeliveriesItemAttemptsRequestBuilder
NewHookDeliveriesItemAttemptsRequestBuilder instantiates a new HookDeliveriesItemAttemptsRequestBuilder and sets the default values.
func NewHookDeliveriesItemAttemptsRequestBuilderInternal ¶
func NewHookDeliveriesItemAttemptsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookDeliveriesItemAttemptsRequestBuilder
NewHookDeliveriesItemAttemptsRequestBuilderInternal instantiates a new HookDeliveriesItemAttemptsRequestBuilder and sets the default values.
func (*HookDeliveriesItemAttemptsRequestBuilder) Post ¶
func (m *HookDeliveriesItemAttemptsRequestBuilder) Post(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (HookDeliveriesItemAttemptsPostResponseable, error)
Post redeliver a delivery for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a HookDeliveriesItemAttemptsPostResponseable when successful returns a BasicError error when the service returns a 400 status code returns a ValidationError error when the service returns a 422 status code API method documentation
func (*HookDeliveriesItemAttemptsRequestBuilder) ToPostRequestInformation ¶
func (m *HookDeliveriesItemAttemptsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToPostRequestInformation redeliver a delivery for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*HookDeliveriesItemAttemptsRequestBuilder) WithUrl ¶
func (m *HookDeliveriesItemAttemptsRequestBuilder) WithUrl(rawUrl string) *HookDeliveriesItemAttemptsRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *HookDeliveriesItemAttemptsRequestBuilder when successful
type HookDeliveriesItemAttemptsResponse ¶
type HookDeliveriesItemAttemptsResponse struct {
HookDeliveriesItemAttemptsPostResponse
}
HookDeliveriesItemAttemptsResponse Deprecated: This class is obsolete. Use attemptsPostResponse instead.
func NewHookDeliveriesItemAttemptsResponse ¶
func NewHookDeliveriesItemAttemptsResponse() *HookDeliveriesItemAttemptsResponse
NewHookDeliveriesItemAttemptsResponse instantiates a new HookDeliveriesItemAttemptsResponse and sets the default values.
type HookDeliveriesItemAttemptsResponseable ¶
type HookDeliveriesItemAttemptsResponseable interface { HookDeliveriesItemAttemptsPostResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
HookDeliveriesItemAttemptsResponseable Deprecated: This class is obsolete. Use attemptsPostResponse instead.
type HookDeliveriesRequestBuilder ¶
type HookDeliveriesRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
HookDeliveriesRequestBuilder builds and executes requests for operations under \app\hook\deliveries
func NewHookDeliveriesRequestBuilder ¶
func NewHookDeliveriesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookDeliveriesRequestBuilder
NewHookDeliveriesRequestBuilder instantiates a new HookDeliveriesRequestBuilder and sets the default values.
func NewHookDeliveriesRequestBuilderInternal ¶
func NewHookDeliveriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookDeliveriesRequestBuilder
NewHookDeliveriesRequestBuilderInternal instantiates a new HookDeliveriesRequestBuilder and sets the default values.
func (*HookDeliveriesRequestBuilder) ByDelivery_id ¶
func (m *HookDeliveriesRequestBuilder) ByDelivery_id(delivery_id int32) *HookDeliveriesWithDelivery_ItemRequestBuilder
ByDelivery_id gets an item from the github.com/octokit/go-sdk/pkg/github.app.hook.deliveries.item collection returns a *HookDeliveriesWithDelivery_ItemRequestBuilder when successful
func (*HookDeliveriesRequestBuilder) Get ¶
func (m *HookDeliveriesRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[HookDeliveriesRequestBuilderGetQueryParameters]) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.HookDeliveryItemable, error)
Get returns a list of webhook deliveries for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a []HookDeliveryItemable when successful returns a BasicError error when the service returns a 400 status code returns a ValidationError error when the service returns a 422 status code API method documentation
func (*HookDeliveriesRequestBuilder) ToGetRequestInformation ¶
func (m *HookDeliveriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[HookDeliveriesRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation returns a list of webhook deliveries for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*HookDeliveriesRequestBuilder) WithUrl ¶
func (m *HookDeliveriesRequestBuilder) WithUrl(rawUrl string) *HookDeliveriesRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *HookDeliveriesRequestBuilder when successful
type HookDeliveriesRequestBuilderGetQueryParameters ¶
type HookDeliveriesRequestBuilderGetQueryParameters struct { // Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors. Cursor *string `uriparametername:"cursor"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` Redelivery *bool `uriparametername:"redelivery"` }
HookDeliveriesRequestBuilderGetQueryParameters returns a list of webhook deliveries for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
type HookDeliveriesWithDelivery_ItemRequestBuilder ¶
type HookDeliveriesWithDelivery_ItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
HookDeliveriesWithDelivery_ItemRequestBuilder builds and executes requests for operations under \app\hook\deliveries\{delivery_id}
func NewHookDeliveriesWithDelivery_ItemRequestBuilder ¶
func NewHookDeliveriesWithDelivery_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookDeliveriesWithDelivery_ItemRequestBuilder
NewHookDeliveriesWithDelivery_ItemRequestBuilder instantiates a new HookDeliveriesWithDelivery_ItemRequestBuilder and sets the default values.
func NewHookDeliveriesWithDelivery_ItemRequestBuilderInternal ¶
func NewHookDeliveriesWithDelivery_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookDeliveriesWithDelivery_ItemRequestBuilder
NewHookDeliveriesWithDelivery_ItemRequestBuilderInternal instantiates a new HookDeliveriesWithDelivery_ItemRequestBuilder and sets the default values.
func (*HookDeliveriesWithDelivery_ItemRequestBuilder) Attempts ¶
func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) Attempts() *HookDeliveriesItemAttemptsRequestBuilder
Attempts the attempts property returns a *HookDeliveriesItemAttemptsRequestBuilder when successful
func (*HookDeliveriesWithDelivery_ItemRequestBuilder) Get ¶
func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.HookDeliveryable, error)
Get returns a delivery for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a HookDeliveryable when successful returns a BasicError error when the service returns a 400 status code returns a ValidationError error when the service returns a 422 status code API method documentation
func (*HookDeliveriesWithDelivery_ItemRequestBuilder) ToGetRequestInformation ¶
func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation returns a delivery for the webhook configured for a GitHub App.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*HookDeliveriesWithDelivery_ItemRequestBuilder) WithUrl ¶
func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) WithUrl(rawUrl string) *HookDeliveriesWithDelivery_ItemRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *HookDeliveriesWithDelivery_ItemRequestBuilder when successful
type HookRequestBuilder ¶
type HookRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
HookRequestBuilder builds and executes requests for operations under \app\hook
func NewHookRequestBuilder ¶
func NewHookRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookRequestBuilder
NewHookRequestBuilder instantiates a new HookRequestBuilder and sets the default values.
func NewHookRequestBuilderInternal ¶
func NewHookRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookRequestBuilder
NewHookRequestBuilderInternal instantiates a new HookRequestBuilder and sets the default values.
func (*HookRequestBuilder) Config ¶
func (m *HookRequestBuilder) Config() *HookConfigRequestBuilder
Config the config property returns a *HookConfigRequestBuilder when successful
func (*HookRequestBuilder) Deliveries ¶
func (m *HookRequestBuilder) Deliveries() *HookDeliveriesRequestBuilder
Deliveries the deliveries property returns a *HookDeliveriesRequestBuilder when successful
type InstallationRequestsRequestBuilder ¶
type InstallationRequestsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
InstallationRequestsRequestBuilder builds and executes requests for operations under \app\installation-requests
func NewInstallationRequestsRequestBuilder ¶
func NewInstallationRequestsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationRequestsRequestBuilder
NewInstallationRequestsRequestBuilder instantiates a new InstallationRequestsRequestBuilder and sets the default values.
func NewInstallationRequestsRequestBuilderInternal ¶
func NewInstallationRequestsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationRequestsRequestBuilder
NewInstallationRequestsRequestBuilderInternal instantiates a new InstallationRequestsRequestBuilder and sets the default values.
func (*InstallationRequestsRequestBuilder) Get ¶
func (m *InstallationRequestsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[InstallationRequestsRequestBuilderGetQueryParameters]) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.IntegrationInstallationRequestable, error)
Get lists all the pending installation requests for the authenticated GitHub App. returns a []IntegrationInstallationRequestable when successful returns a BasicError error when the service returns a 401 status code API method documentation
func (*InstallationRequestsRequestBuilder) ToGetRequestInformation ¶
func (m *InstallationRequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[InstallationRequestsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation lists all the pending installation requests for the authenticated GitHub App. returns a *RequestInformation when successful
func (*InstallationRequestsRequestBuilder) WithUrl ¶
func (m *InstallationRequestsRequestBuilder) WithUrl(rawUrl string) *InstallationRequestsRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *InstallationRequestsRequestBuilder when successful
type InstallationRequestsRequestBuilderGetQueryParameters ¶
type InstallationRequestsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` }
InstallationRequestsRequestBuilderGetQueryParameters lists all the pending installation requests for the authenticated GitHub App.
type InstallationsItemAccess_tokensPostRequestBody ¶
type InstallationsItemAccess_tokensPostRequestBody struct {
// contains filtered or unexported fields
}
func NewInstallationsItemAccess_tokensPostRequestBody ¶
func NewInstallationsItemAccess_tokensPostRequestBody() *InstallationsItemAccess_tokensPostRequestBody
NewInstallationsItemAccess_tokensPostRequestBody instantiates a new InstallationsItemAccess_tokensPostRequestBody and sets the default values.
func (*InstallationsItemAccess_tokensPostRequestBody) GetAdditionalData ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) 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 (*InstallationsItemAccess_tokensPostRequestBody) GetFieldDeserializers ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) 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 (*InstallationsItemAccess_tokensPostRequestBody) GetPermissions ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) GetPermissions() i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.AppPermissionsable
GetPermissions gets the permissions property value. The permissions granted to the user access token. returns a AppPermissionsable when successful
func (*InstallationsItemAccess_tokensPostRequestBody) GetRepositories ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) GetRepositories() []string
GetRepositories gets the repositories property value. List of repository names that the token should have access to returns a []string when successful
func (*InstallationsItemAccess_tokensPostRequestBody) GetRepositoryIds ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) GetRepositoryIds() []int32
GetRepositoryIds gets the repository_ids property value. List of repository IDs that the token should have access to returns a []int32 when successful
func (*InstallationsItemAccess_tokensPostRequestBody) Serialize ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*InstallationsItemAccess_tokensPostRequestBody) SetAdditionalData ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) 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 (*InstallationsItemAccess_tokensPostRequestBody) SetPermissions ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) SetPermissions(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.AppPermissionsable)
SetPermissions sets the permissions property value. The permissions granted to the user access token.
func (*InstallationsItemAccess_tokensPostRequestBody) SetRepositories ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) SetRepositories(value []string)
SetRepositories sets the repositories property value. List of repository names that the token should have access to
func (*InstallationsItemAccess_tokensPostRequestBody) SetRepositoryIds ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) SetRepositoryIds(value []int32)
SetRepositoryIds sets the repository_ids property value. List of repository IDs that the token should have access to
type InstallationsItemAccess_tokensPostRequestBodyable ¶
type InstallationsItemAccess_tokensPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetPermissions() i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.AppPermissionsable GetRepositories() []string GetRepositoryIds() []int32 SetPermissions(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.AppPermissionsable) SetRepositories(value []string) SetRepositoryIds(value []int32) }
type InstallationsItemAccess_tokensRequestBuilder ¶
type InstallationsItemAccess_tokensRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
InstallationsItemAccess_tokensRequestBuilder builds and executes requests for operations under \app\installations\{installation_id}\access_tokens
func NewInstallationsItemAccess_tokensRequestBuilder ¶
func NewInstallationsItemAccess_tokensRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsItemAccess_tokensRequestBuilder
NewInstallationsItemAccess_tokensRequestBuilder instantiates a new InstallationsItemAccess_tokensRequestBuilder and sets the default values.
func NewInstallationsItemAccess_tokensRequestBuilderInternal ¶
func NewInstallationsItemAccess_tokensRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsItemAccess_tokensRequestBuilder
NewInstallationsItemAccess_tokensRequestBuilderInternal instantiates a new InstallationsItemAccess_tokensRequestBuilder and sets the default values.
func (*InstallationsItemAccess_tokensRequestBuilder) Post ¶
func (m *InstallationsItemAccess_tokensRequestBuilder) Post(ctx context.Context, body InstallationsItemAccess_tokensPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InstallationTokenable, error)
Post creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a InstallationTokenable 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 (*InstallationsItemAccess_tokensRequestBuilder) ToPostRequestInformation ¶
func (m *InstallationsItemAccess_tokensRequestBuilder) ToPostRequestInformation(ctx context.Context, body InstallationsItemAccess_tokensPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToPostRequestInformation creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*InstallationsItemAccess_tokensRequestBuilder) WithUrl ¶
func (m *InstallationsItemAccess_tokensRequestBuilder) WithUrl(rawUrl string) *InstallationsItemAccess_tokensRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *InstallationsItemAccess_tokensRequestBuilder when successful
type InstallationsItemSuspendedRequestBuilder ¶
type InstallationsItemSuspendedRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
InstallationsItemSuspendedRequestBuilder builds and executes requests for operations under \app\installations\{installation_id}\suspended
func NewInstallationsItemSuspendedRequestBuilder ¶
func NewInstallationsItemSuspendedRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsItemSuspendedRequestBuilder
NewInstallationsItemSuspendedRequestBuilder instantiates a new InstallationsItemSuspendedRequestBuilder and sets the default values.
func NewInstallationsItemSuspendedRequestBuilderInternal ¶
func NewInstallationsItemSuspendedRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsItemSuspendedRequestBuilder
NewInstallationsItemSuspendedRequestBuilderInternal instantiates a new InstallationsItemSuspendedRequestBuilder and sets the default values.
func (*InstallationsItemSuspendedRequestBuilder) Delete ¶
func (m *InstallationsItemSuspendedRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
Delete removes a GitHub App installation suspension.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a BasicError error when the service returns a 404 status code API method documentation
func (*InstallationsItemSuspendedRequestBuilder) Put ¶
func (m *InstallationsItemSuspendedRequestBuilder) Put(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
Put suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a BasicError error when the service returns a 404 status code API method documentation
func (*InstallationsItemSuspendedRequestBuilder) ToDeleteRequestInformation ¶
func (m *InstallationsItemSuspendedRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToDeleteRequestInformation removes a GitHub App installation suspension.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*InstallationsItemSuspendedRequestBuilder) ToPutRequestInformation ¶
func (m *InstallationsItemSuspendedRequestBuilder) ToPutRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToPutRequestInformation suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*InstallationsItemSuspendedRequestBuilder) WithUrl ¶
func (m *InstallationsItemSuspendedRequestBuilder) WithUrl(rawUrl string) *InstallationsItemSuspendedRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *InstallationsItemSuspendedRequestBuilder when successful
type InstallationsRequestBuilder ¶
type InstallationsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
InstallationsRequestBuilder builds and executes requests for operations under \app\installations
func NewInstallationsRequestBuilder ¶
func NewInstallationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsRequestBuilder
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 ¶
func (m *InstallationsRequestBuilder) ByInstallation_id(installation_id int32) *InstallationsWithInstallation_ItemRequestBuilder
ByInstallation_id gets an item from the github.com/octokit/go-sdk/pkg/github.app.installations.item collection returns a *InstallationsWithInstallation_ItemRequestBuilder when successful
func (*InstallationsRequestBuilder) Get ¶
func (m *InstallationsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[InstallationsRequestBuilderGetQueryParameters]) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Installationable, error)
Get the permissions the installation has are included under the `permissions` key.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a []Installationable when successful API method documentation
func (*InstallationsRequestBuilder) ToGetRequestInformation ¶
func (m *InstallationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[InstallationsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation the permissions the installation has are included under the `permissions` key.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*InstallationsRequestBuilder) WithUrl ¶
func (m *InstallationsRequestBuilder) WithUrl(rawUrl string) *InstallationsRequestBuilder
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 { Outdated *string `uriparametername:"outdated"` // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` // Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Since *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time `uriparametername:"since"` }
InstallationsRequestBuilderGetQueryParameters the permissions the installation has are included under the `permissions` key.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
type InstallationsWithInstallation_ItemRequestBuilder ¶
type InstallationsWithInstallation_ItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
InstallationsWithInstallation_ItemRequestBuilder builds and executes requests for operations under \app\installations\{installation_id}
func NewInstallationsWithInstallation_ItemRequestBuilder ¶
func NewInstallationsWithInstallation_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsWithInstallation_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) Access_tokens ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) Access_tokens() *InstallationsItemAccess_tokensRequestBuilder
Access_tokens the access_tokens property returns a *InstallationsItemAccess_tokensRequestBuilder when successful
func (*InstallationsWithInstallation_ItemRequestBuilder) Delete ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
Delete uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a BasicError error when the service returns a 404 status code API method documentation
func (*InstallationsWithInstallation_ItemRequestBuilder) Get ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Installationable, error)
Get enables an authenticated GitHub App to find an installation's information using the installation id.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a Installationable when successful returns a BasicError error when the service returns a 404 status code API method documentation
func (*InstallationsWithInstallation_ItemRequestBuilder) Suspended ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) Suspended() *InstallationsItemSuspendedRequestBuilder
Suspended the suspended property returns a *InstallationsItemSuspendedRequestBuilder when successful
func (*InstallationsWithInstallation_ItemRequestBuilder) ToDeleteRequestInformation ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToDeleteRequestInformation uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*InstallationsWithInstallation_ItemRequestBuilder) ToGetRequestInformation ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation enables an authenticated GitHub App to find an installation's information using the installation id.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. returns a *RequestInformation when successful
func (*InstallationsWithInstallation_ItemRequestBuilder) WithUrl ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) WithUrl(rawUrl string) *InstallationsWithInstallation_ItemRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *InstallationsWithInstallation_ItemRequestBuilder when successful
Source Files
¶
- app_request_builder.go
- hook_config_patch_request_body.go
- hook_config_request_builder.go
- hook_deliveries_item_attempts_post_response.go
- hook_deliveries_item_attempts_request_builder.go
- hook_deliveries_item_attempts_response.go
- hook_deliveries_request_builder.go
- hook_deliveries_with_delivery_item_request_builder.go
- hook_request_builder.go
- installation_requests_request_builder.go
- installations_item_access_tokens_post_request_body.go
- installations_item_access_tokens_request_builder.go
- installations_item_suspended_request_builder.go
- installations_request_builder.go
- installations_with_installation_item_request_builder.go