azure_mgmt_service_fabric 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-09-01/generated/azure_mgmt_service_fabric.rb +55 -0
  3. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/cluster_versions.rb +8 -8
  4. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/clusters.rb +12 -12
  5. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/available_operation_display.rb +1 -1
  6. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/azure_active_directory.rb +1 -1
  7. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/certificate_description.rb +1 -1
  8. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/client_certificate_common_name.rb +1 -1
  9. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb +1 -1
  10. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/cluster.rb +1 -1
  11. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +1 -1
  12. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb +1 -1
  13. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/cluster_health_policy.rb +1 -1
  14. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/cluster_list_result.rb +1 -1
  15. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/cluster_update_parameters.rb +1 -1
  16. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb +1 -1
  17. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb +1 -1
  18. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/cluster_version_details.rb +1 -1
  19. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb +1 -1
  20. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/endpoint_range_description.rb +1 -1
  21. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/error_model.rb +1 -1
  22. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/error_model_error.rb +1 -1
  23. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/node_type_description.rb +1 -1
  24. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/operation_list_result.rb +1 -1
  25. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/operation_result.rb +1 -1
  26. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/provisioning_state.rb +1 -1
  27. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/resource.rb +1 -1
  28. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/settings_parameter_description.rb +1 -1
  29. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/models/settings_section_description.rb +1 -1
  30. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/module_definition.rb +3 -2
  31. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/operations.rb +3 -3
  32. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/service_fabric_management_client.rb +3 -3
  33. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_service_fabric/version.rb +2 -2
  34. data/lib/azure_mgmt_service_fabric.rb +2 -3
  35. data/lib/module_definition.rb +7 -0
  36. data/lib/profiles/common/configurable.rb +73 -0
  37. data/lib/profiles/common/default.rb +68 -0
  38. data/lib/profiles/latest/modules/servicefabric_profile_module.rb +146 -0
  39. data/lib/profiles/latest/servicefabric_latest_profile_client.rb +33 -0
  40. data/lib/profiles/latest/servicefabric_module_definition.rb +9 -0
  41. data/lib/version.rb +7 -0
  42. metadata +41 -34
  43. data/lib/generated/azure_mgmt_service_fabric.rb +0 -55
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f61671f154da49d8ae06d22626e9ec94d7c37480
4
- data.tar.gz: 81ad8ef9639fad9c18bd2ff9fb7804f0dd466cad
3
+ metadata.gz: b1832f3f62d691bee99ed7fd8f02108e2a6c9af1
4
+ data.tar.gz: 855fe7b03b7bdc34f7c85389f1195df4d1284e1f
5
5
  SHA512:
6
- metadata.gz: b115d6b4d39a854e8cd4813655de62acbd470f653734db62860908578cab567cc020ae298a414a1a06eb078bbeb62e38b0edec5f25426e865660669a0b27d738
7
- data.tar.gz: bea80d2efa8b79fddccc56e270c16717bcc84bfa83cf79e1fd1946dd8feb8ca24e6f4337fb45c847b91aa87749be27b4037529ba2cfc201dce7fdeaf781d0120
6
+ metadata.gz: f04486f19cdf944f20fd15badd4ed9b2f49eb73c566d2b63c67382327bb9d81573c9ff36633c942544cb0c37ef710a77e3590de7df8f3f9612b3699bfb29af07
7
+ data.tar.gz: 6ba158ecdb29356e0b2902265d613f40133f71a3eda1302c864b70d647ef45a9c549ff464ba22ad7bbdb928afb67b43f088307ecc3253bb3cd32b508a5cdfc52
@@ -0,0 +1,55 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2016-09-01/generated/azure_mgmt_service_fabric/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
23
+ autoload :Clusters, '2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb'
24
+ autoload :ClusterVersions, '2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb'
25
+ autoload :Operations, '2016-09-01/generated/azure_mgmt_service_fabric/operations.rb'
26
+ autoload :ServiceFabricManagementClient, '2016-09-01/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb'
27
+
28
+ module Models
29
+ autoload :ClusterUpgradePolicy, '2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb'
30
+ autoload :ClusterVersionDetails, '2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb'
31
+ autoload :DiagnosticsStorageAccountConfig, '2016-09-01/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb'
32
+ autoload :ClusterCodeVersionsListResult, '2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb'
33
+ autoload :AzureActiveDirectory, '2016-09-01/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb'
34
+ autoload :SettingsParameterDescription, '2016-09-01/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb'
35
+ autoload :ClusterUpdateParameters, '2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb'
36
+ autoload :EndpointRangeDescription, '2016-09-01/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb'
37
+ autoload :NodeTypeDescription, '2016-09-01/generated/azure_mgmt_service_fabric/models/node_type_description.rb'
38
+ autoload :ClientCertificateCommonName, '2016-09-01/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb'
39
+ autoload :ClusterListResult, '2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb'
40
+ autoload :ClusterUpgradeDeltaHealthPolicy, '2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb'
41
+ autoload :AvailableOperationDisplay, '2016-09-01/generated/azure_mgmt_service_fabric/models/available_operation_display.rb'
42
+ autoload :CertificateDescription, '2016-09-01/generated/azure_mgmt_service_fabric/models/certificate_description.rb'
43
+ autoload :OperationResult, '2016-09-01/generated/azure_mgmt_service_fabric/models/operation_result.rb'
44
+ autoload :ClientCertificateThumbprint, '2016-09-01/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb'
45
+ autoload :OperationListResult, '2016-09-01/generated/azure_mgmt_service_fabric/models/operation_list_result.rb'
46
+ autoload :ClusterCodeVersionsResult, '2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb'
47
+ autoload :ErrorModelError, '2016-09-01/generated/azure_mgmt_service_fabric/models/error_model_error.rb'
48
+ autoload :ClusterHealthPolicy, '2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb'
49
+ autoload :ErrorModel, '2016-09-01/generated/azure_mgmt_service_fabric/models/error_model.rb'
50
+ autoload :SettingsSectionDescription, '2016-09-01/generated/azure_mgmt_service_fabric/models/settings_section_description.rb'
51
+ autoload :Resource, '2016-09-01/generated/azure_mgmt_service_fabric/models/resource.rb'
52
+ autoload :Cluster, '2016-09-01/generated/azure_mgmt_service_fabric/models/cluster.rb'
53
+ autoload :ProvisioningState, '2016-09-01/generated/azure_mgmt_service_fabric/models/provisioning_state.rb'
54
+ end
55
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  #
8
8
  # ClusterVersions
9
9
  #
@@ -98,7 +98,7 @@ module Azure::ARM::ServiceFabric
98
98
  if status_code == 200
99
99
  begin
100
100
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
101
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterCodeVersionsListResult.mapper()
101
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult.mapper()
102
102
  result.body = @client.deserialize(result_mapper, parsed_response)
103
103
  rescue Exception => e
104
104
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -195,7 +195,7 @@ module Azure::ARM::ServiceFabric
195
195
  if status_code == 200
196
196
  begin
197
197
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
198
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterCodeVersionsListResult.mapper()
198
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult.mapper()
199
199
  result.body = @client.deserialize(result_mapper, parsed_response)
200
200
  rescue Exception => e
201
201
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -296,7 +296,7 @@ module Azure::ARM::ServiceFabric
296
296
  if status_code == 200
297
297
  begin
298
298
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
299
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterCodeVersionsResult.mapper()
299
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsResult.mapper()
300
300
  result.body = @client.deserialize(result_mapper, parsed_response)
301
301
  rescue Exception => e
302
302
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -390,7 +390,7 @@ module Azure::ARM::ServiceFabric
390
390
  if status_code == 200
391
391
  begin
392
392
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
393
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterCodeVersionsListResult.mapper()
393
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult.mapper()
394
394
  result.body = @client.deserialize(result_mapper, parsed_response)
395
395
  rescue Exception => e
396
396
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -477,7 +477,7 @@ module Azure::ARM::ServiceFabric
477
477
  if status_code == 200
478
478
  begin
479
479
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
480
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterCodeVersionsListResult.mapper()
480
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult.mapper()
481
481
  result.body = @client.deserialize(result_mapper, parsed_response)
482
482
  rescue Exception => e
483
483
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -564,7 +564,7 @@ module Azure::ARM::ServiceFabric
564
564
  if status_code == 200
565
565
  begin
566
566
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
567
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterCodeVersionsListResult.mapper()
567
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult.mapper()
568
568
  result.body = @client.deserialize(result_mapper, parsed_response)
569
569
  rescue Exception => e
570
570
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -651,7 +651,7 @@ module Azure::ARM::ServiceFabric
651
651
  if status_code == 200
652
652
  begin
653
653
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
654
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterCodeVersionsListResult.mapper()
654
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult.mapper()
655
655
  result.body = @client.deserialize(result_mapper, parsed_response)
656
656
  rescue Exception => e
657
657
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  #
8
8
  # Clusters
9
9
  #
@@ -60,7 +60,7 @@ module Azure::ARM::ServiceFabric
60
60
  promise = promise.then do |response|
61
61
  # Defining deserialization method.
62
62
  deserialize_method = lambda do |parsed_response|
63
- result_mapper = Azure::ARM::ServiceFabric::Models::Cluster.mapper()
63
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster.mapper()
64
64
  parsed_response = @client.deserialize(result_mapper, parsed_response)
65
65
  end
66
66
 
@@ -152,7 +152,7 @@ module Azure::ARM::ServiceFabric
152
152
  if status_code == 200
153
153
  begin
154
154
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
155
- result_mapper = Azure::ARM::ServiceFabric::Models::Cluster.mapper()
155
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster.mapper()
156
156
  result.body = @client.deserialize(result_mapper, parsed_response)
157
157
  rescue Exception => e
158
158
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -200,7 +200,7 @@ module Azure::ARM::ServiceFabric
200
200
  promise = promise.then do |response|
201
201
  # Defining deserialization method.
202
202
  deserialize_method = lambda do |parsed_response|
203
- result_mapper = Azure::ARM::ServiceFabric::Models::Cluster.mapper()
203
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster.mapper()
204
204
  parsed_response = @client.deserialize(result_mapper, parsed_response)
205
205
  end
206
206
 
@@ -371,7 +371,7 @@ module Azure::ARM::ServiceFabric
371
371
  if status_code == 200
372
372
  begin
373
373
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
374
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterListResult.mapper()
374
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterListResult.mapper()
375
375
  result.body = @client.deserialize(result_mapper, parsed_response)
376
376
  rescue Exception => e
377
377
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -454,7 +454,7 @@ module Azure::ARM::ServiceFabric
454
454
  if status_code == 200
455
455
  begin
456
456
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
457
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterListResult.mapper()
457
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterListResult.mapper()
458
458
  result.body = @client.deserialize(result_mapper, parsed_response)
459
459
  rescue Exception => e
460
460
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -535,7 +535,7 @@ module Azure::ARM::ServiceFabric
535
535
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
536
536
 
537
537
  # Serialize Request
538
- request_mapper = Azure::ARM::ServiceFabric::Models::ClusterUpdateParameters.mapper()
538
+ request_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpdateParameters.mapper()
539
539
  request_content = @client.serialize(request_mapper, parameters)
540
540
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
541
541
 
@@ -567,7 +567,7 @@ module Azure::ARM::ServiceFabric
567
567
  if status_code == 200
568
568
  begin
569
569
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
570
- result_mapper = Azure::ARM::ServiceFabric::Models::Cluster.mapper()
570
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster.mapper()
571
571
  result.body = @client.deserialize(result_mapper, parsed_response)
572
572
  rescue Exception => e
573
573
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -642,7 +642,7 @@ module Azure::ARM::ServiceFabric
642
642
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
643
643
 
644
644
  # Serialize Request
645
- request_mapper = Azure::ARM::ServiceFabric::Models::Cluster.mapper()
645
+ request_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster.mapper()
646
646
  request_content = @client.serialize(request_mapper, parameters)
647
647
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
648
648
 
@@ -674,7 +674,7 @@ module Azure::ARM::ServiceFabric
674
674
  if status_code == 200
675
675
  begin
676
676
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
677
- result_mapper = Azure::ARM::ServiceFabric::Models::Cluster.mapper()
677
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster.mapper()
678
678
  result.body = @client.deserialize(result_mapper, parsed_response)
679
679
  rescue Exception => e
680
680
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -761,7 +761,7 @@ module Azure::ARM::ServiceFabric
761
761
  if status_code == 200
762
762
  begin
763
763
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
764
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterListResult.mapper()
764
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterListResult.mapper()
765
765
  result.body = @client.deserialize(result_mapper, parsed_response)
766
766
  rescue Exception => e
767
767
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -848,7 +848,7 @@ module Azure::ARM::ServiceFabric
848
848
  if status_code == 200
849
849
  begin
850
850
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
851
- result_mapper = Azure::ARM::ServiceFabric::Models::ClusterListResult.mapper()
851
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterListResult.mapper()
852
852
  result.body = @client.deserialize(result_mapper, parsed_response)
853
853
  rescue Exception => e
854
854
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Operation supported by ServiceFabric resource provider
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # The settings to enable AAD authentication on the cluster
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Certificate details
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Client certificate details using common name
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Client certificate details using thumbprint
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # The cluster resource
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # The list results of the ServiceFabric runtime versions
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # The result of the ServiceFabric runtime versions
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Defines a health policy used to evaluate the health of the cluster or of
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Cluster list results
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Cluster update request
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Delta health policy for the cluster
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Cluster upgrade policy
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # The detail of the ServiceFabric runtime version result
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Diagnostics storage account config
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Port range details
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # The structure of the error
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # The error detail
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Describes a node type in the cluster, each node type represents sub set
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Result of the request to list ServiceFabric operations. It contains a
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Available operation list result
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # Defines values for ProvisioningState
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # The resource model definition.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # ServiceFabric settings under sections
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  module Models
8
8
  #
9
9
  # ServiceFabric section settings
@@ -4,5 +4,6 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure end
7
- module Azure::ARM end
8
- module Azure::ARM::ServiceFabric end
7
+ module Azure::ServiceFabric end
8
+ module Azure::ServiceFabric::Mgmt end
9
+ module Azure::ServiceFabric::Mgmt::V2016_09_01 end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  #
8
8
  # Operations
9
9
  #
@@ -89,7 +89,7 @@ module Azure::ARM::ServiceFabric
89
89
  if status_code == 200
90
90
  begin
91
91
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
92
- result_mapper = Azure::ARM::ServiceFabric::Models::OperationListResult.mapper()
92
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationListResult.mapper()
93
93
  result.body = @client.deserialize(result_mapper, parsed_response)
94
94
  rescue Exception => e
95
95
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -176,7 +176,7 @@ module Azure::ARM::ServiceFabric
176
176
  if status_code == 200
177
177
  begin
178
178
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
179
- result_mapper = Azure::ARM::ServiceFabric::Models::OperationListResult.mapper()
179
+ result_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationListResult.mapper()
180
180
  result.body = @client.deserialize(result_mapper, parsed_response)
181
181
  rescue Exception => e
182
182
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
@@ -128,8 +128,8 @@ module Azure::ARM::ServiceFabric
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_service_fabric'
131
- if defined? Azure::ARM::ServiceFabric::VERSION
132
- sdk_information = "#{sdk_information}/#{Azure::ARM::ServiceFabric::VERSION}"
131
+ if defined? Azure::ServiceFabric::Mgmt::V2016_09_01::VERSION
132
+ sdk_information = "#{sdk_information}/#{Azure::ServiceFabric::Mgmt::V2016_09_01::VERSION}"
133
133
  end
134
134
  add_user_agent_information(sdk_information)
135
135
  end
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServiceFabric
7
- VERSION = '0.14.0'
6
+ module Azure::ServiceFabric::Mgmt::V2016_09_01
7
+ VERSION = '0.15.0'
8
8
  end
@@ -2,6 +2,5 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require 'generated/azure_mgmt_service_fabric'
6
-
7
-
5
+ require '2016-09-01/generated/azure_mgmt_service_fabric'
6
+ require 'profiles/latest/servicefabric_latest_profile_client'
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::ServiceFabric end
7
+ module Azure::ServiceFabric::Mgmt end
@@ -0,0 +1,73 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ARM
6
+ # The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
7
+ module Configurable
8
+ # @return [String] Azure tenant id (also known as domain).
9
+ attr_accessor :tenant_id
10
+
11
+ # @return [String] Azure client id.
12
+ attr_accessor :client_id
13
+
14
+ # @return [String] Azure secret key.
15
+ attr_accessor :client_secret
16
+
17
+ # @return [String] Azure subscription id.
18
+ attr_accessor :subscription_id
19
+
20
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
+ attr_accessor :active_directory_settings
22
+
23
+ # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
+ attr_accessor :credentials
25
+
26
+ class << self
27
+ #
28
+ # List of configurable keys for {Azure::ARM::Client}.
29
+ # @return [Array] of option keys.
30
+ #
31
+ def keys
32
+ @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
33
+ end
34
+ end
35
+
36
+ #
37
+ # Set configuration options using a block.
38
+ #
39
+ def configure
40
+ yield self
41
+ end
42
+
43
+ #
44
+ # Resets the configurable options to provided options or defaults.
45
+ # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
+ #
47
+ def reset!(options = {})
48
+ Azure::ARM::Configurable.keys.each do |key|
49
+ default_value = Azure::ARM::Default.options[key]
50
+ instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
+ end
52
+
53
+ self
54
+ end
55
+
56
+ def config
57
+ self
58
+ end
59
+
60
+ private
61
+
62
+ #
63
+ # configures configurable options to default values
64
+ #
65
+ def setup_options
66
+ opts = {}
67
+ Azure::ARM::Configurable.keys.map do |key|
68
+ opts[key] = Azure::ARM::Default.options[key]
69
+ end
70
+ opts
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ARM
6
+ # Default configuration options for {Azure::ARM.Client}
7
+ module Default
8
+ class << self
9
+ #
10
+ # Default Azure Tenant Id.
11
+ # @return [String] Azure Tenant Id.
12
+ #
13
+ def tenant_id
14
+ ENV['AZURE_TENANT_ID']
15
+ end
16
+
17
+ #
18
+ # Default Azure Client Id.
19
+ # @return [String] Azure Client Id.
20
+ #
21
+ def client_id
22
+ ENV['AZURE_CLIENT_ID']
23
+ end
24
+
25
+ #
26
+ # Default Azure Client Secret.
27
+ # @return [String] Azure Client Secret.
28
+ #
29
+ def client_secret
30
+ ENV['AZURE_CLIENT_SECRET']
31
+ end
32
+
33
+ #
34
+ # Default Azure Subscription Id.
35
+ # @return [String] Azure Subscription Id.
36
+ #
37
+ def subscription_id
38
+ ENV['AZURE_SUBSCRIPTION_ID']
39
+ end
40
+
41
+ #
42
+ # Default Azure credentials to authorize HTTP requests made by the service client.
43
+ # @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
44
+ #
45
+ def credentials
46
+ MsRest::TokenCredentials.new(
47
+ MsRestAzure::ApplicationTokenProvider.new(
48
+ self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
49
+ end
50
+
51
+ #
52
+ # Default Azure Active Directory Service Settings.
53
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
54
+ #
55
+ def active_directory_settings
56
+ MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
57
+ end
58
+
59
+ #
60
+ # Configuration options.
61
+ # @return [Hash] Configuration options.
62
+ #
63
+ def options
64
+ Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,146 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_service_fabric'
6
+
7
+ module Azure::ServiceFabric::Profiles::Latest::Mgmt
8
+ Clusters = Azure::ServiceFabric::Mgmt::V2016_09_01::Clusters
9
+ ClusterVersions = Azure::ServiceFabric::Mgmt::V2016_09_01::ClusterVersions
10
+ Operations = Azure::ServiceFabric::Mgmt::V2016_09_01::Operations
11
+
12
+ module Models
13
+ ClusterUpgradePolicy = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradePolicy
14
+ ClusterVersionDetails = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterVersionDetails
15
+ DiagnosticsStorageAccountConfig = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::DiagnosticsStorageAccountConfig
16
+ ClusterCodeVersionsListResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult
17
+ AzureActiveDirectory = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::AzureActiveDirectory
18
+ SettingsParameterDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::SettingsParameterDescription
19
+ ClusterUpdateParameters = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpdateParameters
20
+ EndpointRangeDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::EndpointRangeDescription
21
+ NodeTypeDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::NodeTypeDescription
22
+ ClientCertificateCommonName = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClientCertificateCommonName
23
+ ClusterListResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterListResult
24
+ ClusterUpgradeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradeDeltaHealthPolicy
25
+ AvailableOperationDisplay = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::AvailableOperationDisplay
26
+ CertificateDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::CertificateDescription
27
+ OperationResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationResult
28
+ ClientCertificateThumbprint = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClientCertificateThumbprint
29
+ OperationListResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationListResult
30
+ ClusterCodeVersionsResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsResult
31
+ ErrorModelError = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ErrorModelError
32
+ ClusterHealthPolicy = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterHealthPolicy
33
+ ErrorModel = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ErrorModel
34
+ SettingsSectionDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::SettingsSectionDescription
35
+ Resource = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Resource
36
+ Cluster = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster
37
+ ProvisioningState = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ProvisioningState
38
+ end
39
+
40
+ #
41
+ # ServiceFabric
42
+ #
43
+ class ServiceFabricClass
44
+ attr_reader :clusters, :cluster_versions, :operations, :configurable, :base_url, :options, :model_classes
45
+
46
+ def initialize(options = {})
47
+ if options.is_a?(Hash) && options.length == 0
48
+ @options = setup_options
49
+ else
50
+ @options = options
51
+ end
52
+
53
+ reset!(options)
54
+
55
+ @configurable, @base_url, @options = self, nil, nil
56
+
57
+ client_0 = Azure::ServiceFabric::Mgmt::V2016_09_01::ServiceFabricManagementClient.new(configurable.credentials, base_url, options)
58
+ if(client_0.respond_to?(:subscription_id))
59
+ client_0.subscription_id = configurable.subscription_id
60
+ end
61
+ @clusters = client_0.clusters
62
+ @cluster_versions = client_0.cluster_versions
63
+ @operations = client_0.operations
64
+
65
+ @model_classes = ModelClasses.new
66
+ end
67
+
68
+ class ModelClasses
69
+ def cluster_upgrade_policy
70
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradePolicy
71
+ end
72
+ def cluster_version_details
73
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterVersionDetails
74
+ end
75
+ def diagnostics_storage_account_config
76
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::DiagnosticsStorageAccountConfig
77
+ end
78
+ def cluster_code_versions_list_result
79
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult
80
+ end
81
+ def azure_active_directory
82
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::AzureActiveDirectory
83
+ end
84
+ def settings_parameter_description
85
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::SettingsParameterDescription
86
+ end
87
+ def cluster_update_parameters
88
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpdateParameters
89
+ end
90
+ def endpoint_range_description
91
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::EndpointRangeDescription
92
+ end
93
+ def node_type_description
94
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::NodeTypeDescription
95
+ end
96
+ def client_certificate_common_name
97
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClientCertificateCommonName
98
+ end
99
+ def cluster_list_result
100
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterListResult
101
+ end
102
+ def cluster_upgrade_delta_health_policy
103
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradeDeltaHealthPolicy
104
+ end
105
+ def available_operation_display
106
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::AvailableOperationDisplay
107
+ end
108
+ def certificate_description
109
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::CertificateDescription
110
+ end
111
+ def operation_result
112
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationResult
113
+ end
114
+ def client_certificate_thumbprint
115
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClientCertificateThumbprint
116
+ end
117
+ def operation_list_result
118
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationListResult
119
+ end
120
+ def cluster_code_versions_result
121
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsResult
122
+ end
123
+ def error_model_error
124
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ErrorModelError
125
+ end
126
+ def cluster_health_policy
127
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterHealthPolicy
128
+ end
129
+ def error_model
130
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ErrorModel
131
+ end
132
+ def settings_section_description
133
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::SettingsSectionDescription
134
+ end
135
+ def resource
136
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Resource
137
+ end
138
+ def cluster
139
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster
140
+ end
141
+ def provisioning_state
142
+ Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ProvisioningState
143
+ end
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,33 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/latest/servicefabric_module_definition'
6
+ require 'profiles/latest/modules/servicefabric_profile_module'
7
+ require 'profiles/common/configurable'
8
+ require 'profiles/common/default'
9
+
10
+ module Azure::ServiceFabric::Profiles::Latest::Mgmt
11
+ #
12
+ # Client class for the Latest profile SDK.
13
+ #
14
+ class Client < ServiceFabricClass
15
+ include Azure::ARM::Configurable
16
+
17
+
18
+ def initialize(options = {})
19
+ super(options)
20
+ end
21
+
22
+ def credentials
23
+ if @credentials.nil?
24
+ self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
25
+
26
+ @credentials = MsRest::TokenCredentials.new(
27
+ MsRestAzure::ApplicationTokenProvider.new(
28
+ self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
29
+ end
30
+ @credentials
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::ServiceFabric end
7
+ module Azure::ServiceFabric::Profiles end
8
+ module Azure::ServiceFabric::Profiles::Latest end
9
+ module Azure::ServiceFabric::Profiles::Latest::Mgmt end
data/lib/version.rb ADDED
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ServiceFabric::Mgmt
6
+ VERSION = '0.15.0'
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_service_fabric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-09 00:00:00.000000000 Z
11
+ date: 2017-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -87,39 +87,46 @@ extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
89
  - LICENSE.txt
90
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric.rb
91
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb
92
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb
93
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/available_operation_display.rb
94
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb
95
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/certificate_description.rb
96
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb
97
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb
98
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster.rb
99
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb
100
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb
101
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb
102
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb
103
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb
104
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb
105
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb
106
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb
107
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb
108
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb
109
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/error_model.rb
110
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/error_model_error.rb
111
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/node_type_description.rb
112
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/operation_list_result.rb
113
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/operation_result.rb
114
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/provisioning_state.rb
115
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/resource.rb
116
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb
117
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/models/settings_section_description.rb
118
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/module_definition.rb
119
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/operations.rb
120
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb
121
+ - lib/2016-09-01/generated/azure_mgmt_service_fabric/version.rb
90
122
  - lib/azure_mgmt_service_fabric.rb
91
- - lib/generated/azure_mgmt_service_fabric.rb
92
- - lib/generated/azure_mgmt_service_fabric/cluster_versions.rb
93
- - lib/generated/azure_mgmt_service_fabric/clusters.rb
94
- - lib/generated/azure_mgmt_service_fabric/models/available_operation_display.rb
95
- - lib/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb
96
- - lib/generated/azure_mgmt_service_fabric/models/certificate_description.rb
97
- - lib/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb
98
- - lib/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb
99
- - lib/generated/azure_mgmt_service_fabric/models/cluster.rb
100
- - lib/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb
101
- - lib/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb
102
- - lib/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb
103
- - lib/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb
104
- - lib/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb
105
- - lib/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb
106
- - lib/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb
107
- - lib/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb
108
- - lib/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb
109
- - lib/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb
110
- - lib/generated/azure_mgmt_service_fabric/models/error_model.rb
111
- - lib/generated/azure_mgmt_service_fabric/models/error_model_error.rb
112
- - lib/generated/azure_mgmt_service_fabric/models/node_type_description.rb
113
- - lib/generated/azure_mgmt_service_fabric/models/operation_list_result.rb
114
- - lib/generated/azure_mgmt_service_fabric/models/operation_result.rb
115
- - lib/generated/azure_mgmt_service_fabric/models/provisioning_state.rb
116
- - lib/generated/azure_mgmt_service_fabric/models/resource.rb
117
- - lib/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb
118
- - lib/generated/azure_mgmt_service_fabric/models/settings_section_description.rb
119
- - lib/generated/azure_mgmt_service_fabric/module_definition.rb
120
- - lib/generated/azure_mgmt_service_fabric/operations.rb
121
- - lib/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb
122
- - lib/generated/azure_mgmt_service_fabric/version.rb
123
+ - lib/module_definition.rb
124
+ - lib/profiles/common/configurable.rb
125
+ - lib/profiles/common/default.rb
126
+ - lib/profiles/latest/modules/servicefabric_profile_module.rb
127
+ - lib/profiles/latest/servicefabric_latest_profile_client.rb
128
+ - lib/profiles/latest/servicefabric_module_definition.rb
129
+ - lib/version.rb
123
130
  homepage: https://aka.ms/azure-sdk-for-ruby
124
131
  licenses:
125
132
  - MIT
@@ -1,55 +0,0 @@
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
- require 'uri'
7
- require 'cgi'
8
- require 'date'
9
- require 'json'
10
- require 'base64'
11
- require 'erb'
12
- require 'securerandom'
13
- require 'time'
14
- require 'timeliness'
15
- require 'faraday'
16
- require 'faraday-cookie_jar'
17
- require 'concurrent'
18
- require 'ms_rest'
19
- require 'generated/azure_mgmt_service_fabric/module_definition'
20
- require 'ms_rest_azure'
21
-
22
- module Azure::ARM::ServiceFabric
23
- autoload :Clusters, 'generated/azure_mgmt_service_fabric/clusters.rb'
24
- autoload :ClusterVersions, 'generated/azure_mgmt_service_fabric/cluster_versions.rb'
25
- autoload :Operations, 'generated/azure_mgmt_service_fabric/operations.rb'
26
- autoload :ServiceFabricManagementClient, 'generated/azure_mgmt_service_fabric/service_fabric_management_client.rb'
27
-
28
- module Models
29
- autoload :ClusterUpgradePolicy, 'generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb'
30
- autoload :ClusterVersionDetails, 'generated/azure_mgmt_service_fabric/models/cluster_version_details.rb'
31
- autoload :DiagnosticsStorageAccountConfig, 'generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb'
32
- autoload :ClusterCodeVersionsListResult, 'generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb'
33
- autoload :AzureActiveDirectory, 'generated/azure_mgmt_service_fabric/models/azure_active_directory.rb'
34
- autoload :SettingsParameterDescription, 'generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb'
35
- autoload :ClusterUpdateParameters, 'generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb'
36
- autoload :EndpointRangeDescription, 'generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb'
37
- autoload :NodeTypeDescription, 'generated/azure_mgmt_service_fabric/models/node_type_description.rb'
38
- autoload :ClientCertificateCommonName, 'generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb'
39
- autoload :ClusterListResult, 'generated/azure_mgmt_service_fabric/models/cluster_list_result.rb'
40
- autoload :ClusterUpgradeDeltaHealthPolicy, 'generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb'
41
- autoload :AvailableOperationDisplay, 'generated/azure_mgmt_service_fabric/models/available_operation_display.rb'
42
- autoload :CertificateDescription, 'generated/azure_mgmt_service_fabric/models/certificate_description.rb'
43
- autoload :OperationResult, 'generated/azure_mgmt_service_fabric/models/operation_result.rb'
44
- autoload :ClientCertificateThumbprint, 'generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb'
45
- autoload :OperationListResult, 'generated/azure_mgmt_service_fabric/models/operation_list_result.rb'
46
- autoload :ClusterCodeVersionsResult, 'generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb'
47
- autoload :ErrorModelError, 'generated/azure_mgmt_service_fabric/models/error_model_error.rb'
48
- autoload :ClusterHealthPolicy, 'generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb'
49
- autoload :ErrorModel, 'generated/azure_mgmt_service_fabric/models/error_model.rb'
50
- autoload :SettingsSectionDescription, 'generated/azure_mgmt_service_fabric/models/settings_section_description.rb'
51
- autoload :Resource, 'generated/azure_mgmt_service_fabric/models/resource.rb'
52
- autoload :Cluster, 'generated/azure_mgmt_service_fabric/models/cluster.rb'
53
- autoload :ProvisioningState, 'generated/azure_mgmt_service_fabric/models/provisioning_state.rb'
54
- end
55
- end