Class: Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResource

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb

Overview

The application resource.

Instance Attribute Summary collapse

Attributes inherited from ProxyResource

#id, #location, #name, #type

Class Method Summary collapse

Instance Attribute Details

#maximum_nodesInteger

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 .

Returns:

  • (Integer)

    The maximum number of nodes where Service Fabric will



37
38
39
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 37

def maximum_nodes
  @maximum_nodes
end

#metricsArray<ApplicationMetricDescription>

Returns:



43
44
45
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 43

def metrics
  @metrics
end

#minimum_nodesInteger

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.

Returns:

  • (Integer)

    The minimum number of nodes where Service Fabric will



30
31
32
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 30

def minimum_nodes
  @minimum_nodes
end

#parametersArray<ApplicationParameter>

Returns:



19
20
21
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 19

def parameters
  @parameters
end

#provisioning_stateString

only appears in the response

Returns:

  • (String)

    The current deployment or provisioning state, which



47
48
49
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 47

def provisioning_state
  @provisioning_state
end

#remove_application_capacityBoolean

Returns The version of the application type.

Returns:

  • (Boolean)

    The version of the application type



40
41
42
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 40

def remove_application_capacity
  @remove_application_capacity
end

#type_nameString

Returns:

  • (String)


50
51
52
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 50

def type_name
  @type_name
end

#type_versionString

Returns:

  • (String)


16
17
18
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 16

def type_version
  @type_version
end

#upgrade_policyApplicationUpgradePolicy



22
23
24
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 22

def upgrade_policy
  @upgrade_policy
end

Class Method Details

.mapperObject

Mapper for ApplicationResource class as Ruby Hash. This will be used for serialization/deserialization.



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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb', line 57

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApplicationResource',
    type: {
      name: 'Composite',
      class_name: 'ApplicationResource',
      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'
                }
            }
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        type_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.typeName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end