Class: Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb

Overview

The parameters supplied to the create or update webhook operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#expiry_timeDateTime

Returns Gets or sets the expiry time.

Returns:

  • (DateTime)

    Gets or sets the expiry time.



26
27
28
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb', line 26

def expiry_time
  @expiry_time
end

#is_enabledBoolean

webhook.

Returns:

  • (Boolean)

    Gets or sets the value of the enabled flag of



20
21
22
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb', line 20

def is_enabled
  @is_enabled
end

#nameString

Returns Gets or sets the name of the webhook.

Returns:

  • (String)

    Gets or sets the name of the webhook.



16
17
18
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb', line 16

def name
  @name
end

#parametersHash{String => String}

job.

Returns:

  • (Hash{String => String})

    Gets or sets the parameters of the



30
31
32
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb', line 30

def parameters
  @parameters
end

#run_onString

webhook job will run on.

Returns:

  • (String)

    Gets or sets the name of the hybrid worker group the



37
38
39
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb', line 37

def run_on
  @run_on
end

#runbookRunbookAssociationProperty

Returns Gets or sets the runbook.

Returns:



33
34
35
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb', line 33

def runbook
  @runbook
end

#uriString

Returns Gets or sets the uri.

Returns:

  • (String)

    Gets or sets the uri.



23
24
25
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb', line 23

def uri
  @uri
end

Class Method Details

.mapperObject

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



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'WebhookCreateOrUpdateParameters',
    type: {
      name: 'Composite',
      class_name: 'WebhookCreateOrUpdateParameters',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        is_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isEnabled',
          type: {
            name: 'Boolean'
          }
        },
        uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.uri',
          type: {
            name: 'String'
          }
        },
        expiry_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.expiryTime',
          type: {
            name: 'DateTime'
          }
        },
        parameters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.parameters',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        runbook: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.runbook',
          type: {
            name: 'Composite',
            class_name: 'RunbookAssociationProperty'
          }
        },
        run_on: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.runOn',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end