azure_mgmt_resources 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_resources.gemspec +4 -4
  3. data/lib/azure_mgmt_resources.rb +3 -73
  4. data/lib/generated/azure_mgmt_resources.rb +77 -0
  5. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/deployment_operations.rb +39 -15
  6. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/deployments.rb +113 -60
  7. data/lib/generated/azure_mgmt_resources/models/alias_path_type.rb +61 -0
  8. data/lib/generated/azure_mgmt_resources/models/alias_type.rb +62 -0
  9. data/lib/generated/azure_mgmt_resources/models/basic_dependency.rb +64 -0
  10. data/lib/generated/azure_mgmt_resources/models/debug_setting.rb +44 -0
  11. data/lib/generated/azure_mgmt_resources/models/dependency.rb +82 -0
  12. data/lib/generated/azure_mgmt_resources/models/deployment.rb +45 -0
  13. data/lib/generated/azure_mgmt_resources/models/deployment_export_result.rb +44 -0
  14. data/lib/generated/azure_mgmt_resources/models/deployment_extended.rb +65 -0
  15. data/lib/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +44 -0
  16. data/lib/generated/azure_mgmt_resources/models/deployment_list_result.rb +93 -0
  17. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/models/deployment_mode.rb +0 -0
  18. data/lib/generated/azure_mgmt_resources/models/deployment_operation.rb +65 -0
  19. data/lib/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +117 -0
  20. data/lib/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +93 -0
  21. data/lib/generated/azure_mgmt_resources/models/deployment_properties.rb +103 -0
  22. data/lib/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +179 -0
  23. data/lib/generated/azure_mgmt_resources/models/deployment_validate_result.rb +57 -0
  24. data/lib/generated/azure_mgmt_resources/models/export_template_request.rb +65 -0
  25. data/lib/generated/azure_mgmt_resources/models/generic_resource.rb +142 -0
  26. data/lib/generated/azure_mgmt_resources/models/generic_resource_filter.rb +64 -0
  27. data/lib/generated/azure_mgmt_resources/models/http_message.rb +44 -0
  28. data/lib/generated/azure_mgmt_resources/models/identity.rb +68 -0
  29. data/lib/generated/azure_mgmt_resources/models/parameters_link.rb +55 -0
  30. data/lib/generated/azure_mgmt_resources/models/plan.rb +74 -0
  31. data/lib/generated/azure_mgmt_resources/models/provider.rb +83 -0
  32. data/lib/generated/azure_mgmt_resources/models/provider_list_result.rb +93 -0
  33. data/lib/generated/azure_mgmt_resources/models/provider_resource_type.rb +115 -0
  34. data/lib/generated/azure_mgmt_resources/models/resource_group.rb +97 -0
  35. data/lib/generated/azure_mgmt_resources/models/resource_group_export_result.rb +55 -0
  36. data/lib/generated/azure_mgmt_resources/models/resource_group_filter.rb +54 -0
  37. data/lib/generated/azure_mgmt_resources/models/resource_group_list_result.rb +93 -0
  38. data/lib/generated/azure_mgmt_resources/models/resource_group_properties.rb +45 -0
  39. data/lib/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
  40. data/lib/generated/azure_mgmt_resources/models/resource_list_result.rb +93 -0
  41. data/lib/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +82 -0
  42. data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +85 -0
  43. data/lib/generated/azure_mgmt_resources/models/resources_move_info.rb +61 -0
  44. data/lib/generated/azure_mgmt_resources/models/sku.rb +94 -0
  45. data/lib/generated/azure_mgmt_resources/models/tag_count.rb +54 -0
  46. data/lib/generated/azure_mgmt_resources/models/tag_details.rb +83 -0
  47. data/lib/generated/azure_mgmt_resources/models/tag_value.rb +65 -0
  48. data/lib/generated/azure_mgmt_resources/models/tags_list_result.rb +93 -0
  49. data/lib/generated/azure_mgmt_resources/models/target_resource.rb +64 -0
  50. data/lib/generated/azure_mgmt_resources/models/template_link.rb +55 -0
  51. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/module_definition.rb +0 -0
  52. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/providers.rb +70 -34
  53. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/resource_groups.rb +136 -68
  54. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/resource_management_client.rb +8 -12
  55. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/resources.rb +88 -43
  56. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/tags.rb +46 -27
  57. data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/version.rb +1 -1
  58. metadata +76 -78
  59. data/lib/azure_mgmt_resources/models/basic_dependency.rb +0 -74
  60. data/lib/azure_mgmt_resources/models/debug_setting.rb +0 -56
  61. data/lib/azure_mgmt_resources/models/dependency.rb +0 -103
  62. data/lib/azure_mgmt_resources/models/deployment.rb +0 -62
  63. data/lib/azure_mgmt_resources/models/deployment_export_result.rb +0 -56
  64. data/lib/azure_mgmt_resources/models/deployment_extended.rb +0 -82
  65. data/lib/azure_mgmt_resources/models/deployment_extended_filter.rb +0 -56
  66. data/lib/azure_mgmt_resources/models/deployment_list_result.rb +0 -86
  67. data/lib/azure_mgmt_resources/models/deployment_operation.rb +0 -81
  68. data/lib/azure_mgmt_resources/models/deployment_operation_properties.rb +0 -141
  69. data/lib/azure_mgmt_resources/models/deployment_operations_list_result.rb +0 -86
  70. data/lib/azure_mgmt_resources/models/deployment_properties.rb +0 -131
  71. data/lib/azure_mgmt_resources/models/deployment_properties_extended.rb +0 -231
  72. data/lib/azure_mgmt_resources/models/deployment_validate_result.rb +0 -80
  73. data/lib/azure_mgmt_resources/models/export_template_request.rb +0 -69
  74. data/lib/azure_mgmt_resources/models/generic_resource.rb +0 -101
  75. data/lib/azure_mgmt_resources/models/generic_resource_filter.rb +0 -74
  76. data/lib/azure_mgmt_resources/models/http_message.rb +0 -56
  77. data/lib/azure_mgmt_resources/models/parameters_link.rb +0 -66
  78. data/lib/azure_mgmt_resources/models/plan.rb +0 -83
  79. data/lib/azure_mgmt_resources/models/provider.rb +0 -104
  80. data/lib/azure_mgmt_resources/models/provider_list_result.rb +0 -85
  81. data/lib/azure_mgmt_resources/models/provider_resource_type.rb +0 -86
  82. data/lib/azure_mgmt_resources/models/resource_group.rb +0 -104
  83. data/lib/azure_mgmt_resources/models/resource_group_export_result.rb +0 -71
  84. data/lib/azure_mgmt_resources/models/resource_group_filter.rb +0 -65
  85. data/lib/azure_mgmt_resources/models/resource_group_list_result.rb +0 -87
  86. data/lib/azure_mgmt_resources/models/resource_group_properties.rb +0 -56
  87. data/lib/azure_mgmt_resources/models/resource_list_result.rb +0 -87
  88. data/lib/azure_mgmt_resources/models/resource_management_error_with_details.rb +0 -107
  89. data/lib/azure_mgmt_resources/models/resource_provider_operation_definition.rb +0 -72
  90. data/lib/azure_mgmt_resources/models/resource_provider_operation_detail_list_result.rb +0 -78
  91. data/lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +0 -93
  92. data/lib/azure_mgmt_resources/models/resources_move_info.rb +0 -65
  93. data/lib/azure_mgmt_resources/models/tag_count.rb +0 -65
  94. data/lib/azure_mgmt_resources/models/tag_details.rb +0 -110
  95. data/lib/azure_mgmt_resources/models/tag_value.rb +0 -80
  96. data/lib/azure_mgmt_resources/models/tags_list_result.rb +0 -86
  97. data/lib/azure_mgmt_resources/models/target_resource.rb +0 -74
  98. data/lib/azure_mgmt_resources/models/template_link.rb +0 -66
  99. data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +0 -233
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZTQyZjY2ZjFmNmQ2NjQyYzM1MTJjMDI2Yzc0NDVjNTdlZDlhYmZkYw==
5
- data.tar.gz: !binary |-
6
- MTBkZDM5ZGZmNmY0NjdjZjM5ZjQwYmI4ZDI5MDkxZmI4NzVhMzUzNA==
2
+ SHA1:
3
+ metadata.gz: fd95b9f11fb6d578f80f5aec79e2547513d945cc
4
+ data.tar.gz: 6b04f8e50e5232e10fa7e6ca003b32273dc5fcf6
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YjUwMWU5YmJlZDljOTAzYTlkOTU2MDY2OTRlNTlmZjQyMjNiYTVkMDkzZGE1
10
- ZTcxMTllOTA0NDQyMTI5NDYyMzk0ZGViNWFhMTg1YzEyNDYxNDg1YzFjNjkz
11
- YWZjZDEyNTU0OTdkNTJmOWE5YzdiZTExNzViMDY2YzRhOTMxYTY=
12
- data.tar.gz: !binary |-
13
- MzEwNDg1NGQ1MTdkMjRlYzQ4NWI0N2Q3MWJmYjQxZmExYmJlZTU2MDhmOGU2
14
- ZGUwOWUzZTU2MDhmNTQ0NjY4ZjgxYzNhNjc1OWUyOTBhODRlZGE3ZjQxMjJh
15
- YWE3N2I1NTk2YWIwY2JmZWQyOWE4OTczYjA2NzQwMDAzMDI4NDQ=
6
+ metadata.gz: 7804c4f5638c29d3bbbfb60818e707c6c7a5d3c3379a1518ad6d8a35c9e81214f4de65ae7e557a3bc03093f5ceb6afc96d4df7f32179ffca6fd2bfd9657cf562
7
+ data.tar.gz: bdff2f5693121a023775bb21ccbf25b2f9ea5f9286361ff4f461468f8f38bb68300e38401abdd4589e46df64b52c04c865bbb31865efc4dee61771b7ebfe5397
@@ -5,8 +5,8 @@
5
5
  lib = File.expand_path('../lib', __FILE__)
6
6
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
7
 
8
- require 'azure_mgmt_resources/module_definition'
9
- require 'azure_mgmt_resources/version'
8
+ require 'generated/azure_mgmt_resources/module_definition'
9
+ require 'generated/azure_mgmt_resources/version'
10
10
 
11
11
  Gem::Specification.new do |spec|
12
12
  spec.name = 'azure_mgmt_resources'
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.email = 'azrubyteam@microsoft.com'
16
16
  spec.description = 'Microsoft Azure Resource Management Client Library for Ruby'
17
17
  spec.summary = 'Official ruby client library to consume Microsoft Azure Resource Management services.'
18
- spec.homepage = 'http://github.com/azure/azure-sdk-ruby'
18
+ spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
19
19
  spec.license = 'MIT'
20
20
 
21
21
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'rspec', '~> 3'
31
31
  spec.add_development_dependency 'dotenv', '~> 2'
32
32
 
33
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.3'
33
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.3.0'
34
34
  end
@@ -1,75 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
5
4
 
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 'azure_mgmt_resources/module_definition'
20
- require 'ms_rest_azure'
21
-
22
- module Azure::ARM::Resources
23
- autoload :Deployments, 'azure_mgmt_resources/deployments.rb'
24
- autoload :Providers, 'azure_mgmt_resources/providers.rb'
25
- autoload :ResourceGroups, 'azure_mgmt_resources/resource_groups.rb'
26
- autoload :Resources, 'azure_mgmt_resources/resources.rb'
27
- autoload :Tags, 'azure_mgmt_resources/tags.rb'
28
- autoload :DeploymentOperations, 'azure_mgmt_resources/deployment_operations.rb'
29
- autoload :ResourceProviderOperationDetails, 'azure_mgmt_resources/resource_provider_operation_details.rb'
30
- autoload :ResourceManagementClient, 'azure_mgmt_resources/resource_management_client.rb'
31
-
32
- module Models
33
- autoload :DeploymentExtendedFilter, 'azure_mgmt_resources/models/deployment_extended_filter.rb'
34
- autoload :GenericResourceFilter, 'azure_mgmt_resources/models/generic_resource_filter.rb'
35
- autoload :ResourceGroupFilter, 'azure_mgmt_resources/models/resource_group_filter.rb'
36
- autoload :TemplateLink, 'azure_mgmt_resources/models/template_link.rb'
37
- autoload :ParametersLink, 'azure_mgmt_resources/models/parameters_link.rb'
38
- autoload :DeploymentProperties, 'azure_mgmt_resources/models/deployment_properties.rb'
39
- autoload :DebugSetting, 'azure_mgmt_resources/models/debug_setting.rb'
40
- autoload :Deployment, 'azure_mgmt_resources/models/deployment.rb'
41
- autoload :DeploymentExportResult, 'azure_mgmt_resources/models/deployment_export_result.rb'
42
- autoload :ResourceManagementErrorWithDetails, 'azure_mgmt_resources/models/resource_management_error_with_details.rb'
43
- autoload :ProviderResourceType, 'azure_mgmt_resources/models/provider_resource_type.rb'
44
- autoload :Provider, 'azure_mgmt_resources/models/provider.rb'
45
- autoload :BasicDependency, 'azure_mgmt_resources/models/basic_dependency.rb'
46
- autoload :Dependency, 'azure_mgmt_resources/models/dependency.rb'
47
- autoload :DeploymentPropertiesExtended, 'azure_mgmt_resources/models/deployment_properties_extended.rb'
48
- autoload :DeploymentValidateResult, 'azure_mgmt_resources/models/deployment_validate_result.rb'
49
- autoload :DeploymentExtended, 'azure_mgmt_resources/models/deployment_extended.rb'
50
- autoload :DeploymentListResult, 'azure_mgmt_resources/models/deployment_list_result.rb'
51
- autoload :ProviderListResult, 'azure_mgmt_resources/models/provider_list_result.rb'
52
- autoload :Plan, 'azure_mgmt_resources/models/plan.rb'
53
- autoload :ResourceListResult, 'azure_mgmt_resources/models/resource_list_result.rb'
54
- autoload :ResourceGroup, 'azure_mgmt_resources/models/resource_group.rb'
55
- autoload :ResourceGroupProperties, 'azure_mgmt_resources/models/resource_group_properties.rb'
56
- autoload :ResourceGroupListResult, 'azure_mgmt_resources/models/resource_group_list_result.rb'
57
- autoload :ResourcesMoveInfo, 'azure_mgmt_resources/models/resources_move_info.rb'
58
- autoload :ExportTemplateRequest, 'azure_mgmt_resources/models/export_template_request.rb'
59
- autoload :TagCount, 'azure_mgmt_resources/models/tag_count.rb'
60
- autoload :TagValue, 'azure_mgmt_resources/models/tag_value.rb'
61
- autoload :TagDetails, 'azure_mgmt_resources/models/tag_details.rb'
62
- autoload :TagsListResult, 'azure_mgmt_resources/models/tags_list_result.rb'
63
- autoload :TargetResource, 'azure_mgmt_resources/models/target_resource.rb'
64
- autoload :HttpMessage, 'azure_mgmt_resources/models/http_message.rb'
65
- autoload :DeploymentOperationProperties, 'azure_mgmt_resources/models/deployment_operation_properties.rb'
66
- autoload :DeploymentOperation, 'azure_mgmt_resources/models/deployment_operation.rb'
67
- autoload :DeploymentOperationsListResult, 'azure_mgmt_resources/models/deployment_operations_list_result.rb'
68
- autoload :ResourceProviderOperationDisplayProperties, 'azure_mgmt_resources/models/resource_provider_operation_display_properties.rb'
69
- autoload :ResourceProviderOperationDefinition, 'azure_mgmt_resources/models/resource_provider_operation_definition.rb'
70
- autoload :ResourceProviderOperationDetailListResult, 'azure_mgmt_resources/models/resource_provider_operation_detail_list_result.rb'
71
- autoload :ResourceGroupExportResult, 'azure_mgmt_resources/models/resource_group_export_result.rb'
72
- autoload :GenericResource, 'azure_mgmt_resources/models/generic_resource.rb'
73
- autoload :DeploymentMode, 'azure_mgmt_resources/models/deployment_mode.rb'
74
- end
75
- end
5
+ require 'generated/azure_mgmt_resources'
@@ -0,0 +1,77 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
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_resources/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ARM::Resources
23
+ autoload :Deployments, 'generated/azure_mgmt_resources/deployments.rb'
24
+ autoload :Providers, 'generated/azure_mgmt_resources/providers.rb'
25
+ autoload :ResourceGroups, 'generated/azure_mgmt_resources/resource_groups.rb'
26
+ autoload :Resources, 'generated/azure_mgmt_resources/resources.rb'
27
+ autoload :Tags, 'generated/azure_mgmt_resources/tags.rb'
28
+ autoload :DeploymentOperations, 'generated/azure_mgmt_resources/deployment_operations.rb'
29
+ autoload :ResourceManagementClient, 'generated/azure_mgmt_resources/resource_management_client.rb'
30
+
31
+ module Models
32
+ autoload :DeploymentExtendedFilter, 'generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
33
+ autoload :GenericResourceFilter, 'generated/azure_mgmt_resources/models/generic_resource_filter.rb'
34
+ autoload :ResourceGroupFilter, 'generated/azure_mgmt_resources/models/resource_group_filter.rb'
35
+ autoload :TemplateLink, 'generated/azure_mgmt_resources/models/template_link.rb'
36
+ autoload :ParametersLink, 'generated/azure_mgmt_resources/models/parameters_link.rb'
37
+ autoload :DeploymentProperties, 'generated/azure_mgmt_resources/models/deployment_properties.rb'
38
+ autoload :DebugSetting, 'generated/azure_mgmt_resources/models/debug_setting.rb'
39
+ autoload :Deployment, 'generated/azure_mgmt_resources/models/deployment.rb'
40
+ autoload :DeploymentExportResult, 'generated/azure_mgmt_resources/models/deployment_export_result.rb'
41
+ autoload :ResourceManagementErrorWithDetails, 'generated/azure_mgmt_resources/models/resource_management_error_with_details.rb'
42
+ autoload :AliasPathType, 'generated/azure_mgmt_resources/models/alias_path_type.rb'
43
+ autoload :AliasType, 'generated/azure_mgmt_resources/models/alias_type.rb'
44
+ autoload :ProviderResourceType, 'generated/azure_mgmt_resources/models/provider_resource_type.rb'
45
+ autoload :Provider, 'generated/azure_mgmt_resources/models/provider.rb'
46
+ autoload :BasicDependency, 'generated/azure_mgmt_resources/models/basic_dependency.rb'
47
+ autoload :Dependency, 'generated/azure_mgmt_resources/models/dependency.rb'
48
+ autoload :DeploymentPropertiesExtended, 'generated/azure_mgmt_resources/models/deployment_properties_extended.rb'
49
+ autoload :DeploymentValidateResult, 'generated/azure_mgmt_resources/models/deployment_validate_result.rb'
50
+ autoload :DeploymentExtended, 'generated/azure_mgmt_resources/models/deployment_extended.rb'
51
+ autoload :DeploymentListResult, 'generated/azure_mgmt_resources/models/deployment_list_result.rb'
52
+ autoload :ProviderListResult, 'generated/azure_mgmt_resources/models/provider_list_result.rb'
53
+ autoload :Plan, 'generated/azure_mgmt_resources/models/plan.rb'
54
+ autoload :Sku, 'generated/azure_mgmt_resources/models/sku.rb'
55
+ autoload :Identity, 'generated/azure_mgmt_resources/models/identity.rb'
56
+ autoload :ResourceListResult, 'generated/azure_mgmt_resources/models/resource_list_result.rb'
57
+ autoload :ResourceGroup, 'generated/azure_mgmt_resources/models/resource_group.rb'
58
+ autoload :ResourceGroupProperties, 'generated/azure_mgmt_resources/models/resource_group_properties.rb'
59
+ autoload :ResourceGroupListResult, 'generated/azure_mgmt_resources/models/resource_group_list_result.rb'
60
+ autoload :ResourcesMoveInfo, 'generated/azure_mgmt_resources/models/resources_move_info.rb'
61
+ autoload :ExportTemplateRequest, 'generated/azure_mgmt_resources/models/export_template_request.rb'
62
+ autoload :TagCount, 'generated/azure_mgmt_resources/models/tag_count.rb'
63
+ autoload :TagValue, 'generated/azure_mgmt_resources/models/tag_value.rb'
64
+ autoload :TagDetails, 'generated/azure_mgmt_resources/models/tag_details.rb'
65
+ autoload :TagsListResult, 'generated/azure_mgmt_resources/models/tags_list_result.rb'
66
+ autoload :TargetResource, 'generated/azure_mgmt_resources/models/target_resource.rb'
67
+ autoload :HttpMessage, 'generated/azure_mgmt_resources/models/http_message.rb'
68
+ autoload :DeploymentOperationProperties, 'generated/azure_mgmt_resources/models/deployment_operation_properties.rb'
69
+ autoload :DeploymentOperation, 'generated/azure_mgmt_resources/models/deployment_operation.rb'
70
+ autoload :DeploymentOperationsListResult, 'generated/azure_mgmt_resources/models/deployment_operations_list_result.rb'
71
+ autoload :ResourceProviderOperationDisplayProperties, 'generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb'
72
+ autoload :ResourceGroupExportResult, 'generated/azure_mgmt_resources/models/resource_group_export_result.rb'
73
+ autoload :GenericResource, 'generated/azure_mgmt_resources/models/generic_resource.rb'
74
+ autoload :DeploymentMode, 'generated/azure_mgmt_resources/models/deployment_mode.rb'
75
+ autoload :ResourceIdentityType, 'generated/azure_mgmt_resources/models/resource_identity_type.rb'
76
+ end
77
+ end
@@ -73,6 +73,8 @@ module Azure::ARM::Resources
73
73
  fail ArgumentError, 'operation_id is nil' if operation_id.nil?
74
74
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
75
75
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
76
+
77
+
76
78
  request_headers = {}
77
79
 
78
80
  # Set Headers
@@ -108,10 +110,8 @@ module Azure::ARM::Resources
108
110
  if status_code == 200
109
111
  begin
110
112
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
111
- unless parsed_response.nil?
112
- parsed_response = DeploymentOperation.deserialize_object(parsed_response)
113
- end
114
- result.body = parsed_response
113
+ result_mapper = DeploymentOperation.mapper()
114
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
115
115
  rescue Exception => e
116
116
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
117
117
  end
@@ -133,11 +133,35 @@ module Azure::ARM::Resources
133
133
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
134
134
  # will be added to the HTTP request.
135
135
  #
136
- # @return [DeploymentOperationsListResult] operation results.
136
+ # @return [DeploymentOperationsListResult] which provide lazy access to pages
137
+ # of the response.
137
138
  #
138
- def list(resource_group_name, deployment_name, top = nil, custom_headers = nil)
139
+ def list_as_lazy(resource_group_name, deployment_name, top = nil, custom_headers = nil)
139
140
  response = list_async(resource_group_name, deployment_name, top, custom_headers).value!
140
- response.body unless response.nil?
141
+ unless response.nil?
142
+ page = response.body
143
+ page.next_method = Proc.new do |next_link|
144
+ list_next_async(next_link, custom_headers)
145
+ end
146
+ page
147
+ end
148
+ end
149
+
150
+ #
151
+ # Gets a list of deployments operations.
152
+ #
153
+ # @param resource_group_name [String] The name of the resource group. The name
154
+ # is case insensitive.
155
+ # @param deployment_name [String] The name of the deployment.
156
+ # @param top [Integer] Query parameters.
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [Array<DeploymentOperation>] operation results.
161
+ #
162
+ def list(resource_group_name, deployment_name, top = nil, custom_headers = nil)
163
+ first_page = list_as_lazy(resource_group_name, deployment_name, top, custom_headers)
164
+ first_page.get_all_items
141
165
  end
142
166
 
143
167
  #
@@ -173,6 +197,8 @@ module Azure::ARM::Resources
173
197
  fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
174
198
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
175
199
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
200
+
201
+
176
202
  request_headers = {}
177
203
 
178
204
  # Set Headers
@@ -208,10 +234,8 @@ module Azure::ARM::Resources
208
234
  if status_code == 200
209
235
  begin
210
236
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
211
- unless parsed_response.nil?
212
- parsed_response = DeploymentOperationsListResult.deserialize_object(parsed_response)
213
- end
214
- result.body = parsed_response
237
+ result_mapper = DeploymentOperationsListResult.mapper()
238
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
215
239
  rescue Exception => e
216
240
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
217
241
  end
@@ -264,6 +288,8 @@ module Azure::ARM::Resources
264
288
  #
265
289
  def list_next_async(next_page_link, custom_headers = nil)
266
290
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
291
+
292
+
267
293
  request_headers = {}
268
294
 
269
295
  # Set Headers
@@ -298,10 +324,8 @@ module Azure::ARM::Resources
298
324
  if status_code == 200
299
325
  begin
300
326
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
301
- unless parsed_response.nil?
302
- parsed_response = DeploymentOperationsListResult.deserialize_object(parsed_response)
303
- end
304
- result.body = parsed_response
327
+ result_mapper = DeploymentOperationsListResult.mapper()
328
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
305
329
  rescue Exception => e
306
330
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
307
331
  end
@@ -28,10 +28,25 @@ module Azure::ARM::Resources
28
28
  # @param resource_group_name [String] The name of the resource group. The name
29
29
  # is case insensitive.
30
30
  # @param deployment_name [String] The name of the deployment to be deleted.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ def delete(resource_group_name, deployment_name, custom_headers = nil)
35
+ response = delete_async(resource_group_name, deployment_name, custom_headers).value!
36
+ nil
37
+ end
38
+
39
+ #
40
+ # @param resource_group_name [String] The name of the resource group. The name
41
+ # is case insensitive.
42
+ # @param deployment_name [String] The name of the deployment to be deleted.
43
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
44
+ # will be added to the HTTP request.
45
+ #
31
46
  # @return [Concurrent::Promise] promise which provides async access to http
32
47
  # response.
33
48
  #
34
- def delete(resource_group_name, deployment_name, custom_headers = nil)
49
+ def delete_async(resource_group_name, deployment_name, custom_headers = nil)
35
50
  # Send request
36
51
  promise = begin_delete_async(resource_group_name, deployment_name, custom_headers)
37
52
 
@@ -40,8 +55,8 @@ module Azure::ARM::Resources
40
55
  deserialize_method = lambda do |parsed_response|
41
56
  end
42
57
 
43
- # Waiting for response.
44
- @client.get_long_running_operation_result(response, deserialize_method)
58
+ # Waiting for response.
59
+ @client.get_long_running_operation_result(response, deserialize_method)
45
60
  end
46
61
 
47
62
  promise
@@ -93,6 +108,8 @@ module Azure::ARM::Resources
93
108
  fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
94
109
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
95
110
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
111
+
112
+
96
113
  request_headers = {}
97
114
 
98
115
  # Set Headers
@@ -178,6 +195,8 @@ module Azure::ARM::Resources
178
195
  fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
179
196
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
180
197
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
198
+
199
+
181
200
  request_headers = {}
182
201
 
183
202
  # Set Headers
@@ -225,26 +244,37 @@ module Azure::ARM::Resources
225
244
  # @param deployment_name [String] The name of the deployment.
226
245
  # @param parameters [Deployment] Additional parameters supplied to the
227
246
  # operation.
228
- # @param @client.api_version [String] Client Api Version.
229
- # @param @client.subscription_id [String] Gets subscription credentials which
230
- # uniquely identify Microsoft Azure subscription. The subscription ID forms
231
- # part of the URI for every service call.
232
- # @param @client.accept_language [String] Gets or sets the preferred language
233
- # for the response.
247
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
248
+ # will be added to the HTTP request.
249
+ #
250
+ # @return [DeploymentExtended] operation results.
251
+ #
252
+ def create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil)
253
+ response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
254
+ response.body unless response.nil?
255
+ end
256
+
257
+ #
258
+ # @param resource_group_name [String] The name of the resource group. The name
259
+ # is case insensitive.
260
+ # @param deployment_name [String] The name of the deployment.
261
+ # @param parameters [Deployment] Additional parameters supplied to the
262
+ # operation.
263
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
264
+ # will be added to the HTTP request.
234
265
  #
235
266
  # @return [Concurrent::Promise] promise which provides async access to http
236
267
  # response.
237
268
  #
238
- def create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil)
269
+ def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil)
239
270
  # Send request
240
271
  promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers)
241
272
 
242
273
  promise = promise.then do |response|
243
274
  # Defining deserialization method.
244
275
  deserialize_method = lambda do |parsed_response|
245
- unless parsed_response.nil?
246
- parsed_response = DeploymentExtended.deserialize_object(parsed_response)
247
- end
276
+ result_mapper = DeploymentExtended.mapper()
277
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
248
278
  end
249
279
 
250
280
  # Waiting for response.
@@ -306,21 +336,23 @@ module Azure::ARM::Resources
306
336
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
307
337
  fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
308
338
  fail ArgumentError, 'parameters is nil' if parameters.nil?
309
- parameters.validate unless parameters.nil?
310
339
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
311
340
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
341
+
342
+
312
343
  request_headers = {}
313
344
 
314
345
  # Set Headers
315
346
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
316
347
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
317
348
 
318
- # Serialize Request
319
349
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
320
- unless parameters.nil?
321
- parameters = Deployment.serialize_object(parameters)
322
- end
323
- request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
350
+
351
+ # Serialize Request
352
+ request_mapper = Deployment.mapper()
353
+ request_content = @client.serialize(request_mapper, parameters, 'parameters')
354
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
355
+
324
356
  path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
325
357
  options = {
326
358
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -352,10 +384,8 @@ module Azure::ARM::Resources
352
384
  if status_code == 200
353
385
  begin
354
386
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
355
- unless parsed_response.nil?
356
- parsed_response = DeploymentExtended.deserialize_object(parsed_response)
357
- end
358
- result.body = parsed_response
387
+ result_mapper = DeploymentExtended.mapper()
388
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
359
389
  rescue Exception => e
360
390
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
361
391
  end
@@ -364,10 +394,8 @@ module Azure::ARM::Resources
364
394
  if status_code == 201
365
395
  begin
366
396
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
367
- unless parsed_response.nil?
368
- parsed_response = DeploymentExtended.deserialize_object(parsed_response)
369
- end
370
- result.body = parsed_response
397
+ result_mapper = DeploymentExtended.mapper()
398
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
371
399
  rescue Exception => e
372
400
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
373
401
  end
@@ -426,6 +454,8 @@ module Azure::ARM::Resources
426
454
  fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
427
455
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
428
456
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
457
+
458
+
429
459
  request_headers = {}
430
460
 
431
461
  # Set Headers
@@ -461,10 +491,8 @@ module Azure::ARM::Resources
461
491
  if status_code == 200
462
492
  begin
463
493
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
464
- unless parsed_response.nil?
465
- parsed_response = DeploymentExtended.deserialize_object(parsed_response)
466
- end
467
- result.body = parsed_response
494
+ result_mapper = DeploymentExtended.mapper()
495
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
468
496
  rescue Exception => e
469
497
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
470
498
  end
@@ -522,6 +550,8 @@ module Azure::ARM::Resources
522
550
  fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
523
551
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
524
552
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
553
+
554
+
525
555
  request_headers = {}
526
556
 
527
557
  # Set Headers
@@ -609,21 +639,23 @@ module Azure::ARM::Resources
609
639
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
610
640
  fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
611
641
  fail ArgumentError, 'parameters is nil' if parameters.nil?
612
- parameters.validate unless parameters.nil?
613
642
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
614
643
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
644
+
645
+
615
646
  request_headers = {}
616
647
 
617
648
  # Set Headers
618
649
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
619
650
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
620
651
 
621
- # Serialize Request
622
652
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
623
- unless parameters.nil?
624
- parameters = Deployment.serialize_object(parameters)
625
- end
626
- request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
653
+
654
+ # Serialize Request
655
+ request_mapper = Deployment.mapper()
656
+ request_content = @client.serialize(request_mapper, parameters, 'parameters')
657
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
658
+
627
659
  path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate'
628
660
  options = {
629
661
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -655,10 +687,8 @@ module Azure::ARM::Resources
655
687
  if status_code == 200
656
688
  begin
657
689
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
658
- unless parsed_response.nil?
659
- parsed_response = DeploymentValidateResult.deserialize_object(parsed_response)
660
- end
661
- result.body = parsed_response
690
+ result_mapper = DeploymentValidateResult.mapper()
691
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
662
692
  rescue Exception => e
663
693
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
664
694
  end
@@ -667,10 +697,8 @@ module Azure::ARM::Resources
667
697
  if status_code == 400
668
698
  begin
669
699
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
670
- unless parsed_response.nil?
671
- parsed_response = DeploymentValidateResult.deserialize_object(parsed_response)
672
- end
673
- result.body = parsed_response
700
+ result_mapper = DeploymentValidateResult.mapper()
701
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
674
702
  rescue Exception => e
675
703
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
676
704
  end
@@ -729,6 +757,8 @@ module Azure::ARM::Resources
729
757
  fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
730
758
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
731
759
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
760
+
761
+
732
762
  request_headers = {}
733
763
 
734
764
  # Set Headers
@@ -764,10 +794,8 @@ module Azure::ARM::Resources
764
794
  if status_code == 200
765
795
  begin
766
796
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
767
- unless parsed_response.nil?
768
- parsed_response = DeploymentExportResult.deserialize_object(parsed_response)
769
- end
770
- result.body = parsed_response
797
+ result_mapper = DeploymentExportResult.mapper()
798
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
771
799
  rescue Exception => e
772
800
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
773
801
  end
@@ -790,11 +818,36 @@ module Azure::ARM::Resources
790
818
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
791
819
  # will be added to the HTTP request.
792
820
  #
793
- # @return [DeploymentListResult] operation results.
821
+ # @return [DeploymentListResult] which provide lazy access to pages of the
822
+ # response.
794
823
  #
795
- def list(resource_group_name, filter = nil, top = nil, custom_headers = nil)
824
+ def list_as_lazy(resource_group_name, filter = nil, top = nil, custom_headers = nil)
796
825
  response = list_async(resource_group_name, filter, top, custom_headers).value!
797
- response.body unless response.nil?
826
+ unless response.nil?
827
+ page = response.body
828
+ page.next_method = Proc.new do |next_link|
829
+ list_next_async(next_link, custom_headers)
830
+ end
831
+ page
832
+ end
833
+ end
834
+
835
+ #
836
+ # Get a list of deployments.
837
+ #
838
+ # @param resource_group_name [String] The name of the resource group to filter
839
+ # by. The name is case insensitive.
840
+ # @param filter [String] The filter to apply on the operation.
841
+ # @param top [Integer] Query parameters. If null is passed returns all
842
+ # deployments.
843
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
844
+ # will be added to the HTTP request.
845
+ #
846
+ # @return [Array<DeploymentExtended>] operation results.
847
+ #
848
+ def list(resource_group_name, filter = nil, top = nil, custom_headers = nil)
849
+ first_page = list_as_lazy(resource_group_name, filter, top, custom_headers)
850
+ first_page.get_all_items
798
851
  end
799
852
 
800
853
  #
@@ -831,6 +884,8 @@ module Azure::ARM::Resources
831
884
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
832
885
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
833
886
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
887
+
888
+
834
889
  request_headers = {}
835
890
 
836
891
  # Set Headers
@@ -866,10 +921,8 @@ module Azure::ARM::Resources
866
921
  if status_code == 200
867
922
  begin
868
923
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
869
- unless parsed_response.nil?
870
- parsed_response = DeploymentListResult.deserialize_object(parsed_response)
871
- end
872
- result.body = parsed_response
924
+ result_mapper = DeploymentListResult.mapper()
925
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
873
926
  rescue Exception => e
874
927
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
875
928
  end
@@ -922,6 +975,8 @@ module Azure::ARM::Resources
922
975
  #
923
976
  def list_next_async(next_page_link, custom_headers = nil)
924
977
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
978
+
979
+
925
980
  request_headers = {}
926
981
 
927
982
  # Set Headers
@@ -956,10 +1011,8 @@ module Azure::ARM::Resources
956
1011
  if status_code == 200
957
1012
  begin
958
1013
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
959
- unless parsed_response.nil?
960
- parsed_response = DeploymentListResult.deserialize_object(parsed_response)
961
- end
962
- result.body = parsed_response
1014
+ result_mapper = DeploymentListResult.mapper()
1015
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
963
1016
  rescue Exception => e
964
1017
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
965
1018
  end