Name | Type | Description | Notes |
---|---|---|---|
CreatedAt | Pointer to time.Time | [optional] [readonly] | |
CreatedBy | Pointer to string | [optional] [readonly] | |
CreatedByUrl | Pointer to string | [optional] [readonly] | |
DisableReason | Pointer to int64 | [optional] [readonly] | |
DisableReasonStr | Pointer to string | [optional] [readonly] | |
Events | []string | ||
Identifier | Pointer to NullableInt64 | Deprecated (23-05-15): Please use 'slug_perm' instead. Previously: A monotonically increasing number that identified a webhook request within a repository. | [optional] [readonly] |
IsActive | Pointer to bool | If enabled, the webhook will trigger on subscribed events and send payloads to the configured target URL. | [optional] |
IsLastResponseBad | Pointer to bool | [optional] [readonly] | |
LastResponseStatus | Pointer to int64 | [optional] [readonly] | |
LastResponseStatusStr | Pointer to string | [optional] [readonly] | |
NumSent | Pointer to int64 | [optional] [readonly] | |
PackageQuery | Pointer to NullableString | The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. | [optional] |
RequestBodyFormat | Pointer to int64 | The format of the payloads for webhook requests. Valid options are: (0) JSON, (1) JSON array, (2) form encoded JSON and (3) Handlebars template. | [optional] |
RequestBodyFormatStr | Pointer to string | [optional] [readonly] | |
RequestBodyTemplateFormat | Pointer to int64 | The format of the payloads for webhook requests. Valid options are: (0) Generic/user defined, (1) JSON and (2) XML. | [optional] |
RequestBodyTemplateFormatStr | Pointer to string | [optional] [readonly] | |
RequestContentType | Pointer to NullableString | The value that will be sent for the 'Content Type' header. | [optional] |
SecretHeader | Pointer to NullableString | The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. | [optional] |
SelfUrl | Pointer to string | [optional] [readonly] | |
SlugPerm | Pointer to string | [optional] [readonly] | |
TargetUrl | string | The destination URL that webhook payloads will be POST'ed to. | |
Templates | []WebhookTemplate | ||
UpdatedAt | Pointer to time.Time | [optional] [readonly] | |
UpdatedBy | Pointer to string | [optional] [readonly] | |
UpdatedByUrl | Pointer to string | [optional] [readonly] | |
VerifySsl | Pointer to bool | If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. | [optional] |
func NewRepositoryWebhook(events []string, targetUrl string, templates []WebhookTemplate, ) *RepositoryWebhook
NewRepositoryWebhook instantiates a new RepositoryWebhook 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 NewRepositoryWebhookWithDefaults() *RepositoryWebhook
NewRepositoryWebhookWithDefaults instantiates a new RepositoryWebhook 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 *RepositoryWebhook) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *RepositoryWebhook) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetCreatedBy() string
GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetCreatedByOk() (*string, bool)
GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetCreatedBy(v string)
SetCreatedBy sets CreatedBy field to given value.
func (o *RepositoryWebhook) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetCreatedByUrl() string
GetCreatedByUrl returns the CreatedByUrl field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetCreatedByUrlOk() (*string, bool)
GetCreatedByUrlOk returns a tuple with the CreatedByUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetCreatedByUrl(v string)
SetCreatedByUrl sets CreatedByUrl field to given value.
func (o *RepositoryWebhook) HasCreatedByUrl() bool
HasCreatedByUrl returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetDisableReason() int64
GetDisableReason returns the DisableReason field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetDisableReasonOk() (*int64, bool)
GetDisableReasonOk returns a tuple with the DisableReason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetDisableReason(v int64)
SetDisableReason sets DisableReason field to given value.
func (o *RepositoryWebhook) HasDisableReason() bool
HasDisableReason returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetDisableReasonStr() string
GetDisableReasonStr returns the DisableReasonStr field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetDisableReasonStrOk() (*string, bool)
GetDisableReasonStrOk returns a tuple with the DisableReasonStr field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetDisableReasonStr(v string)
SetDisableReasonStr sets DisableReasonStr field to given value.
func (o *RepositoryWebhook) HasDisableReasonStr() bool
HasDisableReasonStr returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetEvents() []string
GetEvents returns the Events field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetEventsOk() (*[]string, 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 *RepositoryWebhook) SetEvents(v []string)
SetEvents sets Events field to given value.
func (o *RepositoryWebhook) SetEventsNil(b bool)
SetEventsNil sets the value for Events to be an explicit nil
func (o *RepositoryWebhook) UnsetEvents()
UnsetEvents ensures that no value is present for Events, not even an explicit nil
func (o *RepositoryWebhook) GetIdentifier() int64
GetIdentifier returns the Identifier field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetIdentifierOk() (*int64, bool)
GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetIdentifier(v int64)
SetIdentifier sets Identifier field to given value.
func (o *RepositoryWebhook) HasIdentifier() bool
HasIdentifier returns a boolean if a field has been set.
func (o *RepositoryWebhook) SetIdentifierNil(b bool)
SetIdentifierNil sets the value for Identifier to be an explicit nil
func (o *RepositoryWebhook) UnsetIdentifier()
UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil
func (o *RepositoryWebhook) GetIsActive() bool
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetIsActiveOk() (*bool, bool)
GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetIsActive(v bool)
SetIsActive sets IsActive field to given value.
func (o *RepositoryWebhook) HasIsActive() bool
HasIsActive returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetIsLastResponseBad() bool
GetIsLastResponseBad returns the IsLastResponseBad field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetIsLastResponseBadOk() (*bool, bool)
GetIsLastResponseBadOk returns a tuple with the IsLastResponseBad field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetIsLastResponseBad(v bool)
SetIsLastResponseBad sets IsLastResponseBad field to given value.
func (o *RepositoryWebhook) HasIsLastResponseBad() bool
HasIsLastResponseBad returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetLastResponseStatus() int64
GetLastResponseStatus returns the LastResponseStatus field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetLastResponseStatusOk() (*int64, bool)
GetLastResponseStatusOk returns a tuple with the LastResponseStatus field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetLastResponseStatus(v int64)
SetLastResponseStatus sets LastResponseStatus field to given value.
func (o *RepositoryWebhook) HasLastResponseStatus() bool
HasLastResponseStatus returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetLastResponseStatusStr() string
GetLastResponseStatusStr returns the LastResponseStatusStr field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetLastResponseStatusStrOk() (*string, bool)
GetLastResponseStatusStrOk returns a tuple with the LastResponseStatusStr field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetLastResponseStatusStr(v string)
SetLastResponseStatusStr sets LastResponseStatusStr field to given value.
func (o *RepositoryWebhook) HasLastResponseStatusStr() bool
HasLastResponseStatusStr returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetNumSent() int64
GetNumSent returns the NumSent field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetNumSentOk() (*int64, bool)
GetNumSentOk returns a tuple with the NumSent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetNumSent(v int64)
SetNumSent sets NumSent field to given value.
func (o *RepositoryWebhook) HasNumSent() bool
HasNumSent returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetPackageQuery() string
GetPackageQuery returns the PackageQuery field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetPackageQueryOk() (*string, bool)
GetPackageQueryOk returns a tuple with the PackageQuery field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetPackageQuery(v string)
SetPackageQuery sets PackageQuery field to given value.
func (o *RepositoryWebhook) HasPackageQuery() bool
HasPackageQuery returns a boolean if a field has been set.
func (o *RepositoryWebhook) SetPackageQueryNil(b bool)
SetPackageQueryNil sets the value for PackageQuery to be an explicit nil
func (o *RepositoryWebhook) UnsetPackageQuery()
UnsetPackageQuery ensures that no value is present for PackageQuery, not even an explicit nil
func (o *RepositoryWebhook) GetRequestBodyFormat() int64
GetRequestBodyFormat returns the RequestBodyFormat field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetRequestBodyFormatOk() (*int64, bool)
GetRequestBodyFormatOk returns a tuple with the RequestBodyFormat field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetRequestBodyFormat(v int64)
SetRequestBodyFormat sets RequestBodyFormat field to given value.
func (o *RepositoryWebhook) HasRequestBodyFormat() bool
HasRequestBodyFormat returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetRequestBodyFormatStr() string
GetRequestBodyFormatStr returns the RequestBodyFormatStr field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetRequestBodyFormatStrOk() (*string, bool)
GetRequestBodyFormatStrOk returns a tuple with the RequestBodyFormatStr field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetRequestBodyFormatStr(v string)
SetRequestBodyFormatStr sets RequestBodyFormatStr field to given value.
func (o *RepositoryWebhook) HasRequestBodyFormatStr() bool
HasRequestBodyFormatStr returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetRequestBodyTemplateFormat() int64
GetRequestBodyTemplateFormat returns the RequestBodyTemplateFormat field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetRequestBodyTemplateFormatOk() (*int64, bool)
GetRequestBodyTemplateFormatOk returns a tuple with the RequestBodyTemplateFormat field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetRequestBodyTemplateFormat(v int64)
SetRequestBodyTemplateFormat sets RequestBodyTemplateFormat field to given value.
func (o *RepositoryWebhook) HasRequestBodyTemplateFormat() bool
HasRequestBodyTemplateFormat returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetRequestBodyTemplateFormatStr() string
GetRequestBodyTemplateFormatStr returns the RequestBodyTemplateFormatStr field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetRequestBodyTemplateFormatStrOk() (*string, bool)
GetRequestBodyTemplateFormatStrOk returns a tuple with the RequestBodyTemplateFormatStr field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetRequestBodyTemplateFormatStr(v string)
SetRequestBodyTemplateFormatStr sets RequestBodyTemplateFormatStr field to given value.
func (o *RepositoryWebhook) HasRequestBodyTemplateFormatStr() bool
HasRequestBodyTemplateFormatStr returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetRequestContentType() string
GetRequestContentType returns the RequestContentType field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetRequestContentTypeOk() (*string, bool)
GetRequestContentTypeOk returns a tuple with the RequestContentType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetRequestContentType(v string)
SetRequestContentType sets RequestContentType field to given value.
func (o *RepositoryWebhook) HasRequestContentType() bool
HasRequestContentType returns a boolean if a field has been set.
func (o *RepositoryWebhook) SetRequestContentTypeNil(b bool)
SetRequestContentTypeNil sets the value for RequestContentType to be an explicit nil
func (o *RepositoryWebhook) UnsetRequestContentType()
UnsetRequestContentType ensures that no value is present for RequestContentType, not even an explicit nil
func (o *RepositoryWebhook) GetSecretHeader() string
GetSecretHeader returns the SecretHeader field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetSecretHeaderOk() (*string, bool)
GetSecretHeaderOk returns a tuple with the SecretHeader field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetSecretHeader(v string)
SetSecretHeader sets SecretHeader field to given value.
func (o *RepositoryWebhook) HasSecretHeader() bool
HasSecretHeader returns a boolean if a field has been set.
func (o *RepositoryWebhook) SetSecretHeaderNil(b bool)
SetSecretHeaderNil sets the value for SecretHeader to be an explicit nil
func (o *RepositoryWebhook) UnsetSecretHeader()
UnsetSecretHeader ensures that no value is present for SecretHeader, not even an explicit nil
func (o *RepositoryWebhook) GetSelfUrl() string
GetSelfUrl returns the SelfUrl field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetSelfUrlOk() (*string, bool)
GetSelfUrlOk returns a tuple with the SelfUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetSelfUrl(v string)
SetSelfUrl sets SelfUrl field to given value.
func (o *RepositoryWebhook) HasSelfUrl() bool
HasSelfUrl returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetSlugPerm() string
GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetSlugPermOk() (*string, bool)
GetSlugPermOk returns a tuple with the SlugPerm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetSlugPerm(v string)
SetSlugPerm sets SlugPerm field to given value.
func (o *RepositoryWebhook) HasSlugPerm() bool
HasSlugPerm returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetTargetUrl() string
GetTargetUrl returns the TargetUrl field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) 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 *RepositoryWebhook) SetTargetUrl(v string)
SetTargetUrl sets TargetUrl field to given value.
func (o *RepositoryWebhook) GetTemplates() []WebhookTemplate
GetTemplates returns the Templates field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetTemplatesOk() (*[]WebhookTemplate, bool)
GetTemplatesOk returns a tuple with the Templates field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetTemplates(v []WebhookTemplate)
SetTemplates sets Templates field to given value.
func (o *RepositoryWebhook) SetTemplatesNil(b bool)
SetTemplatesNil sets the value for Templates to be an explicit nil
func (o *RepositoryWebhook) UnsetTemplates()
UnsetTemplates ensures that no value is present for Templates, not even an explicit nil
func (o *RepositoryWebhook) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetUpdatedAtOk() (*time.Time, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.
func (o *RepositoryWebhook) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetUpdatedBy() string
GetUpdatedBy returns the UpdatedBy field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetUpdatedByOk() (*string, bool)
GetUpdatedByOk returns a tuple with the UpdatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetUpdatedBy(v string)
SetUpdatedBy sets UpdatedBy field to given value.
func (o *RepositoryWebhook) HasUpdatedBy() bool
HasUpdatedBy returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetUpdatedByUrl() string
GetUpdatedByUrl returns the UpdatedByUrl field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetUpdatedByUrlOk() (*string, bool)
GetUpdatedByUrlOk returns a tuple with the UpdatedByUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetUpdatedByUrl(v string)
SetUpdatedByUrl sets UpdatedByUrl field to given value.
func (o *RepositoryWebhook) HasUpdatedByUrl() bool
HasUpdatedByUrl returns a boolean if a field has been set.
func (o *RepositoryWebhook) GetVerifySsl() bool
GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise.
func (o *RepositoryWebhook) GetVerifySslOk() (*bool, bool)
GetVerifySslOk returns a tuple with the VerifySsl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryWebhook) SetVerifySsl(v bool)
SetVerifySsl sets VerifySsl field to given value.
func (o *RepositoryWebhook) HasVerifySsl() bool
HasVerifySsl returns a boolean if a field has been set.