azure_mgmt_subscriptions 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_subscriptions.gemspec +4 -5
  3. data/lib/azure_mgmt_subscriptions.rb +3 -34
  4. data/lib/generated/azure_mgmt_subscriptions.rb +36 -0
  5. data/lib/generated/azure_mgmt_subscriptions/models/location.rb +95 -0
  6. data/lib/generated/azure_mgmt_subscriptions/models/location_list_result.rb +52 -0
  7. data/lib/generated/azure_mgmt_subscriptions/models/subscription.rb +86 -0
  8. data/lib/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +93 -0
  9. data/lib/generated/azure_mgmt_subscriptions/models/subscription_policies.rb +54 -0
  10. data/lib/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb +54 -0
  11. data/lib/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +93 -0
  12. data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/module_definition.rb +0 -0
  13. data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/subscription_client.rb +4 -4
  14. data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/subscriptions.rb +37 -107
  15. data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/tenants.rb +31 -11
  16. data/lib/{azure_mgmt_subscriptions → generated/azure_mgmt_subscriptions}/version.rb +1 -1
  17. metadata +34 -54
  18. data/lib/azure_mgmt_subscriptions/models/location.rb +0 -102
  19. data/lib/azure_mgmt_subscriptions/models/location_list_result.rb +0 -76
  20. data/lib/azure_mgmt_subscriptions/models/subscription.rb +0 -99
  21. data/lib/azure_mgmt_subscriptions/models/subscription_list_result.rb +0 -86
  22. data/lib/azure_mgmt_subscriptions/models/subscription_policies.rb +0 -65
  23. data/lib/azure_mgmt_subscriptions/models/tenant_id_description.rb +0 -65
  24. data/lib/azure_mgmt_subscriptions/models/tenant_list_result.rb +0 -86
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZGU5ZGVhY2E3MmUxNDg4MmQ2OTZkOWU2NTlmZmFjYzE5ZjM1YzIwNg==
5
- data.tar.gz: !binary |-
6
- YzcwYjlkZWMwZmUyNmViY2RkYTdmODQ2OTBiYTdjMTRiNmYwYWQ2MA==
2
+ SHA1:
3
+ metadata.gz: 1707e2b0ce545c9e5fdecc16d4abb280a42cad69
4
+ data.tar.gz: 5844db0fcf46006fc3be37ce9754ba025e262ba4
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OTZjMTBjNjVjY2EzMGYwMDhhYzQzOGQ1NzNhMDk3MWQxN2YzNmVjMzczNjcy
10
- NzMzZjdjYThjM2ZjMTdmMjk2ZDk5ZTZkNzNjZmJhN2JkNWFmNzQ2YTZmYjRh
11
- NmQ2N2IwMzc5YTIxYzE2ZTEwZjgxOGIxMmFkM2NkNjcwZGZiYmI=
12
- data.tar.gz: !binary |-
13
- YzgwMzg4M2E5ODRhYjM1OWNhNTFkMDdiZWU3MDJjOTQ3ZTczZmRkZTE3ZGVm
14
- NzNlODU4M2Q2MDI1NDcyZDk3OTgwODZjZGIxYjgwOTc4MDU1MmNkZDgzYTA4
15
- YWVhYWU5NWQyYzI3M2M1NWM1ZGRiOTgwMzk5OWRmNzlkZGIzODM=
6
+ metadata.gz: 2816dd5376ef630660431c596938939133c90582b6bcae4ca13860b3ad155c7b36a7f97de3ecd2859d7dc77e4e595506f4b6495f36c4ed2733f55a7d3b25f653
7
+ data.tar.gz: 52aafaf9aff28568e369802223d58ef151afeeb8da8d5d2213a7b4932c0649192679b6cde6b3d2dc42562fde8e65b71beb4f0e2dadb0549d6bb639b9f96c42cf
@@ -5,8 +5,8 @@
5
5
  lib = File.expand_path('../lib', __FILE__)
6
6
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
7
 
8
- require 'azure_mgmt_subscriptions/module_definition'
9
- require 'azure_mgmt_subscriptions/version'
8
+ require 'generated/azure_mgmt_subscriptions/module_definition'
9
+ require 'generated/azure_mgmt_subscriptions/version'
10
10
 
11
11
  Gem::Specification.new do |spec|
12
12
  spec.name = 'azure_mgmt_subscriptions'
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.email = 'azrubyteam@microsoft.com'
16
16
  spec.description = 'Microsoft Azure Subscription Management Client Library for Ruby'
17
17
  spec.summary = 'Official ruby client library to consume Microsoft Azure Subscription Management services.'
18
- spec.homepage = 'http://github.com/azure/azure-sdk-ruby'
18
+ spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
19
19
  spec.license = 'MIT'
20
20
 
21
21
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -29,7 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rake', '~> 10'
30
30
  spec.add_development_dependency 'rspec', '~> 3'
31
31
  spec.add_development_dependency 'dotenv', '~> 2'
32
- spec.add_development_dependency 'azure_mgmt_resources', '~> 0.3'
33
32
 
34
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.3'
33
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.3.0'
35
34
  end
@@ -1,36 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
5
4
 
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 'azure_mgmt_subscriptions/module_definition'
20
- require 'ms_rest_azure'
21
-
22
- module Azure::ARM::Subscriptions
23
- autoload :Subscriptions, 'azure_mgmt_subscriptions/subscriptions.rb'
24
- autoload :Tenants, 'azure_mgmt_subscriptions/tenants.rb'
25
- autoload :SubscriptionClient, 'azure_mgmt_subscriptions/subscription_client.rb'
26
-
27
- module Models
28
- autoload :Location, 'azure_mgmt_subscriptions/models/location.rb'
29
- autoload :LocationListResult, 'azure_mgmt_subscriptions/models/location_list_result.rb'
30
- autoload :Subscription, 'azure_mgmt_subscriptions/models/subscription.rb'
31
- autoload :SubscriptionPolicies, 'azure_mgmt_subscriptions/models/subscription_policies.rb'
32
- autoload :SubscriptionListResult, 'azure_mgmt_subscriptions/models/subscription_list_result.rb'
33
- autoload :TenantIdDescription, 'azure_mgmt_subscriptions/models/tenant_id_description.rb'
34
- autoload :TenantListResult, 'azure_mgmt_subscriptions/models/tenant_list_result.rb'
35
- end
36
- end
5
+ require 'generated/azure_mgmt_subscriptions'
@@ -0,0 +1,36 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
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 'generated/azure_mgmt_subscriptions/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ARM::Subscriptions
23
+ autoload :Subscriptions, 'generated/azure_mgmt_subscriptions/subscriptions.rb'
24
+ autoload :Tenants, 'generated/azure_mgmt_subscriptions/tenants.rb'
25
+ autoload :SubscriptionClient, 'generated/azure_mgmt_subscriptions/subscription_client.rb'
26
+
27
+ module Models
28
+ autoload :Location, 'generated/azure_mgmt_subscriptions/models/location.rb'
29
+ autoload :LocationListResult, 'generated/azure_mgmt_subscriptions/models/location_list_result.rb'
30
+ autoload :Subscription, 'generated/azure_mgmt_subscriptions/models/subscription.rb'
31
+ autoload :SubscriptionPolicies, 'generated/azure_mgmt_subscriptions/models/subscription_policies.rb'
32
+ autoload :SubscriptionListResult, 'generated/azure_mgmt_subscriptions/models/subscription_list_result.rb'
33
+ autoload :TenantIdDescription, 'generated/azure_mgmt_subscriptions/models/tenant_id_description.rb'
34
+ autoload :TenantListResult, 'generated/azure_mgmt_subscriptions/models/tenant_list_result.rb'
35
+ end
36
+ end
@@ -0,0 +1,95 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Subscriptions
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
+ required: false,
42
+ serialized_name: 'Location',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'Location',
46
+ model_properties: {
47
+ id: {
48
+ required: false,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ subscription_id: {
55
+ required: false,
56
+ serialized_name: 'subscriptionId',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ name: {
62
+ required: false,
63
+ serialized_name: 'name',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ display_name: {
69
+ required: false,
70
+ serialized_name: 'displayName',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ latitude: {
76
+ required: false,
77
+ serialized_name: 'latitude',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ longitude: {
83
+ required: false,
84
+ serialized_name: 'longitude',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,52 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Subscriptions
7
+ module Models
8
+ #
9
+ # Location list operation response.
10
+ #
11
+ class LocationListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Location>] Gets the locations.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for LocationListResult class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'LocationListResult',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'LocationListResult',
30
+ model_properties: {
31
+ value: {
32
+ required: false,
33
+ serialized_name: 'value',
34
+ type: {
35
+ name: 'Sequence',
36
+ element: {
37
+ required: false,
38
+ serialized_name: 'LocationElementType',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'Location'
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,86 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Subscriptions
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
+ required: false,
39
+ serialized_name: 'Subscription',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'Subscription',
43
+ model_properties: {
44
+ id: {
45
+ required: false,
46
+ serialized_name: 'id',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ subscription_id: {
52
+ required: false,
53
+ serialized_name: 'subscriptionId',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ display_name: {
59
+ required: false,
60
+ serialized_name: 'displayName',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ state: {
66
+ required: false,
67
+ serialized_name: 'state',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ subscription_policies: {
73
+ required: false,
74
+ serialized_name: 'subscriptionPolicies',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'SubscriptionPolicies'
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,93 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Subscriptions
7
+ module Models
8
+ #
9
+ # Subscription list operation response.
10
+ #
11
+ class SubscriptionListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Subscription>] Gets or sets subscriptions.
16
+ attr_accessor :value
17
+
18
+ # @return [String] Gets or sets the URL to get the next set of results.
19
+ attr_accessor :next_link
20
+
21
+ # return [Proc] with next page method call.
22
+ attr_accessor :next_method
23
+
24
+ #
25
+ # Gets the rest of the items for the request, enabling auto-pagination.
26
+ #
27
+ # @return [Array<Subscription>] operation results.
28
+ #
29
+ def get_all_items
30
+ items = @value
31
+ page = self
32
+ while page.next_link != nil do
33
+ page = page.get_next_page
34
+ items.concat(page.value)
35
+ end
36
+ items
37
+ end
38
+
39
+ #
40
+ # Gets the next page of results.
41
+ #
42
+ # @return [SubscriptionListResult] with next page content.
43
+ #
44
+ def get_next_page
45
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
46
+ unless response.nil?
47
+ @next_link = response.body.next_link
48
+ @value = response.body.value
49
+ self
50
+ end
51
+ end
52
+
53
+ #
54
+ # Mapper for SubscriptionListResult class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ required: false,
60
+ serialized_name: 'SubscriptionListResult',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'SubscriptionListResult',
64
+ model_properties: {
65
+ value: {
66
+ required: false,
67
+ serialized_name: 'value',
68
+ type: {
69
+ name: 'Sequence',
70
+ element: {
71
+ required: false,
72
+ serialized_name: 'SubscriptionElementType',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'Subscription'
76
+ }
77
+ }
78
+ }
79
+ },
80
+ next_link: {
81
+ required: true,
82
+ serialized_name: 'nextLink',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end