diff --git a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights.rb b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights.rb index ab134ec3e0..a45b575364 100644 --- a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights.rb +++ b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights.rb @@ -31,29 +31,27 @@ module Models autoload :RuleCondition, 'generated/azure_mgmt_insights/models/rule_condition.rb' autoload :RuleDataSource, 'generated/azure_mgmt_insights/models/rule_data_source.rb' autoload :MetricTrigger, 'generated/azure_mgmt_insights/models/metric_trigger.rb' + autoload :MetricSettings, 'generated/azure_mgmt_insights/models/metric_settings.rb' autoload :LogSettings, 'generated/azure_mgmt_insights/models/log_settings.rb' - autoload :ServiceDiagnosticSettings, 'generated/azure_mgmt_insights/models/service_diagnostic_settings.rb' autoload :TimeWindow, 'generated/azure_mgmt_insights/models/time_window.rb' autoload :RecurrentSchedule, 'generated/azure_mgmt_insights/models/recurrent_schedule.rb' - autoload :AlertRuleResourceCollection, 'generated/azure_mgmt_insights/models/alert_rule_resource_collection.rb' + autoload :RuleAction, 'generated/azure_mgmt_insights/models/rule_action.rb' autoload :AutoscaleProfile, 'generated/azure_mgmt_insights/models/autoscale_profile.rb' autoload :ScaleCapacity, 'generated/azure_mgmt_insights/models/scale_capacity.rb' autoload :WebhookNotification, 'generated/azure_mgmt_insights/models/webhook_notification.rb' autoload :ScaleAction, 'generated/azure_mgmt_insights/models/scale_action.rb' - autoload :RuleAction, 'generated/azure_mgmt_insights/models/rule_action.rb' + autoload :AlertRuleResourceCollection, 'generated/azure_mgmt_insights/models/alert_rule_resource_collection.rb' autoload :AutoscaleSettingResourceCollection, 'generated/azure_mgmt_insights/models/autoscale_setting_resource_collection.rb' - autoload :MetricSettings, 'generated/azure_mgmt_insights/models/metric_settings.rb' + autoload :ScaleRule, 'generated/azure_mgmt_insights/models/scale_rule.rb' autoload :RuleManagementEventClaimsDataSource, 'generated/azure_mgmt_insights/models/rule_management_event_claims_data_source.rb' - autoload :Recurrence, 'generated/azure_mgmt_insights/models/recurrence.rb' + autoload :EmailNotification, 'generated/azure_mgmt_insights/models/email_notification.rb' autoload :LogProfileCollection, 'generated/azure_mgmt_insights/models/log_profile_collection.rb' - autoload :AutoscaleNotification, 'generated/azure_mgmt_insights/models/autoscale_notification.rb' - autoload :LogProfileProperties, 'generated/azure_mgmt_insights/models/log_profile_properties.rb' - autoload :ScaleRule, 'generated/azure_mgmt_insights/models/scale_rule.rb' - autoload :IncidentListResult, 'generated/azure_mgmt_insights/models/incident_list_result.rb' autoload :RetentionPolicy, 'generated/azure_mgmt_insights/models/retention_policy.rb' - autoload :ManagementEventAggregationCondition, 'generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb' - autoload :EmailNotification, 'generated/azure_mgmt_insights/models/email_notification.rb' + autoload :IncidentListResult, 'generated/azure_mgmt_insights/models/incident_list_result.rb' + autoload :AutoscaleNotification, 'generated/azure_mgmt_insights/models/autoscale_notification.rb' autoload :Incident, 'generated/azure_mgmt_insights/models/incident.rb' + autoload :Recurrence, 'generated/azure_mgmt_insights/models/recurrence.rb' + autoload :ManagementEventAggregationCondition, 'generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb' autoload :AutoscaleSettingResource, 'generated/azure_mgmt_insights/models/autoscale_setting_resource.rb' autoload :ServiceDiagnosticSettingsResource, 'generated/azure_mgmt_insights/models/service_diagnostic_settings_resource.rb' autoload :RuleMetricDataSource, 'generated/azure_mgmt_insights/models/rule_metric_data_source.rb' diff --git a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/log_profiles.rb b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/log_profiles.rb index 2a768b6c82..62882faefe 100644 --- a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/log_profiles.rb +++ b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/log_profiles.rb @@ -189,8 +189,7 @@ def get_async(log_profile_name, custom_headers = nil) # Create or update a log profile in Azure Monitoring REST API. # # @param log_profile_name [String] The name of the log profile. - # @param parameters [LogProfileProperties] Parameters supplied to the - # operation. + # @param parameters [LogProfileResource] Parameters supplied to the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # @@ -205,8 +204,7 @@ def create_or_update(log_profile_name, parameters, custom_headers = nil) # Create or update a log profile in Azure Monitoring REST API. # # @param log_profile_name [String] The name of the log profile. - # @param parameters [LogProfileProperties] Parameters supplied to the - # operation. + # @param parameters [LogProfileResource] Parameters supplied to the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # @@ -220,8 +218,7 @@ def create_or_update_with_http_info(log_profile_name, parameters, custom_headers # Create or update a log profile in Azure Monitoring REST API. # # @param log_profile_name [String] The name of the log profile. - # @param parameters [LogProfileProperties] Parameters supplied to the - # operation. + # @param parameters [LogProfileResource] Parameters supplied to the operation. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # @@ -243,7 +240,7 @@ def create_or_update_async(log_profile_name, parameters, custom_headers = nil) request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = LogProfileProperties.mapper() + request_mapper = LogProfileResource.mapper() request_content = @client.serialize(request_mapper, parameters, 'parameters') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil diff --git a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/log_profile_properties.rb b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/log_profile_properties.rb deleted file mode 100644 index 9a78eb687c..0000000000 --- a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/log_profile_properties.rb +++ /dev/null @@ -1,108 +0,0 @@ -# encoding: utf-8 -# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. - -module Azure::ARM::Insights - module Models - # - # The log profile properties. - # - class LogProfileProperties - - include MsRestAzure - - # @return [String] the resource id of the storage account to which you - # would like to send the Activity Log. - attr_accessor :storage_account_id - - # @return [String] The service bus rule ID of the service bus namespace - # in which you would like to have Event Hubs created for streaming the - # Activity Log. The rule ID is of the format: '{service bus resource - # ID}/authorizationrules/{key name}'. - attr_accessor :service_bus_rule_id - - # @return [Array] List of regions for which Activity Log events - # should be stored or streamed. It is a comma separated list of valid ARM - # locations including the 'global' location. - attr_accessor :locations - - # @return [Array] the categories of the logs. These categories - # are created as is convenient to the user. Some values are: 'Write', - # 'Delete', and/or 'Action.' - attr_accessor :categories - - # @return [RetentionPolicy] the retention policy for the events in the - # log. - attr_accessor :retention_policy - - - # - # Mapper for LogProfileProperties class as Ruby Hash. - # This will be used for serialization/deserialization. - # - def self.mapper() - { - required: false, - serialized_name: 'LogProfileProperties', - type: { - name: 'Composite', - class_name: 'LogProfileProperties', - model_properties: { - storage_account_id: { - required: true, - serialized_name: 'storageAccountId', - type: { - name: 'String' - } - }, - service_bus_rule_id: { - required: false, - serialized_name: 'serviceBusRuleId', - type: { - name: 'String' - } - }, - locations: { - required: true, - serialized_name: 'locations', - type: { - name: 'Sequence', - element: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, - categories: { - required: false, - serialized_name: 'categories', - type: { - name: 'Sequence', - element: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, - retention_policy: { - required: false, - serialized_name: 'retentionPolicy', - type: { - name: 'Composite', - class_name: 'RetentionPolicy' - } - } - } - } - } - end - end - end -end diff --git a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/log_profile_resource.rb b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/log_profile_resource.rb index 53152d1ef2..2561c6b311 100644 --- a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/log_profile_resource.rb +++ b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/log_profile_resource.rb @@ -94,7 +94,7 @@ def self.mapper() } }, storage_account_id: { - required: true, + required: false, serialized_name: 'properties.storageAccountId', type: { name: 'String' diff --git a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/recurrent_schedule.rb b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/recurrent_schedule.rb index 31b17834c9..f20cea79d4 100644 --- a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/recurrent_schedule.rb +++ b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/recurrent_schedule.rb @@ -12,8 +12,8 @@ class RecurrentSchedule include MsRestAzure - # @return [String] the time zone for the hours of the profile. See - # examples of valid timezone are: Dateline Standard Time, UTC-11, + # @return [String] the timezone for the hours of the profile. Some + # examples of valid timezones are: Dateline Standard Time, UTC-11, # Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time # (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain # Standard Time (Mexico), Mountain Standard Time, Central America diff --git a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/service_diagnostic_settings.rb b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/service_diagnostic_settings.rb deleted file mode 100644 index 125868d75f..0000000000 --- a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/service_diagnostic_settings.rb +++ /dev/null @@ -1,107 +0,0 @@ -# encoding: utf-8 -# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. - -module Azure::ARM::Insights - module Models - # - # The diagnostic settings for service. - # - class ServiceDiagnosticSettings - - include MsRestAzure - - # @return [String] The resource ID of the storage account to which you - # would like to send Diagnostic Logs. - attr_accessor :storage_account_id - - # @return [String] The service bus rule ID of the service bus namespace - # in which you would like to have Event Hubs created for streaming - # Diagnostic Logs. The rule ID is of the format: '{service bus resource - # ID}/authorizationrules/{key name}'. - attr_accessor :service_bus_rule_id - - # @return [Array] the list of metric settings. - attr_accessor :metrics - - # @return [Array] the list of logs settings. - attr_accessor :logs - - # @return [String] The workspace ID (resource ID of a Log Analytics - # workspace) for a Log Analytics workspace to which you would like to - # send Diagnostic Logs. Example: - # /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2 - attr_accessor :workspace_id - - - # - # Mapper for ServiceDiagnosticSettings class as Ruby Hash. - # This will be used for serialization/deserialization. - # - def self.mapper() - { - required: false, - serialized_name: 'ServiceDiagnosticSettings', - type: { - name: 'Composite', - class_name: 'ServiceDiagnosticSettings', - model_properties: { - storage_account_id: { - required: false, - serialized_name: 'storageAccountId', - type: { - name: 'String' - } - }, - service_bus_rule_id: { - required: false, - serialized_name: 'serviceBusRuleId', - type: { - name: 'String' - } - }, - metrics: { - required: false, - serialized_name: 'metrics', - type: { - name: 'Sequence', - element: { - required: false, - serialized_name: 'MetricSettingsElementType', - type: { - name: 'Composite', - class_name: 'MetricSettings' - } - } - } - }, - logs: { - required: false, - serialized_name: 'logs', - type: { - name: 'Sequence', - element: { - required: false, - serialized_name: 'LogSettingsElementType', - type: { - name: 'Composite', - class_name: 'LogSettings' - } - } - } - }, - workspace_id: { - required: false, - serialized_name: 'workspaceId', - type: { - name: 'String' - } - } - } - } - } - end - end - end -end diff --git a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/time_window.rb b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/time_window.rb index 31391bf93d..3c14ce5f08 100644 --- a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/time_window.rb +++ b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/models/time_window.rb @@ -12,9 +12,46 @@ class TimeWindow include MsRestAzure - # @return [String] the time zone of the start and end times for the - # profile. See examples of valid timezone ids over here: - # https://msdn.microsoft.com/en-us/library/azure/dn931928.aspx + # @return [String] the timezone of the start and end times for the + # profile. Some examples of valid timezones are: Dateline Standard Time, + # UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard + # Time (Mexico), Pacific Standard Time, US Mountain Standard Time, + # Mountain Standard Time (Mexico), Mountain Standard Time, Central + # America Standard Time, Central Standard Time, Central Standard Time + # (Mexico), Canada Central Standard Time, SA Pacific Standard Time, + # Eastern Standard Time, US Eastern Standard Time, Venezuela Standard + # Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian + # Standard Time, SA Western Standard Time, Pacific SA Standard Time, + # Newfoundland Standard Time, E. South America Standard Time, Argentina + # Standard Time, SA Eastern Standard Time, Greenland Standard Time, + # Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic + # Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco + # Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. + # Europe Standard Time, Central Europe Standard Time, Romance Standard + # Time, Central European Standard Time, W. Central Africa Standard Time, + # Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle + # East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe + # Standard Time, South Africa Standard Time, FLE Standard Time, Turkey + # Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya + # Standard Time, Arabic Standard Time, Arab Standard Time, Belarus + # Standard Time, Russian Standard Time, E. Africa Standard Time, Iran + # Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia + # Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus + # Standard Time, Afghanistan Standard Time, West Asia Standard Time, + # Ekaterinburg Standard Time, Pakistan Standard Time, India Standard + # Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia + # Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, + # Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, + # China Standard Time, North Asia East Standard Time, Singapore Standard + # Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar + # Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk + # Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, + # E. Australia Standard Time, AUS Eastern Standard Time, West Pacific + # Standard Time, Tasmania Standard Time, Magadan Standard Time, + # Vladivostok Standard Time, Russia Time Zone 10, Central Pacific + # Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, + # Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa + # Standard Time, Line Islands Standard Time attr_accessor :time_zone # @return [DateTime] the start time for the profile in ISO 8601 format. diff --git a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/service_diagnostic_settings_operations.rb b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/service_diagnostic_settings_operations.rb index a170bef073..e7a8fbbf90 100644 --- a/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/service_diagnostic_settings_operations.rb +++ b/management/azure_mgmt_insights/lib/generated/azure_mgmt_insights/service_diagnostic_settings_operations.rb @@ -61,7 +61,6 @@ def get_with_http_info(resource_uri, custom_headers = nil) def get_async(resource_uri, custom_headers = nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? api_version = '2015-07-01' - fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} @@ -75,7 +74,7 @@ def get_async(resource_uri, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceUri' => resource_uri,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceUri' => resource_uri}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -113,8 +112,8 @@ def get_async(resource_uri, custom_headers = nil) # Create or update new diagnostic settings for the specified resource. # # @param resource_uri [String] The identifier of the resource. - # @param parameters [ServiceDiagnosticSettings] Parameters supplied to the - # operation. + # @param parameters [ServiceDiagnosticSettingsResource] Parameters supplied to + # the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # @@ -129,8 +128,8 @@ def create_or_update(resource_uri, parameters, custom_headers = nil) # Create or update new diagnostic settings for the specified resource. # # @param resource_uri [String] The identifier of the resource. - # @param parameters [ServiceDiagnosticSettings] Parameters supplied to the - # operation. + # @param parameters [ServiceDiagnosticSettingsResource] Parameters supplied to + # the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # @@ -144,8 +143,8 @@ def create_or_update_with_http_info(resource_uri, parameters, custom_headers = n # Create or update new diagnostic settings for the specified resource. # # @param resource_uri [String] The identifier of the resource. - # @param parameters [ServiceDiagnosticSettings] Parameters supplied to the - # operation. + # @param parameters [ServiceDiagnosticSettingsResource] Parameters supplied to + # the operation. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # @@ -155,7 +154,6 @@ def create_or_update_async(resource_uri, parameters, custom_headers = nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? api_version = '2015-07-01' fail ArgumentError, 'parameters is nil' if parameters.nil? - fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} @@ -167,7 +165,7 @@ def create_or_update_async(resource_uri, parameters, custom_headers = nil) request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = ServiceDiagnosticSettings.mapper() + request_mapper = ServiceDiagnosticSettingsResource.mapper() request_content = @client.serialize(request_mapper, parameters, 'parameters') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil @@ -177,7 +175,7 @@ def create_or_update_async(resource_uri, parameters, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceUri' => resource_uri,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceUri' => resource_uri}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}),