azure_mgmt_subscriptions 0.17.3 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/operations.rb +4 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb +8 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb +4 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions.rb +10 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_client.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_operation_metadata.rb +4 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions.rb +3 -7
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +2 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +2 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -5
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb +2 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_operations.rb +2 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions.rb +38 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +47 -0
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb} +14 -14
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/modern_subscription_creation_parameters.rb +129 -0
- data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation.rb +1 -1
- data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation_display.rb +1 -1
- data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +1 -1
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +47 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation.rb +69 -0
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation_list_result.rb} +10 -9
- data/lib/{2015-11-01 → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/module_definition.rb +1 -1
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +134 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb +189 -0
- data/lib/{2018-03-01-preview/generated/azure_mgmt_subscriptions/operations.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_operation_operations.rb} +26 -16
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions.rb +35 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/canceled_subscription_id.rb +47 -0
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb → 2019-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb} +14 -14
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb +69 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +68 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/renamed_subscription_id.rb +47 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_name.rb +46 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb +9 -0
- data/lib/{2015-11-01 → 2019-03-01-preview}/generated/azure_mgmt_subscriptions/subscription_client.rb +5 -8
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb → 2019-03-01-preview/generated/azure_mgmt_subscriptions/subscriptions.rb} +59 -59
- data/lib/azure_mgmt_subscriptions.rb +4 -3
- data/lib/profiles/latest/modules/subscriptions_profile_module.rb +110 -16
- data/lib/version.rb +1 -1
- metadata +30 -21
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions.rb +0 -36
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb +0 -102
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription.rb +0 -92
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +0 -98
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +0 -98
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb +0 -389
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_subscriptions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-09 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.11.
|
75
|
+
version: 0.11.1
|
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.11.
|
82
|
+
version: 0.11.1
|
83
83
|
description: Microsoft Azure Subscription Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -87,18 +87,6 @@ extensions: []
|
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
89
|
- LICENSE.txt
|
90
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions.rb
|
91
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb
|
92
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb
|
93
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription.rb
|
94
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb
|
95
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb
|
96
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb
|
97
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb
|
98
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/module_definition.rb
|
99
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/subscription_client.rb
|
100
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb
|
101
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb
|
102
90
|
- lib/2016-06-01/generated/azure_mgmt_subscriptions.rb
|
103
91
|
- lib/2016-06-01/generated/azure_mgmt_subscriptions/models/location.rb
|
104
92
|
- lib/2016-06-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb
|
@@ -132,18 +120,39 @@ files:
|
|
132
120
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb
|
133
121
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb
|
134
122
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/offer_type.rb
|
135
|
-
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb
|
136
|
-
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb
|
137
|
-
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb
|
138
123
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_parameters.rb
|
139
124
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb
|
140
125
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation.rb
|
141
126
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation_list_result.rb
|
142
127
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb
|
143
|
-
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/operations.rb
|
144
128
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb
|
145
129
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb
|
146
130
|
- lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_operations.rb
|
131
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions.rb
|
132
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb
|
133
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb
|
134
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/modern_subscription_creation_parameters.rb
|
135
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb
|
136
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb
|
137
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb
|
138
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb
|
139
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation.rb
|
140
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation_list_result.rb
|
141
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb
|
142
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb
|
143
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb
|
144
|
+
- lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_operation_operations.rb
|
145
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions.rb
|
146
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/canceled_subscription_id.rb
|
147
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb
|
148
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb
|
149
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb
|
150
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb
|
151
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/renamed_subscription_id.rb
|
152
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_name.rb
|
153
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb
|
154
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb
|
155
|
+
- lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/subscriptions.rb
|
147
156
|
- lib/azure_mgmt_subscriptions.rb
|
148
157
|
- lib/module_definition.rb
|
149
158
|
- lib/profiles/latest/modules/subscriptions_profile_module.rb
|
@@ -184,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
193
|
version: '0'
|
185
194
|
requirements: []
|
186
195
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.7.
|
196
|
+
rubygems_version: 2.7.8
|
188
197
|
signing_key:
|
189
198
|
specification_version: 4
|
190
199
|
summary: Official ruby client library to consume Microsoft Azure Subscription Management
|
@@ -1,36 +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
|
-
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 '2015-11-01/generated/azure_mgmt_subscriptions/module_definition'
|
20
|
-
require 'ms_rest_azure'
|
21
|
-
|
22
|
-
module Azure::Subscriptions::Mgmt::V2015_11_01
|
23
|
-
autoload :Subscriptions, '2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb'
|
24
|
-
autoload :Tenants, '2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb'
|
25
|
-
autoload :SubscriptionClient, '2015-11-01/generated/azure_mgmt_subscriptions/subscription_client.rb'
|
26
|
-
|
27
|
-
module Models
|
28
|
-
autoload :Subscription, '2015-11-01/generated/azure_mgmt_subscriptions/models/subscription.rb'
|
29
|
-
autoload :SubscriptionListResult, '2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb'
|
30
|
-
autoload :LocationListResult, '2015-11-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb'
|
31
|
-
autoload :TenantIdDescription, '2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb'
|
32
|
-
autoload :Location, '2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb'
|
33
|
-
autoload :TenantListResult, '2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb'
|
34
|
-
autoload :SubscriptionPolicies, '2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb'
|
35
|
-
end
|
36
|
-
end
|
@@ -1,102 +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::Subscriptions::Mgmt::V2015_11_01
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Location information.
|
10
|
-
#
|
11
|
-
class Location
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the ID of the resource
|
16
|
-
# (/subscriptions/SubscriptionId).
|
17
|
-
attr_accessor :id
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the subscription Id.
|
20
|
-
attr_accessor :subscription_id
|
21
|
-
|
22
|
-
# @return [String] Gets or sets the location name
|
23
|
-
attr_accessor :name
|
24
|
-
|
25
|
-
# @return [String] Gets or sets the display name of the location
|
26
|
-
attr_accessor :display_name
|
27
|
-
|
28
|
-
# @return [String] Gets or sets the latitude of the location
|
29
|
-
attr_accessor :latitude
|
30
|
-
|
31
|
-
# @return [String] Gets or sets the longitude of the location
|
32
|
-
attr_accessor :longitude
|
33
|
-
|
34
|
-
|
35
|
-
#
|
36
|
-
# Mapper for Location class as Ruby Hash.
|
37
|
-
# This will be used for serialization/deserialization.
|
38
|
-
#
|
39
|
-
def self.mapper()
|
40
|
-
{
|
41
|
-
client_side_validation: true,
|
42
|
-
required: false,
|
43
|
-
serialized_name: 'Location',
|
44
|
-
type: {
|
45
|
-
name: 'Composite',
|
46
|
-
class_name: 'Location',
|
47
|
-
model_properties: {
|
48
|
-
id: {
|
49
|
-
client_side_validation: true,
|
50
|
-
required: false,
|
51
|
-
serialized_name: 'id',
|
52
|
-
type: {
|
53
|
-
name: 'String'
|
54
|
-
}
|
55
|
-
},
|
56
|
-
subscription_id: {
|
57
|
-
client_side_validation: true,
|
58
|
-
required: false,
|
59
|
-
serialized_name: 'subscriptionId',
|
60
|
-
type: {
|
61
|
-
name: 'String'
|
62
|
-
}
|
63
|
-
},
|
64
|
-
name: {
|
65
|
-
client_side_validation: true,
|
66
|
-
required: false,
|
67
|
-
serialized_name: 'name',
|
68
|
-
type: {
|
69
|
-
name: 'String'
|
70
|
-
}
|
71
|
-
},
|
72
|
-
display_name: {
|
73
|
-
client_side_validation: true,
|
74
|
-
required: false,
|
75
|
-
serialized_name: 'displayName',
|
76
|
-
type: {
|
77
|
-
name: 'String'
|
78
|
-
}
|
79
|
-
},
|
80
|
-
latitude: {
|
81
|
-
client_side_validation: true,
|
82
|
-
required: false,
|
83
|
-
serialized_name: 'latitude',
|
84
|
-
type: {
|
85
|
-
name: 'String'
|
86
|
-
}
|
87
|
-
},
|
88
|
-
longitude: {
|
89
|
-
client_side_validation: true,
|
90
|
-
required: false,
|
91
|
-
serialized_name: 'longitude',
|
92
|
-
type: {
|
93
|
-
name: 'String'
|
94
|
-
}
|
95
|
-
}
|
96
|
-
}
|
97
|
-
}
|
98
|
-
}
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|
@@ -1,92 +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::Subscriptions::Mgmt::V2015_11_01
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Subscription information.
|
10
|
-
#
|
11
|
-
class Subscription
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the ID of the resource
|
16
|
-
# (/subscriptions/SubscriptionId).
|
17
|
-
attr_accessor :id
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the subscription Id.
|
20
|
-
attr_accessor :subscription_id
|
21
|
-
|
22
|
-
# @return [String] Gets or sets the subscription display name
|
23
|
-
attr_accessor :display_name
|
24
|
-
|
25
|
-
# @return [String] Gets or sets the subscription state
|
26
|
-
attr_accessor :state
|
27
|
-
|
28
|
-
# @return [SubscriptionPolicies] Gets or sets the subscription policies.
|
29
|
-
attr_accessor :subscription_policies
|
30
|
-
|
31
|
-
|
32
|
-
#
|
33
|
-
# Mapper for Subscription class as Ruby Hash.
|
34
|
-
# This will be used for serialization/deserialization.
|
35
|
-
#
|
36
|
-
def self.mapper()
|
37
|
-
{
|
38
|
-
client_side_validation: true,
|
39
|
-
required: false,
|
40
|
-
serialized_name: 'Subscription',
|
41
|
-
type: {
|
42
|
-
name: 'Composite',
|
43
|
-
class_name: 'Subscription',
|
44
|
-
model_properties: {
|
45
|
-
id: {
|
46
|
-
client_side_validation: true,
|
47
|
-
required: false,
|
48
|
-
serialized_name: 'id',
|
49
|
-
type: {
|
50
|
-
name: 'String'
|
51
|
-
}
|
52
|
-
},
|
53
|
-
subscription_id: {
|
54
|
-
client_side_validation: true,
|
55
|
-
required: false,
|
56
|
-
serialized_name: 'subscriptionId',
|
57
|
-
type: {
|
58
|
-
name: 'String'
|
59
|
-
}
|
60
|
-
},
|
61
|
-
display_name: {
|
62
|
-
client_side_validation: true,
|
63
|
-
required: false,
|
64
|
-
serialized_name: 'displayName',
|
65
|
-
type: {
|
66
|
-
name: 'String'
|
67
|
-
}
|
68
|
-
},
|
69
|
-
state: {
|
70
|
-
client_side_validation: true,
|
71
|
-
required: false,
|
72
|
-
serialized_name: 'state',
|
73
|
-
type: {
|
74
|
-
name: 'String'
|
75
|
-
}
|
76
|
-
},
|
77
|
-
subscription_policies: {
|
78
|
-
client_side_validation: true,
|
79
|
-
required: false,
|
80
|
-
serialized_name: 'subscriptionPolicies',
|
81
|
-
type: {
|
82
|
-
name: 'Composite',
|
83
|
-
class_name: 'SubscriptionPolicies'
|
84
|
-
}
|
85
|
-
}
|
86
|
-
}
|
87
|
-
}
|
88
|
-
}
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
@@ -1,98 +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::Subscriptions::Mgmt::V2015_11_01
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Subscription list operation response.
|
10
|
-
#
|
11
|
-
class SubscriptionListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
include MsRest::JSONable
|
16
|
-
# @return [Array<Subscription>] Gets or sets subscriptions.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the URL to get the next set of results.
|
20
|
-
attr_accessor :next_link
|
21
|
-
|
22
|
-
# return [Proc] with next page method call.
|
23
|
-
attr_accessor :next_method
|
24
|
-
|
25
|
-
#
|
26
|
-
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
-
#
|
28
|
-
# @return [Array<Subscription>] operation results.
|
29
|
-
#
|
30
|
-
def get_all_items
|
31
|
-
items = @value
|
32
|
-
page = self
|
33
|
-
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
|
-
page = page.get_next_page
|
35
|
-
items.concat(page.value)
|
36
|
-
end
|
37
|
-
items
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Gets the next page of results.
|
42
|
-
#
|
43
|
-
# @return [SubscriptionListResult] with next page content.
|
44
|
-
#
|
45
|
-
def get_next_page
|
46
|
-
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
-
unless response.nil?
|
48
|
-
@next_link = response.body.next_link
|
49
|
-
@value = response.body.value
|
50
|
-
self
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
#
|
55
|
-
# Mapper for SubscriptionListResult class as Ruby Hash.
|
56
|
-
# This will be used for serialization/deserialization.
|
57
|
-
#
|
58
|
-
def self.mapper()
|
59
|
-
{
|
60
|
-
client_side_validation: true,
|
61
|
-
required: false,
|
62
|
-
serialized_name: 'SubscriptionListResult',
|
63
|
-
type: {
|
64
|
-
name: 'Composite',
|
65
|
-
class_name: 'SubscriptionListResult',
|
66
|
-
model_properties: {
|
67
|
-
value: {
|
68
|
-
client_side_validation: true,
|
69
|
-
required: false,
|
70
|
-
serialized_name: 'value',
|
71
|
-
type: {
|
72
|
-
name: 'Sequence',
|
73
|
-
element: {
|
74
|
-
client_side_validation: true,
|
75
|
-
required: false,
|
76
|
-
serialized_name: 'SubscriptionElementType',
|
77
|
-
type: {
|
78
|
-
name: 'Composite',
|
79
|
-
class_name: 'Subscription'
|
80
|
-
}
|
81
|
-
}
|
82
|
-
}
|
83
|
-
},
|
84
|
-
next_link: {
|
85
|
-
client_side_validation: true,
|
86
|
-
required: true,
|
87
|
-
serialized_name: 'nextLink',
|
88
|
-
type: {
|
89
|
-
name: 'String'
|
90
|
-
}
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
@@ -1,98 +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::Subscriptions::Mgmt::V2015_11_01
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Tenant Ids information.
|
10
|
-
#
|
11
|
-
class TenantListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
include MsRest::JSONable
|
16
|
-
# @return [Array<TenantIdDescription>] Gets or sets tenant Ids.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the URL to get the next set of results.
|
20
|
-
attr_accessor :next_link
|
21
|
-
|
22
|
-
# return [Proc] with next page method call.
|
23
|
-
attr_accessor :next_method
|
24
|
-
|
25
|
-
#
|
26
|
-
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
-
#
|
28
|
-
# @return [Array<TenantIdDescription>] operation results.
|
29
|
-
#
|
30
|
-
def get_all_items
|
31
|
-
items = @value
|
32
|
-
page = self
|
33
|
-
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
|
-
page = page.get_next_page
|
35
|
-
items.concat(page.value)
|
36
|
-
end
|
37
|
-
items
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Gets the next page of results.
|
42
|
-
#
|
43
|
-
# @return [TenantListResult] with next page content.
|
44
|
-
#
|
45
|
-
def get_next_page
|
46
|
-
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
-
unless response.nil?
|
48
|
-
@next_link = response.body.next_link
|
49
|
-
@value = response.body.value
|
50
|
-
self
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
#
|
55
|
-
# Mapper for TenantListResult class as Ruby Hash.
|
56
|
-
# This will be used for serialization/deserialization.
|
57
|
-
#
|
58
|
-
def self.mapper()
|
59
|
-
{
|
60
|
-
client_side_validation: true,
|
61
|
-
required: false,
|
62
|
-
serialized_name: 'TenantListResult',
|
63
|
-
type: {
|
64
|
-
name: 'Composite',
|
65
|
-
class_name: 'TenantListResult',
|
66
|
-
model_properties: {
|
67
|
-
value: {
|
68
|
-
client_side_validation: true,
|
69
|
-
required: false,
|
70
|
-
serialized_name: 'value',
|
71
|
-
type: {
|
72
|
-
name: 'Sequence',
|
73
|
-
element: {
|
74
|
-
client_side_validation: true,
|
75
|
-
required: false,
|
76
|
-
serialized_name: 'TenantIdDescriptionElementType',
|
77
|
-
type: {
|
78
|
-
name: 'Composite',
|
79
|
-
class_name: 'TenantIdDescription'
|
80
|
-
}
|
81
|
-
}
|
82
|
-
}
|
83
|
-
},
|
84
|
-
next_link: {
|
85
|
-
client_side_validation: true,
|
86
|
-
required: true,
|
87
|
-
serialized_name: 'nextLink',
|
88
|
-
type: {
|
89
|
-
name: 'String'
|
90
|
-
}
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|