gitlab-fog-azure-rm 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +7 -0
  2. data/.arclint +8 -0
  3. data/.codeclimate.yml +17 -0
  4. data/.gitignore +6 -0
  5. data/.gitlab-ci.yml +17 -0
  6. data/.hound.yml +2 -0
  7. data/.rubocop.yml +5 -0
  8. data/.rubocop_todo.yml +274 -0
  9. data/.travis.yml +49 -0
  10. data/CHANGELOG.md +414 -0
  11. data/CONTRIBUTING.md +40 -0
  12. data/CONTRIBUTORS.md +12 -0
  13. data/Gemfile +3 -0
  14. data/LICENSE.md +20 -0
  15. data/README.md +100 -0
  16. data/gitlab-fog-azure-rm.gemspec +31 -0
  17. data/lib/fog/azurerm.rb +30 -0
  18. data/lib/fog/azurerm/async_response.rb +44 -0
  19. data/lib/fog/azurerm/config.rb +1 -0
  20. data/lib/fog/azurerm/constants.rb +72 -0
  21. data/lib/fog/azurerm/credentials.rb +40 -0
  22. data/lib/fog/azurerm/custom_fog_errors.rb +52 -0
  23. data/lib/fog/azurerm/docs/storage.md +398 -0
  24. data/lib/fog/azurerm/docs/structure.md +53 -0
  25. data/lib/fog/azurerm/models/resources/azure_resource.rb +25 -0
  26. data/lib/fog/azurerm/models/resources/azure_resources.rb +40 -0
  27. data/lib/fog/azurerm/models/resources/dependency.rb +27 -0
  28. data/lib/fog/azurerm/models/resources/deployment.rb +65 -0
  29. data/lib/fog/azurerm/models/resources/deployments.rb +30 -0
  30. data/lib/fog/azurerm/models/resources/provider.rb +27 -0
  31. data/lib/fog/azurerm/models/resources/provider_resource_type.rb +22 -0
  32. data/lib/fog/azurerm/models/resources/resource_group.rb +34 -0
  33. data/lib/fog/azurerm/models/resources/resource_groups.rb +29 -0
  34. data/lib/fog/azurerm/models/storage/directories.rb +75 -0
  35. data/lib/fog/azurerm/models/storage/directory.rb +151 -0
  36. data/lib/fog/azurerm/models/storage/file.rb +265 -0
  37. data/lib/fog/azurerm/models/storage/files.rb +183 -0
  38. data/lib/fog/azurerm/models/storage/kind.rb +12 -0
  39. data/lib/fog/azurerm/models/storage/sku_name.rb +15 -0
  40. data/lib/fog/azurerm/models/storage/sku_tier.rb +12 -0
  41. data/lib/fog/azurerm/models/storage/storage_account.rb +92 -0
  42. data/lib/fog/azurerm/models/storage/storage_accounts.rb +47 -0
  43. data/lib/fog/azurerm/requests/storage/acquire_blob_lease.rb +32 -0
  44. data/lib/fog/azurerm/requests/storage/acquire_container_lease.rb +32 -0
  45. data/lib/fog/azurerm/requests/storage/check_container_exists.rb +30 -0
  46. data/lib/fog/azurerm/requests/storage/commit_blob_blocks.rb +30 -0
  47. data/lib/fog/azurerm/requests/storage/compare_container_blobs.rb +148 -0
  48. data/lib/fog/azurerm/requests/storage/copy_blob.rb +30 -0
  49. data/lib/fog/azurerm/requests/storage/copy_blob_from_uri.rb +30 -0
  50. data/lib/fog/azurerm/requests/storage/copy_object.rb +20 -0
  51. data/lib/fog/azurerm/requests/storage/create_block_blob.rb +108 -0
  52. data/lib/fog/azurerm/requests/storage/create_container.rb +40 -0
  53. data/lib/fog/azurerm/requests/storage/create_disk.rb +62 -0
  54. data/lib/fog/azurerm/requests/storage/create_page_blob.rb +31 -0
  55. data/lib/fog/azurerm/requests/storage/delete_blob.rb +32 -0
  56. data/lib/fog/azurerm/requests/storage/delete_blob_https_url.rb +39 -0
  57. data/lib/fog/azurerm/requests/storage/delete_container.rb +31 -0
  58. data/lib/fog/azurerm/requests/storage/delete_disk.rb +36 -0
  59. data/lib/fog/azurerm/requests/storage/delete_object_url.rb +30 -0
  60. data/lib/fog/azurerm/requests/storage/get_blob.rb +163 -0
  61. data/lib/fog/azurerm/requests/storage/get_blob_http_url.rb +39 -0
  62. data/lib/fog/azurerm/requests/storage/get_blob_https_url.rb +39 -0
  63. data/lib/fog/azurerm/requests/storage/get_blob_properties.rb +55 -0
  64. data/lib/fog/azurerm/requests/storage/get_blob_url.rb +28 -0
  65. data/lib/fog/azurerm/requests/storage/get_container_acl.rb +30 -0
  66. data/lib/fog/azurerm/requests/storage/get_container_properties.rb +41 -0
  67. data/lib/fog/azurerm/requests/storage/get_container_url.rb +34 -0
  68. data/lib/fog/azurerm/requests/storage/get_object_url.rb +21 -0
  69. data/lib/fog/azurerm/requests/storage/list_blobs.rb +168 -0
  70. data/lib/fog/azurerm/requests/storage/list_containers.rb +73 -0
  71. data/lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb +110 -0
  72. data/lib/fog/azurerm/requests/storage/put_blob_block.rb +30 -0
  73. data/lib/fog/azurerm/requests/storage/put_blob_https_url.rb +39 -0
  74. data/lib/fog/azurerm/requests/storage/put_blob_metadata.rb +31 -0
  75. data/lib/fog/azurerm/requests/storage/put_blob_pages.rb +30 -0
  76. data/lib/fog/azurerm/requests/storage/put_blob_properties.rb +31 -0
  77. data/lib/fog/azurerm/requests/storage/put_container_acl.rb +31 -0
  78. data/lib/fog/azurerm/requests/storage/put_container_metadata.rb +31 -0
  79. data/lib/fog/azurerm/requests/storage/put_object_url.rb +30 -0
  80. data/lib/fog/azurerm/requests/storage/release_blob_lease.rb +30 -0
  81. data/lib/fog/azurerm/requests/storage/release_container_lease.rb +30 -0
  82. data/lib/fog/azurerm/requests/storage/save_page_blob.rb +111 -0
  83. data/lib/fog/azurerm/requests/storage/wait_blob_copy_operation_to_finish.rb +56 -0
  84. data/lib/fog/azurerm/storage.rb +126 -0
  85. data/lib/fog/azurerm/utilities/general.rb +186 -0
  86. data/lib/fog/azurerm/utilities/logger_messages.yml +19 -0
  87. data/lib/fog/azurerm/version.rb +5 -0
  88. data/rake-script.sh +10 -0
  89. data/rakefile +29 -0
  90. data/test/api_stub.rb +147 -0
  91. data/test/api_stub/models/storage/directory.rb +178 -0
  92. data/test/api_stub/models/storage/file.rb +181 -0
  93. data/test/api_stub/requests/storage/directory.rb +89 -0
  94. data/test/api_stub/requests/storage/file.rb +252 -0
  95. data/test/integration/README.md +14 -0
  96. data/test/integration/blob.rb +297 -0
  97. data/test/integration/container.rb +160 -0
  98. data/test/integration/credentials/azure.yml +5 -0
  99. data/test/integration/storage_account.rb +135 -0
  100. data/test/models/storage/test_directories.rb +74 -0
  101. data/test/models/storage/test_directory.rb +178 -0
  102. data/test/models/storage/test_file.rb +294 -0
  103. data/test/models/storage/test_files.rb +234 -0
  104. data/test/requests/storage/test_acquire_blob_lease.rb +36 -0
  105. data/test/requests/storage/test_acquire_container_lease.rb +36 -0
  106. data/test/requests/storage/test_check_container_exists.rb +18 -0
  107. data/test/requests/storage/test_commit_blob_blocks.rb +34 -0
  108. data/test/requests/storage/test_compare_container_blobs.rb +36 -0
  109. data/test/requests/storage/test_copy_blob.rb +39 -0
  110. data/test/requests/storage/test_copy_blob_from_uri.rb +36 -0
  111. data/test/requests/storage/test_create_block_blob.rb +80 -0
  112. data/test/requests/storage/test_create_container.rb +36 -0
  113. data/test/requests/storage/test_create_disk.rb +70 -0
  114. data/test/requests/storage/test_create_page_blob.rb +34 -0
  115. data/test/requests/storage/test_delete_blob.rb +42 -0
  116. data/test/requests/storage/test_delete_blob_https_url.rb +32 -0
  117. data/test/requests/storage/test_delete_container.rb +42 -0
  118. data/test/requests/storage/test_delete_disk.rb +30 -0
  119. data/test/requests/storage/test_get_blob.rb +141 -0
  120. data/test/requests/storage/test_get_blob_http_url.rb +30 -0
  121. data/test/requests/storage/test_get_blob_https_url.rb +32 -0
  122. data/test/requests/storage/test_get_blob_properties.rb +47 -0
  123. data/test/requests/storage/test_get_blob_url.rb +75 -0
  124. data/test/requests/storage/test_get_container_acl.rb +37 -0
  125. data/test/requests/storage/test_get_container_properties.rb +45 -0
  126. data/test/requests/storage/test_get_container_url.rb +33 -0
  127. data/test/requests/storage/test_list_blobs.rb +77 -0
  128. data/test/requests/storage/test_list_containers.rb +54 -0
  129. data/test/requests/storage/test_multipart_save_block_blob.rb +105 -0
  130. data/test/requests/storage/test_put_blob_block.rb +34 -0
  131. data/test/requests/storage/test_put_blob_https_url.rb +32 -0
  132. data/test/requests/storage/test_put_blob_metadata.rb +36 -0
  133. data/test/requests/storage/test_put_blob_pages.rb +34 -0
  134. data/test/requests/storage/test_put_blob_properties.rb +39 -0
  135. data/test/requests/storage/test_put_container_acl.rb +34 -0
  136. data/test/requests/storage/test_put_container_metadata.rb +36 -0
  137. data/test/requests/storage/test_release_blob_lease.rb +34 -0
  138. data/test/requests/storage/test_release_container_lease.rb +34 -0
  139. data/test/requests/storage/test_save_page_blob.rb +115 -0
  140. data/test/requests/storage/test_wait_blob_copy_operation_to_finish.rb +148 -0
  141. data/test/smoke_tests/compute/test_resource_group_smoke.rb +37 -0
  142. data/test/test_credentials.rb +63 -0
  143. data/test/test_helper.rb +846 -0
  144. metadata +352 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4b58d858add0fa6eb3a7cd2e748232d32506f5d1c1c5ec91dc333137938804c8
4
+ data.tar.gz: 6863876c31c86b6d8e7eae3a03fb0ced679678ffd515e508e5f854379b878019
5
+ SHA512:
6
+ metadata.gz: 47e8d612e9b2144f46badfc86f7df85a8b39fc35e6b95134a94a5b79cb43786286a0e565a5fbb52e9da9d2eec0510203fe1bb0e5b769b0d32bd74313991b4a6b
7
+ data.tar.gz: ff4911539b4736ad2dc4d1cd3d541904cf75ac2695c65e2317077cd9200b1aedcac35a3b39e30a2d456d35e8c8b8b6b4d6c6d88d64c63ba9577c9297bd1f270f
@@ -0,0 +1,8 @@
1
+ {
2
+ "linters": {
3
+ "ruby": {
4
+ "type": "rubocop",
5
+ "include": "/\\.(rb|rake)$/"
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,17 @@
1
+ engines:
2
+ rubocop:
3
+ enabled: true
4
+ duplication:
5
+ enabled: true
6
+ config:
7
+ languages:
8
+ - ruby
9
+ checks:
10
+ Similar code:
11
+ enabled: false
12
+ Identical code:
13
+ enabled: false
14
+ ratings:
15
+ paths:
16
+ - lib/**
17
+ - test/**
@@ -0,0 +1,6 @@
1
+ .idea
2
+ Gemfile.lock
3
+ .arcconfig
4
+ coverage
5
+ */.DS_Store
6
+ *.gem
@@ -0,0 +1,17 @@
1
+ image: "ruby:2.7"
2
+
3
+ cache:
4
+ paths:
5
+ - vendor/ruby
6
+
7
+ before_script:
8
+ - ruby -v
9
+ - bundle install -j $(nproc) --path vendor
10
+
11
+ test:
12
+ script:
13
+ - bundle exec rake test
14
+
15
+ rubocop:
16
+ script:
17
+ - bundle exec rubocop
@@ -0,0 +1,2 @@
1
+ ruby:
2
+ config_file: .rubocop.yml
@@ -0,0 +1,5 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ NewCops: enable
5
+
@@ -0,0 +1,274 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2020-08-07 04:33:26 UTC using RuboCop version 0.89.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RequiredRubyVersion:
13
+ Exclude:
14
+ - 'gitlab-fog-azure-rm.gemspec'
15
+
16
+ # Offense count: 23
17
+ # Cop supports --auto-correct.
18
+ Layout/EmptyLineAfterGuardClause:
19
+ Enabled: false
20
+
21
+ # Offense count: 1
22
+ # Cop supports --auto-correct.
23
+ # Configuration parameters: AllowAliasSyntax, AllowedMethods.
24
+ # AllowedMethods: alias_method, public, protected, private
25
+ Layout/EmptyLinesAroundAttributeAccessor:
26
+ Exclude:
27
+ - 'lib/fog/azurerm/models/storage/file.rb'
28
+
29
+ # Offense count: 2
30
+ # Configuration parameters: EnforcedStyle.
31
+ # SupportedStyles: native, lf, crlf
32
+ Layout/EndOfLine:
33
+ Exclude:
34
+ - 'lib/fog/azurerm/models/resources/azure_resource.rb'
35
+ - 'lib/fog/azurerm/models/resources/azure_resources.rb'
36
+
37
+ # Offense count: 13
38
+ # Cop supports --auto-correct.
39
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
40
+ # SupportedHashRocketStyles: key, separator, table
41
+ # SupportedColonStyles: key, separator, table
42
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
43
+ Layout/HashAlignment:
44
+ Exclude:
45
+ - 'lib/fog/azurerm/models/storage/file.rb'
46
+ - 'lib/fog/azurerm/requests/storage/create_disk.rb'
47
+ - 'test/test_helper.rb'
48
+
49
+ # Offense count: 1
50
+ # Cop supports --auto-correct.
51
+ # Configuration parameters: EnforcedStyle.
52
+ # SupportedStyles: space, no_space
53
+ Layout/SpaceAroundEqualsInParameterDefault:
54
+ Exclude:
55
+ - 'lib/fog/azurerm/requests/storage/release_container_lease.rb'
56
+
57
+ # Offense count: 1
58
+ # Cop supports --auto-correct.
59
+ Layout/SpaceBeforeComma:
60
+ Exclude:
61
+ - 'gitlab-fog-azure-rm.gemspec'
62
+
63
+ # Offense count: 2
64
+ Lint/DuplicateMethods:
65
+ Exclude:
66
+ - 'lib/fog/azurerm/models/storage/directory.rb'
67
+ - 'lib/fog/azurerm/models/storage/file.rb'
68
+
69
+ # Offense count: 2
70
+ Lint/RescueException:
71
+ Exclude:
72
+ - 'lib/fog/azurerm/models/storage/directories.rb'
73
+ - 'lib/fog/azurerm/requests/storage/check_container_exists.rb'
74
+
75
+ # Offense count: 3
76
+ Lint/UselessAssignment:
77
+ Exclude:
78
+ - 'lib/fog/azurerm/storage.rb'
79
+ - 'test/integration/container.rb'
80
+
81
+ # Offense count: 1
82
+ # Configuration parameters: CheckForMethodsWithNoSideEffects.
83
+ Lint/Void:
84
+ Exclude:
85
+ - 'lib/fog/azurerm/models/storage/directory.rb'
86
+
87
+ # Offense count: 30
88
+ # Configuration parameters: IgnoredMethods.
89
+ Metrics/AbcSize:
90
+ Max: 63
91
+
92
+ # Offense count: 11
93
+ # Configuration parameters: CountComments, CountAsOne.
94
+ Metrics/ClassLength:
95
+ Max: 250
96
+
97
+ # Offense count: 9
98
+ # Configuration parameters: IgnoredMethods.
99
+ Metrics/CyclomaticComplexity:
100
+ Max: 14
101
+
102
+ # Offense count: 98
103
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
104
+ Metrics/MethodLength:
105
+ Max: 115
106
+
107
+ # Offense count: 1
108
+ # Configuration parameters: CountKeywordArgs.
109
+ Metrics/ParameterLists:
110
+ Max: 6
111
+
112
+ # Offense count: 9
113
+ # Configuration parameters: IgnoredMethods.
114
+ Metrics/PerceivedComplexity:
115
+ Max: 14
116
+
117
+ # Offense count: 9
118
+ Naming/ConstantName:
119
+ Exclude:
120
+ - 'lib/fog/azurerm/models/storage/kind.rb'
121
+ - 'lib/fog/azurerm/models/storage/sku_name.rb'
122
+ - 'lib/fog/azurerm/models/storage/sku_tier.rb'
123
+
124
+ # Offense count: 38
125
+ # Cop supports --auto-correct.
126
+ # Configuration parameters: PreferredName.
127
+ Naming/RescuedExceptionsVariableName:
128
+ Enabled: false
129
+
130
+ # Offense count: 13
131
+ # Cop supports --auto-correct.
132
+ # Configuration parameters: EnforcedStyle.
133
+ # SupportedStyles: separated, grouped
134
+ Style/AccessorGrouping:
135
+ Exclude:
136
+ - 'lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb'
137
+ - 'lib/fog/azurerm/requests/storage/save_page_blob.rb'
138
+ - 'test/test_helper.rb'
139
+
140
+ # Offense count: 2
141
+ # Cop supports --auto-correct.
142
+ Style/ExpandPathArguments:
143
+ Exclude:
144
+ - 'gitlab-fog-azure-rm.gemspec'
145
+ - 'lib/fog/azurerm/utilities/general.rb'
146
+
147
+ # Offense count: 2
148
+ # Cop supports --auto-correct.
149
+ Style/ExplicitBlockArgument:
150
+ Exclude:
151
+ - 'lib/fog/azurerm/models/storage/files.rb'
152
+
153
+ # Offense count: 117
154
+ # Cop supports --auto-correct.
155
+ # Configuration parameters: EnforcedStyle.
156
+ # SupportedStyles: always, always_true, never
157
+ Style/FrozenStringLiteralComment:
158
+ Enabled: false
159
+
160
+ # Offense count: 3
161
+ # Cop supports --auto-correct.
162
+ Style/IfUnlessModifier:
163
+ Exclude:
164
+ - 'lib/fog/azurerm/requests/storage/compare_container_blobs.rb'
165
+ - 'lib/fog/azurerm/requests/storage/wait_blob_copy_operation_to_finish.rb'
166
+
167
+ # Offense count: 1
168
+ # Cop supports --auto-correct.
169
+ Style/MultilineIfModifier:
170
+ Exclude:
171
+ - 'lib/fog/azurerm/models/resources/dependency.rb'
172
+
173
+ # Offense count: 1
174
+ # Cop supports --auto-correct.
175
+ # Configuration parameters: AllowedMethods.
176
+ # AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
177
+ Style/NestedParenthesizedCalls:
178
+ Exclude:
179
+ - 'test/test_helper.rb'
180
+
181
+ # Offense count: 1
182
+ # Cop supports --auto-correct.
183
+ # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
184
+ # SupportedStyles: predicate, comparison
185
+ Style/NumericPredicate:
186
+ Exclude:
187
+ - 'spec/**/*'
188
+ - 'lib/fog/azurerm/requests/storage/get_blob.rb'
189
+
190
+ # Offense count: 2
191
+ Style/OptionalBooleanParameter:
192
+ Exclude:
193
+ - 'lib/fog/azurerm/async_response.rb'
194
+ - 'lib/fog/azurerm/utilities/general.rb'
195
+
196
+ # Offense count: 36
197
+ # Cop supports --auto-correct.
198
+ # Configuration parameters: PreferredDelimiters.
199
+ Style/PercentLiteralDelimiters:
200
+ Exclude:
201
+ - 'lib/fog/azurerm/models/storage/directory.rb'
202
+ - 'lib/fog/azurerm/models/storage/file.rb'
203
+ - 'lib/fog/azurerm/models/storage/files.rb'
204
+ - 'lib/fog/azurerm/requests/storage/copy_blob.rb'
205
+ - 'lib/fog/azurerm/requests/storage/copy_blob_from_uri.rb'
206
+ - 'test/api_stub/requests/storage/file.rb'
207
+ - 'test/test_helper.rb'
208
+
209
+ # Offense count: 48
210
+ # Cop supports --auto-correct.
211
+ # Configuration parameters: EnforcedStyle.
212
+ # SupportedStyles: compact, exploded
213
+ Style/RaiseArgs:
214
+ Enabled: false
215
+
216
+ # Offense count: 1
217
+ # Cop supports --auto-correct.
218
+ Style/RedundantBegin:
219
+ Exclude:
220
+ - 'lib/fog/azurerm/storage.rb'
221
+
222
+ # Offense count: 16
223
+ # Cop supports --auto-correct.
224
+ # Configuration parameters: EnforcedStyle.
225
+ # SupportedStyles: implicit, explicit
226
+ Style/RescueStandardError:
227
+ Exclude:
228
+ - 'lib/fog/azurerm/models/storage/files.rb'
229
+ - 'lib/fog/azurerm/requests/storage/create_block_blob.rb'
230
+ - 'lib/fog/azurerm/requests/storage/create_disk.rb'
231
+ - 'lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb'
232
+ - 'lib/fog/azurerm/requests/storage/save_page_blob.rb'
233
+ - 'lib/fog/azurerm/requests/storage/wait_blob_copy_operation_to_finish.rb'
234
+ - 'test/integration/blob.rb'
235
+ - 'test/integration/container.rb'
236
+ - 'test/integration/storage_account.rb'
237
+
238
+ # Offense count: 3
239
+ # Cop supports --auto-correct.
240
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
241
+ # AllowedMethods: present?, blank?, presence, try, try!
242
+ Style/SafeNavigation:
243
+ Exclude:
244
+ - 'test/integration/blob.rb'
245
+ - 'test/integration/container.rb'
246
+ - 'test/integration/storage_account.rb'
247
+
248
+ # Offense count: 2
249
+ # Cop supports --auto-correct.
250
+ Style/StringConcatenation:
251
+ Exclude:
252
+ - 'test/integration/blob.rb'
253
+
254
+ # Offense count: 1
255
+ # Cop supports --auto-correct.
256
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
257
+ # SupportedStyles: single_quotes, double_quotes
258
+ Style/StringLiterals:
259
+ Exclude:
260
+ - 'gitlab-fog-azure-rm.gemspec'
261
+
262
+ # Offense count: 9
263
+ # Cop supports --auto-correct.
264
+ # Configuration parameters: MinSize.
265
+ # SupportedStyles: percent, brackets
266
+ Style/SymbolArray:
267
+ EnforcedStyle: brackets
268
+
269
+ # Offense count: 257
270
+ # Cop supports --auto-correct.
271
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
272
+ # URISchemes: http, https
273
+ Layout/LineLength:
274
+ Max: 1242
@@ -0,0 +1,49 @@
1
+ language: ruby
2
+ sudo: false
3
+
4
+ before_install:
5
+ - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
6
+ - gem install bundler -v '< 2'
7
+ - gem uninstall -aIx nokogiri -i /home/travis/.rvm/gems/ruby-2.4.1@global nokogiri
8
+
9
+ script: bash ./rake-script.sh
10
+
11
+ rvm:
12
+ - 2.0.0
13
+ - 2.1.0
14
+ - 2.1.1
15
+ - 2.1.5
16
+ - 2.2.10
17
+ - 2.3.7
18
+ - 2.4.4
19
+ - 2.5.1
20
+ - jruby-head
21
+
22
+ matrix:
23
+ fast_finish: true
24
+ allow_failures:
25
+ - rvm: jruby-head
26
+
27
+ notifications:
28
+ email:
29
+ recipients:
30
+ - dev-oneops@confiz.com
31
+ on_success: always
32
+ on_failure: always
33
+
34
+ addons:
35
+ code_climate:
36
+ repo_token: b1401494baa004d90402414cb33a7fc6420fd3693e60c677a120ddefd7d84cfd
37
+
38
+ jobs:
39
+ include:
40
+ - stage: gem release
41
+ deploy:
42
+ provider: rubygems
43
+ api_key:
44
+ secure: "aKIOqa6gFMQOcwdNBNsfRoAQm+LVCRf9JpEFnDH8YLRp9A+roj0BL3hZ+pP+pb2sQSEQqU46bfBBrhB2b6Xmjnmv5d0878bl+eYOXeu90CfqRf+v/y+2k/pMsVsKs3Su7M0bHGOeHYT+segRqDHaZaJHkAW8RwLLm5A+0TyEeVjkkpFcyX8fjr5sfvD+XbEmXmmPWPuShQjKTTj1HFYJknRLLNXVYd7ZM9eKgiQfuyomdUTk8yguqNDBWW1BjiEE/0JYqx4wJxdGKPHYT+enP1xIebJVx1gEEnc/OgyBZqtmOirlh2Rnuk58NZfArzwMzIvVclJvPmynmEAlHEWtXwUgQMW5Wu/RYpxRRpr5tDRfru99hll4N9bcA439GlsNHTNJf82zmGNFIdDJ8kUJ08tVPwTvEnWGzLIdKAKWyRV+SESmZb5u3m9e4VTd06/q8gdbW9pG9UGmoes/j32lKzk9DkheCVzQjdxfRs81Z/7uTB3OhhpQnrRlf7qa2OnMDZKrip67UQHiruzAX6naQ7D5fEHR64DGZG7fQ/xRi0oG21UdNl1n/Bioj6ChFXLyInKeA0fiEwwquWK2S/2Sr5ERTBzbv9TkvbJ/1vv8FWcYYmb7bL22699V9yWcsOxEdZEYDucg71g6OrPeNeFZDsJ1749fZzW2X444+4Xtwys="
45
+ gem: fog-azure-rm
46
+ gemspec: fog-azure-rm.gemspec
47
+ on:
48
+ tags: true
49
+ branch: master
@@ -0,0 +1,414 @@
1
+ ## 0.5.2
2
+
3
+ **Added**
4
+ - Printing Information from `AzureOperationError` Response Headers
5
+
6
+ ## 0.5.1
7
+
8
+ **Added**
9
+ - Added Managed Disk Caching Option
10
+
11
+ ## 0.5.0
12
+
13
+ **Added**
14
+ - Asynchronous creation of Network Interface Card
15
+
16
+ ## 0.4.9
17
+
18
+ **Added**
19
+ - Current Ruby versions added in .travis.yml for testing
20
+ - Asynchronous deletion of Managed Disk added
21
+
22
+ **Changed**
23
+
24
+ - List method which handles pagination by default has been updated for Network Security Group.
25
+ - .travis.yml updated to handle bundler gem dependency on Ruby 2.3+
26
+ - Mocks for Azure::Blobs updated
27
+
28
+ ## 0.4.8
29
+
30
+ **Added:**
31
+ - Added enable_accelerated_networking attribute for NIC
32
+
33
+ ## 0.4.7
34
+
35
+ **Added:**
36
+ - Support added to list resources in a resource group
37
+ - Added OS disk id attribute to the 'Compute' model
38
+
39
+ ## 0.4.6
40
+
41
+ **Added:**
42
+ - Created Custom Fog Exceptions
43
+
44
+ ## 0.4.5
45
+
46
+ **Changed:**
47
+ - Updated dependency of fog-json to (~> 1.0.2)
48
+
49
+ ## 0.4.4
50
+
51
+ **Fixed:**
52
+ - Compute Service - Fixed customData Update Issue
53
+
54
+ ## 0.4.3
55
+
56
+ **Fixed:**
57
+ - Compute Service - Fixed Server Update Scenario
58
+
59
+ ## 0.4.2
60
+
61
+ **Fixed:**
62
+ - Fixed 'raise_azure_exception' method
63
+
64
+ ## 0.4.1
65
+
66
+ **Fixed:**
67
+ - Fixed check existence methods for all resources
68
+ - Fixed mime-types dependency issue
69
+
70
+ ## 0.4.0
71
+
72
+ **Added**
73
+ - Support added for custom vm image reference
74
+
75
+ ## 0.3.9
76
+
77
+ **Changed**
78
+ - Fixed Fog::Storage issue of requiring the 'mime-types' gem
79
+
80
+ ## 0.3.8
81
+
82
+ **Changed:**
83
+ - Updated documentation
84
+
85
+ **Fixed:**
86
+ - Compute Service - Fixed issue with fault/update domain not populating
87
+
88
+ ## 0.3.7
89
+
90
+ **Fixed:**
91
+ - DNS Service - Fixed bug in DNS service
92
+
93
+ ## 0.3.6
94
+
95
+ **Added:**
96
+ - Compute Service - Added support for custom image provisioning with managed disk
97
+ - DNS Service - Fog Models for RecordSet Types 'A' and 'CNAME'
98
+ - Automated gem publishing on release tagging
99
+
100
+ **Changed:**
101
+ - Loosened dependency on fog-core
102
+ - Updated documentation
103
+
104
+ ## 0.3.5
105
+
106
+ **Added:**
107
+ - Compute Service - Added platform update domain and platform fault domain propertied in server model
108
+ - Compute Service - Added custom image support for managed VM
109
+
110
+ **Changed:**
111
+ - Compute Service - Changed required arguments for server create method
112
+
113
+ **Fixed**
114
+ - Compute Service - Fixed issue with creating VM with custom image
115
+
116
+ ## 0.3.4
117
+
118
+ **Added:**
119
+ - Compute Service - Added support for custom OS disk size during VM creation
120
+ - Compute Service - Added support to attach Managed Disk to VM
121
+ - Added resource tagging support on creation
122
+
123
+ **Removed:**
124
+ - Recovery Vault Support
125
+
126
+ ## 0.3.3
127
+
128
+ **Added:**
129
+ - Compute Service - Added support to create availability set with managed disk support
130
+
131
+ **Changed:**
132
+ - Compute Service - Provided option to configure fault and update domain values
133
+ - Removed dependency on Rest Client
134
+ - azure-storage dependency fixed to 0.11.5.preview (to enable use with ruby 2.0.0)
135
+
136
+ **Fixed:**
137
+ - Unit tests - Storage and Compute
138
+
139
+ ## 0.3.2
140
+
141
+ **Added:**
142
+ - Compute Service - Made remaining server(virtual machine) methods async
143
+
144
+ ## 0.3.1
145
+
146
+ **Changed:**
147
+ - Updated azure storage gem dependency to be flexible
148
+
149
+ ## 0.3.0
150
+
151
+ **Added**
152
+ - Compute Service - Added support for Managed Disk
153
+ - Compute Service - Added async method of creating server(virtual machine)
154
+
155
+ **Changed:**
156
+ - Compute Service - Changed create server method to take multiple NICs instead of one
157
+ - Updated Azure SDK gems to v0.9.0
158
+
159
+ **Fixed:**
160
+ - Integration tests
161
+
162
+ ## 0.2.7
163
+
164
+ **Changed:**
165
+ - Traffic Manager Service - Updated Traffic Manager Profile create method to receive and create Endpoints with it.
166
+
167
+ **Fixed:**
168
+ - Network Service - Fixed issue in check_virtual_network_exists request
169
+
170
+ ## 0.2.6
171
+
172
+ **Fixed:**
173
+ - Compute Service - storage_account_name attribute issue in server model
174
+ - Network Service - Attaching NSG issue while creating NIC
175
+
176
+ **Removed:**
177
+ - Dependency on nokogiri
178
+
179
+ ## 0.2.5
180
+
181
+ **Fixed:**
182
+ - Fog Model enums proper namespacing
183
+
184
+ ## 0.2.4
185
+
186
+ **Changed:**
187
+ - Updated Fog model enums
188
+
189
+ ## 0.2.3
190
+
191
+ **Added:**
192
+ - Added Fog models for Azure SDK Enums
193
+
194
+ **Changed**
195
+ - Compute Service - Made 'password' attribute as optional to create linux virtual machine
196
+
197
+ ## 0.2.2
198
+
199
+ **Changed:**
200
+ - Network Service - Updated NIC for load balancer attributes
201
+
202
+ ## 0.2.1
203
+
204
+ **Changed:**
205
+ - Compute Service - Added new parameter to create virtual machine request
206
+
207
+ ## 0.2.0
208
+
209
+ **Added:**
210
+ - Added support for multiple environments
211
+ - Added support to check for resource existence
212
+
213
+ **Changed:**
214
+ - Azure SQL Service - Updated Azure SQL Support to use azure_mgmt_sql gem.
215
+ - Azure Network Service - Added list all request in Load Balancer and Virtual Network
216
+
217
+
218
+ ## 0.1.2
219
+
220
+ **Added:**
221
+ - Storage Service - Added support for multiple environments
222
+
223
+
224
+ **Changed:**
225
+ * Updated fog-azure-rm runtime gem dependencies to latest:
226
+ * azure_mgmt_compute 0.8.0
227
+ * azure_mgmt_network 0.8.0
228
+ * azure_mgmt_resources 0.8.0
229
+ * azure_mgmt_storage 0.8.0
230
+ * azure_mgmt_dns 0.8.0
231
+ * azure_mgmt_traffic_manager 0.8.0
232
+ * azure-storage 0.11.4.preview'
233
+ * Refactoring in Azure SQL
234
+
235
+
236
+
237
+ ## 0.1.1
238
+
239
+ **Added:**
240
+ - Storage Service - Multi-thread support for uploading blobs
241
+ - Added support for all Azure locations(Global, China, Gov and Germany)
242
+
243
+ **Changed:**
244
+ * Updated fog-azure-rm runtime gem dependencies to latest:
245
+ * azure_mgmt_compute 0.7.0
246
+ * azure_mgmt_network 0.7.0
247
+ * azure_mgmt_resources 0.7.0
248
+ * azure_mgmt_storage 0.7.0
249
+ * azure_mgmt_dns 0.7.0
250
+ * azure_mgmt_traffic_manager 0.7.0
251
+ * azure-storage 0.11.3.preview'
252
+ * Provided same storage interfaces as other providers (PR: 204)
253
+ * Updated Data Disk operations (PR: 220)
254
+ * Updated namespaces
255
+ * Updated integration scripts
256
+
257
+ ## 0.1.0
258
+
259
+ **Added:**
260
+ - Azure SQL Service - Added support for SQL Server Firewall Rules.
261
+ - Azure Recovery Vault - Added support for Azure Recovery Vault.
262
+ - Azure Storage Service - Encryption support for storage account and Added support to create new data disk.
263
+
264
+
265
+ ## 0.0.9
266
+
267
+ **Added:**
268
+ - Azure SQL Service - Added support for SQL Server, SQL Databases and Data warehouse.
269
+ - Updated fog-azure-rm runtime gem dependencies to latest.
270
+
271
+ **Changed:**
272
+ - DNS Service - DNS Service moved from API calls to Azure latest SDK.
273
+
274
+
275
+
276
+ ## 0.0.8
277
+
278
+ **Added:**
279
+ - Compute Service - Added support to create virtual machine from a custom image.
280
+ - Network Service - Added Network Security Rule.
281
+ - Network Service - Added Get Available IP Addresses count in Subnet
282
+ - Compute Service - Virtual Machine Extension
283
+ - Added Blob count, blob exist, blob compare,blob copy, lease blob, release lease blob, delete blob, set blob properties,
284
+ get blob properties, set blob metadata, get blob metadata, get blob, list blob functionality for storage
285
+ - Added get container properties, get container metadata, set container metadata, get container, list container,
286
+ delete container, Get the access control list of the container
287
+
288
+
289
+ ## 0.0.6
290
+
291
+ **Added:**
292
+ - Compute Service - Added Custom data support for creating Virtual Machine.
293
+ - Network Service - Added Express Route Circuit Authorization.
294
+ - Network Service - Added Virtual Network Gateway Connection support
295
+ - Network Service - Added Local Network Gateway
296
+ - Traffic Manager - Added support for Update Traffic Manager Profile and Endpoint.
297
+
298
+ **Changed:**
299
+ - Used autoload in place of require to avoid loading time issues
300
+ - Used Fog DSL to register services
301
+
302
+ ## 0.0.5
303
+
304
+ **Added:**
305
+ - Network Service - Added Get request for Public IP
306
+ - Network Service - Added Express Route Circuit
307
+ - Network Service - Added VPN Gateway
308
+
309
+ **Changed:**
310
+ * Updated fog-azure-rm runtime gem dependencies to latest:
311
+ * azure_mgmt_compute 0.5.0
312
+ * azure_mgmt_network 0.5.0
313
+ * azure_mgmt_resources 0.5.0
314
+ * azure_mgmt_storage 0.5.0
315
+ * azure_mgmt_traffic_manager 0.5.0
316
+ * rest-client 2.0.0
317
+ * fog-core 1.42.0
318
+ * Traffic Manager Service - Moved Traffic Manager from Network Service to Traffic Manager Service.
319
+ * Application Gateway Service - Moved Application Gateway from Network Service to Application Gateway Service.
320
+
321
+ ## 0.0.4
322
+
323
+ **Added:**
324
+ - Storage Service - Added Support for Azure container operations
325
+ - Storage Service - Added blob container metadata support
326
+ - Storage Service - Added support to get storage access key
327
+ - Network Service - Added support for updation methods for Network Security Group
328
+ - Network Service - Added support for updation methods for Virtual Network(vnet)
329
+ - Network Service - Added support for updation methods for Subnet
330
+ - Network Service - Added support for updation methods for Network Interface Card(NIC)
331
+ - Compute Service - Added support for azure resource manager templates
332
+ - Resource Service - Added support to tag azure resources
333
+ - Integration test scripts for all services
334
+ - Documentation - Added fog structure information in contribution guide
335
+
336
+ **Changed:**
337
+ - Compute Service - Moved data disk model to storage service and updated unit tests
338
+ - Compute Service - Loaded Data Disk model to make it accessible in Server model
339
+ - Network Service - Support for internal load balancer and documentation update
340
+ - Network Service - Improved subnet and virtual network module
341
+ - Network Service - Updated unit test and integration test
342
+ - Documentation - Changed delete_data_disk request name to delete_disk
343
+
344
+ **Fixed:**
345
+ - Resolved bugs in server.rb integration file
346
+
347
+ **Removed:**
348
+ - Compute Service - Moved data disk implementation to storage service
349
+
350
+
351
+ ## 0.0.3
352
+
353
+ **Added:**
354
+ - Compute Service: Support for Attach Data Disk & Detach Data Disk in Server
355
+ - Compute Service: Support for Windows VM in create Server
356
+ - Network Service - Application Gateway
357
+ - Compute Service- check_vm_status method in Server as per: https://github.com/fog/fog-azure-rm/issues/38
358
+ - Badges in Readme.md file
359
+
360
+ **Fixed:**
361
+ - Code Climate Issues
362
+ - Rubocop Offences
363
+ - Compute service - Bug in Sever model as per: https://github.com/fog/fog-azure-rm/issues/36
364
+ - Network Service - Bug in Network Interface as per: https://github.com/fog/fog-azure-rm/issues/65
365
+
366
+ **Removed:**
367
+ - Shindo Unit Tests
368
+
369
+ **Integrated:**
370
+ - Code Climate
371
+ - Travis CI
372
+ - Hound CI
373
+ - Gemnasium
374
+ - Waffle
375
+
376
+
377
+ ## 0.0.2
378
+
379
+ **Added:**
380
+ - Network Service - Network Security Group
381
+ - Network Service - Load Balancer
382
+ - Network Service - Traffic Manager
383
+ - Minitest Unit Tests - DNS Requests
384
+ - Response Parser: Compute, Network, DNS, Storage
385
+ - Mock class implementation in all services
386
+
387
+ **Changed:**
388
+ - Response related changes in all services
389
+ - Network Service - Subnet attributes names
390
+ - Code standardization in all services
391
+
392
+
393
+ ## 0.0.1
394
+
395
+ **Fixed:**
396
+ - Network Service - Network Interface Card
397
+
398
+
399
+ ## 0.0.0
400
+
401
+ **Added:**
402
+ - Shindo Unit Tests - All
403
+ - Minitest Unit Tests - Compute, Storage, Network, Resources, DNS Models
404
+ - Documentation - All Services
405
+ - Compute Service - Server
406
+ - Compute Service - Availability Set
407
+ - Network Service - Network Interface
408
+ - Network Service - Subnet
409
+ - Network Service - Virtual Network
410
+ - Network Service - Public IP
411
+ - Storage Service - Storage Account
412
+ - Resource Service - Resource Manager
413
+ - DNS Service - Record Set
414
+ - DNS Service - Zone