azure_mgmt_cognitive_services 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +21 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +1 -3
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb +5 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb +7 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result_list.rb +3 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb +13 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +7 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb +3 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb +3 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb +4 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb +4 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb +3 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/error.rb +2 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/error_body.rb +3 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb +5 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_entity.rb +5 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb +4 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb +2 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb +3 -0
- data/lib/profiles/latest/cognitiveservices_latest_profile_client.rb +1 -3
- data/lib/version.rb +1 -1
- metadata +10 -8
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/version.rb +0 -8
- data/lib/profiles/common/configurable.rb +0 -86
- data/lib/profiles/common/default.rb +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35ef938bee795acb3de2a13ec721ee01f6327a7f
|
4
|
+
data.tar.gz: 3481884216b984f376a1f74b07d7d12d6818656e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb0ac8ed4ede0277aca096648bb1b377c9153a4ccf12b3976ae13f096461b62231698ac5a98aa15f2cafb3c348e19f5f7a5b540375ce079ea6739972e8ed004
|
7
|
+
data.tar.gz: 2579c64abb2a4fa1029da0206b04367b3aa11e7614cde75b5b654d200c699c605d1cb16527480094e08ba86f39f89016d7f01cede76632ea699f44805f439c1a
|
@@ -78,6 +78,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
78
78
|
def create_async(resource_group_name, account_name, parameters, custom_headers = nil)
|
79
79
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
80
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
81
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
82
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
|
83
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
|
81
84
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
82
85
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
83
86
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -210,6 +213,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
210
213
|
def update_async(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil)
|
211
214
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
212
215
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
216
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
217
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
|
218
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
|
213
219
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
214
220
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
215
221
|
|
@@ -317,6 +323,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
317
323
|
def delete_async(resource_group_name, account_name, custom_headers = nil)
|
318
324
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
319
325
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
326
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
327
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
|
328
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
|
320
329
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
321
330
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
322
331
|
|
@@ -401,6 +410,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
401
410
|
def get_properties_async(resource_group_name, account_name, custom_headers = nil)
|
402
411
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
403
412
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
413
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
414
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
|
415
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
|
404
416
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
405
417
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
406
418
|
|
@@ -668,6 +680,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
668
680
|
def list_keys_async(resource_group_name, account_name, custom_headers = nil)
|
669
681
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
670
682
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
683
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
684
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
|
685
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
|
671
686
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
672
687
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
673
688
|
|
@@ -771,6 +786,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
771
786
|
def regenerate_key_async(resource_group_name, account_name, key_name, custom_headers = nil)
|
772
787
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
773
788
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
789
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
790
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
|
791
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
|
774
792
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
775
793
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
776
794
|
fail ArgumentError, 'key_name is nil' if key_name.nil?
|
@@ -879,6 +897,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
879
897
|
def list_skus_async(resource_group_name, account_name, custom_headers = nil)
|
880
898
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
881
899
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
900
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
901
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
|
902
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
|
882
903
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
883
904
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
884
905
|
|
data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb
CHANGED
@@ -129,9 +129,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
129
129
|
#
|
130
130
|
def add_telemetry
|
131
131
|
sdk_information = 'azure_mgmt_cognitive_services'
|
132
|
-
|
133
|
-
sdk_information = "#{sdk_information}/#{Azure::CognitiveServices::Mgmt::V2017_04_18::VERSION}"
|
134
|
-
end
|
132
|
+
sdk_information = "#{sdk_information}/0.15.2"
|
135
133
|
add_user_agent_information(sdk_information)
|
136
134
|
end
|
137
135
|
end
|
@@ -33,6 +33,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
33
33
|
#
|
34
34
|
def self.mapper()
|
35
35
|
{
|
36
|
+
client_side_validation: true,
|
36
37
|
required: false,
|
37
38
|
serialized_name: 'CheckSkuAvailabilityParameter',
|
38
39
|
type: {
|
@@ -40,11 +41,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
40
41
|
class_name: 'CheckSkuAvailabilityParameter',
|
41
42
|
model_properties: {
|
42
43
|
skus: {
|
44
|
+
client_side_validation: true,
|
43
45
|
required: true,
|
44
46
|
serialized_name: 'skus',
|
45
47
|
type: {
|
46
48
|
name: 'Sequence',
|
47
49
|
element: {
|
50
|
+
client_side_validation: true,
|
48
51
|
required: false,
|
49
52
|
serialized_name: 'SkuNameElementType',
|
50
53
|
type: {
|
@@ -54,6 +57,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
54
57
|
}
|
55
58
|
},
|
56
59
|
kind: {
|
60
|
+
client_side_validation: true,
|
57
61
|
required: true,
|
58
62
|
serialized_name: 'kind',
|
59
63
|
type: {
|
@@ -61,6 +65,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
61
65
|
}
|
62
66
|
},
|
63
67
|
type: {
|
68
|
+
client_side_validation: true,
|
64
69
|
required: true,
|
65
70
|
serialized_name: 'type',
|
66
71
|
type: {
|
data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb
CHANGED
@@ -44,6 +44,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
44
44
|
#
|
45
45
|
def self.mapper()
|
46
46
|
{
|
47
|
+
client_side_validation: true,
|
47
48
|
required: false,
|
48
49
|
serialized_name: 'CheckSkuAvailabilityResult',
|
49
50
|
type: {
|
@@ -51,6 +52,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
51
52
|
class_name: 'CheckSkuAvailabilityResult',
|
52
53
|
model_properties: {
|
53
54
|
kind: {
|
55
|
+
client_side_validation: true,
|
54
56
|
required: false,
|
55
57
|
serialized_name: 'kind',
|
56
58
|
type: {
|
@@ -58,6 +60,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
58
60
|
}
|
59
61
|
},
|
60
62
|
type: {
|
63
|
+
client_side_validation: true,
|
61
64
|
required: false,
|
62
65
|
serialized_name: 'type',
|
63
66
|
type: {
|
@@ -65,6 +68,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
65
68
|
}
|
66
69
|
},
|
67
70
|
sku_name: {
|
71
|
+
client_side_validation: true,
|
68
72
|
required: false,
|
69
73
|
serialized_name: 'skuName',
|
70
74
|
type: {
|
@@ -72,6 +76,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
72
76
|
}
|
73
77
|
},
|
74
78
|
sku_available: {
|
79
|
+
client_side_validation: true,
|
75
80
|
required: false,
|
76
81
|
serialized_name: 'skuAvailable',
|
77
82
|
type: {
|
@@ -79,6 +84,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
79
84
|
}
|
80
85
|
},
|
81
86
|
reason: {
|
87
|
+
client_side_validation: true,
|
82
88
|
required: false,
|
83
89
|
serialized_name: 'reason',
|
84
90
|
type: {
|
@@ -86,6 +92,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
86
92
|
}
|
87
93
|
},
|
88
94
|
message: {
|
95
|
+
client_side_validation: true,
|
89
96
|
required: false,
|
90
97
|
serialized_name: 'message',
|
91
98
|
type: {
|
@@ -23,6 +23,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
23
23
|
#
|
24
24
|
def self.mapper()
|
25
25
|
{
|
26
|
+
client_side_validation: true,
|
26
27
|
required: false,
|
27
28
|
serialized_name: 'CheckSkuAvailabilityResultList',
|
28
29
|
type: {
|
@@ -30,11 +31,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
30
31
|
class_name: 'CheckSkuAvailabilityResultList',
|
31
32
|
model_properties: {
|
32
33
|
value: {
|
34
|
+
client_side_validation: true,
|
33
35
|
required: false,
|
34
36
|
serialized_name: 'value',
|
35
37
|
type: {
|
36
38
|
name: 'Sequence',
|
37
39
|
element: {
|
40
|
+
client_side_validation: true,
|
38
41
|
required: false,
|
39
42
|
serialized_name: 'CheckSkuAvailabilityResultElementType',
|
40
43
|
type: {
|
data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb
CHANGED
@@ -59,6 +59,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
59
59
|
#
|
60
60
|
def self.mapper()
|
61
61
|
{
|
62
|
+
client_side_validation: true,
|
62
63
|
required: false,
|
63
64
|
serialized_name: 'CognitiveServicesAccount',
|
64
65
|
type: {
|
@@ -66,6 +67,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
66
67
|
class_name: 'CognitiveServicesAccount',
|
67
68
|
model_properties: {
|
68
69
|
etag: {
|
70
|
+
client_side_validation: true,
|
69
71
|
required: false,
|
70
72
|
serialized_name: 'etag',
|
71
73
|
type: {
|
@@ -73,6 +75,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
73
75
|
}
|
74
76
|
},
|
75
77
|
id: {
|
78
|
+
client_side_validation: true,
|
76
79
|
required: false,
|
77
80
|
read_only: true,
|
78
81
|
serialized_name: 'id',
|
@@ -81,6 +84,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
81
84
|
}
|
82
85
|
},
|
83
86
|
kind: {
|
87
|
+
client_side_validation: true,
|
84
88
|
required: false,
|
85
89
|
serialized_name: 'kind',
|
86
90
|
type: {
|
@@ -88,6 +92,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
88
92
|
}
|
89
93
|
},
|
90
94
|
location: {
|
95
|
+
client_side_validation: true,
|
91
96
|
required: false,
|
92
97
|
serialized_name: 'location',
|
93
98
|
type: {
|
@@ -95,6 +100,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
95
100
|
}
|
96
101
|
},
|
97
102
|
name: {
|
103
|
+
client_side_validation: true,
|
98
104
|
required: false,
|
99
105
|
read_only: true,
|
100
106
|
serialized_name: 'name',
|
@@ -103,6 +109,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
103
109
|
}
|
104
110
|
},
|
105
111
|
provisioning_state: {
|
112
|
+
client_side_validation: true,
|
106
113
|
required: false,
|
107
114
|
read_only: true,
|
108
115
|
serialized_name: 'properties.provisioningState',
|
@@ -112,6 +119,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
112
119
|
}
|
113
120
|
},
|
114
121
|
endpoint: {
|
122
|
+
client_side_validation: true,
|
115
123
|
required: false,
|
116
124
|
serialized_name: 'properties.endpoint',
|
117
125
|
type: {
|
@@ -119,6 +127,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
119
127
|
}
|
120
128
|
},
|
121
129
|
internal_id: {
|
130
|
+
client_side_validation: true,
|
122
131
|
required: false,
|
123
132
|
serialized_name: 'properties.internalId',
|
124
133
|
type: {
|
@@ -126,6 +135,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
126
135
|
}
|
127
136
|
},
|
128
137
|
sku: {
|
138
|
+
client_side_validation: true,
|
129
139
|
required: false,
|
130
140
|
serialized_name: 'sku',
|
131
141
|
type: {
|
@@ -134,11 +144,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
134
144
|
}
|
135
145
|
},
|
136
146
|
tags: {
|
147
|
+
client_side_validation: true,
|
137
148
|
required: false,
|
138
149
|
serialized_name: 'tags',
|
139
150
|
type: {
|
140
151
|
name: 'Dictionary',
|
141
152
|
value: {
|
153
|
+
client_side_validation: true,
|
142
154
|
required: false,
|
143
155
|
serialized_name: 'StringElementType',
|
144
156
|
type: {
|
@@ -148,6 +160,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
148
160
|
}
|
149
161
|
},
|
150
162
|
type: {
|
163
|
+
client_side_validation: true,
|
151
164
|
required: false,
|
152
165
|
read_only: true,
|
153
166
|
serialized_name: 'type',
|
@@ -48,6 +48,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
48
48
|
#
|
49
49
|
def self.mapper()
|
50
50
|
{
|
51
|
+
client_side_validation: true,
|
51
52
|
required: false,
|
52
53
|
serialized_name: 'CognitiveServicesAccountCreateParameters',
|
53
54
|
type: {
|
@@ -55,6 +56,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
55
56
|
class_name: 'CognitiveServicesAccountCreateParameters',
|
56
57
|
model_properties: {
|
57
58
|
sku: {
|
59
|
+
client_side_validation: true,
|
58
60
|
required: true,
|
59
61
|
serialized_name: 'sku',
|
60
62
|
type: {
|
@@ -63,6 +65,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
63
65
|
}
|
64
66
|
},
|
65
67
|
kind: {
|
68
|
+
client_side_validation: true,
|
66
69
|
required: true,
|
67
70
|
serialized_name: 'kind',
|
68
71
|
type: {
|
@@ -70,6 +73,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
70
73
|
}
|
71
74
|
},
|
72
75
|
location: {
|
76
|
+
client_side_validation: true,
|
73
77
|
required: true,
|
74
78
|
serialized_name: 'location',
|
75
79
|
type: {
|
@@ -77,11 +81,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
77
81
|
}
|
78
82
|
},
|
79
83
|
tags: {
|
84
|
+
client_side_validation: true,
|
80
85
|
required: false,
|
81
86
|
serialized_name: 'tags',
|
82
87
|
type: {
|
83
88
|
name: 'Dictionary',
|
84
89
|
value: {
|
90
|
+
client_side_validation: true,
|
85
91
|
required: false,
|
86
92
|
serialized_name: 'StringElementType',
|
87
93
|
type: {
|
@@ -91,6 +97,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
91
97
|
}
|
92
98
|
},
|
93
99
|
properties: {
|
100
|
+
client_side_validation: true,
|
94
101
|
required: true,
|
95
102
|
serialized_name: 'properties',
|
96
103
|
type: {
|
@@ -24,6 +24,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
24
24
|
#
|
25
25
|
def self.mapper()
|
26
26
|
{
|
27
|
+
client_side_validation: true,
|
27
28
|
required: false,
|
28
29
|
serialized_name: 'CognitiveServicesAccountEnumerateSkusResult',
|
29
30
|
type: {
|
@@ -31,12 +32,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
31
32
|
class_name: 'CognitiveServicesAccountEnumerateSkusResult',
|
32
33
|
model_properties: {
|
33
34
|
value: {
|
35
|
+
client_side_validation: true,
|
34
36
|
required: false,
|
35
37
|
read_only: true,
|
36
38
|
serialized_name: 'value',
|
37
39
|
type: {
|
38
40
|
name: 'Sequence',
|
39
41
|
element: {
|
42
|
+
client_side_validation: true,
|
40
43
|
required: false,
|
41
44
|
serialized_name: 'CognitiveServicesResourceAndSkuElementType',
|
42
45
|
type: {
|
@@ -25,6 +25,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
|
+
client_side_validation: true,
|
28
29
|
required: false,
|
29
30
|
serialized_name: 'CognitiveServicesAccountKeys',
|
30
31
|
type: {
|
@@ -32,6 +33,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
32
33
|
class_name: 'CognitiveServicesAccountKeys',
|
33
34
|
model_properties: {
|
34
35
|
key1: {
|
36
|
+
client_side_validation: true,
|
35
37
|
required: false,
|
36
38
|
serialized_name: 'key1',
|
37
39
|
type: {
|
@@ -39,6 +41,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
39
41
|
}
|
40
42
|
},
|
41
43
|
key2: {
|
44
|
+
client_side_validation: true,
|
42
45
|
required: false,
|
43
46
|
serialized_name: 'key2',
|
44
47
|
type: {
|
@@ -58,6 +58,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
58
58
|
#
|
59
59
|
def self.mapper()
|
60
60
|
{
|
61
|
+
client_side_validation: true,
|
61
62
|
required: false,
|
62
63
|
serialized_name: 'CognitiveServicesAccountListResult',
|
63
64
|
type: {
|
@@ -65,6 +66,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
65
66
|
class_name: 'CognitiveServicesAccountListResult',
|
66
67
|
model_properties: {
|
67
68
|
next_link: {
|
69
|
+
client_side_validation: true,
|
68
70
|
required: false,
|
69
71
|
serialized_name: 'nextLink',
|
70
72
|
type: {
|
@@ -72,12 +74,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
72
74
|
}
|
73
75
|
},
|
74
76
|
value: {
|
77
|
+
client_side_validation: true,
|
75
78
|
required: false,
|
76
79
|
read_only: true,
|
77
80
|
serialized_name: 'value',
|
78
81
|
type: {
|
79
82
|
name: 'Sequence',
|
80
83
|
element: {
|
84
|
+
client_side_validation: true,
|
81
85
|
required: false,
|
82
86
|
serialized_name: 'CognitiveServicesAccountElementType',
|
83
87
|
type: {
|
@@ -29,6 +29,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
29
29
|
#
|
30
30
|
def self.mapper()
|
31
31
|
{
|
32
|
+
client_side_validation: true,
|
32
33
|
required: false,
|
33
34
|
serialized_name: 'CognitiveServicesAccountUpdateParameters',
|
34
35
|
type: {
|
@@ -36,6 +37,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
36
37
|
class_name: 'CognitiveServicesAccountUpdateParameters',
|
37
38
|
model_properties: {
|
38
39
|
sku: {
|
40
|
+
client_side_validation: true,
|
39
41
|
required: false,
|
40
42
|
serialized_name: 'sku',
|
41
43
|
type: {
|
@@ -44,11 +46,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
44
46
|
}
|
45
47
|
},
|
46
48
|
tags: {
|
49
|
+
client_side_validation: true,
|
47
50
|
required: false,
|
48
51
|
serialized_name: 'tags',
|
49
52
|
type: {
|
50
53
|
name: 'Dictionary',
|
51
54
|
value: {
|
55
|
+
client_side_validation: true,
|
52
56
|
required: false,
|
53
57
|
serialized_name: 'StringElementType',
|
54
58
|
type: {
|
@@ -25,6 +25,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
|
+
client_side_validation: true,
|
28
29
|
required: false,
|
29
30
|
serialized_name: 'CognitiveServicesResourceAndSku',
|
30
31
|
type: {
|
@@ -32,6 +33,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
32
33
|
class_name: 'CognitiveServicesResourceAndSku',
|
33
34
|
model_properties: {
|
34
35
|
resource_type: {
|
36
|
+
client_side_validation: true,
|
35
37
|
required: false,
|
36
38
|
serialized_name: 'resourceType',
|
37
39
|
type: {
|
@@ -39,6 +41,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
39
41
|
}
|
40
42
|
},
|
41
43
|
sku: {
|
44
|
+
client_side_validation: true,
|
42
45
|
required: false,
|
43
46
|
serialized_name: 'sku',
|
44
47
|
type: {
|
@@ -22,6 +22,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
22
22
|
#
|
23
23
|
def self.mapper()
|
24
24
|
{
|
25
|
+
client_side_validation: true,
|
25
26
|
required: false,
|
26
27
|
serialized_name: 'Error',
|
27
28
|
type: {
|
@@ -29,6 +30,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
29
30
|
class_name: 'Error',
|
30
31
|
model_properties: {
|
31
32
|
error: {
|
33
|
+
client_side_validation: true,
|
32
34
|
required: false,
|
33
35
|
serialized_name: 'error',
|
34
36
|
type: {
|
@@ -25,6 +25,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
|
+
client_side_validation: true,
|
28
29
|
required: false,
|
29
30
|
serialized_name: 'ErrorBody',
|
30
31
|
type: {
|
@@ -32,6 +33,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
32
33
|
class_name: 'ErrorBody',
|
33
34
|
model_properties: {
|
34
35
|
code: {
|
36
|
+
client_side_validation: true,
|
35
37
|
required: true,
|
36
38
|
serialized_name: 'code',
|
37
39
|
type: {
|
@@ -39,6 +41,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
39
41
|
}
|
40
42
|
},
|
41
43
|
message: {
|
44
|
+
client_side_validation: true,
|
42
45
|
required: true,
|
43
46
|
serialized_name: 'message',
|
44
47
|
type: {
|
data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb
CHANGED
@@ -32,6 +32,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
32
32
|
#
|
33
33
|
def self.mapper()
|
34
34
|
{
|
35
|
+
client_side_validation: true,
|
35
36
|
required: false,
|
36
37
|
serialized_name: 'OperationDisplayInfo',
|
37
38
|
type: {
|
@@ -39,6 +40,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
39
40
|
class_name: 'OperationDisplayInfo',
|
40
41
|
model_properties: {
|
41
42
|
description: {
|
43
|
+
client_side_validation: true,
|
42
44
|
required: false,
|
43
45
|
serialized_name: 'description',
|
44
46
|
type: {
|
@@ -46,6 +48,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
46
48
|
}
|
47
49
|
},
|
48
50
|
operation: {
|
51
|
+
client_side_validation: true,
|
49
52
|
required: false,
|
50
53
|
serialized_name: 'operation',
|
51
54
|
type: {
|
@@ -53,6 +56,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
53
56
|
}
|
54
57
|
},
|
55
58
|
provider: {
|
59
|
+
client_side_validation: true,
|
56
60
|
required: false,
|
57
61
|
serialized_name: 'provider',
|
58
62
|
type: {
|
@@ -60,6 +64,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
60
64
|
}
|
61
65
|
},
|
62
66
|
resource: {
|
67
|
+
client_side_validation: true,
|
63
68
|
required: false,
|
64
69
|
serialized_name: 'resource',
|
65
70
|
type: {
|
@@ -32,6 +32,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
32
32
|
#
|
33
33
|
def self.mapper()
|
34
34
|
{
|
35
|
+
client_side_validation: true,
|
35
36
|
required: false,
|
36
37
|
serialized_name: 'OperationEntity',
|
37
38
|
type: {
|
@@ -39,6 +40,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
39
40
|
class_name: 'OperationEntity',
|
40
41
|
model_properties: {
|
41
42
|
name: {
|
43
|
+
client_side_validation: true,
|
42
44
|
required: false,
|
43
45
|
serialized_name: 'name',
|
44
46
|
type: {
|
@@ -46,6 +48,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
46
48
|
}
|
47
49
|
},
|
48
50
|
display: {
|
51
|
+
client_side_validation: true,
|
49
52
|
required: false,
|
50
53
|
serialized_name: 'display',
|
51
54
|
type: {
|
@@ -54,6 +57,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
54
57
|
}
|
55
58
|
},
|
56
59
|
origin: {
|
60
|
+
client_side_validation: true,
|
57
61
|
required: false,
|
58
62
|
serialized_name: 'origin',
|
59
63
|
type: {
|
@@ -61,6 +65,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
61
65
|
}
|
62
66
|
},
|
63
67
|
properties: {
|
68
|
+
client_side_validation: true,
|
64
69
|
required: false,
|
65
70
|
serialized_name: 'properties',
|
66
71
|
type: {
|
data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb
CHANGED
@@ -57,6 +57,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
57
57
|
#
|
58
58
|
def self.mapper()
|
59
59
|
{
|
60
|
+
client_side_validation: true,
|
60
61
|
required: false,
|
61
62
|
serialized_name: 'OperationEntityListResult',
|
62
63
|
type: {
|
@@ -64,6 +65,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
64
65
|
class_name: 'OperationEntityListResult',
|
65
66
|
model_properties: {
|
66
67
|
next_link: {
|
68
|
+
client_side_validation: true,
|
67
69
|
required: false,
|
68
70
|
serialized_name: 'nextLink',
|
69
71
|
type: {
|
@@ -71,11 +73,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
71
73
|
}
|
72
74
|
},
|
73
75
|
value: {
|
76
|
+
client_side_validation: true,
|
74
77
|
required: false,
|
75
78
|
serialized_name: 'value',
|
76
79
|
type: {
|
77
80
|
name: 'Sequence',
|
78
81
|
element: {
|
82
|
+
client_side_validation: true,
|
79
83
|
required: false,
|
80
84
|
serialized_name: 'OperationEntityElementType',
|
81
85
|
type: {
|
data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb
CHANGED
@@ -23,6 +23,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
23
23
|
#
|
24
24
|
def self.mapper()
|
25
25
|
{
|
26
|
+
client_side_validation: true,
|
26
27
|
required: false,
|
27
28
|
serialized_name: 'RegenerateKeyParameters',
|
28
29
|
type: {
|
@@ -30,6 +31,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
30
31
|
class_name: 'RegenerateKeyParameters',
|
31
32
|
model_properties: {
|
32
33
|
key_name: {
|
34
|
+
client_side_validation: true,
|
33
35
|
required: true,
|
34
36
|
serialized_name: 'keyName',
|
35
37
|
type: {
|
@@ -28,6 +28,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
28
28
|
#
|
29
29
|
def self.mapper()
|
30
30
|
{
|
31
|
+
client_side_validation: true,
|
31
32
|
required: false,
|
32
33
|
serialized_name: 'Sku',
|
33
34
|
type: {
|
@@ -35,6 +36,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
35
36
|
class_name: 'Sku',
|
36
37
|
model_properties: {
|
37
38
|
name: {
|
39
|
+
client_side_validation: true,
|
38
40
|
required: true,
|
39
41
|
serialized_name: 'name',
|
40
42
|
type: {
|
@@ -42,6 +44,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
42
44
|
}
|
43
45
|
},
|
44
46
|
tier: {
|
47
|
+
client_side_validation: true,
|
45
48
|
required: false,
|
46
49
|
read_only: true,
|
47
50
|
serialized_name: 'tier',
|
@@ -4,15 +4,13 @@
|
|
4
4
|
|
5
5
|
require 'profiles/latest/cognitiveservices_module_definition'
|
6
6
|
require 'profiles/latest/modules/cognitiveservices_profile_module'
|
7
|
-
require 'profiles/common/configurable'
|
8
|
-
require 'profiles/common/default'
|
9
7
|
|
10
8
|
module Azure::CognitiveServices::Profiles::Latest::Mgmt
|
11
9
|
#
|
12
10
|
# Client class for the Latest profile SDK.
|
13
11
|
#
|
14
12
|
class Client < CognitiveServicesClass
|
15
|
-
include
|
13
|
+
include MsRestAzure::Common::Configurable
|
16
14
|
|
17
15
|
|
18
16
|
def initialize(options = {})
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_cognitive_services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
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-
|
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.
|
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.
|
82
|
+
version: 0.10.0
|
83
83
|
description: Microsoft Azure Cognitive Services Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -115,11 +115,8 @@ files:
|
|
115
115
|
- lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_tier.rb
|
116
116
|
- lib/2017-04-18/generated/azure_mgmt_cognitive_services/module_definition.rb
|
117
117
|
- lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb
|
118
|
-
- lib/2017-04-18/generated/azure_mgmt_cognitive_services/version.rb
|
119
118
|
- lib/azure_mgmt_cognitive_services.rb
|
120
119
|
- lib/module_definition.rb
|
121
|
-
- lib/profiles/common/configurable.rb
|
122
|
-
- lib/profiles/common/default.rb
|
123
120
|
- lib/profiles/latest/cognitiveservices_latest_profile_client.rb
|
124
121
|
- lib/profiles/latest/cognitiveservices_module_definition.rb
|
125
122
|
- lib/profiles/latest/modules/cognitiveservices_profile_module.rb
|
@@ -127,7 +124,12 @@ files:
|
|
127
124
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
128
125
|
licenses:
|
129
126
|
- MIT
|
130
|
-
metadata:
|
127
|
+
metadata:
|
128
|
+
bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
|
129
|
+
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
|
130
|
+
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
131
|
+
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
132
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_cognitive_services
|
131
133
|
post_install_message:
|
132
134
|
rdoc_options: []
|
133
135
|
require_paths:
|
@@ -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
|
@@ -1,57 +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
|
-
module Default
|
7
|
-
class << self
|
8
|
-
#
|
9
|
-
# Default Azure Tenant Id.
|
10
|
-
# @return [String] Azure Tenant Id.
|
11
|
-
#
|
12
|
-
def tenant_id
|
13
|
-
ENV['AZURE_TENANT_ID']
|
14
|
-
end
|
15
|
-
|
16
|
-
#
|
17
|
-
# Default Azure Client Id.
|
18
|
-
# @return [String] Azure Client Id.
|
19
|
-
#
|
20
|
-
def client_id
|
21
|
-
ENV['AZURE_CLIENT_ID']
|
22
|
-
end
|
23
|
-
|
24
|
-
#
|
25
|
-
# Default Azure Client Secret.
|
26
|
-
# @return [String] Azure Client Secret.
|
27
|
-
#
|
28
|
-
def client_secret
|
29
|
-
ENV['AZURE_CLIENT_SECRET']
|
30
|
-
end
|
31
|
-
|
32
|
-
#
|
33
|
-
# Default Azure Subscription Id.
|
34
|
-
# @return [String] Azure Subscription Id.
|
35
|
-
#
|
36
|
-
def subscription_id
|
37
|
-
ENV['AZURE_SUBSCRIPTION_ID']
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Default Azure Active Directory Service Settings.
|
42
|
-
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
|
43
|
-
#
|
44
|
-
def active_directory_settings
|
45
|
-
MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
|
46
|
-
end
|
47
|
-
|
48
|
-
#
|
49
|
-
# Configuration options.
|
50
|
-
# @return [Hash] Configuration options.
|
51
|
-
#
|
52
|
-
def options
|
53
|
-
Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|