azure_mgmt_subscriptions 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb +7 -0
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb +3 -0
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription.rb +6 -0
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +4 -0
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb +3 -0
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb +3 -0
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +4 -0
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -3
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/location.rb +7 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb +3 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/subscription.rb +7 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +4 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb +4 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb +3 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +4 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -3
- data/lib/profiles/latest/subscriptions_latest_profile_client.rb +1 -3
- data/lib/profiles/v2017_03_09/subscriptions_v2017_03_09_profile_client.rb +1 -3
- data/lib/version.rb +1 -1
- metadata +10 -9
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/version.rb +0 -8
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/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: cc580938dc78222ea2a227e67bc66264ba96d502
|
4
|
+
data.tar.gz: 51e278aefd2cef240000e7f2bb30a9fda0b5c020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3ae3a9b7d310556abbe56d6dfda0e4960c1d1f49f5ac1d6b8b39baee02ac0155bf827cf5d6fe092c522b49b5dac7541eda651fcbc6bd3e408ee1d03cf9d92e2
|
7
|
+
data.tar.gz: 65f8b6520590a55d4576bc424dfd1f85fc31e91c4b65350531a3ae23d51d020aeebcefb441b5ee696bfb776323424e09f5ec37393b40501afea1cf6ffde32639
|
@@ -38,6 +38,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
38
38
|
#
|
39
39
|
def self.mapper()
|
40
40
|
{
|
41
|
+
client_side_validation: true,
|
41
42
|
required: false,
|
42
43
|
serialized_name: 'Location',
|
43
44
|
type: {
|
@@ -45,6 +46,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
45
46
|
class_name: 'Location',
|
46
47
|
model_properties: {
|
47
48
|
id: {
|
49
|
+
client_side_validation: true,
|
48
50
|
required: false,
|
49
51
|
serialized_name: 'id',
|
50
52
|
type: {
|
@@ -52,6 +54,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
52
54
|
}
|
53
55
|
},
|
54
56
|
subscription_id: {
|
57
|
+
client_side_validation: true,
|
55
58
|
required: false,
|
56
59
|
serialized_name: 'subscriptionId',
|
57
60
|
type: {
|
@@ -59,6 +62,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
59
62
|
}
|
60
63
|
},
|
61
64
|
name: {
|
65
|
+
client_side_validation: true,
|
62
66
|
required: false,
|
63
67
|
serialized_name: 'name',
|
64
68
|
type: {
|
@@ -66,6 +70,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
66
70
|
}
|
67
71
|
},
|
68
72
|
display_name: {
|
73
|
+
client_side_validation: true,
|
69
74
|
required: false,
|
70
75
|
serialized_name: 'displayName',
|
71
76
|
type: {
|
@@ -73,6 +78,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
73
78
|
}
|
74
79
|
},
|
75
80
|
latitude: {
|
81
|
+
client_side_validation: true,
|
76
82
|
required: false,
|
77
83
|
serialized_name: 'latitude',
|
78
84
|
type: {
|
@@ -80,6 +86,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
80
86
|
}
|
81
87
|
},
|
82
88
|
longitude: {
|
89
|
+
client_side_validation: true,
|
83
90
|
required: false,
|
84
91
|
serialized_name: 'longitude',
|
85
92
|
type: {
|
@@ -22,6 +22,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
22
22
|
#
|
23
23
|
def self.mapper()
|
24
24
|
{
|
25
|
+
client_side_validation: true,
|
25
26
|
required: false,
|
26
27
|
serialized_name: 'LocationListResult',
|
27
28
|
type: {
|
@@ -29,11 +30,13 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
29
30
|
class_name: 'LocationListResult',
|
30
31
|
model_properties: {
|
31
32
|
value: {
|
33
|
+
client_side_validation: true,
|
32
34
|
required: false,
|
33
35
|
serialized_name: 'value',
|
34
36
|
type: {
|
35
37
|
name: 'Sequence',
|
36
38
|
element: {
|
39
|
+
client_side_validation: true,
|
37
40
|
required: false,
|
38
41
|
serialized_name: 'LocationElementType',
|
39
42
|
type: {
|
@@ -35,6 +35,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
35
35
|
#
|
36
36
|
def self.mapper()
|
37
37
|
{
|
38
|
+
client_side_validation: true,
|
38
39
|
required: false,
|
39
40
|
serialized_name: 'Subscription',
|
40
41
|
type: {
|
@@ -42,6 +43,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
42
43
|
class_name: 'Subscription',
|
43
44
|
model_properties: {
|
44
45
|
id: {
|
46
|
+
client_side_validation: true,
|
45
47
|
required: false,
|
46
48
|
serialized_name: 'id',
|
47
49
|
type: {
|
@@ -49,6 +51,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
49
51
|
}
|
50
52
|
},
|
51
53
|
subscription_id: {
|
54
|
+
client_side_validation: true,
|
52
55
|
required: false,
|
53
56
|
serialized_name: 'subscriptionId',
|
54
57
|
type: {
|
@@ -56,6 +59,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
56
59
|
}
|
57
60
|
},
|
58
61
|
display_name: {
|
62
|
+
client_side_validation: true,
|
59
63
|
required: false,
|
60
64
|
serialized_name: 'displayName',
|
61
65
|
type: {
|
@@ -63,6 +67,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
63
67
|
}
|
64
68
|
},
|
65
69
|
state: {
|
70
|
+
client_side_validation: true,
|
66
71
|
required: false,
|
67
72
|
serialized_name: 'state',
|
68
73
|
type: {
|
@@ -70,6 +75,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
70
75
|
}
|
71
76
|
},
|
72
77
|
subscription_policies: {
|
78
|
+
client_side_validation: true,
|
73
79
|
required: false,
|
74
80
|
serialized_name: 'subscriptionPolicies',
|
75
81
|
type: {
|
@@ -57,6 +57,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
57
57
|
#
|
58
58
|
def self.mapper()
|
59
59
|
{
|
60
|
+
client_side_validation: true,
|
60
61
|
required: false,
|
61
62
|
serialized_name: 'SubscriptionListResult',
|
62
63
|
type: {
|
@@ -64,11 +65,13 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
64
65
|
class_name: 'SubscriptionListResult',
|
65
66
|
model_properties: {
|
66
67
|
value: {
|
68
|
+
client_side_validation: true,
|
67
69
|
required: false,
|
68
70
|
serialized_name: 'value',
|
69
71
|
type: {
|
70
72
|
name: 'Sequence',
|
71
73
|
element: {
|
74
|
+
client_side_validation: true,
|
72
75
|
required: false,
|
73
76
|
serialized_name: 'SubscriptionElementType',
|
74
77
|
type: {
|
@@ -79,6 +82,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
79
82
|
}
|
80
83
|
},
|
81
84
|
next_link: {
|
85
|
+
client_side_validation: true,
|
82
86
|
required: true,
|
83
87
|
serialized_name: 'nextLink',
|
84
88
|
type: {
|
@@ -25,6 +25,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
|
+
client_side_validation: true,
|
28
29
|
required: false,
|
29
30
|
serialized_name: 'SubscriptionPolicies',
|
30
31
|
type: {
|
@@ -32,6 +33,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
32
33
|
class_name: 'SubscriptionPolicies',
|
33
34
|
model_properties: {
|
34
35
|
location_placement_id: {
|
36
|
+
client_side_validation: true,
|
35
37
|
required: false,
|
36
38
|
serialized_name: 'locationPlacementId',
|
37
39
|
type: {
|
@@ -39,6 +41,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
39
41
|
}
|
40
42
|
},
|
41
43
|
quota_id: {
|
44
|
+
client_side_validation: true,
|
42
45
|
required: false,
|
43
46
|
serialized_name: 'quotaId',
|
44
47
|
type: {
|
@@ -25,6 +25,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
|
+
client_side_validation: true,
|
28
29
|
required: false,
|
29
30
|
serialized_name: 'TenantIdDescription',
|
30
31
|
type: {
|
@@ -32,6 +33,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
32
33
|
class_name: 'TenantIdDescription',
|
33
34
|
model_properties: {
|
34
35
|
id: {
|
36
|
+
client_side_validation: true,
|
35
37
|
required: false,
|
36
38
|
serialized_name: 'id',
|
37
39
|
type: {
|
@@ -39,6 +41,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
39
41
|
}
|
40
42
|
},
|
41
43
|
tenant_id: {
|
44
|
+
client_side_validation: true,
|
42
45
|
required: false,
|
43
46
|
serialized_name: 'tenantId',
|
44
47
|
type: {
|
@@ -57,6 +57,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
57
57
|
#
|
58
58
|
def self.mapper()
|
59
59
|
{
|
60
|
+
client_side_validation: true,
|
60
61
|
required: false,
|
61
62
|
serialized_name: 'TenantListResult',
|
62
63
|
type: {
|
@@ -64,11 +65,13 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
64
65
|
class_name: 'TenantListResult',
|
65
66
|
model_properties: {
|
66
67
|
value: {
|
68
|
+
client_side_validation: true,
|
67
69
|
required: false,
|
68
70
|
serialized_name: 'value',
|
69
71
|
type: {
|
70
72
|
name: 'Sequence',
|
71
73
|
element: {
|
74
|
+
client_side_validation: true,
|
72
75
|
required: false,
|
73
76
|
serialized_name: 'TenantIdDescriptionElementType',
|
74
77
|
type: {
|
@@ -79,6 +82,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
79
82
|
}
|
80
83
|
},
|
81
84
|
next_link: {
|
85
|
+
client_side_validation: true,
|
82
86
|
required: true,
|
83
87
|
serialized_name: 'nextLink',
|
84
88
|
type: {
|
@@ -121,9 +121,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
121
121
|
#
|
122
122
|
def add_telemetry
|
123
123
|
sdk_information = 'azure_mgmt_subscriptions'
|
124
|
-
|
125
|
-
sdk_information = "#{sdk_information}/#{Azure::Subscriptions::Mgmt::V2015_11_01::VERSION}"
|
126
|
-
end
|
124
|
+
sdk_information = "#{sdk_information}/0.15.2"
|
127
125
|
add_user_agent_information(sdk_information)
|
128
126
|
end
|
129
127
|
end
|
@@ -38,6 +38,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
38
38
|
#
|
39
39
|
def self.mapper()
|
40
40
|
{
|
41
|
+
client_side_validation: true,
|
41
42
|
required: false,
|
42
43
|
serialized_name: 'Location',
|
43
44
|
type: {
|
@@ -45,6 +46,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
45
46
|
class_name: 'Location',
|
46
47
|
model_properties: {
|
47
48
|
id: {
|
49
|
+
client_side_validation: true,
|
48
50
|
required: false,
|
49
51
|
read_only: true,
|
50
52
|
serialized_name: 'id',
|
@@ -53,6 +55,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
53
55
|
}
|
54
56
|
},
|
55
57
|
subscription_id: {
|
58
|
+
client_side_validation: true,
|
56
59
|
required: false,
|
57
60
|
read_only: true,
|
58
61
|
serialized_name: 'subscriptionId',
|
@@ -61,6 +64,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
61
64
|
}
|
62
65
|
},
|
63
66
|
name: {
|
67
|
+
client_side_validation: true,
|
64
68
|
required: false,
|
65
69
|
read_only: true,
|
66
70
|
serialized_name: 'name',
|
@@ -69,6 +73,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
69
73
|
}
|
70
74
|
},
|
71
75
|
display_name: {
|
76
|
+
client_side_validation: true,
|
72
77
|
required: false,
|
73
78
|
read_only: true,
|
74
79
|
serialized_name: 'displayName',
|
@@ -77,6 +82,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
77
82
|
}
|
78
83
|
},
|
79
84
|
latitude: {
|
85
|
+
client_side_validation: true,
|
80
86
|
required: false,
|
81
87
|
read_only: true,
|
82
88
|
serialized_name: 'latitude',
|
@@ -85,6 +91,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
85
91
|
}
|
86
92
|
},
|
87
93
|
longitude: {
|
94
|
+
client_side_validation: true,
|
88
95
|
required: false,
|
89
96
|
read_only: true,
|
90
97
|
serialized_name: 'longitude',
|
@@ -22,6 +22,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
22
22
|
#
|
23
23
|
def self.mapper()
|
24
24
|
{
|
25
|
+
client_side_validation: true,
|
25
26
|
required: false,
|
26
27
|
serialized_name: 'LocationListResult',
|
27
28
|
type: {
|
@@ -29,11 +30,13 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
29
30
|
class_name: 'LocationListResult',
|
30
31
|
model_properties: {
|
31
32
|
value: {
|
33
|
+
client_side_validation: true,
|
32
34
|
required: false,
|
33
35
|
serialized_name: 'value',
|
34
36
|
type: {
|
35
37
|
name: 'Sequence',
|
36
38
|
element: {
|
39
|
+
client_side_validation: true,
|
37
40
|
required: false,
|
38
41
|
serialized_name: 'LocationElementType',
|
39
42
|
type: {
|
@@ -42,6 +42,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
42
42
|
#
|
43
43
|
def self.mapper()
|
44
44
|
{
|
45
|
+
client_side_validation: true,
|
45
46
|
required: false,
|
46
47
|
serialized_name: 'Subscription',
|
47
48
|
type: {
|
@@ -49,6 +50,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
49
50
|
class_name: 'Subscription',
|
50
51
|
model_properties: {
|
51
52
|
id: {
|
53
|
+
client_side_validation: true,
|
52
54
|
required: false,
|
53
55
|
read_only: true,
|
54
56
|
serialized_name: 'id',
|
@@ -57,6 +59,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
57
59
|
}
|
58
60
|
},
|
59
61
|
subscription_id: {
|
62
|
+
client_side_validation: true,
|
60
63
|
required: false,
|
61
64
|
read_only: true,
|
62
65
|
serialized_name: 'subscriptionId',
|
@@ -65,6 +68,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
65
68
|
}
|
66
69
|
},
|
67
70
|
display_name: {
|
71
|
+
client_side_validation: true,
|
68
72
|
required: false,
|
69
73
|
read_only: true,
|
70
74
|
serialized_name: 'displayName',
|
@@ -73,6 +77,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
73
77
|
}
|
74
78
|
},
|
75
79
|
state: {
|
80
|
+
client_side_validation: true,
|
76
81
|
required: false,
|
77
82
|
read_only: true,
|
78
83
|
serialized_name: 'state',
|
@@ -82,6 +87,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
82
87
|
}
|
83
88
|
},
|
84
89
|
subscription_policies: {
|
90
|
+
client_side_validation: true,
|
85
91
|
required: false,
|
86
92
|
serialized_name: 'subscriptionPolicies',
|
87
93
|
type: {
|
@@ -90,6 +96,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
90
96
|
}
|
91
97
|
},
|
92
98
|
authorization_source: {
|
99
|
+
client_side_validation: true,
|
93
100
|
required: false,
|
94
101
|
serialized_name: 'authorizationSource',
|
95
102
|
type: {
|
@@ -57,6 +57,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
57
57
|
#
|
58
58
|
def self.mapper()
|
59
59
|
{
|
60
|
+
client_side_validation: true,
|
60
61
|
required: false,
|
61
62
|
serialized_name: 'SubscriptionListResult',
|
62
63
|
type: {
|
@@ -64,11 +65,13 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
64
65
|
class_name: 'SubscriptionListResult',
|
65
66
|
model_properties: {
|
66
67
|
value: {
|
68
|
+
client_side_validation: true,
|
67
69
|
required: false,
|
68
70
|
serialized_name: 'value',
|
69
71
|
type: {
|
70
72
|
name: 'Sequence',
|
71
73
|
element: {
|
74
|
+
client_side_validation: true,
|
72
75
|
required: false,
|
73
76
|
serialized_name: 'SubscriptionElementType',
|
74
77
|
type: {
|
@@ -79,6 +82,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
79
82
|
}
|
80
83
|
},
|
81
84
|
next_link: {
|
85
|
+
client_side_validation: true,
|
82
86
|
required: true,
|
83
87
|
serialized_name: 'nextLink',
|
84
88
|
type: {
|
@@ -32,6 +32,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
32
32
|
#
|
33
33
|
def self.mapper()
|
34
34
|
{
|
35
|
+
client_side_validation: true,
|
35
36
|
required: false,
|
36
37
|
serialized_name: 'SubscriptionPolicies',
|
37
38
|
type: {
|
@@ -39,6 +40,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
39
40
|
class_name: 'SubscriptionPolicies',
|
40
41
|
model_properties: {
|
41
42
|
location_placement_id: {
|
43
|
+
client_side_validation: true,
|
42
44
|
required: false,
|
43
45
|
read_only: true,
|
44
46
|
serialized_name: 'locationPlacementId',
|
@@ -47,6 +49,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
47
49
|
}
|
48
50
|
},
|
49
51
|
quota_id: {
|
52
|
+
client_side_validation: true,
|
50
53
|
required: false,
|
51
54
|
read_only: true,
|
52
55
|
serialized_name: 'quotaId',
|
@@ -55,6 +58,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
55
58
|
}
|
56
59
|
},
|
57
60
|
spending_limit: {
|
61
|
+
client_side_validation: true,
|
58
62
|
required: false,
|
59
63
|
read_only: true,
|
60
64
|
serialized_name: 'spendingLimit',
|
@@ -27,6 +27,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
27
27
|
#
|
28
28
|
def self.mapper()
|
29
29
|
{
|
30
|
+
client_side_validation: true,
|
30
31
|
required: false,
|
31
32
|
serialized_name: 'TenantIdDescription',
|
32
33
|
type: {
|
@@ -34,6 +35,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
34
35
|
class_name: 'TenantIdDescription',
|
35
36
|
model_properties: {
|
36
37
|
id: {
|
38
|
+
client_side_validation: true,
|
37
39
|
required: false,
|
38
40
|
read_only: true,
|
39
41
|
serialized_name: 'id',
|
@@ -42,6 +44,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
42
44
|
}
|
43
45
|
},
|
44
46
|
tenant_id: {
|
47
|
+
client_side_validation: true,
|
45
48
|
required: false,
|
46
49
|
read_only: true,
|
47
50
|
serialized_name: 'tenantId',
|
@@ -57,6 +57,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
57
57
|
#
|
58
58
|
def self.mapper()
|
59
59
|
{
|
60
|
+
client_side_validation: true,
|
60
61
|
required: false,
|
61
62
|
serialized_name: 'TenantListResult',
|
62
63
|
type: {
|
@@ -64,11 +65,13 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
64
65
|
class_name: 'TenantListResult',
|
65
66
|
model_properties: {
|
66
67
|
value: {
|
68
|
+
client_side_validation: true,
|
67
69
|
required: false,
|
68
70
|
serialized_name: 'value',
|
69
71
|
type: {
|
70
72
|
name: 'Sequence',
|
71
73
|
element: {
|
74
|
+
client_side_validation: true,
|
72
75
|
required: false,
|
73
76
|
serialized_name: 'TenantIdDescriptionElementType',
|
74
77
|
type: {
|
@@ -79,6 +82,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
79
82
|
}
|
80
83
|
},
|
81
84
|
next_link: {
|
85
|
+
client_side_validation: true,
|
82
86
|
required: true,
|
83
87
|
serialized_name: 'nextLink',
|
84
88
|
type: {
|
@@ -121,9 +121,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
121
121
|
#
|
122
122
|
def add_telemetry
|
123
123
|
sdk_information = 'azure_mgmt_subscriptions'
|
124
|
-
|
125
|
-
sdk_information = "#{sdk_information}/#{Azure::Subscriptions::Mgmt::V2016_06_01::VERSION}"
|
126
|
-
end
|
124
|
+
sdk_information = "#{sdk_information}/0.15.2"
|
127
125
|
add_user_agent_information(sdk_information)
|
128
126
|
end
|
129
127
|
end
|
@@ -4,15 +4,13 @@
|
|
4
4
|
|
5
5
|
require 'profiles/latest/subscriptions_module_definition'
|
6
6
|
require 'profiles/latest/modules/subscriptions_profile_module'
|
7
|
-
require 'profiles/common/configurable'
|
8
|
-
require 'profiles/common/default'
|
9
7
|
|
10
8
|
module Azure::Subscriptions::Profiles::Latest::Mgmt
|
11
9
|
#
|
12
10
|
# Client class for the Latest profile SDK.
|
13
11
|
#
|
14
12
|
class Client < SubscriptionsClass
|
15
|
-
include
|
13
|
+
include MsRestAzure::Common::Configurable
|
16
14
|
|
17
15
|
|
18
16
|
def initialize(options = {})
|
@@ -4,15 +4,13 @@
|
|
4
4
|
|
5
5
|
require 'profiles/v2017_03_09/subscriptions_module_definition'
|
6
6
|
require 'profiles/v2017_03_09/modules/subscriptions_profile_module'
|
7
|
-
require 'profiles/common/configurable'
|
8
|
-
require 'profiles/common/default'
|
9
7
|
|
10
8
|
module Azure::Subscriptions::Profiles::V2017_03_09::Mgmt
|
11
9
|
#
|
12
10
|
# Client class for the V2017_03_09 profile SDK.
|
13
11
|
#
|
14
12
|
class Client < SubscriptionsClass
|
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_subscriptions
|
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 Subscription Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -99,7 +99,6 @@ files:
|
|
99
99
|
- lib/2015-11-01/generated/azure_mgmt_subscriptions/subscription_client.rb
|
100
100
|
- lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb
|
101
101
|
- lib/2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb
|
102
|
-
- lib/2015-11-01/generated/azure_mgmt_subscriptions/version.rb
|
103
102
|
- lib/2016-06-01/generated/azure_mgmt_subscriptions.rb
|
104
103
|
- lib/2016-06-01/generated/azure_mgmt_subscriptions/models/location.rb
|
105
104
|
- lib/2016-06-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb
|
@@ -114,11 +113,8 @@ files:
|
|
114
113
|
- lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb
|
115
114
|
- lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb
|
116
115
|
- lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb
|
117
|
-
- lib/2016-06-01/generated/azure_mgmt_subscriptions/version.rb
|
118
116
|
- lib/azure_mgmt_subscriptions.rb
|
119
117
|
- lib/module_definition.rb
|
120
|
-
- lib/profiles/common/configurable.rb
|
121
|
-
- lib/profiles/common/default.rb
|
122
118
|
- lib/profiles/latest/modules/subscriptions_profile_module.rb
|
123
119
|
- lib/profiles/latest/subscriptions_latest_profile_client.rb
|
124
120
|
- lib/profiles/latest/subscriptions_module_definition.rb
|
@@ -129,7 +125,12 @@ files:
|
|
129
125
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
130
126
|
licenses:
|
131
127
|
- MIT
|
132
|
-
metadata:
|
128
|
+
metadata:
|
129
|
+
bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
|
130
|
+
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
|
131
|
+
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
132
|
+
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
133
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_subscriptions
|
133
134
|
post_install_message:
|
134
135
|
rdoc_options: []
|
135
136
|
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
|