class Azure::ContainerRegistry::Mgmt::V2019_05_01::Models::WebhookUpdateParameters

The parameters for updating a webhook.

Attributes

actions[RW]

@return [Array<WebhookAction>] The list of actions that trigger the webhook to post notifications.

custom_headers[RW]

@return [Hash{String => String}] Custom headers that will be added to the webhook notifications.

scope[RW]

@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.

service_uri[RW]

@return [String] The service URI for the webhook to post notifications.

status[RW]

@return [WebhookStatus] The status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'

tags[RW]

@return [Hash{String => String}] The tags for the webhook.

Private Class Methods

mapper() click to toggle source

Mapper for WebhookUpdateParameters class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_update_parameters.rb, line 44
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'WebhookUpdateParameters',
    type: {
      name: 'Composite',
      class_name: 'WebhookUpdateParameters',
      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'
                }
            }
          }
        },
        service_uri: {
          client_side_validation: true,
          required: false,
          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: false,
          serialized_name: 'properties.actions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'WebhookActionElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end