Class: Azure::ContainerRegistry::Mgmt::V2017_06_01_preview::Models::CallbackConfig

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/callback_config.rb

Overview

The configuration of service URI and custom headers for the webhook.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#custom_headersHash{String => String}

the webhook notifications.

Returns:

  • (Hash{String => String})

    Custom headers that will be added to



20
21
22
# File 'lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/callback_config.rb', line 20

def custom_headers
  @custom_headers
end

#service_uriString

Returns The service URI for the webhook to post notifications.

Returns:

  • (String)

    The service URI for the webhook to post notifications.



16
17
18
# File 'lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/callback_config.rb', line 16

def service_uri
  @service_uri
end

Class Method Details

.mapperObject

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



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/callback_config.rb', line 27

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CallbackConfig',
    type: {
      name: 'Composite',
      class_name: 'CallbackConfig',
      model_properties: {
        service_uri: {
          client_side_validation: true,
          required: true,
          serialized_name: 'serviceUri',
          type: {
            name: 'String'
          }
        },
        custom_headers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'customHeaders',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end