Class: Azure::TimeSeriesInsights::Mgmt::V2018_08_15_preview::Models::EventSourceCreateOrUpdateParameters

Inherits:
CreateOrUpdateTrackedResourceProperties show all
Includes:
MsRestAzure
Defined in:
lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_source_create_or_update_parameters.rb

Overview

Parameters supplied to the Create or Update Event Source operation.

Instance Attribute Summary collapse

Attributes inherited from CreateOrUpdateTrackedResourceProperties

#location, #tags

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEventSourceCreateOrUpdateParameters

Returns a new instance of EventSourceCreateOrUpdateParameters.



16
17
18
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_source_create_or_update_parameters.rb', line 16

def initialize
  @kind = "EventSourceCreateOrUpdateParameters"
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



20
21
22
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_source_create_or_update_parameters.rb', line 20

def kind
  @kind
end

Class Method Details

.mapperObject

Mapper for EventSourceCreateOrUpdateParameters 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
64
65
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_source_create_or_update_parameters.rb', line 27

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EventSourceCreateOrUpdateParameters',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'kind',
      uber_parent: 'CreateOrUpdateTrackedResourceProperties',
      class_name: 'EventSourceCreateOrUpdateParameters',
      model_properties: {
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        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'
                }
            }
          }
        }
      }
    }
  }
end