admin

package
v0.0.3-GHES.3.11 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHooksItemWithHook_PatchRequestBodyFromDiscriminatorValue

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

func CreateHooksItemWithHook_PatchRequestBody_configFromDiscriminatorValue

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

func CreateHooksPostRequestBodyFromDiscriminatorValue

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

func CreateHooksPostRequestBody_configFromDiscriminatorValue

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

func CreateLdapTeamsItemMappingPatchRequestBodyFromDiscriminatorValue

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

func CreateLdapTeamsItemSyncPostResponseFromDiscriminatorValue

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

func CreateLdapUsersItemMappingPatchRequestBodyFromDiscriminatorValue

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

func CreateLdapUsersItemSyncPostResponseFromDiscriminatorValue

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

func CreateOrganizationsItemWithOrgPatchRequestBodyFromDiscriminatorValue

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

func CreateOrganizationsItemWithOrgPatchResponseFromDiscriminatorValue

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

func CreateOrganizationsPostRequestBodyFromDiscriminatorValue

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

func CreatePreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422ErrorFromDiscriminatorValue

func CreatePreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errorsFromDiscriminatorValue

func CreatePreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errorsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveEnvironmentsItemPreReceiveEnvironment422ErrorFromDiscriminatorValue

func CreatePreReceiveEnvironmentsItemPreReceiveEnvironment422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errorsFromDiscriminatorValue

func CreatePreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errorsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveEnvironmentsItemWithPre_receive_environment_422ErrorFromDiscriminatorValue

func CreatePreReceiveEnvironmentsItemWithPre_receive_environment_422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errorsFromDiscriminatorValue

func CreatePreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errorsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBodyFromDiscriminatorValue

func CreatePreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveEnvironmentsPostRequestBodyFromDiscriminatorValue

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

func CreatePreReceiveHooksItemWithPre_receive_hook_PatchRequestBodyFromDiscriminatorValue

func CreatePreReceiveHooksItemWithPre_receive_hook_PatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environmentFromDiscriminatorValue

func CreatePreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repositoryFromDiscriminatorValue

func CreatePreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repositoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreatePreReceiveHooksPostRequestBodyFromDiscriminatorValue

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

func CreatePreReceiveHooksPostRequestBody_environmentFromDiscriminatorValue

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

func CreatePreReceiveHooksPostRequestBody_script_repositoryFromDiscriminatorValue

func CreatePreReceiveHooksPostRequestBody_script_repositoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

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

func CreateUsersItemAuthorizationsPostRequestBodyFromDiscriminatorValue

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

func CreateUsersItemWithUsernamePatchRequestBodyFromDiscriminatorValue

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

func CreateUsersItemWithUsernamePatchResponseFromDiscriminatorValue

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

func CreateUsersPostRequestBodyFromDiscriminatorValue

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

Types

type AdminRequestBuilder

AdminRequestBuilder builds and executes requests for operations under \admin

func NewAdminRequestBuilder

NewAdminRequestBuilder instantiates a new AdminRequestBuilder and sets the default values.

func NewAdminRequestBuilderInternal

func NewAdminRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *AdminRequestBuilder

NewAdminRequestBuilderInternal instantiates a new AdminRequestBuilder and sets the default values.

func (*AdminRequestBuilder) Hooks

Hooks the hooks property returns a *HooksRequestBuilder when successful

func (*AdminRequestBuilder) Keys

Keys the keys property returns a *KeysRequestBuilder when successful

func (*AdminRequestBuilder) Ldap

Ldap the ldap property returns a *LdapRequestBuilder when successful

func (*AdminRequestBuilder) Organizations

Organizations the organizations property returns a *OrganizationsRequestBuilder when successful

func (*AdminRequestBuilder) PreReceiveEnvironments

func (m *AdminRequestBuilder) PreReceiveEnvironments() *PreReceiveEnvironmentsRequestBuilder

PreReceiveEnvironments the preReceiveEnvironments property returns a *PreReceiveEnvironmentsRequestBuilder when successful

func (*AdminRequestBuilder) PreReceiveHooks

func (m *AdminRequestBuilder) PreReceiveHooks() *PreReceiveHooksRequestBuilder

PreReceiveHooks the preReceiveHooks property returns a *PreReceiveHooksRequestBuilder when successful

func (*AdminRequestBuilder) Tokens

Tokens the tokens property returns a *TokensRequestBuilder when successful

func (*AdminRequestBuilder) Users

Users the users property returns a *UsersRequestBuilder when successful

type HooksItemPingsRequestBuilder

HooksItemPingsRequestBuilder builds and executes requests for operations under \admin\hooks\{hook_id}\pings

func NewHooksItemPingsRequestBuilder

NewHooksItemPingsRequestBuilder instantiates a new HooksItemPingsRequestBuilder and sets the default values.

func NewHooksItemPingsRequestBuilderInternal

func NewHooksItemPingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HooksItemPingsRequestBuilder

NewHooksItemPingsRequestBuilderInternal instantiates a new HooksItemPingsRequestBuilder and sets the default values.

func (*HooksItemPingsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *HooksItemPingsRequestBuilder when successful

type HooksItemWithHook_PatchRequestBody

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

func NewHooksItemWithHook_PatchRequestBody

func NewHooksItemWithHook_PatchRequestBody() *HooksItemWithHook_PatchRequestBody

NewHooksItemWithHook_PatchRequestBody instantiates a new HooksItemWithHook_PatchRequestBody and sets the default values.

func (*HooksItemWithHook_PatchRequestBody) GetActive

func (m *HooksItemWithHook_PatchRequestBody) GetActive() *bool

GetActive gets the active property value. Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. returns a *bool when successful

func (*HooksItemWithHook_PatchRequestBody) GetAdditionalData

func (m *HooksItemWithHook_PatchRequestBody) 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 (*HooksItemWithHook_PatchRequestBody) GetConfig

GetConfig gets the config property value. Key/value pairs to provide settings for this webhook. returns a HooksItemWithHook_PatchRequestBody_configable when successful

func (*HooksItemWithHook_PatchRequestBody) GetEvents

func (m *HooksItemWithHook_PatchRequestBody) GetEvents() []string

GetEvents gets the events property value. The [events](https://docs.github.com/enterprise-server@3.11/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`. returns a []string when successful

func (*HooksItemWithHook_PatchRequestBody) GetFieldDeserializers

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

func (*HooksItemWithHook_PatchRequestBody) Serialize

Serialize serializes information the current object

func (*HooksItemWithHook_PatchRequestBody) SetActive

func (m *HooksItemWithHook_PatchRequestBody) SetActive(value *bool)

SetActive sets the active property value. Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.

func (*HooksItemWithHook_PatchRequestBody) SetAdditionalData

func (m *HooksItemWithHook_PatchRequestBody) 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 (*HooksItemWithHook_PatchRequestBody) SetConfig

SetConfig sets the config property value. Key/value pairs to provide settings for this webhook.

func (*HooksItemWithHook_PatchRequestBody) SetEvents

func (m *HooksItemWithHook_PatchRequestBody) SetEvents(value []string)

SetEvents sets the events property value. The [events](https://docs.github.com/enterprise-server@3.11/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.

type HooksItemWithHook_PatchRequestBody_config

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

HooksItemWithHook_PatchRequestBody_config key/value pairs to provide settings for this webhook.

func NewHooksItemWithHook_PatchRequestBody_config

func NewHooksItemWithHook_PatchRequestBody_config() *HooksItemWithHook_PatchRequestBody_config

NewHooksItemWithHook_PatchRequestBody_config instantiates a new HooksItemWithHook_PatchRequestBody_config and sets the default values.

func (*HooksItemWithHook_PatchRequestBody_config) GetAdditionalData

func (m *HooksItemWithHook_PatchRequestBody_config) 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 (*HooksItemWithHook_PatchRequestBody_config) GetContentType

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 (*HooksItemWithHook_PatchRequestBody_config) GetFieldDeserializers

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

func (*HooksItemWithHook_PatchRequestBody_config) GetInsecureSsl

GetInsecureSsl gets the insecure_ssl property value. Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** returns a *string when successful

func (*HooksItemWithHook_PatchRequestBody_config) GetSecret

GetSecret gets the secret property value. If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.11/webhooks/event-payloads/#delivery-headers) header. returns a *string when successful

func (*HooksItemWithHook_PatchRequestBody_config) GetUrl

GetUrl gets the url property value. The URL to which the payloads will be delivered. returns a *string when successful

func (*HooksItemWithHook_PatchRequestBody_config) Serialize

Serialize serializes information the current object

func (*HooksItemWithHook_PatchRequestBody_config) SetAdditionalData

func (m *HooksItemWithHook_PatchRequestBody_config) 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 (*HooksItemWithHook_PatchRequestBody_config) SetContentType

func (m *HooksItemWithHook_PatchRequestBody_config) 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 (*HooksItemWithHook_PatchRequestBody_config) SetInsecureSsl

func (m *HooksItemWithHook_PatchRequestBody_config) SetInsecureSsl(value *string)

SetInsecureSsl sets the insecure_ssl property value. Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**

func (*HooksItemWithHook_PatchRequestBody_config) SetSecret

SetSecret sets the secret property value. If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.11/webhooks/event-payloads/#delivery-headers) header.

func (*HooksItemWithHook_PatchRequestBody_config) SetUrl

SetUrl sets the url property value. The URL to which the payloads will be delivered.

type HooksItemWithHook_PatchRequestBody_configable

type HooksItemWithHook_PatchRequestBody_configable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetContentType() *string
	GetInsecureSsl() *string
	GetSecret() *string
	GetUrl() *string
	SetContentType(value *string)
	SetInsecureSsl(value *string)
	SetSecret(value *string)
	SetUrl(value *string)
}

type HooksPostRequestBody

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

func NewHooksPostRequestBody

func NewHooksPostRequestBody() *HooksPostRequestBody

NewHooksPostRequestBody instantiates a new HooksPostRequestBody and sets the default values.

func (*HooksPostRequestBody) GetActive

func (m *HooksPostRequestBody) GetActive() *bool

GetActive gets the active property value. Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. returns a *bool when successful

func (*HooksPostRequestBody) GetAdditionalData

func (m *HooksPostRequestBody) 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 (*HooksPostRequestBody) GetConfig

GetConfig gets the config property value. Key/value pairs to provide settings for this webhook. returns a HooksPostRequestBody_configable when successful

func (*HooksPostRequestBody) GetEvents

func (m *HooksPostRequestBody) GetEvents() []string

GetEvents gets the events property value. The [events](https://docs.github.com/enterprise-server@3.11/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`. returns a []string when successful

func (*HooksPostRequestBody) GetFieldDeserializers

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

func (*HooksPostRequestBody) GetName

func (m *HooksPostRequestBody) GetName() *string

GetName gets the name property value. Must be passed as "web". returns a *string when successful

func (*HooksPostRequestBody) Serialize

Serialize serializes information the current object

func (*HooksPostRequestBody) SetActive

func (m *HooksPostRequestBody) SetActive(value *bool)

SetActive sets the active property value. Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.

func (*HooksPostRequestBody) SetAdditionalData

func (m *HooksPostRequestBody) 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 (*HooksPostRequestBody) SetConfig

SetConfig sets the config property value. Key/value pairs to provide settings for this webhook.

func (*HooksPostRequestBody) SetEvents

func (m *HooksPostRequestBody) SetEvents(value []string)

SetEvents sets the events property value. The [events](https://docs.github.com/enterprise-server@3.11/webhooks/event-payloads) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.

func (*HooksPostRequestBody) SetName

func (m *HooksPostRequestBody) SetName(value *string)

SetName sets the name property value. Must be passed as "web".

type HooksPostRequestBody_config

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

HooksPostRequestBody_config key/value pairs to provide settings for this webhook.

func NewHooksPostRequestBody_config

func NewHooksPostRequestBody_config() *HooksPostRequestBody_config

NewHooksPostRequestBody_config instantiates a new HooksPostRequestBody_config and sets the default values.

func (*HooksPostRequestBody_config) GetAdditionalData

func (m *HooksPostRequestBody_config) 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 (*HooksPostRequestBody_config) GetContentType

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

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

func (*HooksPostRequestBody_config) GetInsecureSsl

func (m *HooksPostRequestBody_config) GetInsecureSsl() *string

GetInsecureSsl gets the insecure_ssl property value. Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** returns a *string when successful

func (*HooksPostRequestBody_config) GetSecret

func (m *HooksPostRequestBody_config) 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 in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.11/webhooks/event-payloads/#delivery-headers) header. returns a *string when successful

func (*HooksPostRequestBody_config) GetUrl

func (m *HooksPostRequestBody_config) GetUrl() *string

GetUrl gets the url property value. The URL to which the payloads will be delivered. returns a *string when successful

func (*HooksPostRequestBody_config) Serialize

Serialize serializes information the current object

func (*HooksPostRequestBody_config) SetAdditionalData

func (m *HooksPostRequestBody_config) 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 (*HooksPostRequestBody_config) SetContentType

func (m *HooksPostRequestBody_config) 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 (*HooksPostRequestBody_config) SetInsecureSsl

func (m *HooksPostRequestBody_config) SetInsecureSsl(value *string)

SetInsecureSsl sets the insecure_ssl property value. Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**

func (*HooksPostRequestBody_config) SetSecret

func (m *HooksPostRequestBody_config) 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 in the [`X-Hub-Signature`](https://docs.github.com/enterprise-server@3.11/webhooks/event-payloads/#delivery-headers) header.

func (*HooksPostRequestBody_config) SetUrl

func (m *HooksPostRequestBody_config) SetUrl(value *string)

SetUrl sets the url property value. The URL to which the payloads will be delivered.

type HooksPostRequestBody_configable

type HooksPostRequestBody_configable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetContentType() *string
	GetInsecureSsl() *string
	GetSecret() *string
	GetUrl() *string
	SetContentType(value *string)
	SetInsecureSsl(value *string)
	SetSecret(value *string)
	SetUrl(value *string)
}

type HooksRequestBuilder

HooksRequestBuilder builds and executes requests for operations under \admin\hooks

func NewHooksRequestBuilder

NewHooksRequestBuilder instantiates a new HooksRequestBuilder and sets the default values.

func NewHooksRequestBuilderInternal

func NewHooksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HooksRequestBuilder

NewHooksRequestBuilderInternal instantiates a new HooksRequestBuilder and sets the default values.

func (*HooksRequestBuilder) ByHook_id

ByHook_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.admin.hooks.item collection returns a *HooksWithHook_ItemRequestBuilder when successful

func (*HooksRequestBuilder) WithUrl

func (m *HooksRequestBuilder) WithUrl(rawUrl string) *HooksRequestBuilder

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *HooksRequestBuilder when successful

type HooksRequestBuilderGetQueryParameters

type HooksRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

HooksRequestBuilderGetQueryParameters list global webhooks

type HooksWithHook_ItemRequestBuilder

HooksWithHook_ItemRequestBuilder builds and executes requests for operations under \admin\hooks\{hook_id}

func NewHooksWithHook_ItemRequestBuilder

NewHooksWithHook_ItemRequestBuilder instantiates a new HooksWithHook_ItemRequestBuilder and sets the default values.

func NewHooksWithHook_ItemRequestBuilderInternal

func NewHooksWithHook_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *HooksWithHook_ItemRequestBuilder

NewHooksWithHook_ItemRequestBuilderInternal instantiates a new HooksWithHook_ItemRequestBuilder and sets the default values.

func (*HooksWithHook_ItemRequestBuilder) Patch

Patch parameters that are not provided will be overwritten with the default value or removed if no default exists. returns a GlobalHook2able when successful API method documentation

func (*HooksWithHook_ItemRequestBuilder) Pings

Pings the pings property returns a *HooksItemPingsRequestBuilder when successful

func (*HooksWithHook_ItemRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation parameters that are not provided will be overwritten with the default value or removed if no default exists. returns a *RequestInformation when successful

func (*HooksWithHook_ItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *HooksWithHook_ItemRequestBuilder when successful

type KeysRequestBuilder

KeysRequestBuilder builds and executes requests for operations under \admin\keys

func NewKeysRequestBuilder

NewKeysRequestBuilder instantiates a new KeysRequestBuilder and sets the default values.

func NewKeysRequestBuilderInternal

func NewKeysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *KeysRequestBuilder

NewKeysRequestBuilderInternal instantiates a new KeysRequestBuilder and sets the default values.

func (*KeysRequestBuilder) ByKey_ids

ByKey_ids gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.admin.keys.item collection returns a *KeysWithKey_idsItemRequestBuilder when successful

func (*KeysRequestBuilder) WithUrl

func (m *KeysRequestBuilder) WithUrl(rawUrl string) *KeysRequestBuilder

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *KeysRequestBuilder when successful

type KeysRequestBuilderGetQueryParameters

type KeysRequestBuilderGetQueryParameters struct {
	// The direction to sort the results by.
	Direction *i7b5e92fdca75c4784d3f41cbe18fab270185eef539028487994d96e4d2495c56.GetDirectionQueryParameterType `uriparametername:"direction"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// Only show public keys accessed after the given time.
	Since *string                                                                                      `uriparametername:"since"`
	Sort  *i7b5e92fdca75c4784d3f41cbe18fab270185eef539028487994d96e4d2495c56.GetSortQueryParameterType `uriparametername:"sort"`
}

KeysRequestBuilderGetQueryParameters list public keys

type KeysWithKey_idsItemRequestBuilder

KeysWithKey_idsItemRequestBuilder builds and executes requests for operations under \admin\keys\{key_ids}

func NewKeysWithKey_idsItemRequestBuilder

NewKeysWithKey_idsItemRequestBuilder instantiates a new KeysWithKey_idsItemRequestBuilder and sets the default values.

func NewKeysWithKey_idsItemRequestBuilderInternal

func NewKeysWithKey_idsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *KeysWithKey_idsItemRequestBuilder

NewKeysWithKey_idsItemRequestBuilderInternal instantiates a new KeysWithKey_idsItemRequestBuilder and sets the default values.

func (*KeysWithKey_idsItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *KeysWithKey_idsItemRequestBuilder when successful

type LdapRequestBuilder

LdapRequestBuilder builds and executes requests for operations under \admin\ldap

func NewLdapRequestBuilder

NewLdapRequestBuilder instantiates a new LdapRequestBuilder and sets the default values.

func NewLdapRequestBuilderInternal

func NewLdapRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LdapRequestBuilder

NewLdapRequestBuilderInternal instantiates a new LdapRequestBuilder and sets the default values.

func (*LdapRequestBuilder) Teams

Teams the teams property returns a *LdapTeamsRequestBuilder when successful

func (*LdapRequestBuilder) Users

Users the users property returns a *LdapUsersRequestBuilder when successful

type LdapTeamsItemMappingPatchRequestBody

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

func NewLdapTeamsItemMappingPatchRequestBody

func NewLdapTeamsItemMappingPatchRequestBody() *LdapTeamsItemMappingPatchRequestBody

NewLdapTeamsItemMappingPatchRequestBody instantiates a new LdapTeamsItemMappingPatchRequestBody and sets the default values.

func (*LdapTeamsItemMappingPatchRequestBody) GetAdditionalData

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

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

func (*LdapTeamsItemMappingPatchRequestBody) GetLdapDn

GetLdapDn gets the ldap_dn property value. The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. returns a *string when successful

func (*LdapTeamsItemMappingPatchRequestBody) Serialize

Serialize serializes information the current object

func (*LdapTeamsItemMappingPatchRequestBody) SetAdditionalData

func (m *LdapTeamsItemMappingPatchRequestBody) 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 (*LdapTeamsItemMappingPatchRequestBody) SetLdapDn

func (m *LdapTeamsItemMappingPatchRequestBody) SetLdapDn(value *string)

SetLdapDn sets the ldap_dn property value. The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.

type LdapTeamsItemMappingRequestBuilder

LdapTeamsItemMappingRequestBuilder builds and executes requests for operations under \admin\ldap\teams\{team_id}\mapping

func NewLdapTeamsItemMappingRequestBuilder

NewLdapTeamsItemMappingRequestBuilder instantiates a new LdapTeamsItemMappingRequestBuilder and sets the default values.

func NewLdapTeamsItemMappingRequestBuilderInternal

func NewLdapTeamsItemMappingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LdapTeamsItemMappingRequestBuilder

NewLdapTeamsItemMappingRequestBuilderInternal instantiates a new LdapTeamsItemMappingRequestBuilder and sets the default values.

func (*LdapTeamsItemMappingRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation updates the [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://docs.github.com/enterprise-server@3.11/admin/identity-and-access-management/using-ldap-for-enterprise-iam/using-ldap#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Create a team](https://docs.github.com/enterprise-server@3.11/rest/teams/teams/#create-a-team) endpoint to create a team with LDAP mapping. returns a *RequestInformation when successful

func (*LdapTeamsItemMappingRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *LdapTeamsItemMappingRequestBuilder when successful

type LdapTeamsItemSyncPostResponse

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

func NewLdapTeamsItemSyncPostResponse

func NewLdapTeamsItemSyncPostResponse() *LdapTeamsItemSyncPostResponse

NewLdapTeamsItemSyncPostResponse instantiates a new LdapTeamsItemSyncPostResponse and sets the default values.

func (*LdapTeamsItemSyncPostResponse) GetAdditionalData

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

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

func (*LdapTeamsItemSyncPostResponse) GetStatus

func (m *LdapTeamsItemSyncPostResponse) GetStatus() *string

GetStatus gets the status property value. The status property returns a *string when successful

func (*LdapTeamsItemSyncPostResponse) Serialize

Serialize serializes information the current object

func (*LdapTeamsItemSyncPostResponse) SetAdditionalData

func (m *LdapTeamsItemSyncPostResponse) 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 (*LdapTeamsItemSyncPostResponse) SetStatus

func (m *LdapTeamsItemSyncPostResponse) SetStatus(value *string)

SetStatus sets the status property value. The status property

type LdapTeamsItemSyncRequestBuilder

LdapTeamsItemSyncRequestBuilder builds and executes requests for operations under \admin\ldap\teams\{team_id}\sync

func NewLdapTeamsItemSyncRequestBuilder

NewLdapTeamsItemSyncRequestBuilder instantiates a new LdapTeamsItemSyncRequestBuilder and sets the default values.

func NewLdapTeamsItemSyncRequestBuilderInternal

func NewLdapTeamsItemSyncRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LdapTeamsItemSyncRequestBuilder

NewLdapTeamsItemSyncRequestBuilderInternal instantiates a new LdapTeamsItemSyncRequestBuilder and sets the default values.

func (*LdapTeamsItemSyncRequestBuilder) Post

Post note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready. returns a LdapTeamsItemSyncPostResponseable when successful API method documentation

func (*LdapTeamsItemSyncRequestBuilder) ToPostRequestInformation

ToPostRequestInformation note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready. returns a *RequestInformation when successful

func (*LdapTeamsItemSyncRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *LdapTeamsItemSyncRequestBuilder when successful

type LdapTeamsRequestBuilder

LdapTeamsRequestBuilder builds and executes requests for operations under \admin\ldap\teams

func NewLdapTeamsRequestBuilder

NewLdapTeamsRequestBuilder instantiates a new LdapTeamsRequestBuilder and sets the default values.

func NewLdapTeamsRequestBuilderInternal

func NewLdapTeamsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LdapTeamsRequestBuilder

NewLdapTeamsRequestBuilderInternal instantiates a new LdapTeamsRequestBuilder and sets the default values.

func (*LdapTeamsRequestBuilder) ByTeam_id

ByTeam_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.admin.ldap.teams.item collection returns a *LdapTeamsWithTeam_ItemRequestBuilder when successful

type LdapTeamsWithTeam_ItemRequestBuilder

type LdapTeamsWithTeam_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

LdapTeamsWithTeam_ItemRequestBuilder builds and executes requests for operations under \admin\ldap\teams\{team_id}

func NewLdapTeamsWithTeam_ItemRequestBuilder

NewLdapTeamsWithTeam_ItemRequestBuilder instantiates a new LdapTeamsWithTeam_ItemRequestBuilder and sets the default values.

func NewLdapTeamsWithTeam_ItemRequestBuilderInternal

func NewLdapTeamsWithTeam_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LdapTeamsWithTeam_ItemRequestBuilder

NewLdapTeamsWithTeam_ItemRequestBuilderInternal instantiates a new LdapTeamsWithTeam_ItemRequestBuilder and sets the default values.

func (*LdapTeamsWithTeam_ItemRequestBuilder) Mapping

Mapping the mapping property returns a *LdapTeamsItemMappingRequestBuilder when successful

func (*LdapTeamsWithTeam_ItemRequestBuilder) Sync

Sync the sync property returns a *LdapTeamsItemSyncRequestBuilder when successful

type LdapUsersItemMappingPatchRequestBody

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

func NewLdapUsersItemMappingPatchRequestBody

func NewLdapUsersItemMappingPatchRequestBody() *LdapUsersItemMappingPatchRequestBody

NewLdapUsersItemMappingPatchRequestBody instantiates a new LdapUsersItemMappingPatchRequestBody and sets the default values.

func (*LdapUsersItemMappingPatchRequestBody) GetAdditionalData

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

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

func (*LdapUsersItemMappingPatchRequestBody) GetLdapDn

GetLdapDn gets the ldap_dn property value. The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. returns a *string when successful

func (*LdapUsersItemMappingPatchRequestBody) Serialize

Serialize serializes information the current object

func (*LdapUsersItemMappingPatchRequestBody) SetAdditionalData

func (m *LdapUsersItemMappingPatchRequestBody) 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 (*LdapUsersItemMappingPatchRequestBody) SetLdapDn

func (m *LdapUsersItemMappingPatchRequestBody) SetLdapDn(value *string)

SetLdapDn sets the ldap_dn property value. The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.

type LdapUsersItemMappingRequestBuilder

LdapUsersItemMappingRequestBuilder builds and executes requests for operations under \admin\ldap\users\{username}\mapping

func NewLdapUsersItemMappingRequestBuilder

NewLdapUsersItemMappingRequestBuilder instantiates a new LdapUsersItemMappingRequestBuilder and sets the default values.

func NewLdapUsersItemMappingRequestBuilderInternal

func NewLdapUsersItemMappingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LdapUsersItemMappingRequestBuilder

NewLdapUsersItemMappingRequestBuilderInternal instantiates a new LdapUsersItemMappingRequestBuilder and sets the default values.

func (*LdapUsersItemMappingRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *LdapUsersItemMappingRequestBuilder when successful

type LdapUsersItemSyncPostResponse

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

func NewLdapUsersItemSyncPostResponse

func NewLdapUsersItemSyncPostResponse() *LdapUsersItemSyncPostResponse

NewLdapUsersItemSyncPostResponse instantiates a new LdapUsersItemSyncPostResponse and sets the default values.

func (*LdapUsersItemSyncPostResponse) GetAdditionalData

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

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

func (*LdapUsersItemSyncPostResponse) GetStatus

func (m *LdapUsersItemSyncPostResponse) GetStatus() *string

GetStatus gets the status property value. The status property returns a *string when successful

func (*LdapUsersItemSyncPostResponse) Serialize

Serialize serializes information the current object

func (*LdapUsersItemSyncPostResponse) SetAdditionalData

func (m *LdapUsersItemSyncPostResponse) 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 (*LdapUsersItemSyncPostResponse) SetStatus

func (m *LdapUsersItemSyncPostResponse) SetStatus(value *string)

SetStatus sets the status property value. The status property

type LdapUsersItemSyncRequestBuilder

LdapUsersItemSyncRequestBuilder builds and executes requests for operations under \admin\ldap\users\{username}\sync

func NewLdapUsersItemSyncRequestBuilder

NewLdapUsersItemSyncRequestBuilder instantiates a new LdapUsersItemSyncRequestBuilder and sets the default values.

func NewLdapUsersItemSyncRequestBuilderInternal

func NewLdapUsersItemSyncRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LdapUsersItemSyncRequestBuilder

NewLdapUsersItemSyncRequestBuilderInternal instantiates a new LdapUsersItemSyncRequestBuilder and sets the default values.

func (*LdapUsersItemSyncRequestBuilder) Post

Post note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready. returns a LdapUsersItemSyncPostResponseable when successful API method documentation

func (*LdapUsersItemSyncRequestBuilder) ToPostRequestInformation

ToPostRequestInformation note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready. returns a *RequestInformation when successful

func (*LdapUsersItemSyncRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *LdapUsersItemSyncRequestBuilder when successful

type LdapUsersRequestBuilder

LdapUsersRequestBuilder builds and executes requests for operations under \admin\ldap\users

func NewLdapUsersRequestBuilder

NewLdapUsersRequestBuilder instantiates a new LdapUsersRequestBuilder and sets the default values.

func NewLdapUsersRequestBuilderInternal

func NewLdapUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LdapUsersRequestBuilder

NewLdapUsersRequestBuilderInternal instantiates a new LdapUsersRequestBuilder and sets the default values.

func (*LdapUsersRequestBuilder) ByUsername

ByUsername gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.admin.ldap.users.item collection returns a *LdapUsersWithUsernameItemRequestBuilder when successful

type LdapUsersWithUsernameItemRequestBuilder

type LdapUsersWithUsernameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

LdapUsersWithUsernameItemRequestBuilder builds and executes requests for operations under \admin\ldap\users\{username}

func NewLdapUsersWithUsernameItemRequestBuilder

NewLdapUsersWithUsernameItemRequestBuilder instantiates a new LdapUsersWithUsernameItemRequestBuilder and sets the default values.

func NewLdapUsersWithUsernameItemRequestBuilderInternal

func NewLdapUsersWithUsernameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *LdapUsersWithUsernameItemRequestBuilder

NewLdapUsersWithUsernameItemRequestBuilderInternal instantiates a new LdapUsersWithUsernameItemRequestBuilder and sets the default values.

func (*LdapUsersWithUsernameItemRequestBuilder) Mapping

Mapping the mapping property returns a *LdapUsersItemMappingRequestBuilder when successful

func (*LdapUsersWithUsernameItemRequestBuilder) Sync

Sync the sync property returns a *LdapUsersItemSyncRequestBuilder when successful

type OrganizationsItemWithOrgPatchRequestBody

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

func NewOrganizationsItemWithOrgPatchRequestBody

func NewOrganizationsItemWithOrgPatchRequestBody() *OrganizationsItemWithOrgPatchRequestBody

NewOrganizationsItemWithOrgPatchRequestBody instantiates a new OrganizationsItemWithOrgPatchRequestBody and sets the default values.

func (*OrganizationsItemWithOrgPatchRequestBody) GetAdditionalData

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

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

func (*OrganizationsItemWithOrgPatchRequestBody) GetLogin

GetLogin gets the login property value. The organization's new name. returns a *string when successful

func (*OrganizationsItemWithOrgPatchRequestBody) Serialize

Serialize serializes information the current object

func (*OrganizationsItemWithOrgPatchRequestBody) SetAdditionalData

func (m *OrganizationsItemWithOrgPatchRequestBody) 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 (*OrganizationsItemWithOrgPatchRequestBody) SetLogin

SetLogin sets the login property value. The organization's new name.

type OrganizationsItemWithOrgPatchResponse

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

func NewOrganizationsItemWithOrgPatchResponse

func NewOrganizationsItemWithOrgPatchResponse() *OrganizationsItemWithOrgPatchResponse

NewOrganizationsItemWithOrgPatchResponse instantiates a new OrganizationsItemWithOrgPatchResponse and sets the default values.

func (*OrganizationsItemWithOrgPatchResponse) GetAdditionalData

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

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

func (*OrganizationsItemWithOrgPatchResponse) GetMessage

GetMessage gets the message property value. The message property returns a *string when successful

func (*OrganizationsItemWithOrgPatchResponse) GetUrl

GetUrl gets the url property value. The url property returns a *string when successful

func (*OrganizationsItemWithOrgPatchResponse) Serialize

Serialize serializes information the current object

func (*OrganizationsItemWithOrgPatchResponse) SetAdditionalData

func (m *OrganizationsItemWithOrgPatchResponse) 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 (*OrganizationsItemWithOrgPatchResponse) SetMessage

func (m *OrganizationsItemWithOrgPatchResponse) SetMessage(value *string)

SetMessage sets the message property value. The message property

func (*OrganizationsItemWithOrgPatchResponse) SetUrl

SetUrl sets the url property value. The url property

type OrganizationsPostRequestBody

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

func NewOrganizationsPostRequestBody

func NewOrganizationsPostRequestBody() *OrganizationsPostRequestBody

NewOrganizationsPostRequestBody instantiates a new OrganizationsPostRequestBody and sets the default values.

func (*OrganizationsPostRequestBody) GetAdditionalData

func (m *OrganizationsPostRequestBody) 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 (*OrganizationsPostRequestBody) GetAdmin

func (m *OrganizationsPostRequestBody) GetAdmin() *string

GetAdmin gets the admin property value. The login of the user who will manage this organization. returns a *string when successful

func (*OrganizationsPostRequestBody) GetFieldDeserializers

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

func (*OrganizationsPostRequestBody) GetLogin

func (m *OrganizationsPostRequestBody) GetLogin() *string

GetLogin gets the login property value. The organization's username. returns a *string when successful

func (*OrganizationsPostRequestBody) GetProfileName

func (m *OrganizationsPostRequestBody) GetProfileName() *string

GetProfileName gets the profile_name property value. The organization's display name. returns a *string when successful

func (*OrganizationsPostRequestBody) Serialize

Serialize serializes information the current object

func (*OrganizationsPostRequestBody) SetAdditionalData

func (m *OrganizationsPostRequestBody) 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 (*OrganizationsPostRequestBody) SetAdmin

func (m *OrganizationsPostRequestBody) SetAdmin(value *string)

SetAdmin sets the admin property value. The login of the user who will manage this organization.

func (*OrganizationsPostRequestBody) SetLogin

func (m *OrganizationsPostRequestBody) SetLogin(value *string)

SetLogin sets the login property value. The organization's username.

func (*OrganizationsPostRequestBody) SetProfileName

func (m *OrganizationsPostRequestBody) SetProfileName(value *string)

SetProfileName sets the profile_name property value. The organization's display name.

type OrganizationsPostRequestBodyable

type OrganizationsPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetAdmin() *string
	GetLogin() *string
	GetProfileName() *string
	SetAdmin(value *string)
	SetLogin(value *string)
	SetProfileName(value *string)
}

type OrganizationsRequestBuilder

OrganizationsRequestBuilder builds and executes requests for operations under \admin\organizations

func NewOrganizationsRequestBuilder

NewOrganizationsRequestBuilder instantiates a new OrganizationsRequestBuilder and sets the default values.

func NewOrganizationsRequestBuilderInternal

func NewOrganizationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *OrganizationsRequestBuilder

NewOrganizationsRequestBuilderInternal instantiates a new OrganizationsRequestBuilder and sets the default values.

func (*OrganizationsRequestBuilder) ByOrg

ByOrg gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.admin.organizations.item collection returns a *OrganizationsWithOrgItemRequestBuilder when successful

func (*OrganizationsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *OrganizationsRequestBuilder when successful

type OrganizationsWithOrgItemRequestBuilder

type OrganizationsWithOrgItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

OrganizationsWithOrgItemRequestBuilder builds and executes requests for operations under \admin\organizations\{org}

func NewOrganizationsWithOrgItemRequestBuilder

NewOrganizationsWithOrgItemRequestBuilder instantiates a new OrganizationsWithOrgItemRequestBuilder and sets the default values.

func NewOrganizationsWithOrgItemRequestBuilderInternal

func NewOrganizationsWithOrgItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *OrganizationsWithOrgItemRequestBuilder

NewOrganizationsWithOrgItemRequestBuilderInternal instantiates a new OrganizationsWithOrgItemRequestBuilder and sets the default values.

func (*OrganizationsWithOrgItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *OrganizationsWithOrgItemRequestBuilder when successful

type PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder

type PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder builds and executes requests for operations under \admin\pre-receive-environments\{pre_receive_environment_id}\downloads\latest

func NewPreReceiveEnvironmentsItemDownloadsLatestRequestBuilder

func NewPreReceiveEnvironmentsItemDownloadsLatestRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder

NewPreReceiveEnvironmentsItemDownloadsLatestRequestBuilder instantiates a new PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder and sets the default values.

func NewPreReceiveEnvironmentsItemDownloadsLatestRequestBuilderInternal

func NewPreReceiveEnvironmentsItemDownloadsLatestRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder

NewPreReceiveEnvironmentsItemDownloadsLatestRequestBuilderInternal instantiates a new PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder and sets the default values.

func (*PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder) Get

Get in addition to seeing the download status at the "[Get a pre-receive environment](#get-a-pre-receive-environment)" endpoint, there is also this separate endpoint for just the download status. returns a PreReceiveEnvironmentDownloadStatusable when successful API method documentation

func (*PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder) ToGetRequestInformation

ToGetRequestInformation in addition to seeing the download status at the "[Get a pre-receive environment](#get-a-pre-receive-environment)" endpoint, there is also this separate endpoint for just the download status. returns a *RequestInformation when successful

func (*PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder when successful

type PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error

type PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError
	// contains filtered or unexported fields
}

func NewPreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error

func NewPreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error() *PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error

NewPreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error instantiates a new PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error and sets the default values.

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error) Error

Error the primary error message. returns a string when successful

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error) GetAdditionalData

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 (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error) GetErrors

GetErrors gets the errors property value. The errors property returns a []PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errorsable when successful

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error) GetFieldDeserializers

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

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error) GetMessage

GetMessage gets the message property value. The message property returns a *string when successful

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error) Serialize

Serialize serializes information the current object

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error) SetAdditionalData

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 (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error) SetErrors

SetErrors sets the errors property value. The errors property

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error) SetMessage

SetMessage sets the message property value. The message property

type PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors

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

func NewPreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors

func NewPreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors() *PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors

NewPreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors instantiates a new PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors and sets the default values.

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) GetAdditionalData

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 (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) GetCode

GetCode gets the code property value. The code property returns a *string when successful

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) GetFieldDeserializers

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

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) GetMessage

GetMessage gets the message property value. The message property returns a *string when successful

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) GetResource

GetResource gets the resource property value. The resource property returns a *string when successful

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) Serialize

Serialize serializes information the current object

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) SetAdditionalData

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 (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) SetCode

SetCode sets the code property value. The code property

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) SetMessage

SetMessage sets the message property value. The message property

func (*PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errors) SetResource

SetResource sets the resource property value. The resource property

type PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errorsable

type PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error_errorsable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetCode() *string
	GetMessage() *string
	GetResource() *string
	SetCode(value *string)
	SetMessage(value *string)
	SetResource(value *string)
}

type PreReceiveEnvironmentsItemDownloadsRequestBuilder

type PreReceiveEnvironmentsItemDownloadsRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PreReceiveEnvironmentsItemDownloadsRequestBuilder builds and executes requests for operations under \admin\pre-receive-environments\{pre_receive_environment_id}\downloads

func NewPreReceiveEnvironmentsItemDownloadsRequestBuilder

NewPreReceiveEnvironmentsItemDownloadsRequestBuilder instantiates a new PreReceiveEnvironmentsItemDownloadsRequestBuilder and sets the default values.

func NewPreReceiveEnvironmentsItemDownloadsRequestBuilderInternal

func NewPreReceiveEnvironmentsItemDownloadsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PreReceiveEnvironmentsItemDownloadsRequestBuilder

NewPreReceiveEnvironmentsItemDownloadsRequestBuilderInternal instantiates a new PreReceiveEnvironmentsItemDownloadsRequestBuilder and sets the default values.

func (*PreReceiveEnvironmentsItemDownloadsRequestBuilder) Latest

Latest the latest property returns a *PreReceiveEnvironmentsItemDownloadsLatestRequestBuilder when successful

func (*PreReceiveEnvironmentsItemDownloadsRequestBuilder) Post

Post triggers a new download of the environment tarball from the environment's `image_url`. When the download is finished, the newly downloaded tarball will overwrite the existing environment.If a download cannot be triggered, you will receive a `422 Unprocessable Entity` response.The possible error messages are:* _Cannot modify or delete the default environment_* _Can not start a new download when a download is in progress_ returns a PreReceiveEnvironmentDownloadStatusable when successful returns a PreReceiveEnvironmentsItemDownloadsPreReceiveEnvironmentDownloadStatus422Error error when the service returns a 422 status code API method documentation

func (*PreReceiveEnvironmentsItemDownloadsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation triggers a new download of the environment tarball from the environment's `image_url`. When the download is finished, the newly downloaded tarball will overwrite the existing environment.If a download cannot be triggered, you will receive a `422 Unprocessable Entity` response.The possible error messages are:* _Cannot modify or delete the default environment_* _Can not start a new download when a download is in progress_ returns a *RequestInformation when successful

func (*PreReceiveEnvironmentsItemDownloadsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *PreReceiveEnvironmentsItemDownloadsRequestBuilder when successful

type PreReceiveEnvironmentsItemPreReceiveEnvironment422Error

type PreReceiveEnvironmentsItemPreReceiveEnvironment422Error struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError
	// contains filtered or unexported fields
}

func NewPreReceiveEnvironmentsItemPreReceiveEnvironment422Error

func NewPreReceiveEnvironmentsItemPreReceiveEnvironment422Error() *PreReceiveEnvironmentsItemPreReceiveEnvironment422Error

NewPreReceiveEnvironmentsItemPreReceiveEnvironment422Error instantiates a new PreReceiveEnvironmentsItemPreReceiveEnvironment422Error and sets the default values.

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) Error

Error the primary error message. returns a string when successful

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) GetAdditionalData

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 (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) GetErrors

GetErrors gets the errors property value. The errors property returns a []PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errorsable when successful

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) GetFieldDeserializers

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

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) GetMessage

GetMessage gets the message property value. The message property returns a *string when successful

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) Serialize

Serialize serializes information the current object

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) SetAdditionalData

func (m *PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) 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 (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) SetErrors

SetErrors sets the errors property value. The errors property

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error) SetMessage

SetMessage sets the message property value. The message property

type PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors

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

func NewPreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors

func NewPreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors() *PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors

NewPreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors instantiates a new PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors and sets the default values.

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) GetAdditionalData

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 (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) GetCode

GetCode gets the code property value. The code property returns a *string when successful

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) GetFieldDeserializers

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

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) GetMessage

GetMessage gets the message property value. The message property returns a *string when successful

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) GetResource

GetResource gets the resource property value. The resource property returns a *string when successful

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) Serialize

Serialize serializes information the current object

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) SetAdditionalData

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 (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) SetCode

SetCode sets the code property value. The code property

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) SetMessage

SetMessage sets the message property value. The message property

func (*PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errors) SetResource

SetResource sets the resource property value. The resource property

type PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errorsable

type PreReceiveEnvironmentsItemPreReceiveEnvironment422Error_errorsable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetCode() *string
	GetMessage() *string
	GetResource() *string
	SetCode(value *string)
	SetMessage(value *string)
	SetResource(value *string)
}

type PreReceiveEnvironmentsItemWithPre_receive_environment_422Error

type PreReceiveEnvironmentsItemWithPre_receive_environment_422Error struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError
	// contains filtered or unexported fields
}

func NewPreReceiveEnvironmentsItemWithPre_receive_environment_422Error

func NewPreReceiveEnvironmentsItemWithPre_receive_environment_422Error() *PreReceiveEnvironmentsItemWithPre_receive_environment_422Error

NewPreReceiveEnvironmentsItemWithPre_receive_environment_422Error instantiates a new PreReceiveEnvironmentsItemWithPre_receive_environment_422Error and sets the default values.

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error) Error

Error the primary error message. returns a string when successful

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error) GetAdditionalData

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 (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error) GetErrors

GetErrors gets the errors property value. The errors property returns a []PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errorsable when successful

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error) GetFieldDeserializers

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

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error) GetMessage

GetMessage gets the message property value. The message property returns a *string when successful

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error) Serialize

Serialize serializes information the current object

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error) SetAdditionalData

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 (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error) SetErrors

SetErrors sets the errors property value. The errors property

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error) SetMessage

SetMessage sets the message property value. The message property

type PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors

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

func NewPreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors

func NewPreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors() *PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors

NewPreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors instantiates a new PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors and sets the default values.

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) GetAdditionalData

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 (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) GetCode

GetCode gets the code property value. The code property returns a *string when successful

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) GetFieldDeserializers

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

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) GetMessage

GetMessage gets the message property value. The message property returns a *string when successful

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) GetResource

GetResource gets the resource property value. The resource property returns a *string when successful

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) Serialize

Serialize serializes information the current object

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) SetAdditionalData

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 (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) SetCode

SetCode sets the code property value. The code property

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) SetMessage

SetMessage sets the message property value. The message property

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errors) SetResource

SetResource sets the resource property value. The resource property

type PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errorsable

type PreReceiveEnvironmentsItemWithPre_receive_environment_422Error_errorsable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetCode() *string
	GetMessage() *string
	GetResource() *string
	SetCode(value *string)
	SetMessage(value *string)
	SetResource(value *string)
}

type PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody

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

func NewPreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody

func NewPreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody() *PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody

NewPreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody instantiates a new PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody and sets the default values.

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody) GetAdditionalData

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 (*PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody) GetFieldDeserializers

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

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody) GetImageUrl

GetImageUrl gets the image_url property value. URL from which to download a tarball of this environment. returns a *string when successful

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody) GetName

GetName gets the name property value. This pre-receive environment's new name. returns a *string when successful

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody) Serialize

Serialize serializes information the current object

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody) SetAdditionalData

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 (*PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody) SetImageUrl

SetImageUrl sets the image_url property value. URL from which to download a tarball of this environment.

func (*PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBody) SetName

SetName sets the name property value. This pre-receive environment's new name.

type PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBodyable

type PreReceiveEnvironmentsItemWithPre_receive_environment_PatchRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetImageUrl() *string
	GetName() *string
	SetImageUrl(value *string)
	SetName(value *string)
}

type PreReceiveEnvironmentsPostRequestBody

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

func NewPreReceiveEnvironmentsPostRequestBody

func NewPreReceiveEnvironmentsPostRequestBody() *PreReceiveEnvironmentsPostRequestBody

NewPreReceiveEnvironmentsPostRequestBody instantiates a new PreReceiveEnvironmentsPostRequestBody and sets the default values.

func (*PreReceiveEnvironmentsPostRequestBody) GetAdditionalData

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

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

func (*PreReceiveEnvironmentsPostRequestBody) GetImageUrl

GetImageUrl gets the image_url property value. URL from which to download a tarball of this environment. returns a *string when successful

func (*PreReceiveEnvironmentsPostRequestBody) GetName

GetName gets the name property value. The new pre-receive environment's name. returns a *string when successful

func (*PreReceiveEnvironmentsPostRequestBody) Serialize

Serialize serializes information the current object

func (*PreReceiveEnvironmentsPostRequestBody) SetAdditionalData

func (m *PreReceiveEnvironmentsPostRequestBody) 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 (*PreReceiveEnvironmentsPostRequestBody) SetImageUrl

func (m *PreReceiveEnvironmentsPostRequestBody) SetImageUrl(value *string)

SetImageUrl sets the image_url property value. URL from which to download a tarball of this environment.

func (*PreReceiveEnvironmentsPostRequestBody) SetName

func (m *PreReceiveEnvironmentsPostRequestBody) SetName(value *string)

SetName sets the name property value. The new pre-receive environment's name.

type PreReceiveEnvironmentsRequestBuilder

type PreReceiveEnvironmentsRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PreReceiveEnvironmentsRequestBuilder builds and executes requests for operations under \admin\pre-receive-environments

func NewPreReceiveEnvironmentsRequestBuilder

NewPreReceiveEnvironmentsRequestBuilder instantiates a new PreReceiveEnvironmentsRequestBuilder and sets the default values.

func NewPreReceiveEnvironmentsRequestBuilderInternal

func NewPreReceiveEnvironmentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PreReceiveEnvironmentsRequestBuilder

NewPreReceiveEnvironmentsRequestBuilderInternal instantiates a new PreReceiveEnvironmentsRequestBuilder and sets the default values.

func (*PreReceiveEnvironmentsRequestBuilder) ByPre_receive_environment_id

ByPre_receive_environment_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.admin.preReceiveEnvironments.item collection returns a *PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder when successful

func (*PreReceiveEnvironmentsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *PreReceiveEnvironmentsRequestBuilder when successful

type PreReceiveEnvironmentsRequestBuilderGetQueryParameters

type PreReceiveEnvironmentsRequestBuilderGetQueryParameters struct {
	// The direction to sort the results by.
	Direction *ia19977d2cea6ae9d082220e4d6bf123ad448b9e828531d1ac9afdbee0875c77b.GetDirectionQueryParameterType `uriparametername:"direction"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32                                                                                       `uriparametername:"per_page"`
	Sort     *ia19977d2cea6ae9d082220e4d6bf123ad448b9e828531d1ac9afdbee0875c77b.GetSortQueryParameterType `uriparametername:"sort"`
}

PreReceiveEnvironmentsRequestBuilderGetQueryParameters list pre-receive environments

type PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder

type PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder builds and executes requests for operations under \admin\pre-receive-environments\{pre_receive_environment_id}

func NewPreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder

func NewPreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder

NewPreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder instantiates a new PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder and sets the default values.

func NewPreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilderInternal

func NewPreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder

NewPreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilderInternal instantiates a new PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder and sets the default values.

func (*PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder) Delete

Delete if you attempt to delete an environment that cannot be deleted, you will receive a `422 Unprocessable Entity` response.The possible error messages are:* _Cannot modify or delete the default environment_* _Cannot delete environment that has hooks_* _Cannot delete environment when download is in progress_ returns a PreReceiveEnvironmentsItemWithPre_receive_environment_422Error error when the service returns a 422 status code API method documentation

func (*PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder) Downloads

Downloads the downloads property returns a *PreReceiveEnvironmentsItemDownloadsRequestBuilder when successful

func (*PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder) Patch

Patch you cannot modify the default environment. If you attempt to modify the default environment, you will receive a `422 Unprocessable Entity` response. returns a PreReceiveEnvironmentable when successful returns a PreReceiveEnvironmentsItemPreReceiveEnvironment422Error error when the service returns a 422 status code API method documentation

func (*PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation if you attempt to delete an environment that cannot be deleted, you will receive a `422 Unprocessable Entity` response.The possible error messages are:* _Cannot modify or delete the default environment_* _Cannot delete environment that has hooks_* _Cannot delete environment when download is in progress_ returns a *RequestInformation when successful

func (*PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation you cannot modify the default environment. If you attempt to modify the default environment, you will receive a `422 Unprocessable Entity` response. returns a *RequestInformation when successful

func (*PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *PreReceiveEnvironmentsWithPre_receive_environment_ItemRequestBuilder when successful

type PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody

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

func NewPreReceiveHooksItemWithPre_receive_hook_PatchRequestBody

func NewPreReceiveHooksItemWithPre_receive_hook_PatchRequestBody() *PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody

NewPreReceiveHooksItemWithPre_receive_hook_PatchRequestBody instantiates a new PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody and sets the default values.

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) GetAdditionalData

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 (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) GetAllowDownstreamConfiguration

func (m *PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) GetAllowDownstreamConfiguration() *bool

GetAllowDownstreamConfiguration gets the allow_downstream_configuration property value. Whether enforcement can be overridden at the org or repo level. returns a *bool when successful

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) GetEnforcement

GetEnforcement gets the enforcement property value. The state of enforcement for this hook. returns a *string when successful

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) GetEnvironment

GetEnvironment gets the environment property value. The pre-receive environment where the script is executed. returns a PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environmentable when successful

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) GetFieldDeserializers

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

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) GetName

GetName gets the name property value. The name of the hook. returns a *string when successful

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) GetScript

GetScript gets the script property value. The script that the hook runs. returns a *string when successful

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) GetScriptRepository

GetScriptRepository gets the script_repository property value. The GitHub repository where the script is kept. returns a PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repositoryable when successful

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) Serialize

Serialize serializes information the current object

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) SetAdditionalData

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 (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) SetAllowDownstreamConfiguration

func (m *PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) SetAllowDownstreamConfiguration(value *bool)

SetAllowDownstreamConfiguration sets the allow_downstream_configuration property value. Whether enforcement can be overridden at the org or repo level.

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) SetEnforcement

SetEnforcement sets the enforcement property value. The state of enforcement for this hook.

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) SetEnvironment

SetEnvironment sets the environment property value. The pre-receive environment where the script is executed.

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) SetName

SetName sets the name property value. The name of the hook.

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) SetScript

SetScript sets the script property value. The script that the hook runs.

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody) SetScriptRepository

SetScriptRepository sets the script_repository property value. The GitHub repository where the script is kept.

type PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment

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

PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment the pre-receive environment where the script is executed.

func NewPreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment

func NewPreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment() *PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment

NewPreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment instantiates a new PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment and sets the default values.

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment) GetAdditionalData

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 (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment) GetFieldDeserializers

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

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment) Serialize

Serialize serializes information the current object

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_environment) SetAdditionalData

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 PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository

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

PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository the GitHub repository where the script is kept.

func NewPreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository

func NewPreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository() *PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository

NewPreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository instantiates a new PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository and sets the default values.

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository) GetAdditionalData

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 (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository) GetFieldDeserializers

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

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository) Serialize

Serialize serializes information the current object

func (*PreReceiveHooksItemWithPre_receive_hook_PatchRequestBody_script_repository) SetAdditionalData

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 PreReceiveHooksPostRequestBody

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

func NewPreReceiveHooksPostRequestBody

func NewPreReceiveHooksPostRequestBody() *PreReceiveHooksPostRequestBody

NewPreReceiveHooksPostRequestBody instantiates a new PreReceiveHooksPostRequestBody and sets the default values.

func (*PreReceiveHooksPostRequestBody) GetAdditionalData

func (m *PreReceiveHooksPostRequestBody) 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 (*PreReceiveHooksPostRequestBody) GetAllowDownstreamConfiguration

func (m *PreReceiveHooksPostRequestBody) GetAllowDownstreamConfiguration() *bool

GetAllowDownstreamConfiguration gets the allow_downstream_configuration property value. Whether enforcement can be overridden at the org or repo level. default: `false` returns a *bool when successful

func (*PreReceiveHooksPostRequestBody) GetEnforcement

func (m *PreReceiveHooksPostRequestBody) GetEnforcement() *string

GetEnforcement gets the enforcement property value. The state of enforcement for this hook. default: `disabled` returns a *string when successful

func (*PreReceiveHooksPostRequestBody) GetEnvironment

GetEnvironment gets the environment property value. The pre-receive environment where the script is executed. returns a PreReceiveHooksPostRequestBody_environmentable when successful

func (*PreReceiveHooksPostRequestBody) GetFieldDeserializers

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

func (*PreReceiveHooksPostRequestBody) GetName

func (m *PreReceiveHooksPostRequestBody) GetName() *string

GetName gets the name property value. The name of the hook. returns a *string when successful

func (*PreReceiveHooksPostRequestBody) GetScript

func (m *PreReceiveHooksPostRequestBody) GetScript() *string

GetScript gets the script property value. The script that the hook runs. returns a *string when successful

func (*PreReceiveHooksPostRequestBody) GetScriptRepository

GetScriptRepository gets the script_repository property value. The GitHub repository where the script is kept. returns a PreReceiveHooksPostRequestBody_script_repositoryable when successful

func (*PreReceiveHooksPostRequestBody) Serialize

Serialize serializes information the current object

func (*PreReceiveHooksPostRequestBody) SetAdditionalData

func (m *PreReceiveHooksPostRequestBody) 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 (*PreReceiveHooksPostRequestBody) SetAllowDownstreamConfiguration

func (m *PreReceiveHooksPostRequestBody) SetAllowDownstreamConfiguration(value *bool)

SetAllowDownstreamConfiguration sets the allow_downstream_configuration property value. Whether enforcement can be overridden at the org or repo level. default: `false`

func (*PreReceiveHooksPostRequestBody) SetEnforcement

func (m *PreReceiveHooksPostRequestBody) SetEnforcement(value *string)

SetEnforcement sets the enforcement property value. The state of enforcement for this hook. default: `disabled`

func (*PreReceiveHooksPostRequestBody) SetEnvironment

SetEnvironment sets the environment property value. The pre-receive environment where the script is executed.

func (*PreReceiveHooksPostRequestBody) SetName

func (m *PreReceiveHooksPostRequestBody) SetName(value *string)

SetName sets the name property value. The name of the hook.

func (*PreReceiveHooksPostRequestBody) SetScript

func (m *PreReceiveHooksPostRequestBody) SetScript(value *string)

SetScript sets the script property value. The script that the hook runs.

func (*PreReceiveHooksPostRequestBody) SetScriptRepository

SetScriptRepository sets the script_repository property value. The GitHub repository where the script is kept.

type PreReceiveHooksPostRequestBody_environment

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

PreReceiveHooksPostRequestBody_environment the pre-receive environment where the script is executed.

func NewPreReceiveHooksPostRequestBody_environment

func NewPreReceiveHooksPostRequestBody_environment() *PreReceiveHooksPostRequestBody_environment

NewPreReceiveHooksPostRequestBody_environment instantiates a new PreReceiveHooksPostRequestBody_environment and sets the default values.

func (*PreReceiveHooksPostRequestBody_environment) GetAdditionalData

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

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

func (*PreReceiveHooksPostRequestBody_environment) Serialize

Serialize serializes information the current object

func (*PreReceiveHooksPostRequestBody_environment) SetAdditionalData

func (m *PreReceiveHooksPostRequestBody_environment) 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 PreReceiveHooksPostRequestBody_script_repository

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

PreReceiveHooksPostRequestBody_script_repository the GitHub repository where the script is kept.

func NewPreReceiveHooksPostRequestBody_script_repository

func NewPreReceiveHooksPostRequestBody_script_repository() *PreReceiveHooksPostRequestBody_script_repository

NewPreReceiveHooksPostRequestBody_script_repository instantiates a new PreReceiveHooksPostRequestBody_script_repository and sets the default values.

func (*PreReceiveHooksPostRequestBody_script_repository) GetAdditionalData

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

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

func (*PreReceiveHooksPostRequestBody_script_repository) Serialize

Serialize serializes information the current object

func (*PreReceiveHooksPostRequestBody_script_repository) SetAdditionalData

func (m *PreReceiveHooksPostRequestBody_script_repository) 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 PreReceiveHooksPostRequestBodyable

type PreReceiveHooksPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetAllowDownstreamConfiguration() *bool
	GetEnforcement() *string
	GetEnvironment() PreReceiveHooksPostRequestBody_environmentable
	GetName() *string
	GetScript() *string
	GetScriptRepository() PreReceiveHooksPostRequestBody_script_repositoryable
	SetAllowDownstreamConfiguration(value *bool)
	SetEnforcement(value *string)
	SetEnvironment(value PreReceiveHooksPostRequestBody_environmentable)
	SetName(value *string)
	SetScript(value *string)
	SetScriptRepository(value PreReceiveHooksPostRequestBody_script_repositoryable)
}

type PreReceiveHooksRequestBuilder

PreReceiveHooksRequestBuilder builds and executes requests for operations under \admin\pre-receive-hooks

func NewPreReceiveHooksRequestBuilder

NewPreReceiveHooksRequestBuilder instantiates a new PreReceiveHooksRequestBuilder and sets the default values.

func NewPreReceiveHooksRequestBuilderInternal

func NewPreReceiveHooksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PreReceiveHooksRequestBuilder

NewPreReceiveHooksRequestBuilderInternal instantiates a new PreReceiveHooksRequestBuilder and sets the default values.

func (*PreReceiveHooksRequestBuilder) ByPre_receive_hook_id

ByPre_receive_hook_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.admin.preReceiveHooks.item collection returns a *PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder when successful

func (*PreReceiveHooksRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *PreReceiveHooksRequestBuilder when successful

type PreReceiveHooksRequestBuilderGetQueryParameters

type PreReceiveHooksRequestBuilderGetQueryParameters struct {
	// The direction to sort the results by.
	Direction *i24ee6165ab19c8a2e0c2d9a788ca00150f57243a6a5375502e37e96ab12549d1.GetDirectionQueryParameterType `uriparametername:"direction"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// The property to sort the results by.
	Sort *i24ee6165ab19c8a2e0c2d9a788ca00150f57243a6a5375502e37e96ab12549d1.GetSortQueryParameterType `uriparametername:"sort"`
}

PreReceiveHooksRequestBuilderGetQueryParameters list pre-receive hooks

type PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder

type PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder builds and executes requests for operations under \admin\pre-receive-hooks\{pre_receive_hook_id}

func NewPreReceiveHooksWithPre_receive_hook_ItemRequestBuilder

func NewPreReceiveHooksWithPre_receive_hook_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder

NewPreReceiveHooksWithPre_receive_hook_ItemRequestBuilder instantiates a new PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder and sets the default values.

func NewPreReceiveHooksWithPre_receive_hook_ItemRequestBuilderInternal

func NewPreReceiveHooksWithPre_receive_hook_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder

NewPreReceiveHooksWithPre_receive_hook_ItemRequestBuilderInternal instantiates a new PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder and sets the default values.

func (*PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *PreReceiveHooksWithPre_receive_hook_ItemRequestBuilder when successful

type TokensRequestBuilder

TokensRequestBuilder builds and executes requests for operations under \admin\tokens

func NewTokensRequestBuilder

NewTokensRequestBuilder instantiates a new TokensRequestBuilder and sets the default values.

func NewTokensRequestBuilderInternal

func NewTokensRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *TokensRequestBuilder

NewTokensRequestBuilderInternal instantiates a new TokensRequestBuilder and sets the default values.

func (*TokensRequestBuilder) ByToken_id

ByToken_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.admin.tokens.item collection returns a *TokensWithToken_ItemRequestBuilder when successful

func (*TokensRequestBuilder) Get

Get lists personal access tokens for all users, including admin users. returns a []Authorizationable when successful API method documentation

func (*TokensRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists personal access tokens for all users, including admin users. returns a *RequestInformation when successful

func (*TokensRequestBuilder) WithUrl

func (m *TokensRequestBuilder) WithUrl(rawUrl string) *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 *TokensRequestBuilder when successful

type TokensRequestBuilderGetQueryParameters

type TokensRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.11/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

TokensRequestBuilderGetQueryParameters lists personal access tokens for all users, including admin users.

type TokensWithToken_ItemRequestBuilder

TokensWithToken_ItemRequestBuilder builds and executes requests for operations under \admin\tokens\{token_id}

func NewTokensWithToken_ItemRequestBuilder

NewTokensWithToken_ItemRequestBuilder instantiates a new TokensWithToken_ItemRequestBuilder and sets the default values.

func NewTokensWithToken_ItemRequestBuilderInternal

func NewTokensWithToken_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *TokensWithToken_ItemRequestBuilder

NewTokensWithToken_ItemRequestBuilderInternal instantiates a new TokensWithToken_ItemRequestBuilder and sets the default values.

func (*TokensWithToken_ItemRequestBuilder) Delete

Delete deletes a personal access token. Returns a `403 - Forbidden` status when a personal access token is in use. For example, if you access this endpoint with the same personal access token that you are trying to delete, you will receive this error. API method documentation

func (*TokensWithToken_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes a personal access token. Returns a `403 - Forbidden` status when a personal access token is in use. For example, if you access this endpoint with the same personal access token that you are trying to delete, you will receive this error. returns a *RequestInformation when successful

func (*TokensWithToken_ItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *TokensWithToken_ItemRequestBuilder when successful

type UsersItemAuthorizationsPostRequestBody

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

func NewUsersItemAuthorizationsPostRequestBody

func NewUsersItemAuthorizationsPostRequestBody() *UsersItemAuthorizationsPostRequestBody

NewUsersItemAuthorizationsPostRequestBody instantiates a new UsersItemAuthorizationsPostRequestBody and sets the default values.

func (*UsersItemAuthorizationsPostRequestBody) GetAdditionalData

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

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

func (*UsersItemAuthorizationsPostRequestBody) GetScopes

GetScopes gets the scopes property value. A list of [scopes](https://docs.github.com/enterprise-server@3.11/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). returns a []string when successful

func (*UsersItemAuthorizationsPostRequestBody) Serialize

Serialize serializes information the current object

func (*UsersItemAuthorizationsPostRequestBody) SetAdditionalData

func (m *UsersItemAuthorizationsPostRequestBody) 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 (*UsersItemAuthorizationsPostRequestBody) SetScopes

func (m *UsersItemAuthorizationsPostRequestBody) SetScopes(value []string)

SetScopes sets the scopes property value. A list of [scopes](https://docs.github.com/enterprise-server@3.11/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).

type UsersItemAuthorizationsRequestBuilder

type UsersItemAuthorizationsRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

UsersItemAuthorizationsRequestBuilder builds and executes requests for operations under \admin\users\{username}\authorizations

func NewUsersItemAuthorizationsRequestBuilder

NewUsersItemAuthorizationsRequestBuilder instantiates a new UsersItemAuthorizationsRequestBuilder and sets the default values.

func NewUsersItemAuthorizationsRequestBuilderInternal

func NewUsersItemAuthorizationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *UsersItemAuthorizationsRequestBuilder

NewUsersItemAuthorizationsRequestBuilderInternal instantiates a new UsersItemAuthorizationsRequestBuilder and sets the default values.

func (*UsersItemAuthorizationsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *UsersItemAuthorizationsRequestBuilder when successful

type UsersItemWithUsernamePatchRequestBody

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

func NewUsersItemWithUsernamePatchRequestBody

func NewUsersItemWithUsernamePatchRequestBody() *UsersItemWithUsernamePatchRequestBody

NewUsersItemWithUsernamePatchRequestBody instantiates a new UsersItemWithUsernamePatchRequestBody and sets the default values.

func (*UsersItemWithUsernamePatchRequestBody) GetAdditionalData

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

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

func (*UsersItemWithUsernamePatchRequestBody) GetLogin

GetLogin gets the login property value. The user's new username. returns a *string when successful

func (*UsersItemWithUsernamePatchRequestBody) Serialize

Serialize serializes information the current object

func (*UsersItemWithUsernamePatchRequestBody) SetAdditionalData

func (m *UsersItemWithUsernamePatchRequestBody) 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 (*UsersItemWithUsernamePatchRequestBody) SetLogin

func (m *UsersItemWithUsernamePatchRequestBody) SetLogin(value *string)

SetLogin sets the login property value. The user's new username.

type UsersItemWithUsernamePatchResponse

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

func NewUsersItemWithUsernamePatchResponse

func NewUsersItemWithUsernamePatchResponse() *UsersItemWithUsernamePatchResponse

NewUsersItemWithUsernamePatchResponse instantiates a new UsersItemWithUsernamePatchResponse and sets the default values.

func (*UsersItemWithUsernamePatchResponse) GetAdditionalData

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

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

func (*UsersItemWithUsernamePatchResponse) GetMessage

func (m *UsersItemWithUsernamePatchResponse) GetMessage() *string

GetMessage gets the message property value. The message property returns a *string when successful

func (*UsersItemWithUsernamePatchResponse) GetUrl

GetUrl gets the url property value. The url property returns a *string when successful

func (*UsersItemWithUsernamePatchResponse) Serialize

Serialize serializes information the current object

func (*UsersItemWithUsernamePatchResponse) SetAdditionalData

func (m *UsersItemWithUsernamePatchResponse) 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 (*UsersItemWithUsernamePatchResponse) SetMessage

func (m *UsersItemWithUsernamePatchResponse) SetMessage(value *string)

SetMessage sets the message property value. The message property

func (*UsersItemWithUsernamePatchResponse) SetUrl

func (m *UsersItemWithUsernamePatchResponse) SetUrl(value *string)

SetUrl sets the url property value. The url property

type UsersPostRequestBody

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

func NewUsersPostRequestBody

func NewUsersPostRequestBody() *UsersPostRequestBody

NewUsersPostRequestBody instantiates a new UsersPostRequestBody and sets the default values.

func (*UsersPostRequestBody) GetAdditionalData

func (m *UsersPostRequestBody) 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 (*UsersPostRequestBody) GetEmail

func (m *UsersPostRequestBody) GetEmail() *string

GetEmail gets the email property value. **Required for built-in authentication.** The user's emailaddress. This parameter can be omitted when using CAS, LDAP, or SAML.For more information, see "[About authentication for your enterprise](https://docs.github.com/enterprise-server@3.11/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-authentication-for-your-enterprise)." returns a *string when successful

func (*UsersPostRequestBody) GetFieldDeserializers

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

func (*UsersPostRequestBody) GetLogin

func (m *UsersPostRequestBody) GetLogin() *string

GetLogin gets the login property value. The user's username. returns a *string when successful

func (*UsersPostRequestBody) GetSuspended

func (m *UsersPostRequestBody) GetSuspended() *bool

GetSuspended gets the suspended property value. Whether to set the user as suspended when the user is created. returns a *bool when successful

func (*UsersPostRequestBody) Serialize

Serialize serializes information the current object

func (*UsersPostRequestBody) SetAdditionalData

func (m *UsersPostRequestBody) 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 (*UsersPostRequestBody) SetEmail

func (m *UsersPostRequestBody) SetEmail(value *string)

SetEmail sets the email property value. **Required for built-in authentication.** The user's emailaddress. This parameter can be omitted when using CAS, LDAP, or SAML.For more information, see "[About authentication for your enterprise](https://docs.github.com/enterprise-server@3.11/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-authentication-for-your-enterprise)."

func (*UsersPostRequestBody) SetLogin

func (m *UsersPostRequestBody) SetLogin(value *string)

SetLogin sets the login property value. The user's username.

func (*UsersPostRequestBody) SetSuspended

func (m *UsersPostRequestBody) SetSuspended(value *bool)

SetSuspended sets the suspended property value. Whether to set the user as suspended when the user is created.

type UsersPostRequestBodyable

type UsersPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetEmail() *string
	GetLogin() *string
	GetSuspended() *bool
	SetEmail(value *string)
	SetLogin(value *string)
	SetSuspended(value *bool)
}

type UsersRequestBuilder

UsersRequestBuilder builds and executes requests for operations under \admin\users

func NewUsersRequestBuilder

NewUsersRequestBuilder instantiates a new UsersRequestBuilder and sets the default values.

func NewUsersRequestBuilderInternal

func NewUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *UsersRequestBuilder

NewUsersRequestBuilderInternal instantiates a new UsersRequestBuilder and sets the default values.

func (*UsersRequestBuilder) ByUsername

ByUsername gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.admin.users.item collection returns a *UsersWithUsernameItemRequestBuilder when successful

func (*UsersRequestBuilder) Post

Post if an external authentication mechanism is used, the login name should match the login name in the external system. If you are using LDAP authentication, you should also [update the LDAP mapping](https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-user) for the user.The login name will be normalized to only contain alphanumeric characters or single hyphens. For example, if you send `"octo_cat"` as the login, a user named `"octo-cat"` will be created.If the login name or email address is already associated with an account, the server will return a `422` response. returns a SimpleUserable when successful API method documentation

func (*UsersRequestBuilder) ToPostRequestInformation

ToPostRequestInformation if an external authentication mechanism is used, the login name should match the login name in the external system. If you are using LDAP authentication, you should also [update the LDAP mapping](https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-user) for the user.The login name will be normalized to only contain alphanumeric characters or single hyphens. For example, if you send `"octo_cat"` as the login, a user named `"octo-cat"` will be created.If the login name or email address is already associated with an account, the server will return a `422` response. returns a *RequestInformation when successful

func (*UsersRequestBuilder) WithUrl

func (m *UsersRequestBuilder) WithUrl(rawUrl string) *UsersRequestBuilder

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *UsersRequestBuilder when successful

type UsersWithUsernameItemRequestBuilder

UsersWithUsernameItemRequestBuilder builds and executes requests for operations under \admin\users\{username}

func NewUsersWithUsernameItemRequestBuilder

NewUsersWithUsernameItemRequestBuilder instantiates a new UsersWithUsernameItemRequestBuilder and sets the default values.

func NewUsersWithUsernameItemRequestBuilderInternal

func NewUsersWithUsernameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *UsersWithUsernameItemRequestBuilder

NewUsersWithUsernameItemRequestBuilderInternal instantiates a new UsersWithUsernameItemRequestBuilder and sets the default values.

func (*UsersWithUsernameItemRequestBuilder) Authorizations

Authorizations the authorizations property returns a *UsersItemAuthorizationsRequestBuilder when successful

func (*UsersWithUsernameItemRequestBuilder) Delete

Delete deleting a user will delete all their repositories, gists, applications, and personal settings. [Suspending a user](https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/users#suspend-a-user) is often a better option.You can delete any user account except your own. API method documentation

func (*UsersWithUsernameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deleting a user will delete all their repositories, gists, applications, and personal settings. [Suspending a user](https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/users#suspend-a-user) is often a better option.You can delete any user account except your own. returns a *RequestInformation when successful

func (*UsersWithUsernameItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *UsersWithUsernameItemRequestBuilder when successful

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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