Skip to content

Latest commit

 

History

History
223 lines (120 loc) · 7.9 KB

OrganizationWebhookCreateRequest.md

File metadata and controls

223 lines (120 loc) · 7.9 KB

OrganizationWebhookCreateRequest

Properties

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]

Methods

NewOrganizationWebhookCreateRequest

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

NewOrganizationWebhookCreateRequestWithDefaults

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

GetKind

func (o *OrganizationWebhookCreateRequest) GetKind() OrganizationWebhookKindEnum

GetKind returns the Kind field if non-nil, zero value otherwise.

GetKindOk

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.

SetKind

func (o *OrganizationWebhookCreateRequest) SetKind(v OrganizationWebhookKindEnum)

SetKind sets Kind field to given value.

GetTargetUrl

func (o *OrganizationWebhookCreateRequest) GetTargetUrl() string

GetTargetUrl returns the TargetUrl field if non-nil, zero value otherwise.

GetTargetUrlOk

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.

SetTargetUrl

func (o *OrganizationWebhookCreateRequest) SetTargetUrl(v string)

SetTargetUrl sets TargetUrl field to given value.

GetTargetSecret

func (o *OrganizationWebhookCreateRequest) GetTargetSecret() string

GetTargetSecret returns the TargetSecret field if non-nil, zero value otherwise.

GetTargetSecretOk

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.

SetTargetSecret

func (o *OrganizationWebhookCreateRequest) SetTargetSecret(v string)

SetTargetSecret sets TargetSecret field to given value.

HasTargetSecret

func (o *OrganizationWebhookCreateRequest) HasTargetSecret() bool

HasTargetSecret returns a boolean if a field has been set.

GetDescription

func (o *OrganizationWebhookCreateRequest) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

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.

SetDescription

func (o *OrganizationWebhookCreateRequest) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *OrganizationWebhookCreateRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetEnabled

func (o *OrganizationWebhookCreateRequest) GetEnabled() bool

GetEnabled returns the Enabled field if non-nil, zero value otherwise.

GetEnabledOk

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.

SetEnabled

func (o *OrganizationWebhookCreateRequest) SetEnabled(v bool)

SetEnabled sets Enabled field to given value.

HasEnabled

func (o *OrganizationWebhookCreateRequest) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

GetEvents

func (o *OrganizationWebhookCreateRequest) GetEvents() []OrganizationWebhookEventEnum

GetEvents returns the Events field if non-nil, zero value otherwise.

GetEventsOk

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.

SetEvents

func (o *OrganizationWebhookCreateRequest) SetEvents(v []OrganizationWebhookEventEnum)

SetEvents sets Events field to given value.

GetProjectNamesFilter

func (o *OrganizationWebhookCreateRequest) GetProjectNamesFilter() []string

GetProjectNamesFilter returns the ProjectNamesFilter field if non-nil, zero value otherwise.

GetProjectNamesFilterOk

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.

SetProjectNamesFilter

func (o *OrganizationWebhookCreateRequest) SetProjectNamesFilter(v []string)

SetProjectNamesFilter sets ProjectNamesFilter field to given value.

HasProjectNamesFilter

func (o *OrganizationWebhookCreateRequest) HasProjectNamesFilter() bool

HasProjectNamesFilter returns a boolean if a field has been set.

GetEnvironmentTypesFilter

func (o *OrganizationWebhookCreateRequest) GetEnvironmentTypesFilter() []EnvironmentModeEnum

GetEnvironmentTypesFilter returns the EnvironmentTypesFilter field if non-nil, zero value otherwise.

GetEnvironmentTypesFilterOk

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.

SetEnvironmentTypesFilter

func (o *OrganizationWebhookCreateRequest) SetEnvironmentTypesFilter(v []EnvironmentModeEnum)

SetEnvironmentTypesFilter sets EnvironmentTypesFilter field to given value.

HasEnvironmentTypesFilter

func (o *OrganizationWebhookCreateRequest) HasEnvironmentTypesFilter() bool

HasEnvironmentTypesFilter returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]