Documentation ¶
Index ¶
- type HashicorpCloudWebhookCreateWebhookRequestBody
- func (m *HashicorpCloudWebhookCreateWebhookRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookCreateWebhookRequestBody) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookCreateWebhookRequestBody) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookCreateWebhookRequestBody) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookCreateWebhookResponse
- func (m *HashicorpCloudWebhookCreateWebhookResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookCreateWebhookResponse) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookCreateWebhookResponse) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookCreateWebhookResponse) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookDeleteWebhookResponse
- type HashicorpCloudWebhookGetWebhookResponse
- func (m *HashicorpCloudWebhookGetWebhookResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookGetWebhookResponse) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookGetWebhookResponse) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookGetWebhookResponse) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookListWebhookDeliveriesResponse
- func (m *HashicorpCloudWebhookListWebhookDeliveriesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookListWebhookDeliveriesResponse) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookListWebhookDeliveriesResponse) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookListWebhookDeliveriesResponse) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookListWebhooksResponse
- func (m *HashicorpCloudWebhookListWebhooksResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookListWebhooksResponse) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookListWebhooksResponse) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookListWebhooksResponse) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookTestWebhookRequestBody
- func (m *HashicorpCloudWebhookTestWebhookRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookTestWebhookRequestBody) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookTestWebhookRequestBody) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookTestWebhookRequestBody) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookTestWebhookResponse
- type HashicorpCloudWebhookUpdateWebhookNameRequestBody
- func (m *HashicorpCloudWebhookUpdateWebhookNameRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookUpdateWebhookNameRequestBody) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookUpdateWebhookNameRequestBody) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookUpdateWebhookNameRequestBody) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookUpdateWebhookNameResponse
- func (m *HashicorpCloudWebhookUpdateWebhookNameResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookUpdateWebhookNameResponse) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookUpdateWebhookNameResponse) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookUpdateWebhookNameResponse) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookUpdateWebhookRequestBody
- func (m *HashicorpCloudWebhookUpdateWebhookRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookUpdateWebhookRequestBody) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookUpdateWebhookRequestBody) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookUpdateWebhookRequestBody) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookUpdateWebhookResponse
- func (m *HashicorpCloudWebhookUpdateWebhookResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookUpdateWebhookResponse) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookUpdateWebhookResponse) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookUpdateWebhookResponse) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookWebhook
- func (m *HashicorpCloudWebhookWebhook) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookWebhook) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookWebhook) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookWebhook) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookWebhookConfig
- func (m *HashicorpCloudWebhookWebhookConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookWebhookConfig) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookWebhookConfig) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookWebhookConfig) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookWebhookDelivery
- func (m *HashicorpCloudWebhookWebhookDelivery) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookWebhookDelivery) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookWebhookDelivery) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookWebhookDelivery) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookWebhookPayload
- func (m *HashicorpCloudWebhookWebhookPayload) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookWebhookPayload) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookWebhookPayload) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookWebhookPayload) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookWebhookRequest
- func (m *HashicorpCloudWebhookWebhookRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookWebhookRequest) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookWebhookRequest) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookWebhookRequest) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookWebhookResponse
- func (m *HashicorpCloudWebhookWebhookResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookWebhookResponse) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookWebhookResponse) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookWebhookResponse) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookWebhookSubscription
- func (m *HashicorpCloudWebhookWebhookSubscription) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookWebhookSubscription) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookWebhookSubscription) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookWebhookSubscription) Validate(formats strfmt.Registry) error
- type HashicorpCloudWebhookWebhookSubscriptionEvent
- func (m *HashicorpCloudWebhookWebhookSubscriptionEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HashicorpCloudWebhookWebhookSubscriptionEvent) MarshalBinary() ([]byte, error)
- func (m *HashicorpCloudWebhookWebhookSubscriptionEvent) UnmarshalBinary(b []byte) error
- func (m *HashicorpCloudWebhookWebhookSubscriptionEvent) Validate(formats strfmt.Registry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashicorpCloudWebhookCreateWebhookRequestBody ¶
type HashicorpCloudWebhookCreateWebhookRequestBody struct { // The required information for delivering event payloads. Config *HashicorpCloudWebhookWebhookConfig `json:"config,omitempty"` // The webhook description. Useful for providing a summary of the webhook. Description string `json:"description,omitempty"` // The webhook name. Name string `json:"name,omitempty"` // The resource lifecycle events that this webhook is subscribed to. Subscriptions []*HashicorpCloudWebhookWebhookSubscription `json:"subscriptions"` // The optional payload used to deliver a test request to validate the webhook configuration. // If not set, the webhook service delivers a generic payload. TestPayload *HashicorpCloudWebhookWebhookPayload `json:"test_payload,omitempty"` }
HashicorpCloudWebhookCreateWebhookRequestBody hashicorp cloud webhook create webhook request body
swagger:model hashicorp.cloud.webhook.CreateWebhookRequestBody
func (*HashicorpCloudWebhookCreateWebhookRequestBody) ContextValidate ¶
func (m *HashicorpCloudWebhookCreateWebhookRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook create webhook request body based on the context it is used
func (*HashicorpCloudWebhookCreateWebhookRequestBody) MarshalBinary ¶
func (m *HashicorpCloudWebhookCreateWebhookRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookCreateWebhookRequestBody) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookCreateWebhookRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookCreateWebhookResponse ¶
type HashicorpCloudWebhookCreateWebhookResponse struct { // The newly create webhook. Webhook *HashicorpCloudWebhookWebhook `json:"webhook,omitempty"` }
HashicorpCloudWebhookCreateWebhookResponse hashicorp cloud webhook create webhook response
swagger:model hashicorp.cloud.webhook.CreateWebhookResponse
func (*HashicorpCloudWebhookCreateWebhookResponse) ContextValidate ¶
func (m *HashicorpCloudWebhookCreateWebhookResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook create webhook response based on the context it is used
func (*HashicorpCloudWebhookCreateWebhookResponse) MarshalBinary ¶
func (m *HashicorpCloudWebhookCreateWebhookResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookCreateWebhookResponse) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookCreateWebhookResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookDeleteWebhookResponse ¶
type HashicorpCloudWebhookDeleteWebhookResponse interface{}
HashicorpCloudWebhookDeleteWebhookResponse hashicorp cloud webhook delete webhook response
swagger:model hashicorp.cloud.webhook.DeleteWebhookResponse
type HashicorpCloudWebhookGetWebhookResponse ¶
type HashicorpCloudWebhookGetWebhookResponse struct { // The fetched webhook. Webhook *HashicorpCloudWebhookWebhook `json:"webhook,omitempty"` }
HashicorpCloudWebhookGetWebhookResponse hashicorp cloud webhook get webhook response
swagger:model hashicorp.cloud.webhook.GetWebhookResponse
func (*HashicorpCloudWebhookGetWebhookResponse) ContextValidate ¶
func (m *HashicorpCloudWebhookGetWebhookResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook get webhook response based on the context it is used
func (*HashicorpCloudWebhookGetWebhookResponse) MarshalBinary ¶
func (m *HashicorpCloudWebhookGetWebhookResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookGetWebhookResponse) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookGetWebhookResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookListWebhookDeliveriesResponse ¶
type HashicorpCloudWebhookListWebhookDeliveriesResponse struct { // The list of webhook deliveries. Deliveries []*HashicorpCloudWebhookWebhookDelivery `json:"deliveries"` // Pagination tokens for a subsequent request. Pagination *cloud.HashicorpCloudCommonPaginationResponse `json:"pagination,omitempty"` }
HashicorpCloudWebhookListWebhookDeliveriesResponse hashicorp cloud webhook list webhook deliveries response
swagger:model hashicorp.cloud.webhook.ListWebhookDeliveriesResponse
func (*HashicorpCloudWebhookListWebhookDeliveriesResponse) ContextValidate ¶
func (m *HashicorpCloudWebhookListWebhookDeliveriesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook list webhook deliveries response based on the context it is used
func (*HashicorpCloudWebhookListWebhookDeliveriesResponse) MarshalBinary ¶
func (m *HashicorpCloudWebhookListWebhookDeliveriesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookListWebhookDeliveriesResponse) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookListWebhookDeliveriesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookListWebhooksResponse ¶
type HashicorpCloudWebhookListWebhooksResponse struct { // Pagination tokens for a subsequent request. Pagination *cloud.HashicorpCloudCommonPaginationResponse `json:"pagination,omitempty"` // The list of webhooks. Webhooks []*HashicorpCloudWebhookWebhook `json:"webhooks"` }
HashicorpCloudWebhookListWebhooksResponse hashicorp cloud webhook list webhooks response
swagger:model hashicorp.cloud.webhook.ListWebhooksResponse
func (*HashicorpCloudWebhookListWebhooksResponse) ContextValidate ¶
func (m *HashicorpCloudWebhookListWebhooksResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook list webhooks response based on the context it is used
func (*HashicorpCloudWebhookListWebhooksResponse) MarshalBinary ¶
func (m *HashicorpCloudWebhookListWebhooksResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookListWebhooksResponse) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookListWebhooksResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookTestWebhookRequestBody ¶
type HashicorpCloudWebhookTestWebhookRequestBody struct { // The required information necessary for delivering the test payload. Config *HashicorpCloudWebhookWebhookConfig `json:"config,omitempty"` // The optional testing payload to send to the webhook. If not set, the webhook service delivers a generic payload. TestPayload *HashicorpCloudWebhookWebhookPayload `json:"test_payload,omitempty"` // The optional webhook UUID. If specified, the test is stored as a delivery for this webhook. WebhookResourceID string `json:"webhook_resource_id,omitempty"` }
HashicorpCloudWebhookTestWebhookRequestBody hashicorp cloud webhook test webhook request body
swagger:model hashicorp.cloud.webhook.TestWebhookRequestBody
func (*HashicorpCloudWebhookTestWebhookRequestBody) ContextValidate ¶
func (m *HashicorpCloudWebhookTestWebhookRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook test webhook request body based on the context it is used
func (*HashicorpCloudWebhookTestWebhookRequestBody) MarshalBinary ¶
func (m *HashicorpCloudWebhookTestWebhookRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookTestWebhookRequestBody) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookTestWebhookRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookTestWebhookResponse ¶
type HashicorpCloudWebhookTestWebhookResponse interface{}
HashicorpCloudWebhookTestWebhookResponse hashicorp cloud webhook test webhook response
swagger:model hashicorp.cloud.webhook.TestWebhookResponse
type HashicorpCloudWebhookUpdateWebhookNameRequestBody ¶
type HashicorpCloudWebhookUpdateWebhookNameRequestBody struct { // The updated name for the webhook. Name string `json:"name,omitempty"` }
HashicorpCloudWebhookUpdateWebhookNameRequestBody hashicorp cloud webhook update webhook name request body
swagger:model hashicorp.cloud.webhook.UpdateWebhookNameRequestBody
func (*HashicorpCloudWebhookUpdateWebhookNameRequestBody) ContextValidate ¶
func (m *HashicorpCloudWebhookUpdateWebhookNameRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this hashicorp cloud webhook update webhook name request body based on context it is used
func (*HashicorpCloudWebhookUpdateWebhookNameRequestBody) MarshalBinary ¶
func (m *HashicorpCloudWebhookUpdateWebhookNameRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookUpdateWebhookNameRequestBody) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookUpdateWebhookNameRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookUpdateWebhookNameResponse ¶
type HashicorpCloudWebhookUpdateWebhookNameResponse struct { // The updated webhook. Webhook *HashicorpCloudWebhookWebhook `json:"webhook,omitempty"` }
HashicorpCloudWebhookUpdateWebhookNameResponse hashicorp cloud webhook update webhook name response
swagger:model hashicorp.cloud.webhook.UpdateWebhookNameResponse
func (*HashicorpCloudWebhookUpdateWebhookNameResponse) ContextValidate ¶
func (m *HashicorpCloudWebhookUpdateWebhookNameResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook update webhook name response based on the context it is used
func (*HashicorpCloudWebhookUpdateWebhookNameResponse) MarshalBinary ¶
func (m *HashicorpCloudWebhookUpdateWebhookNameResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookUpdateWebhookNameResponse) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookUpdateWebhookNameResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookUpdateWebhookRequestBody ¶
type HashicorpCloudWebhookUpdateWebhookRequestBody struct { // The optional payload used to deliver a test request to validate the webhook configuration. // The endpoint only sends the test payload when the `webhook.config` is updated or webhook is enabled. // Othewise, the webhook service delivers a generic payload. TestPayload *HashicorpCloudWebhookWebhookPayload `json:"test_payload,omitempty"` // The required mask of webhook fields to update. The endpoint converts field names to the lower-camel naming convention. // Fields that you can update are `description`, `config`, `subscriptions`, and `enabled`. // // Example of usage: // * `"description,config"` updates the description, `config.url`, and `config.hmac_key`. // * `"config.hmacKey"` only updates `config.hmac_key`. // * `"description,config,subscriptions,enabled"` update all allowed fields. UpdateMask string `json:"update_mask,omitempty"` // The webhook to update. Webhook *HashicorpCloudWebhookWebhook `json:"webhook,omitempty"` }
HashicorpCloudWebhookUpdateWebhookRequestBody hashicorp cloud webhook update webhook request body
swagger:model hashicorp.cloud.webhook.UpdateWebhookRequestBody
func (*HashicorpCloudWebhookUpdateWebhookRequestBody) ContextValidate ¶
func (m *HashicorpCloudWebhookUpdateWebhookRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook update webhook request body based on the context it is used
func (*HashicorpCloudWebhookUpdateWebhookRequestBody) MarshalBinary ¶
func (m *HashicorpCloudWebhookUpdateWebhookRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookUpdateWebhookRequestBody) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookUpdateWebhookRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookUpdateWebhookResponse ¶
type HashicorpCloudWebhookUpdateWebhookResponse struct { // The updated webhook. Webhook *HashicorpCloudWebhookWebhook `json:"webhook,omitempty"` }
HashicorpCloudWebhookUpdateWebhookResponse hashicorp cloud webhook update webhook response
swagger:model hashicorp.cloud.webhook.UpdateWebhookResponse
func (*HashicorpCloudWebhookUpdateWebhookResponse) ContextValidate ¶
func (m *HashicorpCloudWebhookUpdateWebhookResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook update webhook response based on the context it is used
func (*HashicorpCloudWebhookUpdateWebhookResponse) MarshalBinary ¶
func (m *HashicorpCloudWebhookUpdateWebhookResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookUpdateWebhookResponse) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookUpdateWebhookResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookWebhook ¶
type HashicorpCloudWebhookWebhook struct { // The information for delivering event payloads. Config *HashicorpCloudWebhookWebhookConfig `json:"config,omitempty"` // The time the webhook was created. // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // The description of this webhook. Description string `json:"description,omitempty"` // When `true`, this parameter indicates that the webhook is enabled and is able to receive payloads for the subscribed events. Enabled bool `json:"enabled,omitempty"` // The latest delivery to the webhook. LastDelivery *HashicorpCloudWebhookWebhookDelivery `json:"last_delivery,omitempty"` // Unique identifier for the platform. ResourceID string `json:"resource_id,omitempty"` // The human-readable identifier for the platform. For example, `webhooks/project/<project-id>/geo/<geography>/webhook/<webhook-name>`. ResourceName string `json:"resource_name,omitempty"` // The resource events this webhook is subscribed to. Subscriptions []*HashicorpCloudWebhookWebhookSubscription `json:"subscriptions"` // The time the webhook was last updated. // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` }
HashicorpCloudWebhookWebhook hashicorp cloud webhook webhook
swagger:model hashicorp.cloud.webhook.Webhook
func (*HashicorpCloudWebhookWebhook) ContextValidate ¶
func (m *HashicorpCloudWebhookWebhook) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook webhook based on the context it is used
func (*HashicorpCloudWebhookWebhook) MarshalBinary ¶
func (m *HashicorpCloudWebhookWebhook) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookWebhook) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookWebhook) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookWebhookConfig ¶
type HashicorpCloudWebhookWebhookConfig struct { // The optional HMAC key used to sign all requests. HmacKey string `json:"hmac_key,omitempty"` // The HTTP or HTTPS endpoint URL that HCP Packer delivers the requests to. URL string `json:"url,omitempty"` }
HashicorpCloudWebhookWebhookConfig The webhook configuration used to deliver event payloads.
swagger:model hashicorp.cloud.webhook.WebhookConfig
func (*HashicorpCloudWebhookWebhookConfig) ContextValidate ¶
func (m *HashicorpCloudWebhookWebhookConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this hashicorp cloud webhook webhook config based on context it is used
func (*HashicorpCloudWebhookWebhookConfig) MarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookWebhookConfig) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookWebhookDelivery ¶
type HashicorpCloudWebhookWebhookDelivery struct { // The unique identifier for the delivery. ID string `json:"id,omitempty"` // The request that delivers the event payload. Request *HashicorpCloudWebhookWebhookRequest `json:"request,omitempty"` // The response received from the external webhook service when a request was sent to deliver the payload. Response *HashicorpCloudWebhookWebhookResponse `json:"response,omitempty"` // The number of times HCP Packer resent the request before successfully delivering the payload. Retries int32 `json:"retries,omitempty"` // The ID of the webhook to which the payload was delivered. WebhookResourceID string `json:"webhook_resource_id,omitempty"` }
HashicorpCloudWebhookWebhookDelivery The information about a webhook delivery, such as the sent request, the received response, and how many times the webhook service retried to send the delivery in case of failure.
swagger:model hashicorp.cloud.webhook.WebhookDelivery
func (*HashicorpCloudWebhookWebhookDelivery) ContextValidate ¶
func (m *HashicorpCloudWebhookWebhookDelivery) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook webhook delivery based on the context it is used
func (*HashicorpCloudWebhookWebhookDelivery) MarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookDelivery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookWebhookDelivery) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookDelivery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookWebhookPayload ¶
type HashicorpCloudWebhookWebhookPayload struct { // The type of action performed by this event, for example `create`. EventAction string `json:"event_action,omitempty"` // The event description, for example `Created iteration`. EventDescription string `json:"event_description,omitempty"` // The unique identifier for the event generated by the services that own the resources. The value format is: `<service>.event:<random string>`, // for example, `packer.event:t79BRg8WhTmDPBRM`. EventID string `json:"event_id,omitempty"` // The payload containing information about the resource's lifecycle event. The lifecycle event is defined by the services that own the resources. EventPayload interface{} `json:"event_payload,omitempty"` // Refers to the source of the event, for example `hashicorp.packer.iteration`. // The event source type may differ from the resource that the webhook is subscribed to when the event is from a // descendent resource. // For example, webhooks subscribed to `hashicorp.packer.registry` receive events for the descendant's resources, // such as a `hashicorp.packer.iteration`. EventSource string `json:"event_source,omitempty"` // The version of the payload being sent. EventVersion string `json:"event_version,omitempty"` // The ID of the resource the event is related to. ResourceID string `json:"resource_id,omitempty"` // The name of the resource the event is related to. ResourceName string `json:"resource_name,omitempty"` }
HashicorpCloudWebhookWebhookPayload The payload that is delivered as the body of the request made to the webhook's destination URL.
swagger:model hashicorp.cloud.webhook.WebhookPayload
func (*HashicorpCloudWebhookWebhookPayload) ContextValidate ¶
func (m *HashicorpCloudWebhookWebhookPayload) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this hashicorp cloud webhook webhook payload based on context it is used
func (*HashicorpCloudWebhookWebhookPayload) MarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookPayload) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookWebhookPayload) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookPayload) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookWebhookRequest ¶
type HashicorpCloudWebhookWebhookRequest struct { // The request headers. Headers map[string]string `json:"headers,omitempty"` // The request body. Payload *HashicorpCloudWebhookWebhookPayload `json:"payload,omitempty"` // The UTC time the request was sent. // Format: date-time SentAt strfmt.DateTime `json:"sent_at,omitempty"` // The request's destination URL. URL string `json:"url,omitempty"` }
HashicorpCloudWebhookWebhookRequest The information about the request made to deliver an event payload.
swagger:model hashicorp.cloud.webhook.WebhookRequest
func (*HashicorpCloudWebhookWebhookRequest) ContextValidate ¶
func (m *HashicorpCloudWebhookWebhookRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook webhook request based on the context it is used
func (*HashicorpCloudWebhookWebhookRequest) MarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookWebhookRequest) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookWebhookResponse ¶
type HashicorpCloudWebhookWebhookResponse struct { // The response body. Body string `json:"body,omitempty"` // The response headers. Headers map[string]string `json:"headers,omitempty"` // The response status code. StatusCode int32 `json:"status_code,omitempty"` }
HashicorpCloudWebhookWebhookResponse The information about the response received after delivering an event payload.
swagger:model hashicorp.cloud.webhook.WebhookResponse
func (*HashicorpCloudWebhookWebhookResponse) ContextValidate ¶
func (m *HashicorpCloudWebhookWebhookResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this hashicorp cloud webhook webhook response based on context it is used
func (*HashicorpCloudWebhookWebhookResponse) MarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookWebhookResponse) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookWebhookSubscription ¶
type HashicorpCloudWebhookWebhookSubscription struct { // The list of resource lifecycle events that the webhook is subscribed to. // Events are a combination of event source and event action. // For example, `hashicorp.packer.iteration:create`. // The wildcard(`*`) subscribes the webhook to all the source's events, for example `hashicorp.packer.iteration:*`. Events []*HashicorpCloudWebhookWebhookSubscriptionEvent `json:"events"` // Refers to the resource the webhook is subscribed to. // If not set, the webhook subscribes to the emitted events listed in `events` // for any resource in the webhook's project. ResourceID string `json:"resource_id,omitempty"` }
HashicorpCloudWebhookWebhookSubscription The information about a webhook subscription. A webhook can either provide the `resource_id` to subscribe to events generated by a specific resource, or they can subscribe to the available events for all resources in the webhook's project when the `resource_id` is omitted.
swagger:model hashicorp.cloud.webhook.WebhookSubscription
func (*HashicorpCloudWebhookWebhookSubscription) ContextValidate ¶
func (m *HashicorpCloudWebhookWebhookSubscription) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this hashicorp cloud webhook webhook subscription based on the context it is used
func (*HashicorpCloudWebhookWebhookSubscription) MarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookSubscription) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookWebhookSubscription) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookSubscription) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HashicorpCloudWebhookWebhookSubscriptionEvent ¶
type HashicorpCloudWebhookWebhookSubscriptionEvent struct { // The type of action of this event, such as `create`, `update`, or `delete`. // When the action is '*', it means that the webhook is subscribed to all event actions for the event source. Action string `json:"action,omitempty"` // The source of the event, such as `hashicorp.packer.iteration`. Source string `json:"source,omitempty"` }
HashicorpCloudWebhookWebhookSubscriptionEvent The information about an event type of a webhook subscription.
swagger:model hashicorp.cloud.webhook.WebhookSubscriptionEvent
func (*HashicorpCloudWebhookWebhookSubscriptionEvent) ContextValidate ¶
func (m *HashicorpCloudWebhookWebhookSubscriptionEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this hashicorp cloud webhook webhook subscription event based on context it is used
func (*HashicorpCloudWebhookWebhookSubscriptionEvent) MarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookSubscriptionEvent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HashicorpCloudWebhookWebhookSubscriptionEvent) UnmarshalBinary ¶
func (m *HashicorpCloudWebhookWebhookSubscriptionEvent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- hashicorp_cloud_webhook_create_webhook_request_body.go
- hashicorp_cloud_webhook_create_webhook_response.go
- hashicorp_cloud_webhook_delete_webhook_response.go
- hashicorp_cloud_webhook_get_webhook_response.go
- hashicorp_cloud_webhook_list_webhook_deliveries_response.go
- hashicorp_cloud_webhook_list_webhooks_response.go
- hashicorp_cloud_webhook_test_webhook_request_body.go
- hashicorp_cloud_webhook_test_webhook_response.go
- hashicorp_cloud_webhook_update_webhook_name_request_body.go
- hashicorp_cloud_webhook_update_webhook_name_response.go
- hashicorp_cloud_webhook_update_webhook_request_body.go
- hashicorp_cloud_webhook_update_webhook_response.go
- hashicorp_cloud_webhook_webhook.go
- hashicorp_cloud_webhook_webhook_config.go
- hashicorp_cloud_webhook_webhook_delivery.go
- hashicorp_cloud_webhook_webhook_payload.go
- hashicorp_cloud_webhook_webhook_request.go
- hashicorp_cloud_webhook_webhook_response.go
- hashicorp_cloud_webhook_webhook_subscription.go
- hashicorp_cloud_webhook_webhook_subscription_event.go