azure_mgmt_subscriptions 0.18.1 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) 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/subscription_client.rb +1 -1
  8. data/lib/2019-11-01/generated/azure_mgmt_subscriptions.rb +48 -0
  9. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/location.rb +109 -0
  10. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb +55 -0
  11. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/location_metadata.rb +129 -0
  12. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/managed_by_tenant.rb +47 -0
  13. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
  14. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/operation_display.rb +80 -0
  15. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +100 -0
  16. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/paired_region.rb +72 -0
  17. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/region_category.rb +16 -0
  18. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/region_type.rb +16 -0
  19. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/spending_limit.rb +17 -0
  20. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/subscription.rb +164 -0
  21. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +98 -0
  22. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb +76 -0
  23. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/subscription_state.rb +19 -0
  24. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/tenant_category.rb +17 -0
  25. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb +131 -0
  26. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +98 -0
  27. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/module_definition.rb +9 -0
  28. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/operations.rb +222 -0
  29. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/subscription_client.rb +136 -0
  30. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb +409 -0
  31. data/lib/2019-11-01/generated/azure_mgmt_subscriptions/tenants.rb +222 -0
  32. data/lib/azure_mgmt_subscriptions.rb +1 -0
  33. data/lib/profiles/latest/modules/subscriptions_profile_module.rb +62 -34
  34. data/lib/version.rb +1 -1
  35. metadata +26 -2
@@ -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_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>] 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_11_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_11_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
@@ -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_11_01
7
+ module Models
8
+ #
9
+ # Defines values for TenantCategory
10
+ #
11
+ module TenantCategory
12
+ Home = "Home"
13
+ ProjectedBy = "ProjectedBy"
14
+ ManagedBy = "ManagedBy"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,131 @@
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_11_01
7
+ module Models
8
+ #
9
+ # Tenant Id information.
10
+ #
11
+ class TenantIdDescription
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The fully qualified ID of the tenant. For example,
16
+ # /tenants/00000000-0000-0000-0000-000000000000.
17
+ attr_accessor :id
18
+
19
+ # @return [String] The tenant ID. For example,
20
+ # 00000000-0000-0000-0000-000000000000.
21
+ attr_accessor :tenant_id
22
+
23
+ # @return [TenantCategory] Category of the tenant. Possible values
24
+ # include: 'Home', 'ProjectedBy', 'ManagedBy'
25
+ attr_accessor :tenant_category
26
+
27
+ # @return [String] Country/region name of the address for the tenant.
28
+ attr_accessor :country
29
+
30
+ # @return [String] Country/region abbreviation for the tenant.
31
+ attr_accessor :country_code
32
+
33
+ # @return [String] The display name of the tenant.
34
+ attr_accessor :display_name
35
+
36
+ # @return [Array<String>] The list of domains for the tenant.
37
+ attr_accessor :domains
38
+
39
+
40
+ #
41
+ # Mapper for TenantIdDescription class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'TenantIdDescription',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'TenantIdDescription',
52
+ model_properties: {
53
+ id: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'id',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ tenant_id: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'tenantId',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ tenant_category: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'tenantCategory',
76
+ type: {
77
+ name: 'Enum',
78
+ module: 'TenantCategory'
79
+ }
80
+ },
81
+ country: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'country',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ country_code: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'countryCode',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ display_name: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'displayName',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ domains: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'domains',
113
+ type: {
114
+ name: 'Sequence',
115
+ element: {
116
+ client_side_validation: true,
117
+ required: false,
118
+ serialized_name: 'StringElementType',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ end
129
+ end
130
+ end
131
+ 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_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>] An array of tenants.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to use for getting 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
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::Subscriptions end
8
+ module Azure::Subscriptions::Mgmt end
9
+ module Azure::Subscriptions::Mgmt::V2019_11_01 end