azure_mgmt_service_fabric 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_service_fabric.rb +7 -0
  4. data/lib/generated/azure_mgmt_service_fabric/cluster_versions.rb +737 -0
  5. data/lib/generated/azure_mgmt_service_fabric/clusters.rb +907 -0
  6. data/lib/generated/azure_mgmt_service_fabric/models/available_operation_display.rb +74 -0
  7. data/lib/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb +64 -0
  8. data/lib/generated/azure_mgmt_service_fabric/models/certificate_description.rb +66 -0
  9. data/lib/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb +66 -0
  10. data/lib/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb +55 -0
  11. data/lib/generated/azure_mgmt_service_fabric/models/cluster.rb +343 -0
  12. data/lib/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +94 -0
  13. data/lib/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb +95 -0
  14. data/lib/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb +67 -0
  15. data/lib/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +94 -0
  16. data/lib/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb +204 -0
  17. data/lib/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb +77 -0
  18. data/lib/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb +141 -0
  19. data/lib/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb +65 -0
  20. data/lib/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb +84 -0
  21. data/lib/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb +54 -0
  22. data/lib/generated/azure_mgmt_service_fabric/models/error_model.rb +45 -0
  23. data/lib/generated/azure_mgmt_service_fabric/models/error_model_error.rb +54 -0
  24. data/lib/generated/azure_mgmt_service_fabric/models/node_type_description.rb +170 -0
  25. data/lib/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +99 -0
  26. data/lib/generated/azure_mgmt_service_fabric/models/operation_result.rb +75 -0
  27. data/lib/generated/azure_mgmt_service_fabric/models/provisioning_state.rb +18 -0
  28. data/lib/generated/azure_mgmt_service_fabric/models/resource.rb +94 -0
  29. data/lib/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb +54 -0
  30. data/lib/generated/azure_mgmt_service_fabric/models/settings_section_description.rb +64 -0
  31. data/lib/generated/azure_mgmt_service_fabric/module_definition.rb +8 -0
  32. data/lib/generated/azure_mgmt_service_fabric/operations.rb +213 -0
  33. data/lib/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +137 -0
  34. data/lib/generated/azure_mgmt_service_fabric/version.rb +8 -0
  35. data/lib/generated/azure_mgmt_service_fabric.rb +55 -0
  36. metadata +147 -0
@@ -0,0 +1,94 @@
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::ServiceFabric
7
+ module Models
8
+ #
9
+ # The list results of the ServiceFabric runtime versions
10
+ #
11
+ class ClusterCodeVersionsListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<ClusterCodeVersionsResult>]
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to use for getting the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<ClusterCodeVersionsResult>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [ClusterCodeVersionsListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for ClusterCodeVersionsListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'ClusterCodeVersionsListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'ClusterCodeVersionsListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'ClusterCodeVersionsResultElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'ClusterCodeVersionsResult'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,95 @@
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::ServiceFabric
7
+ module Models
8
+ #
9
+ # The result of the ServiceFabric runtime versions
10
+ #
11
+ class ClusterCodeVersionsResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The identification of the result
16
+ attr_accessor :id
17
+
18
+ # @return [String] The name of the result
19
+ attr_accessor :name
20
+
21
+ # @return [String] The result resource type
22
+ attr_accessor :type
23
+
24
+ # @return [String] The ServiceFabric runtime version of the cluster
25
+ attr_accessor :code_version
26
+
27
+ # @return [String] The date of expiry of support of the version
28
+ attr_accessor :support_expiry_utc
29
+
30
+ # @return [Enum] Cluster operating system. Possible values include:
31
+ # 'Windows', 'Linux'
32
+ attr_accessor :environment
33
+
34
+
35
+ #
36
+ # Mapper for ClusterCodeVersionsResult class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'ClusterCodeVersionsResult',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'ClusterCodeVersionsResult',
46
+ model_properties: {
47
+ id: {
48
+ required: false,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ name: {
55
+ required: false,
56
+ serialized_name: 'name',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ type: {
62
+ required: false,
63
+ serialized_name: 'type',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ code_version: {
69
+ required: false,
70
+ serialized_name: 'properties.codeVersion',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ support_expiry_utc: {
76
+ required: false,
77
+ serialized_name: 'properties.supportExpiryUtc',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ environment: {
83
+ required: false,
84
+ serialized_name: 'properties.environment',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,67 @@
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::ServiceFabric
7
+ module Models
8
+ #
9
+ # Defines a health policy used to evaluate the health of the cluster or of
10
+ # a cluster node.
11
+ #
12
+ class ClusterHealthPolicy
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Integer] The maximum allowed percentage of unhealthy nodes
17
+ # before reporting an error. For example, to allow 10% of nodes to be
18
+ # unhealthy, this value would be 10.
19
+ attr_accessor :max_percent_unhealthy_nodes
20
+
21
+ # @return [Integer] The maximum allowed percentage of unhealthy
22
+ # applications before reporting an error. For example, to allow 10% of
23
+ # applications to be unhealthy, this value would be 10.
24
+ attr_accessor :max_percent_unhealthy_applications
25
+
26
+
27
+ #
28
+ # Mapper for ClusterHealthPolicy class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'ClusterHealthPolicy',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ClusterHealthPolicy',
38
+ model_properties: {
39
+ max_percent_unhealthy_nodes: {
40
+ required: false,
41
+ serialized_name: 'maxPercentUnhealthyNodes',
42
+ constraints: {
43
+ InclusiveMaximum: 100,
44
+ InclusiveMinimum: 0
45
+ },
46
+ type: {
47
+ name: 'Number'
48
+ }
49
+ },
50
+ max_percent_unhealthy_applications: {
51
+ required: false,
52
+ serialized_name: 'maxPercentUnhealthyApplications',
53
+ constraints: {
54
+ InclusiveMaximum: 100,
55
+ InclusiveMinimum: 0
56
+ },
57
+ type: {
58
+ name: 'Number'
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,94 @@
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::ServiceFabric
7
+ module Models
8
+ #
9
+ # Cluster list results
10
+ #
11
+ class ClusterListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<Cluster>]
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to use for getting the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<Cluster>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [ClusterListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for ClusterListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'ClusterListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'ClusterListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'ClusterElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'Cluster'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,204 @@
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::ServiceFabric
7
+ module Models
8
+ #
9
+ # Cluster update request
10
+ #
11
+ class ClusterUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Enum] This level is used to set the number of replicas of the
16
+ # system services. Possible values include: 'Bronze', 'Silver', 'Gold'
17
+ attr_accessor :reliability_level
18
+
19
+ # @return [Enum] Cluster upgrade mode indicates if fabric upgrade is
20
+ # initiated automatically by the system or not. Possible values include:
21
+ # 'Automatic', 'Manual'
22
+ attr_accessor :upgrade_mode
23
+
24
+ # @return [String] The ServiceFabric code version, if set it, please make
25
+ # sure you have set upgradeMode to Manual, otherwise ,it will fail, if
26
+ # you are using PUT new cluster, you can get the version by using
27
+ # ClusterVersions_List, if you are updating existing cluster, you can get
28
+ # the availableClusterVersions from Clusters_Get
29
+ attr_accessor :cluster_code_version
30
+
31
+ # @return [CertificateDescription] This primay certificate will be used
32
+ # as cluster node to node security, SSL certificate for cluster
33
+ # management endpoint and default admin client, the certificate should
34
+ # exist in the virtual machine scale sets or Azure key vault, before you
35
+ # add it. It will override original value
36
+ attr_accessor :certificate
37
+
38
+ # @return [Array<ClientCertificateThumbprint>] The client thumbprint
39
+ # details, it is used for client access for cluster operation, it will
40
+ # override existing collection
41
+ attr_accessor :client_certificate_thumbprints
42
+
43
+ # @return [Array<ClientCertificateCommonName>] List of client
44
+ # certificates to whitelist based on common names.
45
+ attr_accessor :client_certificate_common_names
46
+
47
+ # @return [Array<SettingsSectionDescription>] List of custom fabric
48
+ # settings to configure the cluster, Note, it will overwrite existing
49
+ # collection
50
+ attr_accessor :fabric_settings
51
+
52
+ # @return [CertificateDescription] Certificate for the reverse proxy
53
+ attr_accessor :reverse_proxy_certificate
54
+
55
+ # @return [Array<NodeTypeDescription>] The list of nodetypes that make up
56
+ # the cluster, it will override
57
+ attr_accessor :node_types
58
+
59
+ # @return [ClusterUpgradePolicy] The policy to use when upgrading the
60
+ # cluster.
61
+ attr_accessor :upgrade_description
62
+
63
+ # @return [Hash{String => String}] Cluster update parameters
64
+ attr_accessor :tags
65
+
66
+
67
+ #
68
+ # Mapper for ClusterUpdateParameters class as Ruby Hash.
69
+ # This will be used for serialization/deserialization.
70
+ #
71
+ def self.mapper()
72
+ {
73
+ required: false,
74
+ serialized_name: 'ClusterUpdateParameters',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'ClusterUpdateParameters',
78
+ model_properties: {
79
+ reliability_level: {
80
+ required: false,
81
+ serialized_name: 'properties.reliabilityLevel',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ upgrade_mode: {
87
+ required: false,
88
+ serialized_name: 'properties.upgradeMode',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ cluster_code_version: {
94
+ required: false,
95
+ serialized_name: 'properties.clusterCodeVersion',
96
+ type: {
97
+ name: 'String'
98
+ }
99
+ },
100
+ certificate: {
101
+ required: false,
102
+ serialized_name: 'properties.certificate',
103
+ type: {
104
+ name: 'Composite',
105
+ class_name: 'CertificateDescription'
106
+ }
107
+ },
108
+ client_certificate_thumbprints: {
109
+ required: false,
110
+ serialized_name: 'properties.clientCertificateThumbprints',
111
+ type: {
112
+ name: 'Sequence',
113
+ element: {
114
+ required: false,
115
+ serialized_name: 'ClientCertificateThumbprintElementType',
116
+ type: {
117
+ name: 'Composite',
118
+ class_name: 'ClientCertificateThumbprint'
119
+ }
120
+ }
121
+ }
122
+ },
123
+ client_certificate_common_names: {
124
+ required: false,
125
+ serialized_name: 'properties.clientCertificateCommonNames',
126
+ type: {
127
+ name: 'Sequence',
128
+ element: {
129
+ required: false,
130
+ serialized_name: 'ClientCertificateCommonNameElementType',
131
+ type: {
132
+ name: 'Composite',
133
+ class_name: 'ClientCertificateCommonName'
134
+ }
135
+ }
136
+ }
137
+ },
138
+ fabric_settings: {
139
+ required: false,
140
+ serialized_name: 'properties.fabricSettings',
141
+ type: {
142
+ name: 'Sequence',
143
+ element: {
144
+ required: false,
145
+ serialized_name: 'SettingsSectionDescriptionElementType',
146
+ type: {
147
+ name: 'Composite',
148
+ class_name: 'SettingsSectionDescription'
149
+ }
150
+ }
151
+ }
152
+ },
153
+ reverse_proxy_certificate: {
154
+ required: false,
155
+ serialized_name: 'properties.reverseProxyCertificate',
156
+ type: {
157
+ name: 'Composite',
158
+ class_name: 'CertificateDescription'
159
+ }
160
+ },
161
+ node_types: {
162
+ required: false,
163
+ serialized_name: 'properties.nodeTypes',
164
+ type: {
165
+ name: 'Sequence',
166
+ element: {
167
+ required: false,
168
+ serialized_name: 'NodeTypeDescriptionElementType',
169
+ type: {
170
+ name: 'Composite',
171
+ class_name: 'NodeTypeDescription'
172
+ }
173
+ }
174
+ }
175
+ },
176
+ upgrade_description: {
177
+ required: false,
178
+ serialized_name: 'properties.upgradeDescription',
179
+ type: {
180
+ name: 'Composite',
181
+ class_name: 'ClusterUpgradePolicy'
182
+ }
183
+ },
184
+ tags: {
185
+ required: false,
186
+ serialized_name: 'tags',
187
+ type: {
188
+ name: 'Dictionary',
189
+ value: {
190
+ required: false,
191
+ serialized_name: 'StringElementType',
192
+ type: {
193
+ name: 'String'
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+ }
200
+ }
201
+ end
202
+ end
203
+ end
204
+ end
@@ -0,0 +1,77 @@
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::ServiceFabric
7
+ module Models
8
+ #
9
+ # Delta health policy for the cluster
10
+ #
11
+ class ClusterUpgradeDeltaHealthPolicy
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Additional unhealthy nodes percentage
16
+ attr_accessor :max_percent_delta_unhealthy_nodes
17
+
18
+ # @return [Integer] Additional unhealthy nodes percentage per upgrade
19
+ # domain
20
+ attr_accessor :max_percent_upgrade_domain_delta_unhealthy_nodes
21
+
22
+ # @return [Integer] Additional unhealthy applications percentage
23
+ attr_accessor :max_percent_delta_unhealthy_applications
24
+
25
+
26
+ #
27
+ # Mapper for ClusterUpgradeDeltaHealthPolicy class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'ClusterUpgradeDeltaHealthPolicy',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'ClusterUpgradeDeltaHealthPolicy',
37
+ model_properties: {
38
+ max_percent_delta_unhealthy_nodes: {
39
+ required: true,
40
+ serialized_name: 'maxPercentDeltaUnhealthyNodes',
41
+ constraints: {
42
+ InclusiveMaximum: 100,
43
+ InclusiveMinimum: 0
44
+ },
45
+ type: {
46
+ name: 'Number'
47
+ }
48
+ },
49
+ max_percent_upgrade_domain_delta_unhealthy_nodes: {
50
+ required: true,
51
+ serialized_name: 'maxPercentUpgradeDomainDeltaUnhealthyNodes',
52
+ constraints: {
53
+ InclusiveMaximum: 100,
54
+ InclusiveMinimum: 0
55
+ },
56
+ type: {
57
+ name: 'Number'
58
+ }
59
+ },
60
+ max_percent_delta_unhealthy_applications: {
61
+ required: true,
62
+ serialized_name: 'maxPercentDeltaUnhealthyApplications',
63
+ constraints: {
64
+ InclusiveMaximum: 100,
65
+ InclusiveMinimum: 0
66
+ },
67
+ type: {
68
+ name: 'Number'
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end