| Name | Type | Description | Notes |
|---|---|---|---|
| Kind | OrganizationWebhookKindEnum | ||
| TargetUrl | string | Set the public HTTP or HTTPS endpoint that will receive the specified events. The target URL must starts with `http://` or `https://` | |
| TargetSecret | Pointer to string | Make sure you receive a payload to sign the Qovery request with your secret. Qovery will add a HTTP header `Qovery-Signature: <Your Secret>` to every webhook requests sent to your target URL. | [optional] |
| Description | Pointer to string | [optional] | |
| Enabled | Pointer to bool | Turn on or off your endpoint. | [optional] |
| Events | []OrganizationWebhookEventEnum | ||
| ProjectNamesFilter | Pointer to []string | Specify the project names you want to filter to. This webhook will be triggered only if the event is coming from the specified Project IDs. Notes: 1. Wildcard is accepted E.g. `product*`. 2. Name is case insensitive. | [optional] |
| EnvironmentTypesFilter | Pointer to []EnvironmentModeEnum | Specify the environment modes you want to filter to. This webhook will be triggered only if the event is coming from an environment with the specified mode. | [optional] |
func NewOrganizationWebhookCreateRequest(kind OrganizationWebhookKindEnum, targetUrl string, events []OrganizationWebhookEventEnum, ) *OrganizationWebhookCreateRequest
NewOrganizationWebhookCreateRequest instantiates a new OrganizationWebhookCreateRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewOrganizationWebhookCreateRequestWithDefaults() *OrganizationWebhookCreateRequest
NewOrganizationWebhookCreateRequestWithDefaults instantiates a new OrganizationWebhookCreateRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *OrganizationWebhookCreateRequest) GetKind() OrganizationWebhookKindEnum
GetKind returns the Kind field if non-nil, zero value otherwise.
func (o *OrganizationWebhookCreateRequest) GetKindOk() (*OrganizationWebhookKindEnum, bool)
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrganizationWebhookCreateRequest) SetKind(v OrganizationWebhookKindEnum)
SetKind sets Kind field to given value.
func (o *OrganizationWebhookCreateRequest) GetTargetUrl() string
GetTargetUrl returns the TargetUrl field if non-nil, zero value otherwise.
func (o *OrganizationWebhookCreateRequest) GetTargetUrlOk() (*string, bool)
GetTargetUrlOk returns a tuple with the TargetUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrganizationWebhookCreateRequest) SetTargetUrl(v string)
SetTargetUrl sets TargetUrl field to given value.
func (o *OrganizationWebhookCreateRequest) GetTargetSecret() string
GetTargetSecret returns the TargetSecret field if non-nil, zero value otherwise.
func (o *OrganizationWebhookCreateRequest) GetTargetSecretOk() (*string, bool)
GetTargetSecretOk returns a tuple with the TargetSecret field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrganizationWebhookCreateRequest) SetTargetSecret(v string)
SetTargetSecret sets TargetSecret field to given value.
func (o *OrganizationWebhookCreateRequest) HasTargetSecret() bool
HasTargetSecret returns a boolean if a field has been set.
func (o *OrganizationWebhookCreateRequest) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *OrganizationWebhookCreateRequest) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrganizationWebhookCreateRequest) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *OrganizationWebhookCreateRequest) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *OrganizationWebhookCreateRequest) GetEnabled() bool
GetEnabled returns the Enabled field if non-nil, zero value otherwise.
func (o *OrganizationWebhookCreateRequest) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrganizationWebhookCreateRequest) SetEnabled(v bool)
SetEnabled sets Enabled field to given value.
func (o *OrganizationWebhookCreateRequest) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o *OrganizationWebhookCreateRequest) GetEvents() []OrganizationWebhookEventEnum
GetEvents returns the Events field if non-nil, zero value otherwise.
func (o *OrganizationWebhookCreateRequest) GetEventsOk() (*[]OrganizationWebhookEventEnum, bool)
GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrganizationWebhookCreateRequest) SetEvents(v []OrganizationWebhookEventEnum)
SetEvents sets Events field to given value.
func (o *OrganizationWebhookCreateRequest) GetProjectNamesFilter() []string
GetProjectNamesFilter returns the ProjectNamesFilter field if non-nil, zero value otherwise.
func (o *OrganizationWebhookCreateRequest) GetProjectNamesFilterOk() (*[]string, bool)
GetProjectNamesFilterOk returns a tuple with the ProjectNamesFilter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrganizationWebhookCreateRequest) SetProjectNamesFilter(v []string)
SetProjectNamesFilter sets ProjectNamesFilter field to given value.
func (o *OrganizationWebhookCreateRequest) HasProjectNamesFilter() bool
HasProjectNamesFilter returns a boolean if a field has been set.
func (o *OrganizationWebhookCreateRequest) GetEnvironmentTypesFilter() []EnvironmentModeEnum
GetEnvironmentTypesFilter returns the EnvironmentTypesFilter field if non-nil, zero value otherwise.
func (o *OrganizationWebhookCreateRequest) GetEnvironmentTypesFilterOk() (*[]EnvironmentModeEnum, bool)
GetEnvironmentTypesFilterOk returns a tuple with the EnvironmentTypesFilter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrganizationWebhookCreateRequest) SetEnvironmentTypesFilter(v []EnvironmentModeEnum)
SetEnvironmentTypesFilter sets EnvironmentTypesFilter field to given value.
func (o *OrganizationWebhookCreateRequest) HasEnvironmentTypesFilter() bool
HasEnvironmentTypesFilter returns a boolean if a field has been set.