azure_mgmt_features 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_features.gemspec +4 -4
- data/lib/azure_mgmt_features.rb +3 -32
- data/lib/{azure_mgmt_features → generated/azure_mgmt_features}/feature_client.rb +3 -3
- data/lib/{azure_mgmt_features → generated/azure_mgmt_features}/features.rb +73 -30
- data/lib/generated/azure_mgmt_features/models/deployment_extended_filter.rb +44 -0
- data/lib/generated/azure_mgmt_features/models/feature_operations_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_features/models/feature_properties.rb +44 -0
- data/lib/generated/azure_mgmt_features/models/feature_result.rb +76 -0
- data/lib/generated/azure_mgmt_features/models/generic_resource_filter.rb +64 -0
- data/lib/generated/azure_mgmt_features/models/resource_group_filter.rb +54 -0
- data/lib/{azure_mgmt_features → generated/azure_mgmt_features}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_features → generated/azure_mgmt_features}/version.rb +1 -1
- data/lib/generated/azure_mgmt_features.rb +34 -0
- metadata +32 -36
- data/lib/azure_mgmt_features/models/deployment_extended_filter.rb +0 -56
- data/lib/azure_mgmt_features/models/feature_operations_list_result.rb +0 -85
- data/lib/azure_mgmt_features/models/feature_properties.rb +0 -56
- data/lib/azure_mgmt_features/models/feature_result.rb +0 -90
- data/lib/azure_mgmt_features/models/generic_resource_filter.rb +0 -74
- data/lib/azure_mgmt_features/models/resource_group_filter.rb +0 -65
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MzA2NGU0MzI3MDA2MmQ4ZDVjMzQ5MzQ1OWVkYTcwM2RlOTYxNzcwMg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: aee4c5a3339de5a53e7e4dd66ff271fa3e1f7196
|
4
|
+
data.tar.gz: 70dcea04053c9db7cd90e03289c74d976fbc446f
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NmI4MWI4OTgzOWEyOWFjMDdlYjAzZGQwMWEzOGEwZjk2YWU5MGRhNWI5ODFi
|
11
|
-
OWMwODVlZTk3NzUwNWZiZWZjYWI4Yzg1ZGIxMjcxNTUyNGNiNzA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MDQ0ZWZmYjZkMGU5YTBjOThiZmJmNjdjOTNmZGNiZTgyNGU1NWNlNGYzZmJk
|
14
|
-
MzFlMTllYjczY2M4OTQzMDI3YWZkNzZkM2I5NWRlNzlmY2NjYTAwNDM3ZTMy
|
15
|
-
YTE3YWUxMTg0MDZlMTlkMTg0MmNiOGI1YzJlZmU3NGNiZjM2NTU=
|
6
|
+
metadata.gz: c090702edb67714efc1efa2a7e4fd88db61dd6a635f109699a8db7c5b15ad9d81477b5c587cf0c10a943d960bc3495fd729b9d9fbc259d25e5c1d528c00f1b81
|
7
|
+
data.tar.gz: 68c0f93df7e83a5dca53b592e5b666b64d6ca33f07c0e95ff1c425cd7be4c80dc0ce37b62e0ca842bd27a6400d7ace5c63c37cbaef0f8d1c04589f442cff60ba
|
data/azure_mgmt_features.gemspec
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
lib = File.expand_path('../lib', __FILE__)
|
6
6
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
7
7
|
|
8
|
-
require 'azure_mgmt_features/module_definition'
|
9
|
-
require 'azure_mgmt_features/version'
|
8
|
+
require 'generated/azure_mgmt_features/module_definition'
|
9
|
+
require 'generated/azure_mgmt_features/version'
|
10
10
|
|
11
11
|
Gem::Specification.new do |spec|
|
12
12
|
spec.name = 'azure_mgmt_features'
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.email = 'azrubyteam@microsoft.com'
|
16
16
|
spec.description = 'Microsoft Azure Resource Provider Feature Management Client Library for Ruby'
|
17
17
|
spec.summary = 'Official Ruby client library to consume Microsoft Azure Resource Provider Feature Management services.'
|
18
|
-
spec.homepage = '
|
18
|
+
spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
|
19
19
|
spec.license = 'MIT'
|
20
20
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3'
|
31
31
|
spec.add_development_dependency 'dotenv', '~> 2'
|
32
32
|
|
33
|
-
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.
|
33
|
+
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.3.0'
|
34
34
|
end
|
data/lib/azure_mgmt_features.rb
CHANGED
@@ -1,34 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
#
|
3
|
-
#
|
4
|
-
# regenerated.
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
5
4
|
|
6
|
-
require '
|
7
|
-
require 'cgi'
|
8
|
-
require 'date'
|
9
|
-
require 'json'
|
10
|
-
require 'base64'
|
11
|
-
require 'erb'
|
12
|
-
require 'securerandom'
|
13
|
-
require 'time'
|
14
|
-
require 'timeliness'
|
15
|
-
require 'faraday'
|
16
|
-
require 'faraday-cookie_jar'
|
17
|
-
require 'concurrent'
|
18
|
-
require 'ms_rest'
|
19
|
-
require 'azure_mgmt_features/module_definition'
|
20
|
-
require 'ms_rest_azure'
|
21
|
-
|
22
|
-
module Azure::ARM::Features
|
23
|
-
autoload :Features, 'azure_mgmt_features/features.rb'
|
24
|
-
autoload :FeatureClient, 'azure_mgmt_features/feature_client.rb'
|
25
|
-
|
26
|
-
module Models
|
27
|
-
autoload :DeploymentExtendedFilter, 'azure_mgmt_features/models/deployment_extended_filter.rb'
|
28
|
-
autoload :GenericResourceFilter, 'azure_mgmt_features/models/generic_resource_filter.rb'
|
29
|
-
autoload :ResourceGroupFilter, 'azure_mgmt_features/models/resource_group_filter.rb'
|
30
|
-
autoload :FeatureProperties, 'azure_mgmt_features/models/feature_properties.rb'
|
31
|
-
autoload :FeatureResult, 'azure_mgmt_features/models/feature_result.rb'
|
32
|
-
autoload :FeatureOperationsListResult, 'azure_mgmt_features/models/feature_operations_list_result.rb'
|
33
|
-
end
|
34
|
-
end
|
5
|
+
require 'generated/azure_mgmt_features'
|
@@ -8,13 +8,13 @@ module Azure::ARM::Features
|
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
10
10
|
class FeatureClient < MsRestAzure::AzureServiceClient
|
11
|
-
include
|
11
|
+
include MsRest::Serialization
|
12
12
|
include MsRestAzure
|
13
13
|
|
14
14
|
# @return [String] the base URI of the service.
|
15
15
|
attr_accessor :base_url
|
16
16
|
|
17
|
-
# @return
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
18
|
attr_reader :credentials
|
19
19
|
|
20
20
|
# @return [String] Gets subscription credentials which uniquely identify
|
@@ -40,7 +40,7 @@ module Azure::ARM::Features
|
|
40
40
|
# subscription.
|
41
41
|
attr_accessor :credentials
|
42
42
|
|
43
|
-
# @return features
|
43
|
+
# @return [Features] features
|
44
44
|
attr_reader :features
|
45
45
|
|
46
46
|
#
|
@@ -29,11 +29,32 @@ module Azure::ARM::Features
|
|
29
29
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
30
|
# will be added to the HTTP request.
|
31
31
|
#
|
32
|
-
# @return [FeatureOperationsListResult]
|
32
|
+
# @return [FeatureOperationsListResult] which provide lazy access to pages of
|
33
|
+
# the response.
|
33
34
|
#
|
34
|
-
def
|
35
|
+
def list_all_as_lazy(custom_headers = nil)
|
35
36
|
response = list_all_async(custom_headers).value!
|
36
|
-
|
37
|
+
unless response.nil?
|
38
|
+
page = response.body
|
39
|
+
page.next_method = Proc.new do |next_link|
|
40
|
+
list_all_next_async(next_link, custom_headers)
|
41
|
+
end
|
42
|
+
page
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
# Gets a list of previewed features for all the providers in the current
|
48
|
+
# subscription.
|
49
|
+
#
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [Array<FeatureResult>] operation results.
|
54
|
+
#
|
55
|
+
def list_all(custom_headers = nil)
|
56
|
+
first_page = list_all_as_lazy(custom_headers)
|
57
|
+
first_page.get_all_items
|
37
58
|
end
|
38
59
|
|
39
60
|
#
|
@@ -61,6 +82,8 @@ module Azure::ARM::Features
|
|
61
82
|
def list_all_async(custom_headers = nil)
|
62
83
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
63
84
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
85
|
+
|
86
|
+
|
64
87
|
request_headers = {}
|
65
88
|
|
66
89
|
# Set Headers
|
@@ -96,10 +119,8 @@ module Azure::ARM::Features
|
|
96
119
|
if status_code == 200
|
97
120
|
begin
|
98
121
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
99
|
-
|
100
|
-
|
101
|
-
end
|
102
|
-
result.body = parsed_response
|
122
|
+
result_mapper = FeatureOperationsListResult.mapper()
|
123
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
103
124
|
rescue Exception => e
|
104
125
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
105
126
|
end
|
@@ -119,11 +140,33 @@ module Azure::ARM::Features
|
|
119
140
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
120
141
|
# will be added to the HTTP request.
|
121
142
|
#
|
122
|
-
# @return [FeatureOperationsListResult]
|
143
|
+
# @return [FeatureOperationsListResult] which provide lazy access to pages of
|
144
|
+
# the response.
|
123
145
|
#
|
124
|
-
def
|
146
|
+
def list_as_lazy(resource_provider_namespace, custom_headers = nil)
|
125
147
|
response = list_async(resource_provider_namespace, custom_headers).value!
|
126
|
-
|
148
|
+
unless response.nil?
|
149
|
+
page = response.body
|
150
|
+
page.next_method = Proc.new do |next_link|
|
151
|
+
list_next_async(next_link, custom_headers)
|
152
|
+
end
|
153
|
+
page
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
#
|
158
|
+
# Gets a list of previewed features of a resource provider.
|
159
|
+
#
|
160
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
161
|
+
# provider.
|
162
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
163
|
+
# will be added to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [Array<FeatureResult>] operation results.
|
166
|
+
#
|
167
|
+
def list(resource_provider_namespace, custom_headers = nil)
|
168
|
+
first_page = list_as_lazy(resource_provider_namespace, custom_headers)
|
169
|
+
first_page.get_all_items
|
127
170
|
end
|
128
171
|
|
129
172
|
#
|
@@ -154,6 +197,8 @@ module Azure::ARM::Features
|
|
154
197
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
155
198
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
156
199
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
200
|
+
|
201
|
+
|
157
202
|
request_headers = {}
|
158
203
|
|
159
204
|
# Set Headers
|
@@ -189,10 +234,8 @@ module Azure::ARM::Features
|
|
189
234
|
if status_code == 200
|
190
235
|
begin
|
191
236
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
192
|
-
|
193
|
-
|
194
|
-
end
|
195
|
-
result.body = parsed_response
|
237
|
+
result_mapper = FeatureOperationsListResult.mapper()
|
238
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
196
239
|
rescue Exception => e
|
197
240
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
198
241
|
end
|
@@ -251,6 +294,8 @@ module Azure::ARM::Features
|
|
251
294
|
fail ArgumentError, 'feature_name is nil' if feature_name.nil?
|
252
295
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
253
296
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
297
|
+
|
298
|
+
|
254
299
|
request_headers = {}
|
255
300
|
|
256
301
|
# Set Headers
|
@@ -286,10 +331,8 @@ module Azure::ARM::Features
|
|
286
331
|
if status_code == 200
|
287
332
|
begin
|
288
333
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
289
|
-
|
290
|
-
|
291
|
-
end
|
292
|
-
result.body = parsed_response
|
334
|
+
result_mapper = FeatureResult.mapper()
|
335
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
293
336
|
rescue Exception => e
|
294
337
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
295
338
|
end
|
@@ -348,6 +391,8 @@ module Azure::ARM::Features
|
|
348
391
|
fail ArgumentError, 'feature_name is nil' if feature_name.nil?
|
349
392
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
350
393
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
394
|
+
|
395
|
+
|
351
396
|
request_headers = {}
|
352
397
|
|
353
398
|
# Set Headers
|
@@ -383,10 +428,8 @@ module Azure::ARM::Features
|
|
383
428
|
if status_code == 200
|
384
429
|
begin
|
385
430
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
386
|
-
|
387
|
-
|
388
|
-
end
|
389
|
-
result.body = parsed_response
|
431
|
+
result_mapper = FeatureResult.mapper()
|
432
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
390
433
|
rescue Exception => e
|
391
434
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
392
435
|
end
|
@@ -442,6 +485,8 @@ module Azure::ARM::Features
|
|
442
485
|
#
|
443
486
|
def list_all_next_async(next_page_link, custom_headers = nil)
|
444
487
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
488
|
+
|
489
|
+
|
445
490
|
request_headers = {}
|
446
491
|
|
447
492
|
# Set Headers
|
@@ -476,10 +521,8 @@ module Azure::ARM::Features
|
|
476
521
|
if status_code == 200
|
477
522
|
begin
|
478
523
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
479
|
-
|
480
|
-
|
481
|
-
end
|
482
|
-
result.body = parsed_response
|
524
|
+
result_mapper = FeatureOperationsListResult.mapper()
|
525
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
483
526
|
rescue Exception => e
|
484
527
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
485
528
|
end
|
@@ -532,6 +575,8 @@ module Azure::ARM::Features
|
|
532
575
|
#
|
533
576
|
def list_next_async(next_page_link, custom_headers = nil)
|
534
577
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
578
|
+
|
579
|
+
|
535
580
|
request_headers = {}
|
536
581
|
|
537
582
|
# Set Headers
|
@@ -566,10 +611,8 @@ module Azure::ARM::Features
|
|
566
611
|
if status_code == 200
|
567
612
|
begin
|
568
613
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
569
|
-
|
570
|
-
|
571
|
-
end
|
572
|
-
result.body = parsed_response
|
614
|
+
result_mapper = FeatureOperationsListResult.mapper()
|
615
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
573
616
|
rescue Exception => e
|
574
617
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
575
618
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Deployment filter.
|
10
|
+
#
|
11
|
+
class DeploymentExtendedFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the provisioning state.
|
16
|
+
attr_accessor :provisioning_state
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for DeploymentExtendedFilter class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'DeploymentExtendedFilter',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'DeploymentExtendedFilter',
|
30
|
+
model_properties: {
|
31
|
+
provisioning_state: {
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'provisioningState',
|
34
|
+
type: {
|
35
|
+
name: 'String'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of previewed features.
|
10
|
+
#
|
11
|
+
class FeatureOperationsListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<FeatureResult>] Gets or sets the list of Features.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the URL to get the next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<FeatureResult>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [FeatureOperationsListResult] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Mapper for FeatureOperationsListResult class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'FeatureOperationsListResult',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'FeatureOperationsListResult',
|
64
|
+
model_properties: {
|
65
|
+
value: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'value',
|
68
|
+
type: {
|
69
|
+
name: 'Sequence',
|
70
|
+
element: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'FeatureResultElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'FeatureResult'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
next_link: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'nextLink',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Previewed feature information.
|
10
|
+
#
|
11
|
+
class FeatureProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the state of the previewed feature.
|
16
|
+
attr_accessor :state
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for FeatureProperties class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'FeatureProperties',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'FeatureProperties',
|
30
|
+
model_properties: {
|
31
|
+
state: {
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'state',
|
34
|
+
type: {
|
35
|
+
name: 'String'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Previewed feature information.
|
10
|
+
#
|
11
|
+
class FeatureResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the name of the feature.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [FeatureProperties] Gets or sets the properties of the
|
19
|
+
# previewed feature.
|
20
|
+
attr_accessor :properties
|
21
|
+
|
22
|
+
# @return [String] Gets or sets the Id of the feature.
|
23
|
+
attr_accessor :id
|
24
|
+
|
25
|
+
# @return [String] Gets or sets the type of the feature.
|
26
|
+
attr_accessor :type
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for FeatureResult class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'FeatureResult',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'FeatureResult',
|
40
|
+
model_properties: {
|
41
|
+
name: {
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'name',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
properties: {
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'properties',
|
51
|
+
type: {
|
52
|
+
name: 'Composite',
|
53
|
+
class_name: 'FeatureProperties'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
id: {
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'id',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
type: {
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'type',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource filter.
|
10
|
+
#
|
11
|
+
class GenericResourceFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the resource type.
|
16
|
+
attr_accessor :resource_type
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the tag name.
|
19
|
+
attr_accessor :tagname
|
20
|
+
|
21
|
+
# @return [String] Gets or sets the tag value.
|
22
|
+
attr_accessor :tagvalue
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for GenericResourceFilter class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'GenericResourceFilter',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'GenericResourceFilter',
|
36
|
+
model_properties: {
|
37
|
+
resource_type: {
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'resourceType',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
tagname: {
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'tagname',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
tagvalue: {
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'tagvalue',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Features
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource group filter.
|
10
|
+
#
|
11
|
+
class ResourceGroupFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the tag name.
|
16
|
+
attr_accessor :tag_name
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the tag value.
|
19
|
+
attr_accessor :tag_value
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ResourceGroupFilter class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'ResourceGroupFilter',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'ResourceGroupFilter',
|
33
|
+
model_properties: {
|
34
|
+
tag_name: {
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'tagName',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
},
|
41
|
+
tag_value: {
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'tagValue',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
File without changes
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require 'generated/azure_mgmt_features/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ARM::Features
|
23
|
+
autoload :Features, 'generated/azure_mgmt_features/features.rb'
|
24
|
+
autoload :FeatureClient, 'generated/azure_mgmt_features/feature_client.rb'
|
25
|
+
|
26
|
+
module Models
|
27
|
+
autoload :DeploymentExtendedFilter, 'generated/azure_mgmt_features/models/deployment_extended_filter.rb'
|
28
|
+
autoload :GenericResourceFilter, 'generated/azure_mgmt_features/models/generic_resource_filter.rb'
|
29
|
+
autoload :ResourceGroupFilter, 'generated/azure_mgmt_features/models/resource_group_filter.rb'
|
30
|
+
autoload :FeatureProperties, 'generated/azure_mgmt_features/models/feature_properties.rb'
|
31
|
+
autoload :FeatureResult, 'generated/azure_mgmt_features/models/feature_result.rb'
|
32
|
+
autoload :FeatureOperationsListResult, 'generated/azure_mgmt_features/models/feature_operations_list_result.rb'
|
33
|
+
end
|
34
|
+
end
|
metadata
CHANGED
@@ -1,90 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
MC4zLjE=
|
4
|
+
version: 0.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Microsoft Corporation
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2016-
|
11
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- - ~>
|
17
|
+
- - "~>"
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: '1.9'
|
21
20
|
type: :development
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
|
-
- - ~>
|
24
|
+
- - "~>"
|
26
25
|
- !ruby/object:Gem::Version
|
27
26
|
version: '1.9'
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: rake
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
31
30
|
requirements:
|
32
|
-
- - ~>
|
31
|
+
- - "~>"
|
33
32
|
- !ruby/object:Gem::Version
|
34
33
|
version: '10'
|
35
34
|
type: :development
|
36
35
|
prerelease: false
|
37
36
|
version_requirements: !ruby/object:Gem::Requirement
|
38
37
|
requirements:
|
39
|
-
- - ~>
|
38
|
+
- - "~>"
|
40
39
|
- !ruby/object:Gem::Version
|
41
40
|
version: '10'
|
42
41
|
- !ruby/object:Gem::Dependency
|
43
42
|
name: rspec
|
44
43
|
requirement: !ruby/object:Gem::Requirement
|
45
44
|
requirements:
|
46
|
-
- - ~>
|
45
|
+
- - "~>"
|
47
46
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
49
|
-
Mw==
|
47
|
+
version: '3'
|
50
48
|
type: :development
|
51
49
|
prerelease: false
|
52
50
|
version_requirements: !ruby/object:Gem::Requirement
|
53
51
|
requirements:
|
54
|
-
- - ~>
|
52
|
+
- - "~>"
|
55
53
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
57
|
-
Mw==
|
54
|
+
version: '3'
|
58
55
|
- !ruby/object:Gem::Dependency
|
59
56
|
name: dotenv
|
60
57
|
requirement: !ruby/object:Gem::Requirement
|
61
58
|
requirements:
|
62
|
-
- - ~>
|
59
|
+
- - "~>"
|
63
60
|
- !ruby/object:Gem::Version
|
64
61
|
version: '2'
|
65
62
|
type: :development
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
|
-
- - ~>
|
66
|
+
- - "~>"
|
70
67
|
- !ruby/object:Gem::Version
|
71
68
|
version: '2'
|
72
69
|
- !ruby/object:Gem::Dependency
|
73
70
|
name: ms_rest_azure
|
74
71
|
requirement: !ruby/object:Gem::Requirement
|
75
72
|
requirements:
|
76
|
-
- - ~>
|
73
|
+
- - "~>"
|
77
74
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
79
|
-
MC4yLjM=
|
75
|
+
version: 0.3.0
|
80
76
|
type: :runtime
|
81
77
|
prerelease: false
|
82
78
|
version_requirements: !ruby/object:Gem::Requirement
|
83
79
|
requirements:
|
84
|
-
- - ~>
|
80
|
+
- - "~>"
|
85
81
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
87
|
-
MC4yLjM=
|
82
|
+
version: 0.3.0
|
88
83
|
description: Microsoft Azure Resource Provider Feature Management Client Library for
|
89
84
|
Ruby
|
90
85
|
email: azrubyteam@microsoft.com
|
@@ -92,22 +87,23 @@ executables: []
|
|
92
87
|
extensions: []
|
93
88
|
extra_rdoc_files: []
|
94
89
|
files:
|
95
|
-
- .rspec
|
90
|
+
- ".rspec"
|
96
91
|
- LICENSE.txt
|
97
92
|
- Rakefile
|
98
93
|
- azure_mgmt_features.gemspec
|
99
94
|
- lib/azure_mgmt_features.rb
|
100
|
-
- lib/azure_mgmt_features
|
101
|
-
- lib/azure_mgmt_features/
|
102
|
-
- lib/azure_mgmt_features/
|
103
|
-
- lib/azure_mgmt_features/models/
|
104
|
-
- lib/azure_mgmt_features/models/
|
105
|
-
- lib/azure_mgmt_features/models/
|
106
|
-
- lib/azure_mgmt_features/models/
|
107
|
-
- lib/azure_mgmt_features/models/
|
108
|
-
- lib/azure_mgmt_features/
|
109
|
-
- lib/azure_mgmt_features/
|
110
|
-
|
95
|
+
- lib/generated/azure_mgmt_features.rb
|
96
|
+
- lib/generated/azure_mgmt_features/feature_client.rb
|
97
|
+
- lib/generated/azure_mgmt_features/features.rb
|
98
|
+
- lib/generated/azure_mgmt_features/models/deployment_extended_filter.rb
|
99
|
+
- lib/generated/azure_mgmt_features/models/feature_operations_list_result.rb
|
100
|
+
- lib/generated/azure_mgmt_features/models/feature_properties.rb
|
101
|
+
- lib/generated/azure_mgmt_features/models/feature_result.rb
|
102
|
+
- lib/generated/azure_mgmt_features/models/generic_resource_filter.rb
|
103
|
+
- lib/generated/azure_mgmt_features/models/resource_group_filter.rb
|
104
|
+
- lib/generated/azure_mgmt_features/module_definition.rb
|
105
|
+
- lib/generated/azure_mgmt_features/version.rb
|
106
|
+
homepage: https://aka.ms/azure-sdk-for-ruby
|
111
107
|
licenses:
|
112
108
|
- MIT
|
113
109
|
metadata: {}
|
@@ -117,17 +113,17 @@ require_paths:
|
|
117
113
|
- lib
|
118
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
119
115
|
requirements:
|
120
|
-
- -
|
116
|
+
- - ">="
|
121
117
|
- !ruby/object:Gem::Version
|
122
118
|
version: 1.9.3
|
123
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
120
|
requirements:
|
125
|
-
- -
|
121
|
+
- - ">="
|
126
122
|
- !ruby/object:Gem::Version
|
127
123
|
version: '0'
|
128
124
|
requirements: []
|
129
125
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.4.
|
126
|
+
rubygems_version: 2.4.6
|
131
127
|
signing_key:
|
132
128
|
specification_version: 4
|
133
129
|
summary: Official Ruby client library to consume Microsoft Azure Resource Provider
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Features
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Deployment filter.
|
10
|
-
#
|
11
|
-
class DeploymentExtendedFilter
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the provisioning state.
|
16
|
-
attr_accessor :provisioning_state
|
17
|
-
|
18
|
-
#
|
19
|
-
# Validate the object. Throws ValidationError if validation fails.
|
20
|
-
#
|
21
|
-
def validate
|
22
|
-
# Nothing to validate
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# Serializes given Model object into Ruby Hash.
|
27
|
-
# @param object Model object to serialize.
|
28
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
-
#
|
30
|
-
def self.serialize_object(object)
|
31
|
-
object.validate
|
32
|
-
output_object = {}
|
33
|
-
|
34
|
-
serialized_property = object.provisioning_state
|
35
|
-
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
36
|
-
|
37
|
-
output_object
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Deserializes given Ruby Hash into Model object.
|
42
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
43
|
-
# @return [DeploymentExtendedFilter] Deserialized object.
|
44
|
-
#
|
45
|
-
def self.deserialize_object(object)
|
46
|
-
return if object.nil?
|
47
|
-
output_object = DeploymentExtendedFilter.new
|
48
|
-
|
49
|
-
deserialized_property = object['provisioningState']
|
50
|
-
output_object.provisioning_state = deserialized_property
|
51
|
-
|
52
|
-
output_object
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,85 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Features
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# List of previewed features.
|
10
|
-
#
|
11
|
-
class FeatureOperationsListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<FeatureResult>] Gets or sets the list of Features.
|
16
|
-
attr_accessor :value
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the URL to get the next set of results.
|
19
|
-
attr_accessor :next_link
|
20
|
-
|
21
|
-
#
|
22
|
-
# Validate the object. Throws ValidationError if validation fails.
|
23
|
-
#
|
24
|
-
def validate
|
25
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
26
|
-
end
|
27
|
-
|
28
|
-
#
|
29
|
-
# Serializes given Model object into Ruby Hash.
|
30
|
-
# @param object Model object to serialize.
|
31
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
32
|
-
#
|
33
|
-
def self.serialize_object(object)
|
34
|
-
object.validate
|
35
|
-
output_object = {}
|
36
|
-
|
37
|
-
serialized_property = object.value
|
38
|
-
unless serialized_property.nil?
|
39
|
-
serializedArray = []
|
40
|
-
serialized_property.each do |element|
|
41
|
-
unless element.nil?
|
42
|
-
element = FeatureResult.serialize_object(element)
|
43
|
-
end
|
44
|
-
serializedArray.push(element)
|
45
|
-
end
|
46
|
-
serialized_property = serializedArray
|
47
|
-
end
|
48
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
49
|
-
|
50
|
-
serialized_property = object.next_link
|
51
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
output_object
|
54
|
-
end
|
55
|
-
|
56
|
-
#
|
57
|
-
# Deserializes given Ruby Hash into Model object.
|
58
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
59
|
-
# @return [FeatureOperationsListResult] Deserialized object.
|
60
|
-
#
|
61
|
-
def self.deserialize_object(object)
|
62
|
-
return if object.nil?
|
63
|
-
output_object = FeatureOperationsListResult.new
|
64
|
-
|
65
|
-
deserialized_property = object['value']
|
66
|
-
unless deserialized_property.nil?
|
67
|
-
deserialized_array = []
|
68
|
-
deserialized_property.each do |element1|
|
69
|
-
unless element1.nil?
|
70
|
-
element1 = FeatureResult.deserialize_object(element1)
|
71
|
-
end
|
72
|
-
deserialized_array.push(element1)
|
73
|
-
end
|
74
|
-
deserialized_property = deserialized_array
|
75
|
-
end
|
76
|
-
output_object.value = deserialized_property
|
77
|
-
|
78
|
-
deserialized_property = object['nextLink']
|
79
|
-
output_object.next_link = deserialized_property
|
80
|
-
|
81
|
-
output_object
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Features
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Previewed feature information.
|
10
|
-
#
|
11
|
-
class FeatureProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the state of the previewed feature.
|
16
|
-
attr_accessor :state
|
17
|
-
|
18
|
-
#
|
19
|
-
# Validate the object. Throws ValidationError if validation fails.
|
20
|
-
#
|
21
|
-
def validate
|
22
|
-
# Nothing to validate
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# Serializes given Model object into Ruby Hash.
|
27
|
-
# @param object Model object to serialize.
|
28
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
-
#
|
30
|
-
def self.serialize_object(object)
|
31
|
-
object.validate
|
32
|
-
output_object = {}
|
33
|
-
|
34
|
-
serialized_property = object.state
|
35
|
-
output_object['state'] = serialized_property unless serialized_property.nil?
|
36
|
-
|
37
|
-
output_object
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Deserializes given Ruby Hash into Model object.
|
42
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
43
|
-
# @return [FeatureProperties] Deserialized object.
|
44
|
-
#
|
45
|
-
def self.deserialize_object(object)
|
46
|
-
return if object.nil?
|
47
|
-
output_object = FeatureProperties.new
|
48
|
-
|
49
|
-
deserialized_property = object['state']
|
50
|
-
output_object.state = deserialized_property
|
51
|
-
|
52
|
-
output_object
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,90 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Features
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Previewed feature information.
|
10
|
-
#
|
11
|
-
class FeatureResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the name of the feature.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [FeatureProperties] Gets or sets the properties of the
|
19
|
-
# previewed feature.
|
20
|
-
attr_accessor :properties
|
21
|
-
|
22
|
-
# @return [String] Gets or sets the Id of the feature.
|
23
|
-
attr_accessor :id
|
24
|
-
|
25
|
-
# @return [String] Gets or sets the type of the feature.
|
26
|
-
attr_accessor :type
|
27
|
-
|
28
|
-
#
|
29
|
-
# Validate the object. Throws ValidationError if validation fails.
|
30
|
-
#
|
31
|
-
def validate
|
32
|
-
@properties.validate unless @properties.nil?
|
33
|
-
end
|
34
|
-
|
35
|
-
#
|
36
|
-
# Serializes given Model object into Ruby Hash.
|
37
|
-
# @param object Model object to serialize.
|
38
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
39
|
-
#
|
40
|
-
def self.serialize_object(object)
|
41
|
-
object.validate
|
42
|
-
output_object = {}
|
43
|
-
|
44
|
-
serialized_property = object.name
|
45
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
46
|
-
|
47
|
-
serialized_property = object.properties
|
48
|
-
unless serialized_property.nil?
|
49
|
-
serialized_property = FeatureProperties.serialize_object(serialized_property)
|
50
|
-
end
|
51
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
serialized_property = object.id
|
54
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
55
|
-
|
56
|
-
serialized_property = object.type
|
57
|
-
output_object['type'] = serialized_property unless serialized_property.nil?
|
58
|
-
|
59
|
-
output_object
|
60
|
-
end
|
61
|
-
|
62
|
-
#
|
63
|
-
# Deserializes given Ruby Hash into Model object.
|
64
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
65
|
-
# @return [FeatureResult] Deserialized object.
|
66
|
-
#
|
67
|
-
def self.deserialize_object(object)
|
68
|
-
return if object.nil?
|
69
|
-
output_object = FeatureResult.new
|
70
|
-
|
71
|
-
deserialized_property = object['name']
|
72
|
-
output_object.name = deserialized_property
|
73
|
-
|
74
|
-
deserialized_property = object['properties']
|
75
|
-
unless deserialized_property.nil?
|
76
|
-
deserialized_property = FeatureProperties.deserialize_object(deserialized_property)
|
77
|
-
end
|
78
|
-
output_object.properties = deserialized_property
|
79
|
-
|
80
|
-
deserialized_property = object['id']
|
81
|
-
output_object.id = deserialized_property
|
82
|
-
|
83
|
-
deserialized_property = object['type']
|
84
|
-
output_object.type = deserialized_property
|
85
|
-
|
86
|
-
output_object
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
@@ -1,74 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Features
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Resource filter.
|
10
|
-
#
|
11
|
-
class GenericResourceFilter
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the resource type.
|
16
|
-
attr_accessor :resource_type
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the tag name.
|
19
|
-
attr_accessor :tagname
|
20
|
-
|
21
|
-
# @return [String] Gets or sets the tag value.
|
22
|
-
attr_accessor :tagvalue
|
23
|
-
|
24
|
-
#
|
25
|
-
# Validate the object. Throws ValidationError if validation fails.
|
26
|
-
#
|
27
|
-
def validate
|
28
|
-
# Nothing to validate
|
29
|
-
end
|
30
|
-
|
31
|
-
#
|
32
|
-
# Serializes given Model object into Ruby Hash.
|
33
|
-
# @param object Model object to serialize.
|
34
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
35
|
-
#
|
36
|
-
def self.serialize_object(object)
|
37
|
-
object.validate
|
38
|
-
output_object = {}
|
39
|
-
|
40
|
-
serialized_property = object.resource_type
|
41
|
-
output_object['resourceType'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
serialized_property = object.tagname
|
44
|
-
output_object['tagname'] = serialized_property unless serialized_property.nil?
|
45
|
-
|
46
|
-
serialized_property = object.tagvalue
|
47
|
-
output_object['tagvalue'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
output_object
|
50
|
-
end
|
51
|
-
|
52
|
-
#
|
53
|
-
# Deserializes given Ruby Hash into Model object.
|
54
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
55
|
-
# @return [GenericResourceFilter] Deserialized object.
|
56
|
-
#
|
57
|
-
def self.deserialize_object(object)
|
58
|
-
return if object.nil?
|
59
|
-
output_object = GenericResourceFilter.new
|
60
|
-
|
61
|
-
deserialized_property = object['resourceType']
|
62
|
-
output_object.resource_type = deserialized_property
|
63
|
-
|
64
|
-
deserialized_property = object['tagname']
|
65
|
-
output_object.tagname = deserialized_property
|
66
|
-
|
67
|
-
deserialized_property = object['tagvalue']
|
68
|
-
output_object.tagvalue = deserialized_property
|
69
|
-
|
70
|
-
output_object
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
@@ -1,65 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Features
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Resource group filter.
|
10
|
-
#
|
11
|
-
class ResourceGroupFilter
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the tag name.
|
16
|
-
attr_accessor :tag_name
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the tag value.
|
19
|
-
attr_accessor :tag_value
|
20
|
-
|
21
|
-
#
|
22
|
-
# Validate the object. Throws ValidationError if validation fails.
|
23
|
-
#
|
24
|
-
def validate
|
25
|
-
# Nothing to validate
|
26
|
-
end
|
27
|
-
|
28
|
-
#
|
29
|
-
# Serializes given Model object into Ruby Hash.
|
30
|
-
# @param object Model object to serialize.
|
31
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
32
|
-
#
|
33
|
-
def self.serialize_object(object)
|
34
|
-
object.validate
|
35
|
-
output_object = {}
|
36
|
-
|
37
|
-
serialized_property = object.tag_name
|
38
|
-
output_object['tagName'] = serialized_property unless serialized_property.nil?
|
39
|
-
|
40
|
-
serialized_property = object.tag_value
|
41
|
-
output_object['tagValue'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
output_object
|
44
|
-
end
|
45
|
-
|
46
|
-
#
|
47
|
-
# Deserializes given Ruby Hash into Model object.
|
48
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
49
|
-
# @return [ResourceGroupFilter] Deserialized object.
|
50
|
-
#
|
51
|
-
def self.deserialize_object(object)
|
52
|
-
return if object.nil?
|
53
|
-
output_object = ResourceGroupFilter.new
|
54
|
-
|
55
|
-
deserialized_property = object['tagName']
|
56
|
-
output_object.tag_name = deserialized_property
|
57
|
-
|
58
|
-
deserialized_property = object['tagValue']
|
59
|
-
output_object.tag_value = deserialized_property
|
60
|
-
|
61
|
-
output_object
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|