azure_mgmt_subscriptions 0.18.1 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
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,58 @@
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
+ # Microsoft.Resources operation
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplay] The object that represents the operation.
19
+ attr_accessor :display
20
+
21
+
22
+ #
23
+ # Mapper for Operation class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'Operation',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'Operation',
34
+ model_properties: {
35
+ name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'name',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ display: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'display',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'OperationDisplay'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,80 @@
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
+ # The object that represents the operation.
10
+ #
11
+ class OperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Service provider: Microsoft.Resources
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource on which the operation is performed: Profile,
19
+ # endpoint, etc.
20
+ attr_accessor :resource
21
+
22
+ # @return [String] Operation type: Read, write, delete, etc.
23
+ attr_accessor :operation
24
+
25
+ # @return [String] Description of the operation.
26
+ attr_accessor :description
27
+
28
+
29
+ #
30
+ # Mapper for OperationDisplay 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: 'Operation_display',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'OperationDisplay',
41
+ model_properties: {
42
+ provider: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'provider',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ resource: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'resource',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ operation: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'operation',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ description: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'description',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -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_11_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,72 @@
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
+ # Information regarding paired region.
10
+ #
11
+ class PairedRegion
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the paired region.
16
+ attr_accessor :name
17
+
18
+ # @return [String] The fully qualified ID of the location. For example,
19
+ # /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
20
+ attr_accessor :id
21
+
22
+ # @return [String] The subscription ID.
23
+ attr_accessor :subscription_id
24
+
25
+
26
+ #
27
+ # Mapper for PairedRegion class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'PairedRegion',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'PairedRegion',
38
+ model_properties: {
39
+ name: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'name',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ id: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'id',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ subscription_id: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'subscriptionId',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,16 @@
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 RegionCategory
10
+ #
11
+ module RegionCategory
12
+ Recommended = "Recommended"
13
+ Other = "Other"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
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 RegionType
10
+ #
11
+ module RegionType
12
+ Physical = "Physical"
13
+ Logical = "Logical"
14
+ end
15
+ end
16
+ 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 SpendingLimit
10
+ #
11
+ module SpendingLimit
12
+ On = "On"
13
+ Off = "Off"
14
+ CurrentPeriodOff = "CurrentPeriodOff"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,164 @@
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 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
+ # @return [Hash{String => String}] The tags attached to the subscription.
46
+ attr_accessor :tags
47
+
48
+
49
+ #
50
+ # Mapper for Subscription class as Ruby Hash.
51
+ # This will be used for serialization/deserialization.
52
+ #
53
+ def self.mapper()
54
+ {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'Subscription',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'Subscription',
61
+ model_properties: {
62
+ id: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'id',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ subscription_id: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'subscriptionId',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ display_name: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'displayName',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ tenant_id: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'tenantId',
94
+ type: {
95
+ name: 'String'
96
+ }
97
+ },
98
+ state: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ read_only: true,
102
+ serialized_name: 'state',
103
+ type: {
104
+ name: 'Enum',
105
+ module: 'SubscriptionState'
106
+ }
107
+ },
108
+ subscription_policies: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'subscriptionPolicies',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'SubscriptionPolicies'
115
+ }
116
+ },
117
+ authorization_source: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ serialized_name: 'authorizationSource',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ },
125
+ managed_by_tenants: {
126
+ client_side_validation: true,
127
+ required: false,
128
+ serialized_name: 'managedByTenants',
129
+ type: {
130
+ name: 'Sequence',
131
+ element: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ serialized_name: 'ManagedByTenantElementType',
135
+ type: {
136
+ name: 'Composite',
137
+ class_name: 'ManagedByTenant'
138
+ }
139
+ }
140
+ }
141
+ },
142
+ tags: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ serialized_name: 'tags',
146
+ type: {
147
+ name: 'Dictionary',
148
+ value: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ serialized_name: 'StringElementType',
152
+ type: {
153
+ name: 'String'
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ end
162
+ end
163
+ end
164
+ end