class Azure::ContainerRegistry::Mgmt::V2017_06_01_preview::Models::WebhookCreateParameters
The parameters for creating a webhook.
Attributes
@return [Array<WebhookAction>] The list of actions that trigger the webhook to post notifications.
@return [Hash{String => String}] Custom headers that will be added to the webhook notifications.
@return [String] The location of the webhook. This cannot be changed after the resource is created.
@return [String] The scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.
@return [String] The service URI for the webhook to post notifications.
@return [WebhookStatus] The status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'
Public Class Methods
Mapper for WebhookCreateParameters
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/webhook_create_parameters.rb, line 48 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'WebhookCreateParameters', type: { name: 'Composite', class_name: 'WebhookCreateParameters', model_properties: { tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, service_uri: { client_side_validation: true, required: true, serialized_name: 'properties.serviceUri', type: { name: 'String' } }, custom_headers: { client_side_validation: true, required: false, serialized_name: 'properties.customHeaders', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, status: { client_side_validation: true, required: false, serialized_name: 'properties.status', type: { name: 'String' } }, scope: { client_side_validation: true, required: false, serialized_name: 'properties.scope', type: { name: 'String' } }, actions: { client_side_validation: true, required: true, serialized_name: 'properties.actions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'WebhookActionElementType', type: { name: 'String' } } } } } } } end