azure_mgmt_subscriptions 0.18.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
  3. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_client.rb +1 -1
  4. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
  5. data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
  6. data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
  7. data/lib/2019-06-01/generated/azure_mgmt_subscriptions.rb +43 -0
  8. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/location.rb +108 -0
  9. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb +55 -0
  10. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/managed_by_tenant.rb +47 -0
  11. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
  12. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/operation_display.rb +80 -0
  13. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +100 -0
  14. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/spending_limit.rb +17 -0
  15. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/subscription.rb +145 -0
  16. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +98 -0
  17. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb +76 -0
  18. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/subscription_state.rb +19 -0
  19. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb +61 -0
  20. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +98 -0
  21. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/module_definition.rb +9 -0
  22. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/operations.rb +222 -0
  23. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +136 -0
  24. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb +409 -0
  25. data/lib/2019-06-01/generated/azure_mgmt_subscriptions/tenants.rb +222 -0
  26. data/lib/azure_mgmt_subscriptions.rb +1 -0
  27. data/lib/profiles/latest/modules/subscriptions_profile_module.rb +68 -56
  28. data/lib/version.rb +1 -1
  29. metadata +21 -2
@@ -0,0 +1,100 @@
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::V2019_06_01
7
+ module Models
8
+ #
9
+ # Result of the request to list Microsoft.Resources operations. It contains
10
+ # a list of operations and a URL link to get the next set of results.
11
+ #
12
+ class OperationListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<Operation>] List of Microsoft.Resources operations.
18
+ attr_accessor :value
19
+
20
+ # @return [String] URL to get the next set of operation list results if
21
+ # there are any.
22
+ attr_accessor :next_link
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [OperationListResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for OperationListResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'OperationListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'OperationListResult',
68
+ model_properties: {
69
+ value: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'OperationElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'Operation'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,17 @@
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::V2019_06_01
7
+ module Models
8
+ #
9
+ # Defines values for SpendingLimit
10
+ #
11
+ module SpendingLimit
12
+ On = "On"
13
+ Off = "Off"
14
+ CurrentPeriodOff = "CurrentPeriodOff"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,145 @@
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::V2019_06_01
7
+ module Models
8
+ #
9
+ # Subscription information.
10
+ #
11
+ class Subscription
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The fully qualified ID for the subscription. For
16
+ # example, /subscriptions/00000000-0000-0000-0000-000000000000.
17
+ attr_accessor :id
18
+
19
+ # @return [String] The subscription ID.
20
+ attr_accessor :subscription_id
21
+
22
+ # @return [String] The subscription display name.
23
+ attr_accessor :display_name
24
+
25
+ # @return [String] The subscription tenant ID.
26
+ attr_accessor :tenant_id
27
+
28
+ # @return [SubscriptionState] The subscription state. Possible values are
29
+ # Enabled, Warned, PastDue, Disabled, and Deleted. Possible values
30
+ # include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'
31
+ attr_accessor :state
32
+
33
+ # @return [SubscriptionPolicies] The subscription policies.
34
+ attr_accessor :subscription_policies
35
+
36
+ # @return [String] The authorization source of the request. Valid values
37
+ # are one or more combinations of Legacy, RoleBased, Bypassed, Direct and
38
+ # Management. For example, 'Legacy, RoleBased'.
39
+ attr_accessor :authorization_source
40
+
41
+ # @return [Array<ManagedByTenant>] An array containing the tenants
42
+ # managing the subscription.
43
+ attr_accessor :managed_by_tenants
44
+
45
+
46
+ #
47
+ # Mapper for Subscription class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'Subscription',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'Subscription',
58
+ model_properties: {
59
+ id: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'id',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ subscription_id: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'subscriptionId',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ display_name: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'displayName',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ tenant_id: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'tenantId',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ state: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'state',
100
+ type: {
101
+ name: 'Enum',
102
+ module: 'SubscriptionState'
103
+ }
104
+ },
105
+ subscription_policies: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ serialized_name: 'subscriptionPolicies',
109
+ type: {
110
+ name: 'Composite',
111
+ class_name: 'SubscriptionPolicies'
112
+ }
113
+ },
114
+ authorization_source: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'authorizationSource',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ managed_by_tenants: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ serialized_name: 'managedByTenants',
126
+ type: {
127
+ name: 'Sequence',
128
+ element: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ serialized_name: 'ManagedByTenantElementType',
132
+ type: {
133
+ name: 'Composite',
134
+ class_name: 'ManagedByTenant'
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ end
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,98 @@
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::V2019_06_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>] An array of subscriptions.
17
+ attr_accessor :value
18
+
19
+ # @return [String] 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
@@ -0,0 +1,76 @@
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::V2019_06_01
7
+ module Models
8
+ #
9
+ # Subscription policies.
10
+ #
11
+ class SubscriptionPolicies
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The subscription location placement ID. The ID
16
+ # indicates which regions are visible for a subscription. For example, a
17
+ # subscription with a location placement Id of Public_2014-09-01 has
18
+ # access to Azure public regions.
19
+ attr_accessor :location_placement_id
20
+
21
+ # @return [String] The subscription quota ID.
22
+ attr_accessor :quota_id
23
+
24
+ # @return [SpendingLimit] The subscription spending limit. Possible
25
+ # values include: 'On', 'Off', 'CurrentPeriodOff'
26
+ attr_accessor :spending_limit
27
+
28
+
29
+ #
30
+ # Mapper for SubscriptionPolicies class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'SubscriptionPolicies',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'SubscriptionPolicies',
41
+ model_properties: {
42
+ location_placement_id: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'locationPlacementId',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ quota_id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'quotaId',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ spending_limit: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'spendingLimit',
65
+ type: {
66
+ name: 'Enum',
67
+ module: 'SpendingLimit'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,19 @@
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::V2019_06_01
7
+ module Models
8
+ #
9
+ # Defines values for SubscriptionState
10
+ #
11
+ module SubscriptionState
12
+ Enabled = "Enabled"
13
+ Warned = "Warned"
14
+ PastDue = "PastDue"
15
+ Disabled = "Disabled"
16
+ Deleted = "Deleted"
17
+ end
18
+ end
19
+ end