models

package
v0.106.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

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"`

	// When set to 'true', a verification request will be sent and the webhook created enabled and only if the verification succeeds.
	// When set to 'false', the webhook configuration won't be verified and the webhook created disabled.
	// When left unset, a verification request will be sent and the webhook will be created enabled if it succeeds,
	// or disabled if it fails.
	Enabled *bool `json:"enabled,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

ContextValidate validate this hashicorp cloud webhook create webhook request body based on the context it is used

func (*HashicorpCloudWebhookCreateWebhookRequestBody) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudWebhookCreateWebhookRequestBody) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudWebhookCreateWebhookRequestBody) Validate

Validate validates this hashicorp cloud webhook create webhook request body

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

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

func (*HashicorpCloudWebhookCreateWebhookResponse) Validate

Validate validates this hashicorp cloud webhook create webhook response

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

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

func (*HashicorpCloudWebhookGetWebhookResponse) Validate

Validate validates this hashicorp cloud webhook get webhook response

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

ContextValidate validate this hashicorp cloud webhook list webhook deliveries response based on the context it is used

func (*HashicorpCloudWebhookListWebhookDeliveriesResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudWebhookListWebhookDeliveriesResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudWebhookListWebhookDeliveriesResponse) Validate

Validate validates this hashicorp cloud webhook list webhook deliveries response

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

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

func (*HashicorpCloudWebhookListWebhooksResponse) Validate

Validate validates this hashicorp cloud webhook list webhooks response

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

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

func (*HashicorpCloudWebhookTestWebhookRequestBody) Validate

Validate validates this hashicorp cloud webhook test webhook request body

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

ContextValidate validates this hashicorp cloud webhook update webhook name request body based on context it is used

func (*HashicorpCloudWebhookUpdateWebhookNameRequestBody) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudWebhookUpdateWebhookNameRequestBody) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudWebhookUpdateWebhookNameRequestBody) Validate

Validate validates this hashicorp cloud webhook update webhook name request body

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

ContextValidate validate this hashicorp cloud webhook update webhook name response based on the context it is used

func (*HashicorpCloudWebhookUpdateWebhookNameResponse) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudWebhookUpdateWebhookNameResponse) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudWebhookUpdateWebhookNameResponse) Validate

Validate validates this hashicorp cloud webhook update webhook name response

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

ContextValidate validate this hashicorp cloud webhook update webhook request body based on the context it is used

func (*HashicorpCloudWebhookUpdateWebhookRequestBody) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudWebhookUpdateWebhookRequestBody) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudWebhookUpdateWebhookRequestBody) Validate

Validate validates this hashicorp cloud webhook update webhook request body

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

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

func (*HashicorpCloudWebhookUpdateWebhookResponse) Validate

Validate validates this hashicorp cloud webhook update webhook response

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

func (*HashicorpCloudWebhookWebhook) Validate

func (m *HashicorpCloudWebhookWebhook) Validate(formats strfmt.Registry) error

Validate validates this hashicorp cloud webhook webhook

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

func (*HashicorpCloudWebhookWebhookConfig) Validate

Validate validates this hashicorp cloud webhook webhook config

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

func (*HashicorpCloudWebhookWebhookDelivery) Validate

Validate validates this hashicorp cloud webhook webhook delivery

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.version`.
	// 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.version`.
	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

func (*HashicorpCloudWebhookWebhookPayload) Validate

Validate validates this hashicorp cloud webhook webhook payload

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

func (*HashicorpCloudWebhookWebhookRequest) Validate

Validate validates this hashicorp cloud webhook webhook request

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

func (*HashicorpCloudWebhookWebhookResponse) Validate

Validate validates this hashicorp cloud webhook webhook response

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.version:create`.
	// The wildcard(`*`) subscribes the webhook to all the source's events, for example `hashicorp.packer.version:*`.
	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

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

func (*HashicorpCloudWebhookWebhookSubscription) Validate

Validate validates this hashicorp cloud webhook webhook subscription

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.version`.
	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

ContextValidate validates this hashicorp cloud webhook webhook subscription event based on context it is used

func (*HashicorpCloudWebhookWebhookSubscriptionEvent) MarshalBinary

MarshalBinary interface implementation

func (*HashicorpCloudWebhookWebhookSubscriptionEvent) UnmarshalBinary

UnmarshalBinary interface implementation

func (*HashicorpCloudWebhookWebhookSubscriptionEvent) Validate

Validate validates this hashicorp cloud webhook webhook subscription event

Jump to

Keyboard shortcuts

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