Class: Azure::ARM::Monitor::Models::AutoscaleSettingResourcePatch
- Inherits:
-
Object
- Object
- Azure::ARM::Monitor::Models::AutoscaleSettingResourcePatch
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb
Overview
The autoscale setting object for patch operations.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
is enabled for the resource.
-
#name ⇒ String
The name of the autoscale setting.
-
#notifications ⇒ Array<AutoscaleNotification>
The collection of notifications.
-
#profiles ⇒ Array<AutoscaleProfile>
profiles that specify different scaling parameters for different time periods.
-
#tags ⇒ Hash{String => String}
Resource tags.
-
#target_resource_uri ⇒ String
autoscale setting should be added to.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AutoscaleSettingResourcePatch class as Ruby Hash.
Instance Attribute Details
#enabled ⇒ Boolean
is enabled for the resource. The default value is ‘true’. Default value: true .
30 31 32 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb', line 30 def enabled @enabled end |
#name ⇒ String
Returns the name of the autoscale setting.
33 34 35 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb', line 33 def name @name end |
#notifications ⇒ Array<AutoscaleNotification>
Returns the collection of notifications.
25 26 27 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb', line 25 def notifications @notifications end |
#profiles ⇒ Array<AutoscaleProfile>
profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.
22 23 24 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb', line 22 def profiles @profiles end |
#tags ⇒ Hash{String => String}
Returns Resource tags.
17 18 19 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb', line 17 def @tags end |
#target_resource_uri ⇒ String
autoscale setting should be added to.
37 38 39 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb', line 37 def target_resource_uri @target_resource_uri end |
Class Method Details
.mapper ⇒ Object
Mapper for AutoscaleSettingResourcePatch 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 122 123 124 |
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb', line 44 def self.mapper() { required: false, serialized_name: 'AutoscaleSettingResourcePatch', type: { name: 'Composite', class_name: 'AutoscaleSettingResourcePatch', model_properties: { tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, profiles: { required: true, serialized_name: 'properties.profiles', constraints: { MaxItems: 20 }, type: { name: 'Sequence', element: { required: false, serialized_name: 'AutoscaleProfileElementType', type: { name: 'Composite', class_name: 'AutoscaleProfile' } } } }, notifications: { required: false, serialized_name: 'properties.notifications', type: { name: 'Sequence', element: { required: false, serialized_name: 'AutoscaleNotificationElementType', type: { name: 'Composite', class_name: 'AutoscaleNotification' } } } }, enabled: { required: false, serialized_name: 'properties.enabled', default_value: true, type: { name: 'Boolean' } }, name: { required: false, serialized_name: 'properties.name', type: { name: 'String' } }, target_resource_uri: { required: false, serialized_name: 'properties.targetResourceUri', type: { name: 'String' } } } } } end |