azure_mgmt_monitor 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_monitor/action_groups.rb +1 -1
  3. data/lib/generated/azure_mgmt_monitor/activity_log_alerts.rb +1 -1
  4. data/lib/generated/azure_mgmt_monitor/alert_rule_incidents.rb +1 -1
  5. data/lib/generated/azure_mgmt_monitor/alert_rules.rb +1 -1
  6. data/lib/generated/azure_mgmt_monitor/autoscale_settings.rb +1 -1
  7. data/lib/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +201 -0
  8. data/lib/generated/azure_mgmt_monitor/{service_diagnostic_settings_operations.rb → diagnostic_settings_operations.rb} +135 -79
  9. data/lib/generated/azure_mgmt_monitor/log_profiles.rb +1 -1
  10. data/lib/generated/azure_mgmt_monitor/models/action_group_list.rb +1 -1
  11. data/lib/generated/azure_mgmt_monitor/models/action_group_resource.rb +1 -1
  12. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb +1 -1
  13. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb +1 -1
  14. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb +1 -1
  15. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb +1 -1
  16. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb +1 -1
  17. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb +1 -1
  18. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb +1 -1
  19. data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource.rb +1 -1
  20. data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb +1 -1
  21. data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb +1 -1
  22. data/lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb +1 -1
  23. data/lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb +1 -1
  24. data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb +1 -1
  25. data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb +1 -1
  26. data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb +1 -1
  27. data/lib/generated/azure_mgmt_monitor/models/category_type.rb +16 -0
  28. data/lib/generated/azure_mgmt_monitor/models/comparison_operation_type.rb +1 -1
  29. data/lib/generated/azure_mgmt_monitor/models/condition_operator.rb +1 -1
  30. data/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource.rb +71 -0
  31. data/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource_collection.rb +55 -0
  32. data/lib/generated/azure_mgmt_monitor/models/{service_diagnostic_settings_resource.rb → diagnostic_settings_resource.rb} +15 -39
  33. data/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb +54 -0
  34. data/lib/generated/azure_mgmt_monitor/models/email_notification.rb +1 -1
  35. data/lib/generated/azure_mgmt_monitor/models/email_receiver.rb +1 -1
  36. data/lib/generated/azure_mgmt_monitor/models/enable_request.rb +1 -1
  37. data/lib/generated/azure_mgmt_monitor/models/error_response.rb +1 -1
  38. data/lib/generated/azure_mgmt_monitor/models/incident.rb +1 -1
  39. data/lib/generated/azure_mgmt_monitor/models/incident_list_result.rb +1 -1
  40. data/lib/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb +1 -1
  41. data/lib/generated/azure_mgmt_monitor/models/log_profile_collection.rb +1 -1
  42. data/lib/generated/azure_mgmt_monitor/models/log_profile_resource.rb +1 -1
  43. data/lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb +1 -1
  44. data/lib/generated/azure_mgmt_monitor/models/log_settings.rb +1 -1
  45. data/lib/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb +1 -1
  46. data/lib/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb +1 -1
  47. data/lib/generated/azure_mgmt_monitor/models/metric_settings.rb +17 -4
  48. data/lib/generated/azure_mgmt_monitor/models/metric_statistic_type.rb +1 -1
  49. data/lib/generated/azure_mgmt_monitor/models/metric_trigger.rb +1 -1
  50. data/lib/generated/azure_mgmt_monitor/models/operation.rb +57 -0
  51. data/lib/generated/azure_mgmt_monitor/models/operation_display.rb +66 -0
  52. data/lib/generated/azure_mgmt_monitor/models/operation_list_result.rb +66 -0
  53. data/lib/generated/azure_mgmt_monitor/models/proxy_only_resource.rb +68 -0
  54. data/lib/generated/azure_mgmt_monitor/models/receiver_status.rb +1 -1
  55. data/lib/generated/azure_mgmt_monitor/models/recurrence.rb +1 -1
  56. data/lib/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +1 -1
  57. data/lib/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +1 -1
  58. data/lib/generated/azure_mgmt_monitor/models/retention_policy.rb +1 -1
  59. data/lib/generated/azure_mgmt_monitor/models/rule_action.rb +1 -1
  60. data/lib/generated/azure_mgmt_monitor/models/rule_condition.rb +1 -1
  61. data/lib/generated/azure_mgmt_monitor/models/rule_data_source.rb +3 -2
  62. data/lib/generated/azure_mgmt_monitor/models/rule_email_action.rb +3 -3
  63. data/lib/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb +1 -1
  64. data/lib/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb +1 -1
  65. data/lib/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb +1 -1
  66. data/lib/generated/azure_mgmt_monitor/models/rule_webhook_action.rb +2 -2
  67. data/lib/generated/azure_mgmt_monitor/models/scale_action.rb +1 -1
  68. data/lib/generated/azure_mgmt_monitor/models/scale_capacity.rb +1 -1
  69. data/lib/generated/azure_mgmt_monitor/models/scale_direction.rb +1 -1
  70. data/lib/generated/azure_mgmt_monitor/models/scale_rule.rb +1 -1
  71. data/lib/generated/azure_mgmt_monitor/models/scale_type.rb +1 -1
  72. data/lib/generated/azure_mgmt_monitor/models/sms_receiver.rb +1 -1
  73. data/lib/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb +1 -1
  74. data/lib/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb +1 -1
  75. data/lib/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +1 -1
  76. data/lib/generated/azure_mgmt_monitor/models/time_window.rb +1 -1
  77. data/lib/generated/azure_mgmt_monitor/models/webhook_notification.rb +1 -1
  78. data/lib/generated/azure_mgmt_monitor/models/webhook_receiver.rb +1 -1
  79. data/lib/generated/azure_mgmt_monitor/module_definition.rb +1 -1
  80. data/lib/generated/azure_mgmt_monitor/monitor_management_client.rb +13 -5
  81. data/lib/generated/azure_mgmt_monitor/operations.rb +106 -0
  82. data/lib/generated/azure_mgmt_monitor/version.rb +2 -2
  83. data/lib/generated/azure_mgmt_monitor.rb +33 -24
  84. metadata +14 -5
  85. data/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb +0 -136
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Monitor
7
+ module Models
8
+ #
9
+ # Defines values for CategoryType
10
+ #
11
+ module CategoryType
12
+ Metrics = "Metrics"
13
+ Logs = "Logs"
14
+ end
15
+ end
16
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -0,0 +1,71 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Monitor
7
+ module Models
8
+ #
9
+ # The diagnostic settings category resource.
10
+ #
11
+ class DiagnosticSettingsCategoryResource < ProxyOnlyResource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [CategoryType] The type of the diagnostic settings category.
17
+ # Possible values include: 'Metrics', 'Logs'
18
+ attr_accessor :category_type
19
+
20
+
21
+ #
22
+ # Mapper for DiagnosticSettingsCategoryResource class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'DiagnosticSettingsCategoryResource',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'DiagnosticSettingsCategoryResource',
32
+ model_properties: {
33
+ id: {
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'id',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ name: {
42
+ required: false,
43
+ read_only: true,
44
+ serialized_name: 'name',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ type: {
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'type',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ category_type: {
58
+ required: false,
59
+ serialized_name: 'properties.categoryType',
60
+ type: {
61
+ name: 'Enum',
62
+ module: 'CategoryType'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Monitor
7
+ module Models
8
+ #
9
+ # Represents a collection of diagnostic setting category resources.
10
+ #
11
+ class DiagnosticSettingsCategoryResourceCollection
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<DiagnosticSettingsCategoryResource>] The collection of
17
+ # diagnostic settings category resources.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for DiagnosticSettingsCategoryResourceCollection class as Ruby
23
+ # Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'DiagnosticSettingsCategoryResourceCollection',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'DiagnosticSettingsCategoryResourceCollection',
33
+ model_properties: {
34
+ value: {
35
+ required: false,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ required: false,
41
+ serialized_name: 'DiagnosticSettingsCategoryResourceElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'DiagnosticSettingsCategoryResource'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -1,14 +1,14 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Monitor
7
7
  module Models
8
8
  #
9
- # Description of a service diagnostic setting
9
+ # The diagnostic setting resource.
10
10
  #
11
- class ServiceDiagnosticSettingsResource < MsRestAzure::Resource
11
+ class DiagnosticSettingsResource < ProxyOnlyResource
12
12
 
13
13
  include MsRestAzure
14
14
 
@@ -17,16 +17,13 @@ module Azure::ARM::Monitor
17
17
  # would like to send Diagnostic Logs.
18
18
  attr_accessor :storage_account_id
19
19
 
20
- # @return [String] The service bus rule ID of the service bus namespace
21
- # in which you would like to have Event Hubs created for streaming
22
- # Diagnostic Logs. The rule ID is of the format: '{service bus resource
23
- # ID}/authorizationrules/{key name}'.
24
- attr_accessor :service_bus_rule_id
25
-
26
- # @return [String] The resource Id for the event hub namespace
27
- # authorization rule.
20
+ # @return [String] The resource Id for the event hub authorization rule.
28
21
  attr_accessor :event_hub_authorization_rule_id
29
22
 
23
+ # @return [String] The name of the event hub. If none is specified, the
24
+ # default event hub will be selected.
25
+ attr_accessor :event_hub_name
26
+
30
27
  # @return [Array<MetricSettings>] the list of metric settings.
31
28
  attr_accessor :metrics
32
29
 
@@ -41,16 +38,16 @@ module Azure::ARM::Monitor
41
38
 
42
39
 
43
40
  #
44
- # Mapper for ServiceDiagnosticSettingsResource class as Ruby Hash.
41
+ # Mapper for DiagnosticSettingsResource class as Ruby Hash.
45
42
  # This will be used for serialization/deserialization.
46
43
  #
47
44
  def self.mapper()
48
45
  {
49
46
  required: false,
50
- serialized_name: 'ServiceDiagnosticSettingsResource',
47
+ serialized_name: 'DiagnosticSettingsResource',
51
48
  type: {
52
49
  name: 'Composite',
53
- class_name: 'ServiceDiagnosticSettingsResource',
50
+ class_name: 'DiagnosticSettingsResource',
54
51
  model_properties: {
55
52
  id: {
56
53
  required: false,
@@ -76,27 +73,6 @@ module Azure::ARM::Monitor
76
73
  name: 'String'
77
74
  }
78
75
  },
79
- location: {
80
- required: true,
81
- serialized_name: 'location',
82
- type: {
83
- name: 'String'
84
- }
85
- },
86
- tags: {
87
- required: false,
88
- serialized_name: 'tags',
89
- type: {
90
- name: 'Dictionary',
91
- value: {
92
- required: false,
93
- serialized_name: 'StringElementType',
94
- type: {
95
- name: 'String'
96
- }
97
- }
98
- }
99
- },
100
76
  storage_account_id: {
101
77
  required: false,
102
78
  serialized_name: 'properties.storageAccountId',
@@ -104,16 +80,16 @@ module Azure::ARM::Monitor
104
80
  name: 'String'
105
81
  }
106
82
  },
107
- service_bus_rule_id: {
83
+ event_hub_authorization_rule_id: {
108
84
  required: false,
109
- serialized_name: 'properties.serviceBusRuleId',
85
+ serialized_name: 'properties.eventHubAuthorizationRuleId',
110
86
  type: {
111
87
  name: 'String'
112
88
  }
113
89
  },
114
- event_hub_authorization_rule_id: {
90
+ event_hub_name: {
115
91
  required: false,
116
- serialized_name: 'properties.eventHubAuthorizationRuleId',
92
+ serialized_name: 'properties.eventHubName',
117
93
  type: {
118
94
  name: 'String'
119
95
  }
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Monitor
7
+ module Models
8
+ #
9
+ # Represents a collection of alert rule resources.
10
+ #
11
+ class DiagnosticSettingsResourceCollection
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<DiagnosticSettingsResource>] The collection of
17
+ # diagnostic settings resources;.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for DiagnosticSettingsResourceCollection class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'DiagnosticSettingsResourceCollection',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'DiagnosticSettingsResourceCollection',
32
+ model_properties: {
33
+ value: {
34
+ required: false,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ required: false,
40
+ serialized_name: 'DiagnosticSettingsResourceElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'DiagnosticSettingsResource'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -17,10 +17,16 @@ module Azure::ARM::Monitor
17
17
  # @return [Duration] the timegrain of the metric in ISO8601 format.
18
18
  attr_accessor :time_grain
19
19
 
20
- # @return [Boolean] a value indicating whether this timegrain is enabled.
20
+ # @return [String] Name of a Diagnostic Metric category for a resource
21
+ # type this setting is applied to. To obtain the list of Diagnostic
22
+ # metric categories for a resource, first perform a GET diagnostic
23
+ # settings operation.
24
+ attr_accessor :category
25
+
26
+ # @return [Boolean] a value indicating whether this category is enabled.
21
27
  attr_accessor :enabled
22
28
 
23
- # @return [RetentionPolicy] the retention policy for this timegrain.
29
+ # @return [RetentionPolicy] the retention policy for this category.
24
30
  attr_accessor :retention_policy
25
31
 
26
32
 
@@ -37,12 +43,19 @@ module Azure::ARM::Monitor
37
43
  class_name: 'MetricSettings',
38
44
  model_properties: {
39
45
  time_grain: {
40
- required: true,
46
+ required: false,
41
47
  serialized_name: 'timeGrain',
42
48
  type: {
43
49
  name: 'TimeSpan'
44
50
  }
45
51
  },
52
+ category: {
53
+ required: false,
54
+ serialized_name: 'category',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
46
59
  enabled: {
47
60
  required: true,
48
61
  serialized_name: 'enabled',
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5