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 AppRequestBuilderGetRequestConfiguration
- 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 HookConfigRequestBuilderGetRequestConfiguration
- type HookConfigRequestBuilderPatchRequestConfiguration
- 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, ...) (HookDeliveriesItemAttemptsResponseable, error)
- func (m *HookDeliveriesItemAttemptsRequestBuilder) PostAsAttemptsPostResponse(ctx context.Context, ...) (HookDeliveriesItemAttemptsPostResponseable, error)
- func (m *HookDeliveriesItemAttemptsRequestBuilder) ToPostRequestInformation(ctx context.Context, ...) (...)
- func (m *HookDeliveriesItemAttemptsRequestBuilder) WithUrl(rawUrl string) *HookDeliveriesItemAttemptsRequestBuilder
- type HookDeliveriesItemAttemptsRequestBuilderPostRequestConfiguration
- type HookDeliveriesItemAttemptsResponse
- type HookDeliveriesItemAttemptsResponseable
- type HookDeliveriesRequestBuilder
- func (m *HookDeliveriesRequestBuilder) ByDelivery_id(delivery_id string) *HookDeliveriesWithDelivery_ItemRequestBuilder
- func (m *HookDeliveriesRequestBuilder) ByDelivery_idInteger(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 HookDeliveriesRequestBuilderGetRequestConfiguration
- 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 HookDeliveriesWithDelivery_ItemRequestBuilderGetRequestConfiguration
- type HookRequestBuilder
- type InstallationRequestsRequestBuilder
- type InstallationRequestsRequestBuilderGetQueryParameters
- type InstallationRequestsRequestBuilderGetRequestConfiguration
- 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 InstallationsItemAccess_tokensRequestBuilderPostRequestConfiguration
- 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 InstallationsItemSuspendedRequestBuilderDeleteRequestConfiguration
- type InstallationsItemSuspendedRequestBuilderPutRequestConfiguration
- type InstallationsRequestBuilder
- func (m *InstallationsRequestBuilder) ByInstallation_id(installation_id string) *InstallationsWithInstallation_ItemRequestBuilder
- func (m *InstallationsRequestBuilder) ByInstallation_idInteger(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 InstallationsRequestBuilderGetRequestConfiguration
- 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
- type InstallationsWithInstallation_ItemRequestBuilderDeleteRequestConfiguration
- type InstallationsWithInstallation_ItemRequestBuilderGetRequestConfiguration
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
func CreateHookDeliveriesItemAttemptsPostResponseFromDiscriminatorValue ¶
func CreateHookDeliveriesItemAttemptsPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateHookDeliveriesItemAttemptsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
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
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 *AppRequestBuilderGetRequestConfiguration) (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. API method documentation
func (*AppRequestBuilder) Hook ¶
func (m *AppRequestBuilder) Hook() *HookRequestBuilder
Hook the hook property
func (*AppRequestBuilder) InstallationRequests ¶
func (m *AppRequestBuilder) InstallationRequests() *InstallationRequestsRequestBuilder
InstallationRequests the installationRequests property
func (*AppRequestBuilder) Installations ¶
func (m *AppRequestBuilder) Installations() *InstallationsRequestBuilder
Installations the installations property
func (*AppRequestBuilder) ToGetRequestInformation ¶
func (m *AppRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AppRequestBuilderGetRequestConfiguration) (*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.
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.
type AppRequestBuilderGetRequestConfiguration ¶
type AppRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
AppRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type HookConfigPatchRequestBody ¶
type HookConfigPatchRequestBody struct {
// contains filtered or unexported fields
}
HookConfigPatchRequestBody
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.
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`.
func (*HookConfigPatchRequestBody) GetFieldDeserializers ¶
func (m *HookConfigPatchRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
func (*HookConfigPatchRequestBody) GetInsecureSsl ¶
func (m *HookConfigPatchRequestBody) GetInsecureSsl() i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.WebhookConfigInsecureSslable
GetInsecureSsl gets the insecure_ssl property value. The insecure_ssl property
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).
func (*HookConfigPatchRequestBody) GetUrl ¶
func (m *HookConfigPatchRequestBody) GetUrl() *string
GetUrl gets the url property value. The URL to which the payloads will be delivered.
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) }
HookConfigPatchRequestBodyable
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 ConfigRequestBuilder and sets the default values.
func NewHookConfigRequestBuilderInternal ¶
func NewHookConfigRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookConfigRequestBuilder
NewHookConfigRequestBuilderInternal instantiates a new ConfigRequestBuilder and sets the default values.
func (*HookConfigRequestBuilder) Get ¶
func (m *HookConfigRequestBuilder) Get(ctx context.Context, requestConfiguration *HookConfigRequestBuilderGetRequestConfiguration) (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. API method documentation
func (*HookConfigRequestBuilder) Patch ¶
func (m *HookConfigRequestBuilder) Patch(ctx context.Context, body HookConfigPatchRequestBodyable, requestConfiguration *HookConfigRequestBuilderPatchRequestConfiguration) (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. API method documentation
func (*HookConfigRequestBuilder) ToGetRequestInformation ¶
func (m *HookConfigRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *HookConfigRequestBuilderGetRequestConfiguration) (*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.
func (*HookConfigRequestBuilder) ToPatchRequestInformation ¶
func (m *HookConfigRequestBuilder) ToPatchRequestInformation(ctx context.Context, body HookConfigPatchRequestBodyable, requestConfiguration *HookConfigRequestBuilderPatchRequestConfiguration) (*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.
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.
type HookConfigRequestBuilderGetRequestConfiguration ¶
type HookConfigRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
HookConfigRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type HookConfigRequestBuilderPatchRequestConfiguration ¶
type HookConfigRequestBuilderPatchRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
HookConfigRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type HookDeliveriesItemAttemptsPostResponse ¶
type HookDeliveriesItemAttemptsPostResponse struct {
// contains filtered or unexported fields
}
HookDeliveriesItemAttemptsPostResponse
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.
func (*HookDeliveriesItemAttemptsPostResponse) GetFieldDeserializers ¶
func (m *HookDeliveriesItemAttemptsPostResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
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 }
HookDeliveriesItemAttemptsPostResponseable
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 AttemptsRequestBuilder and sets the default values.
func NewHookDeliveriesItemAttemptsRequestBuilderInternal ¶
func NewHookDeliveriesItemAttemptsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookDeliveriesItemAttemptsRequestBuilder
NewHookDeliveriesItemAttemptsRequestBuilderInternal instantiates a new AttemptsRequestBuilder and sets the default values.
func (*HookDeliveriesItemAttemptsRequestBuilder) Post ¶
func (m *HookDeliveriesItemAttemptsRequestBuilder) Post(ctx context.Context, requestConfiguration *HookDeliveriesItemAttemptsRequestBuilderPostRequestConfiguration) (HookDeliveriesItemAttemptsResponseable, 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. Deprecated: This method is obsolete. Use PostAsAttemptsPostResponse instead. API method documentation
func (*HookDeliveriesItemAttemptsRequestBuilder) PostAsAttemptsPostResponse ¶
func (m *HookDeliveriesItemAttemptsRequestBuilder) PostAsAttemptsPostResponse(ctx context.Context, requestConfiguration *HookDeliveriesItemAttemptsRequestBuilderPostRequestConfiguration) (HookDeliveriesItemAttemptsPostResponseable, error)
PostAsAttemptsPostResponse 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. API method documentation
func (*HookDeliveriesItemAttemptsRequestBuilder) ToPostRequestInformation ¶
func (m *HookDeliveriesItemAttemptsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *HookDeliveriesItemAttemptsRequestBuilderPostRequestConfiguration) (*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.
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.
type HookDeliveriesItemAttemptsRequestBuilderPostRequestConfiguration ¶
type HookDeliveriesItemAttemptsRequestBuilderPostRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
HookDeliveriesItemAttemptsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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 DeliveriesRequestBuilder and sets the default values.
func NewHookDeliveriesRequestBuilderInternal ¶
func NewHookDeliveriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HookDeliveriesRequestBuilder
NewHookDeliveriesRequestBuilderInternal instantiates a new DeliveriesRequestBuilder and sets the default values.
func (*HookDeliveriesRequestBuilder) ByDelivery_id ¶
func (m *HookDeliveriesRequestBuilder) ByDelivery_id(delivery_id string) *HookDeliveriesWithDelivery_ItemRequestBuilder
ByDelivery_id gets an item from the github.com/octokit/go-sdk/pkg/github/.app.hook.deliveries.item collection Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.
func (*HookDeliveriesRequestBuilder) ByDelivery_idInteger ¶
func (m *HookDeliveriesRequestBuilder) ByDelivery_idInteger(delivery_id int32) *HookDeliveriesWithDelivery_ItemRequestBuilder
ByDelivery_idInteger gets an item from the github.com/octokit/go-sdk/pkg/github/.app.hook.deliveries.item collection
func (*HookDeliveriesRequestBuilder) Get ¶
func (m *HookDeliveriesRequestBuilder) Get(ctx context.Context, requestConfiguration *HookDeliveriesRequestBuilderGetRequestConfiguration) ([]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. API method documentation
func (*HookDeliveriesRequestBuilder) ToGetRequestInformation ¶
func (m *HookDeliveriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *HookDeliveriesRequestBuilderGetRequestConfiguration) (*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.
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.
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). 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 HookDeliveriesRequestBuilderGetRequestConfiguration ¶
type HookDeliveriesRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *HookDeliveriesRequestBuilderGetQueryParameters }
HookDeliveriesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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 WithDelivery_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 WithDelivery_ItemRequestBuilder and sets the default values.
func (*HookDeliveriesWithDelivery_ItemRequestBuilder) Attempts ¶
func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) Attempts() *HookDeliveriesItemAttemptsRequestBuilder
Attempts the attempts property
func (*HookDeliveriesWithDelivery_ItemRequestBuilder) Get ¶
func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) Get(ctx context.Context, requestConfiguration *HookDeliveriesWithDelivery_ItemRequestBuilderGetRequestConfiguration) (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. API method documentation
func (*HookDeliveriesWithDelivery_ItemRequestBuilder) ToGetRequestInformation ¶
func (m *HookDeliveriesWithDelivery_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *HookDeliveriesWithDelivery_ItemRequestBuilderGetRequestConfiguration) (*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.
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.
type HookDeliveriesWithDelivery_ItemRequestBuilderGetRequestConfiguration ¶
type HookDeliveriesWithDelivery_ItemRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
HookDeliveriesWithDelivery_ItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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
func (*HookRequestBuilder) Deliveries ¶
func (m *HookRequestBuilder) Deliveries() *HookDeliveriesRequestBuilder
Deliveries the deliveries property
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 *InstallationRequestsRequestBuilderGetRequestConfiguration) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.IntegrationInstallationRequestable, error)
Get lists all the pending installation requests for the authenticated GitHub App. API method documentation
func (*InstallationRequestsRequestBuilder) ToGetRequestInformation ¶
func (m *InstallationRequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *InstallationRequestsRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation lists all the pending installation requests for the authenticated GitHub App.
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.
type InstallationRequestsRequestBuilderGetQueryParameters ¶
type InstallationRequestsRequestBuilderGetQueryParameters struct { // Page number of the results to fetch. Page *int32 `uriparametername:"page"` // The number of results per page (max 100). Per_page *int32 `uriparametername:"per_page"` }
InstallationRequestsRequestBuilderGetQueryParameters lists all the pending installation requests for the authenticated GitHub App.
type InstallationRequestsRequestBuilderGetRequestConfiguration ¶
type InstallationRequestsRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *InstallationRequestsRequestBuilderGetQueryParameters }
InstallationRequestsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type InstallationsItemAccess_tokensPostRequestBody ¶
type InstallationsItemAccess_tokensPostRequestBody struct {
// contains filtered or unexported fields
}
InstallationsItemAccess_tokensPostRequestBody
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.
func (*InstallationsItemAccess_tokensPostRequestBody) GetFieldDeserializers ¶
func (m *InstallationsItemAccess_tokensPostRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model
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.
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
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
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) }
InstallationsItemAccess_tokensPostRequestBodyable
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 Access_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 Access_tokensRequestBuilder and sets the default values.
func (*InstallationsItemAccess_tokensRequestBuilder) Post ¶
func (m *InstallationsItemAccess_tokensRequestBuilder) Post(ctx context.Context, body InstallationsItemAccess_tokensPostRequestBodyable, requestConfiguration *InstallationsItemAccess_tokensRequestBuilderPostRequestConfiguration) (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. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` 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. API method documentation
func (*InstallationsItemAccess_tokensRequestBuilder) ToPostRequestInformation ¶
func (m *InstallationsItemAccess_tokensRequestBuilder) ToPostRequestInformation(ctx context.Context, body InstallationsItemAccess_tokensPostRequestBodyable, requestConfiguration *InstallationsItemAccess_tokensRequestBuilderPostRequestConfiguration) (*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. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` 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.
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.
type InstallationsItemAccess_tokensRequestBuilderPostRequestConfiguration ¶
type InstallationsItemAccess_tokensRequestBuilderPostRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
InstallationsItemAccess_tokensRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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 SuspendedRequestBuilder and sets the default values.
func NewInstallationsItemSuspendedRequestBuilderInternal ¶
func NewInstallationsItemSuspendedRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *InstallationsItemSuspendedRequestBuilder
NewInstallationsItemSuspendedRequestBuilderInternal instantiates a new SuspendedRequestBuilder and sets the default values.
func (*InstallationsItemSuspendedRequestBuilder) Delete ¶
func (m *InstallationsItemSuspendedRequestBuilder) Delete(ctx context.Context, requestConfiguration *InstallationsItemSuspendedRequestBuilderDeleteRequestConfiguration) 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. API method documentation
func (*InstallationsItemSuspendedRequestBuilder) Put ¶
func (m *InstallationsItemSuspendedRequestBuilder) Put(ctx context.Context, requestConfiguration *InstallationsItemSuspendedRequestBuilderPutRequestConfiguration) 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. API method documentation
func (*InstallationsItemSuspendedRequestBuilder) ToDeleteRequestInformation ¶
func (m *InstallationsItemSuspendedRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *InstallationsItemSuspendedRequestBuilderDeleteRequestConfiguration) (*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.
func (*InstallationsItemSuspendedRequestBuilder) ToPutRequestInformation ¶
func (m *InstallationsItemSuspendedRequestBuilder) ToPutRequestInformation(ctx context.Context, requestConfiguration *InstallationsItemSuspendedRequestBuilderPutRequestConfiguration) (*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.
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.
type InstallationsItemSuspendedRequestBuilderDeleteRequestConfiguration ¶
type InstallationsItemSuspendedRequestBuilderDeleteRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
InstallationsItemSuspendedRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type InstallationsItemSuspendedRequestBuilderPutRequestConfiguration ¶
type InstallationsItemSuspendedRequestBuilderPutRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
InstallationsItemSuspendedRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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 string) *InstallationsWithInstallation_ItemRequestBuilder
ByInstallation_id gets an item from the github.com/octokit/go-sdk/pkg/github/.app.installations.item collection Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.
func (*InstallationsRequestBuilder) ByInstallation_idInteger ¶
func (m *InstallationsRequestBuilder) ByInstallation_idInteger(installation_id int32) *InstallationsWithInstallation_ItemRequestBuilder
ByInstallation_idInteger gets an item from the github.com/octokit/go-sdk/pkg/github/.app.installations.item collection
func (*InstallationsRequestBuilder) Get ¶
func (m *InstallationsRequestBuilder) Get(ctx context.Context, requestConfiguration *InstallationsRequestBuilderGetRequestConfiguration) ([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Installationable, error)
Get 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.The permissions the installation has are included under the `permissions` key. API method documentation
func (*InstallationsRequestBuilder) ToGetRequestInformation ¶
func (m *InstallationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *InstallationsRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation 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.The permissions the installation has are included under the `permissions` key.
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.
type InstallationsRequestBuilderGetQueryParameters ¶
type InstallationsRequestBuilderGetQueryParameters struct { // Outdated *string `uriparametername:"outdated"` // Page number of the results to fetch. Page *int32 `uriparametername:"page"` // The number of results per page (max 100). 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 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.The permissions the installation has are included under the `permissions` key.
type InstallationsRequestBuilderGetRequestConfiguration ¶
type InstallationsRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters QueryParameters *InstallationsRequestBuilderGetQueryParameters }
InstallationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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 WithInstallation_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 WithInstallation_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
func (*InstallationsWithInstallation_ItemRequestBuilder) Delete ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *InstallationsWithInstallation_ItemRequestBuilderDeleteRequestConfiguration) 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. API method documentation
func (*InstallationsWithInstallation_ItemRequestBuilder) Get ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) Get(ctx context.Context, requestConfiguration *InstallationsWithInstallation_ItemRequestBuilderGetRequestConfiguration) (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. API method documentation
func (*InstallationsWithInstallation_ItemRequestBuilder) Suspended ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) Suspended() *InstallationsItemSuspendedRequestBuilder
Suspended the suspended property
func (*InstallationsWithInstallation_ItemRequestBuilder) ToDeleteRequestInformation ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *InstallationsWithInstallation_ItemRequestBuilderDeleteRequestConfiguration) (*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.
func (*InstallationsWithInstallation_ItemRequestBuilder) ToGetRequestInformation ¶
func (m *InstallationsWithInstallation_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *InstallationsWithInstallation_ItemRequestBuilderGetRequestConfiguration) (*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.
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.
type InstallationsWithInstallation_ItemRequestBuilderDeleteRequestConfiguration ¶
type InstallationsWithInstallation_ItemRequestBuilderDeleteRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
InstallationsWithInstallation_ItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type InstallationsWithInstallation_ItemRequestBuilderGetRequestConfiguration ¶
type InstallationsWithInstallation_ItemRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption }
InstallationsWithInstallation_ItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
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