azure_mgmt_redis 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +3 -0
  3. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb +18 -0
  4. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_list_keys_result.rb +3 -0
  5. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_list_result.rb +4 -0
  6. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_properties.rb +12 -0
  7. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +3 -0
  8. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +2 -0
  9. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_resource.rb +22 -0
  10. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_resource_with_access_key.rb +23 -0
  11. data/lib/2015-08-01/generated/azure_mgmt_redis/models/resource.rb +7 -0
  12. data/lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb +4 -0
  13. data/lib/2015-08-01/generated/azure_mgmt_redis/redis_management_client.rb +1 -3
  14. data/lib/2016-04-01/generated/azure_mgmt_redis/models/export_rdbparameters.rb +4 -0
  15. data/lib/2016-04-01/generated/azure_mgmt_redis/models/import_rdbparameters.rb +4 -0
  16. data/lib/2016-04-01/generated/azure_mgmt_redis/models/operation.rb +3 -0
  17. data/lib/2016-04-01/generated/azure_mgmt_redis/models/operation_display.rb +5 -0
  18. data/lib/2016-04-01/generated/azure_mgmt_redis/models/operation_list_result.rb +4 -0
  19. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +3 -0
  20. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_create_parameters.rb +16 -0
  21. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_firewall_rule.rb +6 -0
  22. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +4 -0
  23. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_force_reboot_response.rb +2 -0
  24. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_list_result.rb +4 -0
  25. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_patch_schedule.rb +7 -0
  26. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +3 -0
  27. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +2 -0
  28. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_resource.rb +22 -0
  29. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +12 -0
  30. data/lib/2016-04-01/generated/azure_mgmt_redis/models/resource.rb +7 -0
  31. data/lib/2016-04-01/generated/azure_mgmt_redis/models/schedule_entry.rb +4 -0
  32. data/lib/2016-04-01/generated/azure_mgmt_redis/models/sku.rb +4 -0
  33. data/lib/2016-04-01/generated/azure_mgmt_redis/redis_management_client.rb +1 -3
  34. data/lib/2017-02-01/generated/azure_mgmt_redis/models/export_rdbparameters.rb +4 -0
  35. data/lib/2017-02-01/generated/azure_mgmt_redis/models/import_rdbparameters.rb +4 -0
  36. data/lib/2017-02-01/generated/azure_mgmt_redis/models/operation.rb +3 -0
  37. data/lib/2017-02-01/generated/azure_mgmt_redis/models/operation_display.rb +5 -0
  38. data/lib/2017-02-01/generated/azure_mgmt_redis/models/operation_list_result.rb +4 -0
  39. data/lib/2017-02-01/generated/azure_mgmt_redis/models/proxy_resource.rb +4 -0
  40. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +3 -0
  41. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_create_parameters.rb +16 -0
  42. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_firewall_rule.rb +6 -0
  43. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +4 -0
  44. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_force_reboot_response.rb +2 -0
  45. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_linked_server.rb +2 -0
  46. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_linked_server_create_parameters.rb +4 -0
  47. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_linked_server_list.rb +3 -0
  48. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_linked_server_with_properties.rb +8 -0
  49. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_linked_server_with_properties_list.rb +3 -0
  50. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_list_result.rb +4 -0
  51. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_patch_schedule.rb +7 -0
  52. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +3 -0
  53. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +2 -0
  54. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_resource.rb +23 -0
  55. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +12 -0
  56. data/lib/2017-02-01/generated/azure_mgmt_redis/models/resource.rb +4 -0
  57. data/lib/2017-02-01/generated/azure_mgmt_redis/models/schedule_entry.rb +4 -0
  58. data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku.rb +4 -0
  59. data/lib/2017-02-01/generated/azure_mgmt_redis/models/tracked_resource.rb +7 -0
  60. data/lib/2017-02-01/generated/azure_mgmt_redis/redis_management_client.rb +1 -3
  61. data/lib/profiles/latest/redis_latest_profile_client.rb +1 -3
  62. data/lib/version.rb +1 -1
  63. metadata +10 -10
  64. data/lib/2015-08-01/generated/azure_mgmt_redis/version.rb +0 -8
  65. data/lib/2016-04-01/generated/azure_mgmt_redis/version.rb +0 -8
  66. data/lib/2017-02-01/generated/azure_mgmt_redis/version.rb +0 -8
  67. data/lib/profiles/common/configurable.rb +0 -86
  68. data/lib/profiles/common/default.rb +0 -57
@@ -50,6 +50,7 @@ module Azure::Redis::Mgmt::V2017_02_01
50
50
  #
51
51
  def self.mapper()
52
52
  {
53
+ client_side_validation: true,
53
54
  required: false,
54
55
  serialized_name: 'RedisUpdateParameters',
55
56
  type: {
@@ -57,11 +58,13 @@ module Azure::Redis::Mgmt::V2017_02_01
57
58
  class_name: 'RedisUpdateParameters',
58
59
  model_properties: {
59
60
  redis_configuration: {
61
+ client_side_validation: true,
60
62
  required: false,
61
63
  serialized_name: 'properties.redisConfiguration',
62
64
  type: {
63
65
  name: 'Dictionary',
64
66
  value: {
67
+ client_side_validation: true,
65
68
  required: false,
66
69
  serialized_name: 'StringElementType',
67
70
  type: {
@@ -71,6 +74,7 @@ module Azure::Redis::Mgmt::V2017_02_01
71
74
  }
72
75
  },
73
76
  enable_non_ssl_port: {
77
+ client_side_validation: true,
74
78
  required: false,
75
79
  serialized_name: 'properties.enableNonSslPort',
76
80
  type: {
@@ -78,11 +82,13 @@ module Azure::Redis::Mgmt::V2017_02_01
78
82
  }
79
83
  },
80
84
  tenant_settings: {
85
+ client_side_validation: true,
81
86
  required: false,
82
87
  serialized_name: 'properties.tenantSettings',
83
88
  type: {
84
89
  name: 'Dictionary',
85
90
  value: {
91
+ client_side_validation: true,
86
92
  required: false,
87
93
  serialized_name: 'StringElementType',
88
94
  type: {
@@ -92,6 +98,7 @@ module Azure::Redis::Mgmt::V2017_02_01
92
98
  }
93
99
  },
94
100
  shard_count: {
101
+ client_side_validation: true,
95
102
  required: false,
96
103
  serialized_name: 'properties.shardCount',
97
104
  type: {
@@ -99,6 +106,7 @@ module Azure::Redis::Mgmt::V2017_02_01
99
106
  }
100
107
  },
101
108
  subnet_id: {
109
+ client_side_validation: true,
102
110
  required: false,
103
111
  serialized_name: 'properties.subnetId',
104
112
  constraints: {
@@ -109,6 +117,7 @@ module Azure::Redis::Mgmt::V2017_02_01
109
117
  }
110
118
  },
111
119
  static_ip: {
120
+ client_side_validation: true,
112
121
  required: false,
113
122
  serialized_name: 'properties.staticIP',
114
123
  constraints: {
@@ -119,6 +128,7 @@ module Azure::Redis::Mgmt::V2017_02_01
119
128
  }
120
129
  },
121
130
  sku: {
131
+ client_side_validation: true,
122
132
  required: false,
123
133
  serialized_name: 'properties.sku',
124
134
  type: {
@@ -127,11 +137,13 @@ module Azure::Redis::Mgmt::V2017_02_01
127
137
  }
128
138
  },
129
139
  tags: {
140
+ client_side_validation: true,
130
141
  required: false,
131
142
  serialized_name: 'properties.tags',
132
143
  type: {
133
144
  name: 'Dictionary',
134
145
  value: {
146
+ client_side_validation: true,
135
147
  required: false,
136
148
  serialized_name: 'StringElementType',
137
149
  type: {
@@ -28,6 +28,7 @@ module Azure::Redis::Mgmt::V2017_02_01
28
28
  #
29
29
  def self.mapper()
30
30
  {
31
+ client_side_validation: true,
31
32
  required: false,
32
33
  serialized_name: 'Resource',
33
34
  type: {
@@ -35,6 +36,7 @@ module Azure::Redis::Mgmt::V2017_02_01
35
36
  class_name: 'Resource',
36
37
  model_properties: {
37
38
  id: {
39
+ client_side_validation: true,
38
40
  required: false,
39
41
  read_only: true,
40
42
  serialized_name: 'id',
@@ -43,6 +45,7 @@ module Azure::Redis::Mgmt::V2017_02_01
43
45
  }
44
46
  },
45
47
  name: {
48
+ client_side_validation: true,
46
49
  required: false,
47
50
  read_only: true,
48
51
  serialized_name: 'name',
@@ -51,6 +54,7 @@ module Azure::Redis::Mgmt::V2017_02_01
51
54
  }
52
55
  },
53
56
  type: {
57
+ client_side_validation: true,
54
58
  required: false,
55
59
  read_only: true,
56
60
  serialized_name: 'type',
@@ -31,6 +31,7 @@ module Azure::Redis::Mgmt::V2017_02_01
31
31
  #
32
32
  def self.mapper()
33
33
  {
34
+ client_side_validation: true,
34
35
  required: false,
35
36
  serialized_name: 'ScheduleEntry',
36
37
  type: {
@@ -38,6 +39,7 @@ module Azure::Redis::Mgmt::V2017_02_01
38
39
  class_name: 'ScheduleEntry',
39
40
  model_properties: {
40
41
  day_of_week: {
42
+ client_side_validation: true,
41
43
  required: true,
42
44
  serialized_name: 'dayOfWeek',
43
45
  type: {
@@ -46,6 +48,7 @@ module Azure::Redis::Mgmt::V2017_02_01
46
48
  }
47
49
  },
48
50
  start_hour_utc: {
51
+ client_side_validation: true,
49
52
  required: true,
50
53
  serialized_name: 'startHourUtc',
51
54
  type: {
@@ -53,6 +56,7 @@ module Azure::Redis::Mgmt::V2017_02_01
53
56
  }
54
57
  },
55
58
  maintenance_window: {
59
+ client_side_validation: true,
56
60
  required: false,
57
61
  serialized_name: 'maintenanceWindow',
58
62
  type: {
@@ -33,6 +33,7 @@ module Azure::Redis::Mgmt::V2017_02_01
33
33
  #
34
34
  def self.mapper()
35
35
  {
36
+ client_side_validation: true,
36
37
  required: false,
37
38
  serialized_name: 'Sku',
38
39
  type: {
@@ -40,6 +41,7 @@ module Azure::Redis::Mgmt::V2017_02_01
40
41
  class_name: 'Sku',
41
42
  model_properties: {
42
43
  name: {
44
+ client_side_validation: true,
43
45
  required: true,
44
46
  serialized_name: 'name',
45
47
  type: {
@@ -47,6 +49,7 @@ module Azure::Redis::Mgmt::V2017_02_01
47
49
  }
48
50
  },
49
51
  family: {
52
+ client_side_validation: true,
50
53
  required: true,
51
54
  serialized_name: 'family',
52
55
  type: {
@@ -54,6 +57,7 @@ module Azure::Redis::Mgmt::V2017_02_01
54
57
  }
55
58
  },
56
59
  capacity: {
60
+ client_side_validation: true,
57
61
  required: true,
58
62
  serialized_name: 'capacity',
59
63
  type: {
@@ -25,6 +25,7 @@ module Azure::Redis::Mgmt::V2017_02_01
25
25
  #
26
26
  def self.mapper()
27
27
  {
28
+ client_side_validation: true,
28
29
  required: false,
29
30
  serialized_name: 'TrackedResource',
30
31
  type: {
@@ -32,6 +33,7 @@ module Azure::Redis::Mgmt::V2017_02_01
32
33
  class_name: 'TrackedResource',
33
34
  model_properties: {
34
35
  id: {
36
+ client_side_validation: true,
35
37
  required: false,
36
38
  read_only: true,
37
39
  serialized_name: 'id',
@@ -40,6 +42,7 @@ module Azure::Redis::Mgmt::V2017_02_01
40
42
  }
41
43
  },
42
44
  name: {
45
+ client_side_validation: true,
43
46
  required: false,
44
47
  read_only: true,
45
48
  serialized_name: 'name',
@@ -48,6 +51,7 @@ module Azure::Redis::Mgmt::V2017_02_01
48
51
  }
49
52
  },
50
53
  type: {
54
+ client_side_validation: true,
51
55
  required: false,
52
56
  read_only: true,
53
57
  serialized_name: 'type',
@@ -56,11 +60,13 @@ module Azure::Redis::Mgmt::V2017_02_01
56
60
  }
57
61
  },
58
62
  tags: {
63
+ client_side_validation: true,
59
64
  required: false,
60
65
  serialized_name: 'tags',
61
66
  type: {
62
67
  name: 'Dictionary',
63
68
  value: {
69
+ client_side_validation: true,
64
70
  required: false,
65
71
  serialized_name: 'StringElementType',
66
72
  type: {
@@ -70,6 +76,7 @@ module Azure::Redis::Mgmt::V2017_02_01
70
76
  }
71
77
  },
72
78
  location: {
79
+ client_side_validation: true,
73
80
  required: true,
74
81
  serialized_name: 'location',
75
82
  type: {
@@ -138,9 +138,7 @@ module Azure::Redis::Mgmt::V2017_02_01
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_redis'
141
- if defined? Azure::Redis::Mgmt::V2017_02_01::VERSION
142
- sdk_information = "#{sdk_information}/#{Azure::Redis::Mgmt::V2017_02_01::VERSION}"
143
- end
141
+ sdk_information = "#{sdk_information}/0.15.2"
144
142
  add_user_agent_information(sdk_information)
145
143
  end
146
144
  end
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/latest/redis_module_definition'
6
6
  require 'profiles/latest/modules/redis_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::Redis::Profiles::Latest::Mgmt
11
9
  #
12
10
  # Client class for the Latest profile SDK.
13
11
  #
14
12
  class Client < RedisClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Redis::Mgmt
6
- VERSION = '0.15.1'
6
+ VERSION = '0.15.2'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-12-19 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.9.0
75
+ version: 0.10.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.9.0
82
+ version: 0.10.0
83
83
  description: Microsoft Azure Redis Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -106,7 +106,6 @@ files:
106
106
  - lib/2015-08-01/generated/azure_mgmt_redis/module_definition.rb
107
107
  - lib/2015-08-01/generated/azure_mgmt_redis/redis.rb
108
108
  - lib/2015-08-01/generated/azure_mgmt_redis/redis_management_client.rb
109
- - lib/2015-08-01/generated/azure_mgmt_redis/version.rb
110
109
  - lib/2016-04-01/generated/azure_mgmt_redis.rb
111
110
  - lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb
112
111
  - lib/2016-04-01/generated/azure_mgmt_redis/models/day_of_week.rb
@@ -139,7 +138,6 @@ files:
139
138
  - lib/2016-04-01/generated/azure_mgmt_redis/redis.rb
140
139
  - lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb
141
140
  - lib/2016-04-01/generated/azure_mgmt_redis/redis_management_client.rb
142
- - lib/2016-04-01/generated/azure_mgmt_redis/version.rb
143
141
  - lib/2017-02-01/generated/azure_mgmt_redis.rb
144
142
  - lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb
145
143
  - lib/2017-02-01/generated/azure_mgmt_redis/models/day_of_week.rb
@@ -180,11 +178,8 @@ files:
180
178
  - lib/2017-02-01/generated/azure_mgmt_redis/redis.rb
181
179
  - lib/2017-02-01/generated/azure_mgmt_redis/redis_linked_server_operations.rb
182
180
  - lib/2017-02-01/generated/azure_mgmt_redis/redis_management_client.rb
183
- - lib/2017-02-01/generated/azure_mgmt_redis/version.rb
184
181
  - lib/azure_mgmt_redis.rb
185
182
  - lib/module_definition.rb
186
- - lib/profiles/common/configurable.rb
187
- - lib/profiles/common/default.rb
188
183
  - lib/profiles/latest/modules/redis_profile_module.rb
189
184
  - lib/profiles/latest/redis_latest_profile_client.rb
190
185
  - lib/profiles/latest/redis_module_definition.rb
@@ -192,7 +187,12 @@ files:
192
187
  homepage: https://aka.ms/azure-sdk-for-ruby
193
188
  licenses:
194
189
  - MIT
195
- metadata: {}
190
+ metadata:
191
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
192
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
193
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
194
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
195
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_redis
196
196
  post_install_message:
197
197
  rdoc_options: []
198
198
  require_paths:
@@ -1,8 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::Redis::Mgmt::V2015_08_01
7
- VERSION = '0.15.1'
8
- end
@@ -1,8 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::Redis::Mgmt::V2016_04_01
7
- VERSION = '0.15.1'
8
- end
@@ -1,8 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::Redis::Mgmt::V2017_02_01
7
- VERSION = '0.15.1'
8
- end
@@ -1,86 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure::Common
6
- # The Azure::Common::Configurable module provides basic configuration for Azure activities.
7
- module Configurable
8
- # @return [String] Azure tenant id (also known as domain).
9
- attr_accessor :tenant_id
10
-
11
- # @return [String] Azure client id.
12
- attr_accessor :client_id
13
-
14
- # @return [String] Azure secret key.
15
- attr_accessor :client_secret
16
-
17
- # @return [String] Azure subscription id.
18
- attr_accessor :subscription_id
19
-
20
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
- attr_accessor :active_directory_settings
22
-
23
- # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
- attr_accessor :credentials
25
-
26
- class << self
27
- #
28
- # List of configurable keys for {Azure::Common::Client}.
29
- # @return [Array] of option keys.
30
- #
31
- def keys
32
- @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
33
- end
34
- end
35
-
36
- #
37
- # Set configuration options using a block.
38
- #
39
- def configure
40
- yield self
41
- end
42
-
43
- #
44
- # Resets the configurable options to provided options or defaults.
45
- # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
- #
47
- def reset!(options = {})
48
- Azure::Common::Configurable.keys.each do |key|
49
- default_value = Azure::Common::Default.options[key]
50
- instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
- end
52
-
53
- fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
54
- fail ArgumentError, 'client_id is nil' if self.client_id.nil?
55
- fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
56
- fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
57
- fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
58
-
59
- default_value = MsRest::TokenCredentials.new(
60
- MsRestAzure::ApplicationTokenProvider.new(
61
- self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
62
-
63
- instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
64
-
65
- self
66
- end
67
-
68
- def config
69
- self
70
- end
71
-
72
- private
73
-
74
- #
75
- # configures configurable options to default values
76
- #
77
- def setup_default_options
78
- opts = {}
79
- Azure::Common::Configurable.keys.map do |key|
80
- opts[key] = Azure::Common::Default.options[key]
81
- end
82
-
83
- opts
84
- end
85
- end
86
- end