azure-armrest 0.10.0 → 0.13.1

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: a58247b13fa15be3fc773cb02e734ae36d3a21db9be243ecf4fa3b66014e3117
4
- data.tar.gz: 123caf6a1a8ec857e5da499357b41ef0177346d938fe06f3a0d933b029bddf77
3
+ metadata.gz: 12f4a059e538066753cb956f71d13db85fb895f12face142cb9b5516c51dbadd
4
+ data.tar.gz: 6cdae8289f36fbec835b6f07b19c32b9c6b08ac1422ff406823060d263c0906e
5
5
  SHA512:
6
- metadata.gz: e13e25b3086f351299f9e1b17c0be38a3610d055f44f6528883823e692015f6be582fd5281a4113c2a243226510dd3cdee8d5bf753f463f344bb263b5104aa28
7
- data.tar.gz: d7b81384f7f93248088536cc366e6e0e17cae8ad2ae9b94b3c287fd0f39b5dd4664dc5e49e55e8d5990643ec9bdc94679699798c23e07b5850d5e9f24d16023f
6
+ metadata.gz: 86787139be20517417847e92c8bb4039ef1146ad2c972f3b4c783a88ee9b8799f91de9ae3f7e883068a76831e449adbd1ad74f0358e17bacbcd12d5ed10edcbc
7
+ data.tar.gz: 7f1ac6d55bed4e56f7afd67a91afb40ec6b3cc04ffeb166a709d2facadf9ee997ad2fd6325cd8cddc76631d75ae414d9a3c684b5a6dd3f98446e7bea91083b6d
data/.codeclimate.yml ADDED
@@ -0,0 +1,16 @@
1
+ prepare:
2
+ fetch:
3
+ - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_base.yml
4
+ path: ".rubocop_base.yml"
5
+ - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_cc_base.yml
6
+ path: ".rubocop_cc_base.yml"
7
+ - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/base.yml
8
+ path: styles/base.yml
9
+ - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/cc_base.yml
10
+ path: styles/cc_base.yml
11
+ plugins:
12
+ rubocop:
13
+ enabled: true
14
+ config: ".rubocop_cc.yml"
15
+ channel: rubocop-0-82
16
+ version: '2'
@@ -0,0 +1,29 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ ci:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby-version:
11
+ - '2.5'
12
+ - '2.6'
13
+ - '2.7'
14
+ - '3.0'
15
+ env:
16
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
17
+ steps:
18
+ - uses: actions/checkout@v2
19
+ - name: Set up Ruby
20
+ uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby-version }}
23
+ bundler-cache: true
24
+ - name: Run tests
25
+ run: bundle exec rake
26
+ - name: Report code coverage
27
+ if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' }}
28
+ continue-on-error: true
29
+ 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/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
+ inherit_gem:
2
+ manageiq-style: ".rubocop_base.yml"
1
3
  inherit_from:
2
- - https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
3
- # put all local rubocop config into .rubocop_local.yml as it will be loaded by .rubocop_cc.yml as well
4
- - .rubocop_local.yml
4
+ - ".rubocop_local.yml"
data/.rubocop_cc.yml ADDED
@@ -0,0 +1,4 @@
1
+ inherit_from:
2
+ - ".rubocop_base.yml"
3
+ - ".rubocop_cc_base.yml"
4
+ - ".rubocop_local.yml"
data/.whitesource ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "settingsInheritedFrom": "ManageIQ/whitesource-config@master"
3
+ }
data/CHANGES CHANGED
@@ -1,3 +1,14 @@
1
+ = 0.13.1 - 16-Feb-2022
2
+ * Fix issue with ActiveSupport 7+ (#415)
3
+ * Switch to GitHub Actions (#414)
4
+
5
+ = 0.11.0 - 20-Apr-2021
6
+ * Modify the VirtualMachineService#get method to include instance view
7
+ information
8
+ * Update default ssl_version to TLSv1_2
9
+ * Fix tenants method
10
+ * Handle application/xml exception content-types
11
+
1
12
  = 0.10.0 - 14-May-2020
2
13
  * Updated the rest-client dependency to 2.1.0.
3
14
  * Updated the azure-signature dependency to 0.3.0.
data/README.md CHANGED
@@ -1,15 +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
- [![Dependency Status](https://gemnasium.com/ManageIQ/azure-armrest.svg)](https://gemnasium.com/ManageIQ/azure-armrest)
12
- [![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)
13
11
 
14
12
  ## Synopsis
15
13
 
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.email = ['dberger@redhat.com', 'bsorota@redhat.com', 'gblomqui@redhat.com', 'billwei@redhat.com']
9
9
  spec.summary = 'An interface for ARM/JSON Azure REST API'
10
10
  spec.homepage = 'http://github.com/ManageIQ/azure-armrest'
11
- spec.license = 'Apache 2.0'
11
+ spec.license = 'Apache-2.0'
12
12
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
13
13
 
14
14
  spec.description = <<-EOF
@@ -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 'json', '~> 2'
21
- spec.add_dependency 'rest-client', '~> 2.1.0'
22
- spec.add_dependency 'memoist', '~> 0.15'
23
- spec.add_dependency 'azure-signature', '~> 0.3.0'
24
- spec.add_dependency 'activesupport', '>= 4.2.2'
25
- spec.add_dependency 'addressable', '~> 2.5.0'
26
- spec.add_dependency 'parallel', '~> 1.12.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 'rake'
30
- spec.add_development_dependency 'rspec', '~> 3.0'
31
- spec.add_development_dependency 'simplecov'
32
- spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.0'
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,5 +1,6 @@
1
1
  require 'time'
2
2
  require 'active_support/core_ext/hash/conversions'
3
+ require 'active_support/core_ext/hash/keys'
3
4
  require_relative 'model/base_model'
4
5
 
5
6
  module Azure
@@ -154,7 +155,7 @@ module Azure
154
155
  # Returns a list of tenants that can be accessed.
155
156
  #
156
157
  def tenants
157
- url = url_with_api_version(configuration.api_version, configuration.resource_url, 'tenants')
158
+ url = url_with_api_version(configuration.api_version, configuration.environment.resource_url, 'tenants')
158
159
  resp = rest_get(url)
159
160
  JSON.parse(resp.body)['value'].map{ |hash| Azure::Armrest::Tenant.new(hash) }
160
161
  end
@@ -253,11 +254,22 @@ module Azure
253
254
 
254
255
  def raise_api_exception(err)
255
256
  begin
256
- response = JSON.parse(err.http_body)
257
- code = response['error']['code']
258
- message = response['error']['message']
257
+ content_type_header = err.response.headers[:content_type]
258
+
259
+ response = case content_type_header.match(%r{(application/\w+)})[1]
260
+ when "application/json"
261
+ JSON.parse(err.http_body)
262
+ when "application/xml"
263
+ # The XML document that is returned has Error, Code, and Message
264
+ # so we need to downcase the keys to stay consistent with the
265
+ # parsed-json hash.
266
+ Hash.from_xml(err.http_body).deep_transform_keys(&:downcase)
267
+ end
268
+
269
+ code = response['error']['code']
270
+ message = response['error']['message']
259
271
  rescue
260
- code = err.try(:http_code) || err.try(:code)
272
+ code = err.try(:http_code) || err.try(:code)
261
273
  message = err.try(:http_body) || err.try(:message)
262
274
  end
263
275
 
@@ -107,7 +107,7 @@ module Azure
107
107
  :content_type => 'application/json',
108
108
  :grant_type => 'client_credentials',
109
109
  :proxy => ENV['http_proxy'],
110
- :ssl_version => 'TLSv1',
110
+ :ssl_version => 'TLSv1_2',
111
111
  :timeout => 60,
112
112
  :max_threads => 10,
113
113
  :max_retries => 3,
@@ -338,6 +338,12 @@ module Azure
338
338
  end
339
339
 
340
340
  module Sql
341
+ class MariadbServer < BaseModel; end
342
+ class MariadbDatabase < BaseModel; end
343
+ class MysqlServer < BaseModel; end
344
+ class MysqlDatabase < BaseModel; end
345
+ class PostgresqlServer < BaseModel; end
346
+ class PostgresqlDatabase < BaseModel; end
341
347
  class SqlServer < BaseModel; end
342
348
  class SqlDatabase < BaseModel; end
343
349
  end
@@ -288,7 +288,7 @@ module Azure
288
288
  url = File.join(properties.primary_endpoints.file, share, file)
289
289
  url += "?timeout=#{timeout}" if timeout
290
290
 
291
- hash = options.transform_keys.each { |okey| 'x-ms-' + okey.to_s.tr('_', '-') }
291
+ hash = options.transform_keys { |okey| 'x-ms-' + okey.to_s.tr('_', '-') }
292
292
 
293
293
  hash['verb'] = 'PUT'
294
294
 
@@ -380,7 +380,7 @@ module Azure
380
380
  url = File.join(properties.primary_endpoints.file, share, file) + "?comp=range"
381
381
  url += "&timeout=#{timeout}" if timeout
382
382
 
383
- hash = options.transform_keys.each { |okey| 'x-ms-' + okey.to_s.tr('_', '-') }
383
+ hash = options.transform_keys { |okey| 'x-ms-' + okey.to_s.tr('_', '-') }
384
384
 
385
385
  hash['verb'] = 'PUT'
386
386
  hash['x-ms-write'] ||= 'update'
@@ -232,7 +232,7 @@ module Azure
232
232
  api_version = configuration.provider_default_api_version(provider_name, full_service_name)
233
233
  end
234
234
  api_version ||= configuration.provider_default_api_version(provider_name, service_name)
235
- api_version ||= configuration.api_version
235
+ api_version || configuration.api_version
236
236
  end
237
237
 
238
238
  def delete_by_url(url, resource_name = '')
@@ -260,7 +260,7 @@ module Azure
260
260
  # arguments provided, and appends it with the api_version.
261
261
  #
262
262
  def build_url(resource_group = nil, *args)
263
- url = File.join(configuration.environment.resource_url, build_id_string(resource_group, *args))
263
+ File.join(configuration.environment.resource_url, build_id_string(resource_group, *args))
264
264
  end
265
265
 
266
266
  def build_id_string(resource_group = nil, *args)
@@ -279,6 +279,8 @@ module Azure
279
279
  query << "&$top=#{value}"
280
280
  elsif key.casecmp('filter').zero?
281
281
  query << "&$filter=#{value}" # Allow raw filter
282
+ elsif key.casecmp('expand').zero?
283
+ query << "&$expand=#{value}"
282
284
  else
283
285
  if query.include?("$filter")
284
286
  query << " and #{key} eq '#{value}'"
@@ -142,7 +142,6 @@ module Azure
142
142
  private
143
143
 
144
144
  def build_url(namespace = nil, *args)
145
- id = configuration.subscription_id
146
145
  url = File.join(base_url, 'providers')
147
146
  url = File.join(url, namespace) if namespace
148
147
  url = File.join(url, *args) unless args.empty?
@@ -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
@@ -86,7 +86,7 @@ module Azure::Armrest::Storage::ManagedStorageHelper
86
86
  rescue Azure::Armrest::ForbiddenException => err
87
87
  log('warn', "ManagedStorageHelper.read: #{err}")
88
88
  raise err
89
- rescue RestClient::Exception, Azure::Armrest::ForbiddenException => err
89
+ rescue RestClient::Exception, Azure::Armrest::Exception => err
90
90
  raise err unless retries < max_retries
91
91
  log('warn', "ManagedStorageHelper.read: #{err} - retry number #{retries}")
92
92
  retries += 1
@@ -1,6 +1,6 @@
1
1
  module Azure
2
2
  module Armrest
3
3
  # The version of the azure-armrest library.
4
- VERSION = '0.10.0'.freeze
4
+ VERSION = '0.13.1'.freeze
5
5
  end
6
6
  end
@@ -71,23 +71,48 @@ module Azure
71
71
  # Retrieves the settings of the VM named +vmname+ in resource group
72
72
  # +group+, which will default to the same as the name of the VM.
73
73
  #
74
- # By default this method will retrieve the model view. If the +model_view+
75
- # parameter is false, it will retrieve an instance view. The difference is
76
- # in the details of the information retrieved.
74
+ # You can also specify any query options. At this time only the
75
+ # :expand => 'instanceView' option is supported, but others could
76
+ # be added over time.
77
77
  #
78
- def get(vmname, group = configuration.resource_group, model_view = true)
79
- model_view ? super(vmname, group) : get_instance_view(vmname, group)
78
+ # For backwards compatibility, the third argument may also be a boolean
79
+ # which will retrieve the model view by default. Set to false if you only
80
+ # want the instance view.
81
+ #
82
+ # Examples:
83
+ #
84
+ # vms = VirtualMachineService.new(credentials)
85
+ #
86
+ # # Standard call, get just the model view
87
+ # vms.get('some_name', 'some_group')
88
+ # vms.get('some_name', 'some_group', true) # same
89
+ #
90
+ # # Get the instance view only
91
+ # vms.get('some_name', 'some_group', false)
92
+ #
93
+ # # Get the instance view merged with the model view
94
+ # vms.get('some_name', 'some_group', :expand => 'instanceView')
95
+ #
96
+ def get(vmname, group = configuration.resource_group, options = {})
97
+ if options.kind_of?(Hash)
98
+ url = build_url(group, vmname, options)
99
+ response = rest_get(url)
100
+ VirtualMachineInstance.new(response)
101
+ else
102
+ options ? super(vmname, group) : get_instance_view(vmname, group)
103
+ end
80
104
  end
81
105
 
82
106
  # Convenient wrapper around the get method that retrieves the model view
83
- # for +vmname+ in resource_group +group+.
107
+ # for +vmname+ in resource_group +group+ without the instance view
108
+ # information.
84
109
  #
85
110
  def get_model_view(vmname, group = configuration.resource_group)
86
- get(vmname, group, true)
111
+ get(vmname, group)
87
112
  end
88
113
 
89
- # Convenient wrapper around the get method that retrieves the instance view
90
- # for +vmname+ in resource_group +group+.
114
+ # Convenient wrapper around the get method that retrieves only the
115
+ # instance view for +vmname+ in resource_group +group+.
91
116
  #
92
117
  def get_instance_view(vmname, group = configuration.resource_group)
93
118
  raise ArgumentError, "must specify resource group" unless group
@@ -333,7 +358,7 @@ module Azure
333
358
  raise ArgumentError, "must specify name of the vm" unless vmname
334
359
 
335
360
  url = build_url(group, vmname, action)
336
- response = rest_post(url)
361
+ response = rest_post(url, options.to_json)
337
362
 
338
363
  Azure::Armrest::ResponseHeaders.new(response.headers).tap do |headers|
339
364
  headers.response_code = response.code
data/lib/azure/armrest.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'rest-client'
2
2
  require 'json'
3
- require 'thread'
4
3
  require 'addressable'
5
4
  require 'parallel'
6
5
  require 'memoist'
6
+ require 'active_support'
7
7
  require 'active_support/core_ext/hash'
8
8
 
9
9
  # The Azure module serves as a namespace.
@@ -56,6 +56,12 @@ require 'azure/armrest/network/subnet_service'
56
56
  require 'azure/armrest/role'
57
57
  require 'azure/armrest/role/assignment_service'
58
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'
59
65
  require 'azure/armrest/sql/sql_server_service'
60
66
  require 'azure/armrest/sql/sql_database_service'
61
67
  require 'azure/armrest/billing/usage_service'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-armrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -11,106 +11,106 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-05-14 00:00:00.000000000 Z
14
+ date: 2022-02-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: json
17
+ name: activesupport
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - "~>"
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '2'
22
+ version: 4.2.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '2'
29
+ version: 4.2.2
30
30
  - !ruby/object:Gem::Dependency
31
- name: rest-client
31
+ name: addressable
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - "~>"
35
35
  - !ruby/object:Gem::Version
36
- version: 2.1.0
36
+ version: '2.8'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: 2.1.0
43
+ version: '2.8'
44
44
  - !ruby/object:Gem::Dependency
45
- name: memoist
45
+ name: azure-signature
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - "~>"
49
49
  - !ruby/object:Gem::Version
50
- version: '0.15'
50
+ version: 0.3.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: '0.15'
57
+ version: 0.3.0
58
58
  - !ruby/object:Gem::Dependency
59
- name: azure-signature
59
+ name: json
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: 0.3.0
64
+ version: '2'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: 0.3.0
71
+ version: '2'
72
72
  - !ruby/object:Gem::Dependency
73
- name: activesupport
73
+ name: memoist
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - ">="
76
+ - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: 4.2.2
78
+ version: '0.15'
79
79
  type: :runtime
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - ">="
83
+ - - "~>"
84
84
  - !ruby/object:Gem::Version
85
- version: 4.2.2
85
+ version: '0.15'
86
86
  - !ruby/object:Gem::Dependency
87
- name: addressable
87
+ name: parallel
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - "~>"
91
91
  - !ruby/object:Gem::Version
92
- version: 2.5.0
92
+ version: 1.12.0
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - "~>"
98
98
  - !ruby/object:Gem::Version
99
- version: 2.5.0
99
+ version: 1.12.0
100
100
  - !ruby/object:Gem::Dependency
101
- name: parallel
101
+ name: rest-client
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - "~>"
105
105
  - !ruby/object:Gem::Version
106
- version: 1.12.0
106
+ version: 2.1.0
107
107
  type: :runtime
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - "~>"
112
112
  - !ruby/object:Gem::Version
113
- version: 1.12.0
113
+ version: 2.1.0
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: bundler
116
116
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +126,7 @@ dependencies:
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  - !ruby/object:Gem::Dependency
129
- name: rake
129
+ name: manageiq-style
130
130
  requirement: !ruby/object:Gem::Requirement
131
131
  requirements:
132
132
  - - ">="
@@ -140,47 +140,47 @@ dependencies:
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  - !ruby/object:Gem::Dependency
143
- name: rspec
143
+ name: rake
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - "~>"
146
+ - - ">="
147
147
  - !ruby/object:Gem::Version
148
- version: '3.0'
148
+ version: '0'
149
149
  type: :development
150
150
  prerelease: false
151
151
  version_requirements: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - "~>"
153
+ - - ">="
154
154
  - !ruby/object:Gem::Version
155
- version: '3.0'
155
+ version: '0'
156
156
  - !ruby/object:Gem::Dependency
157
- name: simplecov
157
+ name: rspec
158
158
  requirement: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - ">="
160
+ - - "~>"
161
161
  - !ruby/object:Gem::Version
162
- version: '0'
162
+ version: '3.0'
163
163
  type: :development
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - ">="
167
+ - - "~>"
168
168
  - !ruby/object:Gem::Version
169
- version: '0'
169
+ version: '3.0'
170
170
  - !ruby/object:Gem::Dependency
171
- name: codeclimate-test-reporter
171
+ name: simplecov
172
172
  requirement: !ruby/object:Gem::Requirement
173
173
  requirements:
174
- - - "~>"
174
+ - - ">="
175
175
  - !ruby/object:Gem::Version
176
- version: 1.0.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: 1.0.0
183
+ version: 0.21.2
184
184
  - !ruby/object:Gem::Dependency
185
185
  name: timecop
186
186
  requirement: !ruby/object:Gem::Requirement
@@ -208,11 +208,14 @@ executables: []
208
208
  extensions: []
209
209
  extra_rdoc_files: []
210
210
  files:
211
+ - ".codeclimate.yml"
212
+ - ".github/workflows/ci.yaml"
211
213
  - ".gitignore"
212
214
  - ".rspec"
213
215
  - ".rubocop.yml"
216
+ - ".rubocop_cc.yml"
214
217
  - ".rubocop_local.yml"
215
- - ".travis.yml"
218
+ - ".whitesource"
216
219
  - CHANGES
217
220
  - Gemfile
218
221
  - LICENSE
@@ -257,6 +260,12 @@ files:
257
260
  - lib/azure/armrest/role.rb
258
261
  - lib/azure/armrest/role/assignment_service.rb
259
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
260
269
  - lib/azure/armrest/sql/sql_database_service.rb
261
270
  - lib/azure/armrest/sql/sql_server_service.rb
262
271
  - lib/azure/armrest/storage/disk_service.rb
@@ -273,7 +282,7 @@ files:
273
282
  - lib/azure/armrest/virtual_machine_service.rb
274
283
  homepage: http://github.com/ManageIQ/azure-armrest
275
284
  licenses:
276
- - Apache 2.0
285
+ - Apache-2.0
277
286
  metadata: {}
278
287
  post_install_message:
279
288
  rdoc_options: []
@@ -290,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
299
  - !ruby/object:Gem::Version
291
300
  version: '0'
292
301
  requirements: []
293
- rubygems_version: 3.0.3
302
+ rubygems_version: 3.3.5
294
303
  signing_key:
295
304
  specification_version: 4
296
305
  summary: An interface for ARM/JSON Azure REST API
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- rvm:
5
- - "2.5.7"
6
- - "2.6.5"
7
- - ruby-head
8
- - jruby-head
9
- matrix:
10
- allow_failures:
11
- - rvm: ruby-head
12
- - rvm: jruby-head
13
- fast_finish: true
14
- after_script: bundle exec codeclimate-test-reporter