azure_mgmt_recovery_services 0.8.0 → 0.9.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
  SHA1:
3
- metadata.gz: 72a125d832f3ccb14b5b50acdd9b283a53106660
4
- data.tar.gz: 42b2ee6c2b761ecb51b656e4c9a1f1305b2231f1
3
+ metadata.gz: ab5769120e59faf87dbfffc71b2d1d33a5c4b7bc
4
+ data.tar.gz: 402c53d31339331aad48a8e91690fcf970ce5cd7
5
5
  SHA512:
6
- metadata.gz: 73b854264f485fdfc562dffbad4e602b6abf76f6bb0c6170909ed62fd23f18af46233a11517f0145073122c009e02dbd07817d7cf5667dc46fb39ac562431149
7
- data.tar.gz: e1ace4774a96e005d78d9e3a4f83e9b3dd78735f4798ce75fa4dbe37972181adb404f7953e2567d262015d34a8180ead194f3ba14db3004ba5b6f26eaf23c3e3
6
+ metadata.gz: debf9be73512445a3df805de5bc630d51ffa991ef1dc85c1438dd3e5d28fa198ece1060a3aaf70bd1e81fae85b2659094a17ed2a28f2294092041ad64f034feb
7
+ data.tar.gz: 6161cba103895d47bb0f83b8022bf400d128e53660aa412c284da2488ed4ad0e5d594cdadfbb49dad4895dd2a1f5fe5a75b5388a8c52e10c194c787352c1fe76
@@ -24,9 +24,10 @@ module Azure::ARM::RecoveryServices
24
24
  autoload :RecoveryServicesClient, 'generated/azure_mgmt_recovery_services/recovery_services_client.rb'
25
25
 
26
26
  module Models
27
- autoload :VaultProperties, 'generated/azure_mgmt_recovery_services/models/vault_properties.rb'
28
- autoload :Sku, 'generated/azure_mgmt_recovery_services/models/sku.rb'
29
27
  autoload :VaultList, 'generated/azure_mgmt_recovery_services/models/vault_list.rb'
28
+ autoload :Sku, 'generated/azure_mgmt_recovery_services/models/sku.rb'
29
+ autoload :VaultProperties, 'generated/azure_mgmt_recovery_services/models/vault_properties.rb'
30
+ autoload :Resource, 'generated/azure_mgmt_recovery_services/models/resource.rb'
30
31
  autoload :Vault, 'generated/azure_mgmt_recovery_services/models/vault.rb'
31
32
  autoload :SkuName, 'generated/azure_mgmt_recovery_services/models/sku_name.rb'
32
33
  end
@@ -0,0 +1,91 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServices
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class Resource < MsRestAzure::Resource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Sku]
17
+ attr_accessor :sku
18
+
19
+
20
+ #
21
+ # Mapper for Resource class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'Resource',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'Resource',
31
+ model_properties: {
32
+ id: {
33
+ required: false,
34
+ read_only: true,
35
+ serialized_name: 'id',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ },
40
+ name: {
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'name',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ type: {
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'type',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ location: {
57
+ required: false,
58
+ serialized_name: 'location',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ sku: {
64
+ required: false,
65
+ serialized_name: 'sku',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'Sku'
69
+ }
70
+ },
71
+ tags: {
72
+ required: false,
73
+ serialized_name: 'tags',
74
+ type: {
75
+ name: 'Dictionary',
76
+ value: {
77
+ required: false,
78
+ serialized_name: 'StringElementType',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ end
89
+ end
90
+ end
91
+ end
@@ -43,12 +43,11 @@ module Azure::ARM::RecoveryServices
43
43
  # @param base_url [String] the base URI of the service.
44
44
  # @param options [Array] filters to be applied to the HTTP requests.
45
45
  #
46
- def initialize(credentials, base_url = nil, options = nil)
46
+ def initialize(credentials = nil, base_url = nil, options = nil)
47
47
  super(credentials, options)
48
48
  @base_url = base_url || 'https://management.azure.com'
49
49
 
50
- fail ArgumentError, 'credentials is nil' if credentials.nil?
51
- fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
50
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
52
51
  @credentials = credentials
53
52
 
54
53
  @vaults = Vaults.new(self)
@@ -61,7 +60,7 @@ module Azure::ARM::RecoveryServices
61
60
 
62
61
  #
63
62
  # Makes a request and returns the body of the response.
64
- # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
63
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
65
64
  # @param path [String] the path, relative to {base_url}.
66
65
  # @param options [Hash{String=>String}] specifying any request options like :body.
67
66
  # @return [Hash{String=>String}] containing the body of the response.
@@ -122,7 +121,7 @@ module Azure::ARM::RecoveryServices
122
121
  def add_telemetry
123
122
  sdk_information = 'azure_mgmt_recovery_services'
124
123
  if defined? Azure::ARM::RecoveryServices::VERSION
125
- sdk_information = "#{sdk_information}/#{Azure::ARM::RecoveryServices::VERSION}"
124
+ sdk_information = "#{sdk_information}/#{Azure::ARM::RecoveryServices::VERSION}"
126
125
  end
127
126
  add_user_agent_information(sdk_information)
128
127
  end
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::RecoveryServices
7
- VERSION = '0.8.0'
7
+ VERSION = '0.9.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_recovery_services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.2
75
+ version: 0.7.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.2
82
+ version: 0.7.0
83
83
  description: Microsoft Azure Recovery Services Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -89,6 +89,7 @@ files:
89
89
  - LICENSE.txt
90
90
  - lib/azure_mgmt_recovery_services.rb
91
91
  - lib/generated/azure_mgmt_recovery_services.rb
92
+ - lib/generated/azure_mgmt_recovery_services/models/resource.rb
92
93
  - lib/generated/azure_mgmt_recovery_services/models/sku.rb
93
94
  - lib/generated/azure_mgmt_recovery_services/models/sku_name.rb
94
95
  - lib/generated/azure_mgmt_recovery_services/models/vault.rb