azure-armrest 0.12.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48ccdc0fcdca3b16cff714ed97ed330999bbd87e67ba6d590b365e034af41fdb
4
- data.tar.gz: 6094b9d354b14574ac3b5ab3a2f3b123460ba9120662392b29a664b424f69640
3
+ metadata.gz: 43f6b49a86089db158e87b5712047ad67cc5db25e2f7ba0be72467b9a95e1c3e
4
+ data.tar.gz: ea93fb0ef8370970cfc8fd2a107e4415f07fc861283b60fc9e56704682516d23
5
5
  SHA512:
6
- metadata.gz: af11539b8761a9fd6edf642e336e0250a8b9c1bf24488da7bf0fa0647094bbbf9ac2772428e98b2bd77f316973f969bf857ff6d678f798ac0d5ce0f6c8b0ad85
7
- data.tar.gz: d86a2243bf853a6a3a9bf44cf2bd0900c70001c9fb71f7967e8d54c1ebe77f256cf5900e3427bfc44b71612772ed19ba82c8c1a0167d3418dd59f0d31655dc3d
6
+ metadata.gz: 1e53cccbb7ebfbbacd9201d2300783dde226f17ec6d616ce5b6a767ed03089485b6b5e82532ca75ea5163960561af72fddbaaae0c572c4d1581f768883b70faa
7
+ data.tar.gz: 6db2527fa35ac689b7f270a2924850e4fb5fedd708aec9cbfc98d7fb1ead4dac43c996188b45c54844da4ab7c23f5fca758726e733512520566c5ba1e5260f3d
@@ -0,0 +1,33 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ - cron: '0 0 * * 0'
8
+
9
+ jobs:
10
+ ci:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version:
15
+ - '2.5'
16
+ - '2.6'
17
+ - '2.7'
18
+ - '3.0'
19
+ env:
20
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Set up Ruby
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: ${{ matrix.ruby-version }}
27
+ bundler-cache: true
28
+ - name: Run tests
29
+ run: bundle exec rake
30
+ - name: Report code coverage
31
+ if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' }}
32
+ continue-on-error: true
33
+ uses: paambaati/codeclimate-action@v3.0.0
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
- --format documentation
1
+ --require spec_helper
2
2
  --color
3
+ --order random
data/.whitesource ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "settingsInheritedFrom": "ManageIQ/whitesource-config@master"
3
+ }
data/CHANGES CHANGED
@@ -1,3 +1,12 @@
1
+ = 0.14.0 - 25-May-2022
2
+ * Fix undefined method delegate (#418)
3
+ * Remove the deprecated `Microsoft Cloud Deutschland` environment (#417)
4
+ * Fix issue with ActiveSupport 7+ (#419)
5
+
6
+ = 0.13.1 - 16-Feb-2022
7
+ * Fix issue with ActiveSupport 7+ (#415)
8
+ * Switch to GitHub Actions (#414)
9
+
1
10
  = 0.11.0 - 20-Apr-2021
2
11
  * Modify the VirtualMachineService#get method to include instance view
3
12
  information
data/README.md CHANGED
@@ -1,14 +1,13 @@
1
1
  ## Description
2
2
 
3
- [![Join the chat at https://gitter.im/ManageIQ/azure-armrest](https://badges.gitter.im/ManageIQ/azure-armrest.svg)](https://gitter.im/ManageIQ/azure-armrest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
-
5
3
  A Ruby interface for Azure using the new REST API.
6
4
 
7
5
  [![Gem Version](https://badge.fury.io/rb/azure-armrest.svg)](http://badge.fury.io/rb/azure-armrest)
8
- [![Build Status](https://travis-ci.org/ManageIQ/azure-armrest.svg)](https://travis-ci.org/ManageIQ/azure-armrest)
6
+ [![CI](https://github.com/ManageIQ/azure-armrest/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/azure-armrest/actions/workflows/ci.yaml)
9
7
  [![Code Climate](https://codeclimate.com/github/ManageIQ/azure-armrest/badges/gpa.svg)](https://codeclimate.com/github/ManageIQ/azure-armrest)
10
8
  [![Test Coverage](https://codeclimate.com/github/ManageIQ/azure-armrest/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/azure-armrest/coverage)
11
- [![Security](https://hakiri.io/github/ManageIQ/azure-armrest/master.svg)](https://hakiri.io/github/ManageIQ/azure-armrest/master)
9
+
10
+ [![Join the chat at https://gitter.im/ManageIQ/azure-armrest](https://badges.gitter.im/ManageIQ/azure-armrest.svg)](https://gitter.im/ManageIQ/azure-armrest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
12
11
 
13
12
  ## Synopsis
14
13
 
@@ -17,18 +17,18 @@ different than the current azure gem, which uses the older (XML) interface
17
17
  behind the scenes.
18
18
  EOF
19
19
 
20
- spec.add_dependency 'activesupport', '>= 4.2.2'
21
- spec.add_dependency 'addressable', '~> 2.8'
22
- spec.add_dependency 'azure-signature', '~> 0.3.0'
23
- spec.add_dependency 'json', '~> 2'
24
- spec.add_dependency 'memoist', '~> 0.15'
25
- spec.add_dependency 'parallel', '~> 1.12.0'
26
- spec.add_dependency 'rest-client', '~> 2.1.0'
20
+ spec.add_dependency "activesupport", ">= 4.2.2"
21
+ spec.add_dependency "addressable", "~> 2.8"
22
+ spec.add_dependency "azure-signature", "~> 0.3.0"
23
+ spec.add_dependency "json", "~> 2"
24
+ spec.add_dependency "memoist", "~> 0.15"
25
+ spec.add_dependency "parallel", "~> 1.12.0"
26
+ spec.add_dependency "rest-client", "~> 2.1.0"
27
27
 
28
- spec.add_development_dependency 'bundler'
29
- spec.add_development_dependency 'manageiq-style'
30
- spec.add_development_dependency 'rake'
31
- spec.add_development_dependency 'rspec', '~> 3.0'
32
- spec.add_development_dependency 'simplecov'
33
- spec.add_development_dependency 'timecop', '~> 0.7'
28
+ spec.add_development_dependency "bundler"
29
+ spec.add_development_dependency "manageiq-style"
30
+ spec.add_development_dependency "rake"
31
+ spec.add_development_dependency "rspec", "~> 3.0"
32
+ spec.add_development_dependency "simplecov", ">= 0.21.2"
33
+ spec.add_development_dependency "timecop", "~> 0.7"
34
34
  end
@@ -1,6 +1,8 @@
1
1
  require 'time'
2
+ require 'active_support'
2
3
  require 'active_support/core_ext/hash/conversions'
3
4
  require 'active_support/core_ext/hash/keys'
5
+ require 'active_support/core_ext/module/delegation'
4
6
  require_relative 'model/base_model'
5
7
 
6
8
  module Azure
@@ -154,23 +154,6 @@ module Azure
154
154
  :traffic_manager_dns_suffix => 'usgovtrafficmanager.net',
155
155
  )
156
156
 
157
- Germany = new(
158
- :name => 'Germany',
159
- :active_directory_authority => 'https://login.microsoftonline.de/',
160
- :active_directory_resource_id => 'https://management.core.cloudapi.de/',
161
- :gallery_url => 'https://gallery.cloudapi.de/',
162
- :graph_url => 'https://graph.cloudapi.de/',
163
- :graph_api_version => '1.6',
164
- :key_vault_dns_suffix => 'vault.microsoftazure.de',
165
- :key_vault_service_resource_id => 'https://vault.microsoftazure.de',
166
- :publish_settings_file_url => 'https://manage.microsoftazure.de/publishsettings/index',
167
- :resource_manager_url => 'https://management.microsoftazure.de/',
168
- :service_management_url => 'https://management.core.cloudapi.de/',
169
- :sql_database_dns_suffix => 'database.cloudapi.de',
170
- :storage_suffix => 'core.cloudapi.de',
171
- :traffic_manager_dns_suffix => 'azuretrafficmanager.de'
172
- )
173
-
174
157
  China = new(
175
158
  :name => 'China',
176
159
  :active_directory_authority => 'https://login.chinacloudapi.cn',
@@ -1,3 +1,4 @@
1
+ require 'active_support'
1
2
  require 'active_support/core_ext/string/inflections'
2
3
  require 'pp'
3
4
 
@@ -338,6 +339,12 @@ module Azure
338
339
  end
339
340
 
340
341
  module Sql
342
+ class MariadbServer < BaseModel; end
343
+ class MariadbDatabase < BaseModel; end
344
+ class MysqlServer < BaseModel; end
345
+ class MysqlDatabase < BaseModel; end
346
+ class PostgresqlServer < BaseModel; end
347
+ class PostgresqlDatabase < BaseModel; end
341
348
  class SqlServer < BaseModel; end
342
349
  class SqlDatabase < BaseModel; end
343
350
  end
@@ -1,4 +1,5 @@
1
1
  require 'azure-signature'
2
+ require 'active_support'
2
3
  require 'active_support/core_ext/hash/conversions'
3
4
 
4
5
  module Azure
@@ -1,3 +1,4 @@
1
+ require 'active_support'
1
2
  require 'active_support/core_ext/hash/conversions'
2
3
 
3
4
  module Azure
@@ -0,0 +1,11 @@
1
+ module Azure
2
+ module Armrest
3
+ module Sql
4
+ class MariadbDatabaseService < ResourceGroupBasedSubservice
5
+ def initialize(armrest_configuration, options = {})
6
+ super(armrest_configuration, 'servers', 'databases', 'Microsoft.DBforMariaDB', options)
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Azure
2
+ module Armrest
3
+ module Sql
4
+ class MariadbServerService < ResourceGroupBasedService
5
+ def initialize(armrest_configuration, options = {})
6
+ super(armrest_configuration, 'servers', 'Microsoft.DBforMariaDB', options)
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Azure
2
+ module Armrest
3
+ module Sql
4
+ class MysqlDatabaseService < ResourceGroupBasedSubservice
5
+ def initialize(armrest_configuration, options = {})
6
+ super(armrest_configuration, 'servers', 'databases', 'Microsoft.DBforMySQL', options)
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Azure
2
+ module Armrest
3
+ module Sql
4
+ class MysqlServerService < ResourceGroupBasedService
5
+ def initialize(armrest_configuration, options = {})
6
+ super(armrest_configuration, 'servers', 'Microsoft.DBforMySQL', options)
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Azure
2
+ module Armrest
3
+ module Sql
4
+ class PostgresqlDatabaseService < ResourceGroupBasedSubservice
5
+ def initialize(armrest_configuration, options = {})
6
+ super(armrest_configuration, 'servers', 'databases', 'Microsoft.DBforPostgreSQL', options)
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Azure
2
+ module Armrest
3
+ module Sql
4
+ class PostgresqlServerService < ResourceGroupBasedService
5
+ def initialize(armrest_configuration, options = {})
6
+ super(armrest_configuration, 'servers', 'Microsoft.DBforPostgreSQL', options)
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,6 +1,6 @@
1
1
  module Azure
2
2
  module Armrest
3
3
  # The version of the azure-armrest library.
4
- VERSION = '0.12.0'.freeze
4
+ VERSION = '0.14.0'.freeze
5
5
  end
6
6
  end
data/lib/azure/armrest.rb CHANGED
@@ -3,6 +3,7 @@ require 'json'
3
3
  require 'addressable'
4
4
  require 'parallel'
5
5
  require 'memoist'
6
+ require 'active_support'
6
7
  require 'active_support/core_ext/hash'
7
8
 
8
9
  # The Azure module serves as a namespace.
@@ -55,6 +56,12 @@ require 'azure/armrest/network/subnet_service'
55
56
  require 'azure/armrest/role'
56
57
  require 'azure/armrest/role/assignment_service'
57
58
  require 'azure/armrest/role/definition_service'
59
+ require 'azure/armrest/sql/mariadb_server_service'
60
+ require 'azure/armrest/sql/mariadb_database_service'
61
+ require 'azure/armrest/sql/mysql_server_service'
62
+ require 'azure/armrest/sql/mysql_database_service'
63
+ require 'azure/armrest/sql/postgresql_server_service'
64
+ require 'azure/armrest/sql/postgresql_database_service'
58
65
  require 'azure/armrest/sql/sql_server_service'
59
66
  require 'azure/armrest/sql/sql_database_service'
60
67
  require 'azure/armrest/billing/usage_service'
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-armrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  - Bronagh Sorota
9
9
  - Greg Blomquist
10
10
  - Bill Wei
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-07-13 00:00:00.000000000 Z
14
+ date: 2022-05-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -173,14 +173,14 @@ dependencies:
173
173
  requirements:
174
174
  - - ">="
175
175
  - !ruby/object:Gem::Version
176
- version: '0'
176
+ version: 0.21.2
177
177
  type: :development
178
178
  prerelease: false
179
179
  version_requirements: !ruby/object:Gem::Requirement
180
180
  requirements:
181
181
  - - ">="
182
182
  - !ruby/object:Gem::Version
183
- version: '0'
183
+ version: 0.21.2
184
184
  - !ruby/object:Gem::Dependency
185
185
  name: timecop
186
186
  requirement: !ruby/object:Gem::Requirement
@@ -209,12 +209,13 @@ extensions: []
209
209
  extra_rdoc_files: []
210
210
  files:
211
211
  - ".codeclimate.yml"
212
+ - ".github/workflows/ci.yaml"
212
213
  - ".gitignore"
213
214
  - ".rspec"
214
215
  - ".rubocop.yml"
215
216
  - ".rubocop_cc.yml"
216
217
  - ".rubocop_local.yml"
217
- - ".travis.yml"
218
+ - ".whitesource"
218
219
  - CHANGES
219
220
  - Gemfile
220
221
  - LICENSE
@@ -259,6 +260,12 @@ files:
259
260
  - lib/azure/armrest/role.rb
260
261
  - lib/azure/armrest/role/assignment_service.rb
261
262
  - lib/azure/armrest/role/definition_service.rb
263
+ - lib/azure/armrest/sql/mariadb_database_service.rb
264
+ - lib/azure/armrest/sql/mariadb_server_service.rb
265
+ - lib/azure/armrest/sql/mysql_database_service.rb
266
+ - lib/azure/armrest/sql/mysql_server_service.rb
267
+ - lib/azure/armrest/sql/postgresql_database_service.rb
268
+ - lib/azure/armrest/sql/postgresql_server_service.rb
262
269
  - lib/azure/armrest/sql/sql_database_service.rb
263
270
  - lib/azure/armrest/sql/sql_server_service.rb
264
271
  - lib/azure/armrest/storage/disk_service.rb
@@ -277,7 +284,7 @@ homepage: http://github.com/ManageIQ/azure-armrest
277
284
  licenses:
278
285
  - Apache-2.0
279
286
  metadata: {}
280
- post_install_message:
287
+ post_install_message:
281
288
  rdoc_options: []
282
289
  require_paths:
283
290
  - lib
@@ -292,8 +299,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
299
  - !ruby/object:Gem::Version
293
300
  version: '0'
294
301
  requirements: []
295
- rubygems_version: 3.2.5
296
- signing_key:
302
+ rubygems_version: 3.3.5
303
+ signing_key:
297
304
  specification_version: 4
298
305
  summary: An interface for ARM/JSON Azure REST API
299
306
  test_files: []
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - "2.5.7"
5
- - "2.6.5"
6
- - ruby-head
7
- - jruby-head
8
- matrix:
9
- allow_failures:
10
- - rvm: ruby-head
11
- - rvm: jruby-head
12
- fast_finish: true
13
- before_script:
14
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
15
- - chmod +x ./cc-test-reporter
16
- - ./cc-test-reporter before-build
17
- after_script:
18
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT