Class: Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceUpdate
- Inherits:
-
ProxyResource
- Object
- ProxyResource
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceUpdate
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb
Overview
The application resource for patch operations.
Instance Attribute Summary collapse
-
#maximum_nodes ⇒ Integer
reserve capacity for this application.
- #metrics ⇒ Array<ApplicationMetricDescription>
-
#minimum_nodes ⇒ Integer
reserve capacity for this application.
- #parameters ⇒ Array<ApplicationParameter>
-
#remove_application_capacity ⇒ Boolean
The version of the application type.
- #type_version ⇒ String
- #upgrade_policy ⇒ ApplicationUpgradePolicy
Attributes inherited from ProxyResource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ApplicationResourceUpdate class as Ruby Hash.
Instance Attribute Details
#maximum_nodes ⇒ Integer
reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. Default value: 0 .
37 38 39 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb', line 37 def maximum_nodes @maximum_nodes end |
#metrics ⇒ Array<ApplicationMetricDescription>
43 44 45 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb', line 43 def metrics @metrics end |
#minimum_nodes ⇒ Integer
reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property.
30 31 32 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb', line 30 def minimum_nodes @minimum_nodes end |
#parameters ⇒ Array<ApplicationParameter>
19 20 21 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb', line 19 def parameters @parameters end |
#remove_application_capacity ⇒ Boolean
40 41 42 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb', line 40 def remove_application_capacity @remove_application_capacity end |
#type_version ⇒ String
16 17 18 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb', line 16 def type_version @type_version end |
#upgrade_policy ⇒ ApplicationUpgradePolicy
22 23 24 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb', line 22 def upgrade_policy @upgrade_policy end |
Class Method Details
.mapper ⇒ Object
Mapper for ApplicationResourceUpdate class as Ruby Hash. This will be used for serialization/deserialization.
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 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb', line 50 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ApplicationResourceUpdate', type: { name: 'Composite', class_name: 'ApplicationResourceUpdate', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, type_version: { client_side_validation: true, required: false, serialized_name: 'properties.typeVersion', type: { name: 'String' } }, parameters: { client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ApplicationParameterElementType', type: { name: 'Composite', class_name: 'ApplicationParameter' } } } }, upgrade_policy: { client_side_validation: true, required: false, serialized_name: 'properties.upgradePolicy', type: { name: 'Composite', class_name: 'ApplicationUpgradePolicy' } }, minimum_nodes: { client_side_validation: true, required: false, serialized_name: 'properties.minimumNodes', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } }, maximum_nodes: { client_side_validation: true, required: false, serialized_name: 'properties.maximumNodes', default_value: 0, constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } }, remove_application_capacity: { client_side_validation: true, required: false, serialized_name: 'properties.removeApplicationCapacity', type: { name: 'Boolean' } }, metrics: { client_side_validation: true, required: false, serialized_name: 'properties.metrics', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ApplicationMetricDescriptionElementType', type: { name: 'Composite', class_name: 'ApplicationMetricDescription' } } } } } } } end |