azure_mgmt_subscriptions 0.7.0 → 0.8.0
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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_subscriptions/models/location.rb +14 -8
- data/lib/generated/azure_mgmt_subscriptions/models/location_list_result.rb +2 -2
- data/lib/generated/azure_mgmt_subscriptions/models/spending_limit.rb +17 -0
- data/lib/generated/azure_mgmt_subscriptions/models/subscription.rb +38 -8
- data/lib/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +3 -3
- data/lib/generated/azure_mgmt_subscriptions/models/subscription_policies.rb +21 -3
- data/lib/generated/azure_mgmt_subscriptions/models/subscription_state.rb +19 -0
- data/lib/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb +8 -4
- data/lib/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +3 -3
- data/lib/generated/azure_mgmt_subscriptions/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_subscriptions/subscription_client.rb +16 -3
- data/lib/generated/azure_mgmt_subscriptions/subscriptions.rb +58 -46
- data/lib/generated/azure_mgmt_subscriptions/tenants.rb +37 -34
- data/lib/generated/azure_mgmt_subscriptions/version.rb +2 -2
- data/lib/generated/azure_mgmt_subscriptions.rb +6 -4
- metadata +6 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 86a371591f0e9bb1f22cb10cf2c755eaec935736
         | 
| 4 | 
            +
              data.tar.gz: ce8f7ef251e89e1d689ab77958c74d5d6f50b1d6
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 29e78462f6a904ccfbc38d066415fd0fa8f3809d1dad66138629f9070149ead1f1c28c99e95ddc602fd25e3f740793db2ef46b32042bb41cb71a490b52ad136a
         | 
| 7 | 
            +
              data.tar.gz: 22721f80a6510886c56b4ac53e8b78d23047900e947b65b4dee838478d610337f67ab14c513136a408c08e73f9673b442fb553e07848f7e389ececab62e7253f
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| @@ -12,23 +12,23 @@ module Azure::ARM::Subscriptions | |
| 12 12 |  | 
| 13 13 | 
             
                  include MsRestAzure
         | 
| 14 14 |  | 
| 15 | 
            -
                  # @return [String]  | 
| 16 | 
            -
                  #  | 
| 15 | 
            +
                  # @return [String] The fully qualified ID of the location. For example,
         | 
| 16 | 
            +
                  # /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
         | 
| 17 17 | 
             
                  attr_accessor :id
         | 
| 18 18 |  | 
| 19 | 
            -
                  # @return [String]  | 
| 19 | 
            +
                  # @return [String] The subscription ID.
         | 
| 20 20 | 
             
                  attr_accessor :subscription_id
         | 
| 21 21 |  | 
| 22 | 
            -
                  # @return [String]  | 
| 22 | 
            +
                  # @return [String] The location name.
         | 
| 23 23 | 
             
                  attr_accessor :name
         | 
| 24 24 |  | 
| 25 | 
            -
                  # @return [String]  | 
| 25 | 
            +
                  # @return [String] The display name of the location.
         | 
| 26 26 | 
             
                  attr_accessor :display_name
         | 
| 27 27 |  | 
| 28 | 
            -
                  # @return [String]  | 
| 28 | 
            +
                  # @return [String] The latitude of the location.
         | 
| 29 29 | 
             
                  attr_accessor :latitude
         | 
| 30 30 |  | 
| 31 | 
            -
                  # @return [String]  | 
| 31 | 
            +
                  # @return [String] The longitude of the location.
         | 
| 32 32 | 
             
                  attr_accessor :longitude
         | 
| 33 33 |  | 
| 34 34 |  | 
| @@ -46,6 +46,7 @@ module Azure::ARM::Subscriptions | |
| 46 46 | 
             
                        model_properties: {
         | 
| 47 47 | 
             
                          id: {
         | 
| 48 48 | 
             
                            required: false,
         | 
| 49 | 
            +
                            read_only: true,
         | 
| 49 50 | 
             
                            serialized_name: 'id',
         | 
| 50 51 | 
             
                            type: {
         | 
| 51 52 | 
             
                              name: 'String'
         | 
| @@ -53,6 +54,7 @@ module Azure::ARM::Subscriptions | |
| 53 54 | 
             
                          },
         | 
| 54 55 | 
             
                          subscription_id: {
         | 
| 55 56 | 
             
                            required: false,
         | 
| 57 | 
            +
                            read_only: true,
         | 
| 56 58 | 
             
                            serialized_name: 'subscriptionId',
         | 
| 57 59 | 
             
                            type: {
         | 
| 58 60 | 
             
                              name: 'String'
         | 
| @@ -60,6 +62,7 @@ module Azure::ARM::Subscriptions | |
| 60 62 | 
             
                          },
         | 
| 61 63 | 
             
                          name: {
         | 
| 62 64 | 
             
                            required: false,
         | 
| 65 | 
            +
                            read_only: true,
         | 
| 63 66 | 
             
                            serialized_name: 'name',
         | 
| 64 67 | 
             
                            type: {
         | 
| 65 68 | 
             
                              name: 'String'
         | 
| @@ -67,6 +70,7 @@ module Azure::ARM::Subscriptions | |
| 67 70 | 
             
                          },
         | 
| 68 71 | 
             
                          display_name: {
         | 
| 69 72 | 
             
                            required: false,
         | 
| 73 | 
            +
                            read_only: true,
         | 
| 70 74 | 
             
                            serialized_name: 'displayName',
         | 
| 71 75 | 
             
                            type: {
         | 
| 72 76 | 
             
                              name: 'String'
         | 
| @@ -74,6 +78,7 @@ module Azure::ARM::Subscriptions | |
| 74 78 | 
             
                          },
         | 
| 75 79 | 
             
                          latitude: {
         | 
| 76 80 | 
             
                            required: false,
         | 
| 81 | 
            +
                            read_only: true,
         | 
| 77 82 | 
             
                            serialized_name: 'latitude',
         | 
| 78 83 | 
             
                            type: {
         | 
| 79 84 | 
             
                              name: 'String'
         | 
| @@ -81,6 +86,7 @@ module Azure::ARM::Subscriptions | |
| 81 86 | 
             
                          },
         | 
| 82 87 | 
             
                          longitude: {
         | 
| 83 88 | 
             
                            required: false,
         | 
| 89 | 
            +
                            read_only: true,
         | 
| 84 90 | 
             
                            serialized_name: 'longitude',
         | 
| 85 91 | 
             
                            type: {
         | 
| 86 92 | 
             
                              name: 'String'
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| @@ -12,7 +12,7 @@ module Azure::ARM::Subscriptions | |
| 12 12 |  | 
| 13 13 | 
             
                  include MsRestAzure
         | 
| 14 14 |  | 
| 15 | 
            -
                  # @return [Array<Location>]  | 
| 15 | 
            +
                  # @return [Array<Location>] An array of locations.
         | 
| 16 16 | 
             
                  attr_accessor :value
         | 
| 17 17 |  | 
| 18 18 |  | 
| @@ -0,0 +1,17 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.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 | 
            +
                # Defines values for SpendingLimit
         | 
| 10 | 
            +
                #
         | 
| 11 | 
            +
                module SpendingLimit
         | 
| 12 | 
            +
                  On = "On"
         | 
| 13 | 
            +
                  Off = "Off"
         | 
| 14 | 
            +
                  CurrentPeriodOff = "CurrentPeriodOff"
         | 
| 15 | 
            +
                end
         | 
| 16 | 
            +
              end
         | 
| 17 | 
            +
            end
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| @@ -12,22 +12,32 @@ module Azure::ARM::Subscriptions | |
| 12 12 |  | 
| 13 13 | 
             
                  include MsRestAzure
         | 
| 14 14 |  | 
| 15 | 
            -
                  # @return [String]  | 
| 16 | 
            -
                  #  | 
| 15 | 
            +
                  # @return [String] The fully qualified ID for the subscription. For
         | 
| 16 | 
            +
                  # example, /subscriptions/00000000-0000-0000-0000-000000000000.
         | 
| 17 17 | 
             
                  attr_accessor :id
         | 
| 18 18 |  | 
| 19 | 
            -
                  # @return [String]  | 
| 19 | 
            +
                  # @return [String] The subscription ID.
         | 
| 20 20 | 
             
                  attr_accessor :subscription_id
         | 
| 21 21 |  | 
| 22 | 
            -
                  # @return [String]  | 
| 22 | 
            +
                  # @return [String] The tenant ID.
         | 
| 23 | 
            +
                  attr_accessor :tenant_id
         | 
| 24 | 
            +
             | 
| 25 | 
            +
                  # @return [String] The subscription display name.
         | 
| 23 26 | 
             
                  attr_accessor :display_name
         | 
| 24 27 |  | 
| 25 | 
            -
                  # @return [ | 
| 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'
         | 
| 26 31 | 
             
                  attr_accessor :state
         | 
| 27 32 |  | 
| 28 | 
            -
                  # @return [SubscriptionPolicies]  | 
| 33 | 
            +
                  # @return [SubscriptionPolicies] The subscription policies.
         | 
| 29 34 | 
             
                  attr_accessor :subscription_policies
         | 
| 30 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 | 
            +
             | 
| 31 41 |  | 
| 32 42 | 
             
                  #
         | 
| 33 43 | 
             
                  # Mapper for Subscription class as Ruby Hash.
         | 
| @@ -43,6 +53,7 @@ module Azure::ARM::Subscriptions | |
| 43 53 | 
             
                        model_properties: {
         | 
| 44 54 | 
             
                          id: {
         | 
| 45 55 | 
             
                            required: false,
         | 
| 56 | 
            +
                            read_only: true,
         | 
| 46 57 | 
             
                            serialized_name: 'id',
         | 
| 47 58 | 
             
                            type: {
         | 
| 48 59 | 
             
                              name: 'String'
         | 
| @@ -50,13 +61,23 @@ module Azure::ARM::Subscriptions | |
| 50 61 | 
             
                          },
         | 
| 51 62 | 
             
                          subscription_id: {
         | 
| 52 63 | 
             
                            required: false,
         | 
| 64 | 
            +
                            read_only: true,
         | 
| 53 65 | 
             
                            serialized_name: 'subscriptionId',
         | 
| 54 66 | 
             
                            type: {
         | 
| 55 67 | 
             
                              name: 'String'
         | 
| 56 68 | 
             
                            }
         | 
| 57 69 | 
             
                          },
         | 
| 70 | 
            +
                          tenant_id: {
         | 
| 71 | 
            +
                            required: false,
         | 
| 72 | 
            +
                            read_only: true,
         | 
| 73 | 
            +
                            serialized_name: 'tenantId',
         | 
| 74 | 
            +
                            type: {
         | 
| 75 | 
            +
                              name: 'String'
         | 
| 76 | 
            +
                            }
         | 
| 77 | 
            +
                          },
         | 
| 58 78 | 
             
                          display_name: {
         | 
| 59 79 | 
             
                            required: false,
         | 
| 80 | 
            +
                            read_only: true,
         | 
| 60 81 | 
             
                            serialized_name: 'displayName',
         | 
| 61 82 | 
             
                            type: {
         | 
| 62 83 | 
             
                              name: 'String'
         | 
| @@ -64,9 +85,11 @@ module Azure::ARM::Subscriptions | |
| 64 85 | 
             
                          },
         | 
| 65 86 | 
             
                          state: {
         | 
| 66 87 | 
             
                            required: false,
         | 
| 88 | 
            +
                            read_only: true,
         | 
| 67 89 | 
             
                            serialized_name: 'state',
         | 
| 68 90 | 
             
                            type: {
         | 
| 69 | 
            -
                              name: ' | 
| 91 | 
            +
                              name: 'Enum',
         | 
| 92 | 
            +
                              module: 'SubscriptionState'
         | 
| 70 93 | 
             
                            }
         | 
| 71 94 | 
             
                          },
         | 
| 72 95 | 
             
                          subscription_policies: {
         | 
| @@ -76,6 +99,13 @@ module Azure::ARM::Subscriptions | |
| 76 99 | 
             
                              name: 'Composite',
         | 
| 77 100 | 
             
                              class_name: 'SubscriptionPolicies'
         | 
| 78 101 | 
             
                            }
         | 
| 102 | 
            +
                          },
         | 
| 103 | 
            +
                          authorization_source: {
         | 
| 104 | 
            +
                            required: false,
         | 
| 105 | 
            +
                            serialized_name: 'authorizationSource',
         | 
| 106 | 
            +
                            type: {
         | 
| 107 | 
            +
                              name: 'String'
         | 
| 108 | 
            +
                            }
         | 
| 79 109 | 
             
                          }
         | 
| 80 110 | 
             
                        }
         | 
| 81 111 | 
             
                      }
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| @@ -12,10 +12,10 @@ module Azure::ARM::Subscriptions | |
| 12 12 |  | 
| 13 13 | 
             
                  include MsRestAzure
         | 
| 14 14 |  | 
| 15 | 
            -
                  # @return [Array<Subscription>]  | 
| 15 | 
            +
                  # @return [Array<Subscription>] An array of subscriptions.
         | 
| 16 16 | 
             
                  attr_accessor :value
         | 
| 17 17 |  | 
| 18 | 
            -
                  # @return [String]  | 
| 18 | 
            +
                  # @return [String] The URL to get the next set of results.
         | 
| 19 19 | 
             
                  attr_accessor :next_link
         | 
| 20 20 |  | 
| 21 21 | 
             
                  # return [Proc] with next page method call.
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| @@ -12,12 +12,19 @@ module Azure::ARM::Subscriptions | |
| 12 12 |  | 
| 13 13 | 
             
                  include MsRestAzure
         | 
| 14 14 |  | 
| 15 | 
            -
                  # @return [String]  | 
| 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.
         | 
| 16 19 | 
             
                  attr_accessor :location_placement_id
         | 
| 17 20 |  | 
| 18 | 
            -
                  # @return [String]  | 
| 21 | 
            +
                  # @return [String] The subscription quota ID.
         | 
| 19 22 | 
             
                  attr_accessor :quota_id
         | 
| 20 23 |  | 
| 24 | 
            +
                  # @return [SpendingLimit] The subscription spending limit. Possible
         | 
| 25 | 
            +
                  # values include: 'On', 'Off', 'CurrentPeriodOff'
         | 
| 26 | 
            +
                  attr_accessor :spending_limit
         | 
| 27 | 
            +
             | 
| 21 28 |  | 
| 22 29 | 
             
                  #
         | 
| 23 30 | 
             
                  # Mapper for SubscriptionPolicies class as Ruby Hash.
         | 
| @@ -33,6 +40,7 @@ module Azure::ARM::Subscriptions | |
| 33 40 | 
             
                        model_properties: {
         | 
| 34 41 | 
             
                          location_placement_id: {
         | 
| 35 42 | 
             
                            required: false,
         | 
| 43 | 
            +
                            read_only: true,
         | 
| 36 44 | 
             
                            serialized_name: 'locationPlacementId',
         | 
| 37 45 | 
             
                            type: {
         | 
| 38 46 | 
             
                              name: 'String'
         | 
| @@ -40,10 +48,20 @@ module Azure::ARM::Subscriptions | |
| 40 48 | 
             
                          },
         | 
| 41 49 | 
             
                          quota_id: {
         | 
| 42 50 | 
             
                            required: false,
         | 
| 51 | 
            +
                            read_only: true,
         | 
| 43 52 | 
             
                            serialized_name: 'quotaId',
         | 
| 44 53 | 
             
                            type: {
         | 
| 45 54 | 
             
                              name: 'String'
         | 
| 46 55 | 
             
                            }
         | 
| 56 | 
            +
                          },
         | 
| 57 | 
            +
                          spending_limit: {
         | 
| 58 | 
            +
                            required: false,
         | 
| 59 | 
            +
                            read_only: true,
         | 
| 60 | 
            +
                            serialized_name: 'spendingLimit',
         | 
| 61 | 
            +
                            type: {
         | 
| 62 | 
            +
                              name: 'Enum',
         | 
| 63 | 
            +
                              module: 'SpendingLimit'
         | 
| 64 | 
            +
                            }
         | 
| 47 65 | 
             
                          }
         | 
| 48 66 | 
             
                        }
         | 
| 49 67 | 
             
                      }
         | 
| @@ -0,0 +1,19 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.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 | 
            +
                # 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
         | 
| @@ -1,21 +1,23 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| 6 6 | 
             
            module Azure::ARM::Subscriptions
         | 
| 7 7 | 
             
              module Models
         | 
| 8 8 | 
             
                #
         | 
| 9 | 
            -
                # Tenant Id information
         | 
| 9 | 
            +
                # Tenant Id information.
         | 
| 10 10 | 
             
                #
         | 
| 11 11 | 
             
                class TenantIdDescription
         | 
| 12 12 |  | 
| 13 13 | 
             
                  include MsRestAzure
         | 
| 14 14 |  | 
| 15 | 
            -
                  # @return [String]  | 
| 15 | 
            +
                  # @return [String] The fully qualified ID of the tenant. For example,
         | 
| 16 | 
            +
                  # /tenants/00000000-0000-0000-0000-000000000000.
         | 
| 16 17 | 
             
                  attr_accessor :id
         | 
| 17 18 |  | 
| 18 | 
            -
                  # @return [String]  | 
| 19 | 
            +
                  # @return [String] The tenant ID. For example,
         | 
| 20 | 
            +
                  # 00000000-0000-0000-0000-000000000000.
         | 
| 19 21 | 
             
                  attr_accessor :tenant_id
         | 
| 20 22 |  | 
| 21 23 |  | 
| @@ -33,6 +35,7 @@ module Azure::ARM::Subscriptions | |
| 33 35 | 
             
                        model_properties: {
         | 
| 34 36 | 
             
                          id: {
         | 
| 35 37 | 
             
                            required: false,
         | 
| 38 | 
            +
                            read_only: true,
         | 
| 36 39 | 
             
                            serialized_name: 'id',
         | 
| 37 40 | 
             
                            type: {
         | 
| 38 41 | 
             
                              name: 'String'
         | 
| @@ -40,6 +43,7 @@ module Azure::ARM::Subscriptions | |
| 40 43 | 
             
                          },
         | 
| 41 44 | 
             
                          tenant_id: {
         | 
| 42 45 | 
             
                            required: false,
         | 
| 46 | 
            +
                            read_only: true,
         | 
| 43 47 | 
             
                            serialized_name: 'tenantId',
         | 
| 44 48 | 
             
                            type: {
         | 
| 45 49 | 
             
                              name: 'String'
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| @@ -12,10 +12,10 @@ module Azure::ARM::Subscriptions | |
| 12 12 |  | 
| 13 13 | 
             
                  include MsRestAzure
         | 
| 14 14 |  | 
| 15 | 
            -
                  # @return [Array<TenantIdDescription>]  | 
| 15 | 
            +
                  # @return [Array<TenantIdDescription>] An array of tenants.
         | 
| 16 16 | 
             
                  attr_accessor :value
         | 
| 17 17 |  | 
| 18 | 
            -
                  # @return [String]  | 
| 18 | 
            +
                  # @return [String] The URL to use for getting the next set of results.
         | 
| 19 19 | 
             
                  attr_accessor :next_link
         | 
| 20 20 |  | 
| 21 21 | 
             
                  # return [Proc] with next page method call.
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| @@ -17,7 +17,7 @@ module Azure::ARM::Subscriptions | |
| 17 17 | 
             
                # @return Credentials needed for the client to connect to Azure.
         | 
| 18 18 | 
             
                attr_reader :credentials
         | 
| 19 19 |  | 
| 20 | 
            -
                # @return [String]  | 
| 20 | 
            +
                # @return [String] The API version to use for the operation.
         | 
| 21 21 | 
             
                attr_reader :api_version
         | 
| 22 22 |  | 
| 23 23 | 
             
                # @return [String] Gets or sets the preferred language for the response.
         | 
| @@ -53,10 +53,11 @@ module Azure::ARM::Subscriptions | |
| 53 53 |  | 
| 54 54 | 
             
                  @subscriptions = Subscriptions.new(self)
         | 
| 55 55 | 
             
                  @tenants = Tenants.new(self)
         | 
| 56 | 
            -
                  @api_version = ' | 
| 56 | 
            +
                  @api_version = '2016-06-01'
         | 
| 57 57 | 
             
                  @accept_language = 'en-US'
         | 
| 58 58 | 
             
                  @long_running_operation_retry_timeout = 30
         | 
| 59 59 | 
             
                  @generate_client_request_id = true
         | 
| 60 | 
            +
                  add_telemetry
         | 
| 60 61 | 
             
                end
         | 
| 61 62 |  | 
| 62 63 | 
             
                #
         | 
| @@ -114,5 +115,17 @@ module Azure::ARM::Subscriptions | |
| 114 115 | 
             
                  super(request_url, method, path, options)
         | 
| 115 116 | 
             
                end
         | 
| 116 117 |  | 
| 118 | 
            +
             | 
| 119 | 
            +
                private
         | 
| 120 | 
            +
                #
         | 
| 121 | 
            +
                # Adds telemetry information.
         | 
| 122 | 
            +
                #
         | 
| 123 | 
            +
                def add_telemetry
         | 
| 124 | 
            +
                    sdk_information = 'azure_mgmt_subscriptions'
         | 
| 125 | 
            +
                    if defined? Azure::ARM::Subscriptions::VERSION
         | 
| 126 | 
            +
                      sdk_information = "#{sdk_information}/#{Azure::ARM::Subscriptions::VERSION}" 
         | 
| 127 | 
            +
                    end
         | 
| 128 | 
            +
                    add_user_agent_information(sdk_information)
         | 
| 129 | 
            +
                end
         | 
| 117 130 | 
             
              end
         | 
| 118 131 | 
             
            end
         | 
| @@ -1,11 +1,14 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| 6 6 | 
             
            module Azure::ARM::Subscriptions
         | 
| 7 7 | 
             
              #
         | 
| 8 | 
            -
              #  | 
| 8 | 
            +
              # All resource groups and resources exist within subscriptions. These
         | 
| 9 | 
            +
              # operation enable you get information about your subscriptions and tenants.
         | 
| 10 | 
            +
              # A tenant is a dedicated instance of Azure Active Directory (Azure AD) for
         | 
| 11 | 
            +
              # your organization.
         | 
| 9 12 | 
             
              #
         | 
| 10 13 | 
             
              class Subscriptions
         | 
| 11 14 | 
             
                include Azure::ARM::Subscriptions::Models
         | 
| @@ -23,9 +26,12 @@ module Azure::ARM::Subscriptions | |
| 23 26 | 
             
                attr_reader :client
         | 
| 24 27 |  | 
| 25 28 | 
             
                #
         | 
| 26 | 
            -
                # Gets  | 
| 29 | 
            +
                # Gets all available geo-locations.
         | 
| 27 30 | 
             
                #
         | 
| 28 | 
            -
                #  | 
| 31 | 
            +
                # This operation provides all the locations that are available for resource
         | 
| 32 | 
            +
                # providers; however, each resource provider may support a subset of this list.
         | 
| 33 | 
            +
                #
         | 
| 34 | 
            +
                # @param subscription_id [String] The ID of the target subscription.
         | 
| 29 35 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 30 36 | 
             
                # will be added to the HTTP request.
         | 
| 31 37 | 
             
                #
         | 
| @@ -37,9 +43,12 @@ module Azure::ARM::Subscriptions | |
| 37 43 | 
             
                end
         | 
| 38 44 |  | 
| 39 45 | 
             
                #
         | 
| 40 | 
            -
                # Gets  | 
| 46 | 
            +
                # Gets all available geo-locations.
         | 
| 47 | 
            +
                #
         | 
| 48 | 
            +
                # This operation provides all the locations that are available for resource
         | 
| 49 | 
            +
                # providers; however, each resource provider may support a subset of this list.
         | 
| 41 50 | 
             
                #
         | 
| 42 | 
            -
                # @param subscription_id [String]  | 
| 51 | 
            +
                # @param subscription_id [String] The ID of the target subscription.
         | 
| 43 52 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 44 53 | 
             
                # will be added to the HTTP request.
         | 
| 45 54 | 
             
                #
         | 
| @@ -50,9 +59,12 @@ module Azure::ARM::Subscriptions | |
| 50 59 | 
             
                end
         | 
| 51 60 |  | 
| 52 61 | 
             
                #
         | 
| 53 | 
            -
                # Gets  | 
| 62 | 
            +
                # Gets all available geo-locations.
         | 
| 63 | 
            +
                #
         | 
| 64 | 
            +
                # This operation provides all the locations that are available for resource
         | 
| 65 | 
            +
                # providers; however, each resource provider may support a subset of this list.
         | 
| 54 66 | 
             
                #
         | 
| 55 | 
            -
                # @param subscription_id [String]  | 
| 67 | 
            +
                # @param subscription_id [String] The ID of the target subscription.
         | 
| 56 68 | 
             
                # @param [Hash{String => String}] A hash of custom headers that will be added
         | 
| 57 69 | 
             
                # to the HTTP request.
         | 
| 58 70 | 
             
                #
         | 
| @@ -109,9 +121,9 @@ module Azure::ARM::Subscriptions | |
| 109 121 | 
             
                end
         | 
| 110 122 |  | 
| 111 123 | 
             
                #
         | 
| 112 | 
            -
                # Gets details about  | 
| 124 | 
            +
                # Gets details about a specified subscription.
         | 
| 113 125 | 
             
                #
         | 
| 114 | 
            -
                # @param subscription_id [String]  | 
| 126 | 
            +
                # @param subscription_id [String] The ID of the target subscription.
         | 
| 115 127 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 116 128 | 
             
                # will be added to the HTTP request.
         | 
| 117 129 | 
             
                #
         | 
| @@ -123,9 +135,9 @@ module Azure::ARM::Subscriptions | |
| 123 135 | 
             
                end
         | 
| 124 136 |  | 
| 125 137 | 
             
                #
         | 
| 126 | 
            -
                # Gets details about  | 
| 138 | 
            +
                # Gets details about a specified subscription.
         | 
| 127 139 | 
             
                #
         | 
| 128 | 
            -
                # @param subscription_id [String]  | 
| 140 | 
            +
                # @param subscription_id [String] The ID of the target subscription.
         | 
| 129 141 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 130 142 | 
             
                # will be added to the HTTP request.
         | 
| 131 143 | 
             
                #
         | 
| @@ -136,9 +148,9 @@ module Azure::ARM::Subscriptions | |
| 136 148 | 
             
                end
         | 
| 137 149 |  | 
| 138 150 | 
             
                #
         | 
| 139 | 
            -
                # Gets details about  | 
| 151 | 
            +
                # Gets details about a specified subscription.
         | 
| 140 152 | 
             
                #
         | 
| 141 | 
            -
                # @param subscription_id [String]  | 
| 153 | 
            +
                # @param subscription_id [String] The ID of the target subscription.
         | 
| 142 154 | 
             
                # @param [Hash{String => String}] A hash of custom headers that will be added
         | 
| 143 155 | 
             
                # to the HTTP request.
         | 
| 144 156 | 
             
                #
         | 
| @@ -195,27 +207,7 @@ module Azure::ARM::Subscriptions | |
| 195 207 | 
             
                end
         | 
| 196 208 |  | 
| 197 209 | 
             
                #
         | 
| 198 | 
            -
                # Gets  | 
| 199 | 
            -
                #
         | 
| 200 | 
            -
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 201 | 
            -
                # will be added to the HTTP request.
         | 
| 202 | 
            -
                #
         | 
| 203 | 
            -
                # @return [SubscriptionListResult] which provide lazy access to pages of the
         | 
| 204 | 
            -
                # response.
         | 
| 205 | 
            -
                #
         | 
| 206 | 
            -
                def list_as_lazy(custom_headers = nil)
         | 
| 207 | 
            -
                  response = list_async(custom_headers).value!
         | 
| 208 | 
            -
                  unless response.nil?
         | 
| 209 | 
            -
                    page = response.body
         | 
| 210 | 
            -
                    page.next_method = Proc.new do |next_page_link|
         | 
| 211 | 
            -
                      list_next_async(next_page_link, custom_headers)
         | 
| 212 | 
            -
                    end
         | 
| 213 | 
            -
                    page
         | 
| 214 | 
            -
                  end
         | 
| 215 | 
            -
                end
         | 
| 216 | 
            -
             | 
| 217 | 
            -
                #
         | 
| 218 | 
            -
                # Gets a list of the subscriptionIds.
         | 
| 210 | 
            +
                # Gets all subscriptions for a tenant.
         | 
| 219 211 | 
             
                #
         | 
| 220 212 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 221 213 | 
             
                # will be added to the HTTP request.
         | 
| @@ -228,7 +220,7 @@ module Azure::ARM::Subscriptions | |
| 228 220 | 
             
                end
         | 
| 229 221 |  | 
| 230 222 | 
             
                #
         | 
| 231 | 
            -
                # Gets  | 
| 223 | 
            +
                # Gets all subscriptions for a tenant.
         | 
| 232 224 | 
             
                #
         | 
| 233 225 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 234 226 | 
             
                # will be added to the HTTP request.
         | 
| @@ -240,7 +232,7 @@ module Azure::ARM::Subscriptions | |
| 240 232 | 
             
                end
         | 
| 241 233 |  | 
| 242 234 | 
             
                #
         | 
| 243 | 
            -
                # Gets  | 
| 235 | 
            +
                # Gets all subscriptions for a tenant.
         | 
| 244 236 | 
             
                #
         | 
| 245 237 | 
             
                # @param [Hash{String => String}] A hash of custom headers that will be added
         | 
| 246 238 | 
             
                # to the HTTP request.
         | 
| @@ -296,10 +288,10 @@ module Azure::ARM::Subscriptions | |
| 296 288 | 
             
                end
         | 
| 297 289 |  | 
| 298 290 | 
             
                #
         | 
| 299 | 
            -
                # Gets  | 
| 291 | 
            +
                # Gets all subscriptions for a tenant.
         | 
| 300 292 | 
             
                #
         | 
| 301 | 
            -
                # @param next_page_link [String] The NextLink from the previous successful
         | 
| 302 | 
            -
                #  | 
| 293 | 
            +
                # @param next_page_link [String] The NextLink from the previous successful call
         | 
| 294 | 
            +
                # to List operation.
         | 
| 303 295 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 304 296 | 
             
                # will be added to the HTTP request.
         | 
| 305 297 | 
             
                #
         | 
| @@ -311,10 +303,10 @@ module Azure::ARM::Subscriptions | |
| 311 303 | 
             
                end
         | 
| 312 304 |  | 
| 313 305 | 
             
                #
         | 
| 314 | 
            -
                # Gets  | 
| 306 | 
            +
                # Gets all subscriptions for a tenant.
         | 
| 315 307 | 
             
                #
         | 
| 316 | 
            -
                # @param next_page_link [String] The NextLink from the previous successful
         | 
| 317 | 
            -
                #  | 
| 308 | 
            +
                # @param next_page_link [String] The NextLink from the previous successful call
         | 
| 309 | 
            +
                # to List operation.
         | 
| 318 310 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 319 311 | 
             
                # will be added to the HTTP request.
         | 
| 320 312 | 
             
                #
         | 
| @@ -325,10 +317,10 @@ module Azure::ARM::Subscriptions | |
| 325 317 | 
             
                end
         | 
| 326 318 |  | 
| 327 319 | 
             
                #
         | 
| 328 | 
            -
                # Gets  | 
| 320 | 
            +
                # Gets all subscriptions for a tenant.
         | 
| 329 321 | 
             
                #
         | 
| 330 | 
            -
                # @param next_page_link [String] The NextLink from the previous successful
         | 
| 331 | 
            -
                #  | 
| 322 | 
            +
                # @param next_page_link [String] The NextLink from the previous successful call
         | 
| 323 | 
            +
                # to List operation.
         | 
| 332 324 | 
             
                # @param [Hash{String => String}] A hash of custom headers that will be added
         | 
| 333 325 | 
             
                # to the HTTP request.
         | 
| 334 326 | 
             
                #
         | 
| @@ -382,5 +374,25 @@ module Azure::ARM::Subscriptions | |
| 382 374 | 
             
                  promise.execute
         | 
| 383 375 | 
             
                end
         | 
| 384 376 |  | 
| 377 | 
            +
                #
         | 
| 378 | 
            +
                # Gets all subscriptions for a tenant.
         | 
| 379 | 
            +
                #
         | 
| 380 | 
            +
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 381 | 
            +
                # will be added to the HTTP request.
         | 
| 382 | 
            +
                #
         | 
| 383 | 
            +
                # @return [SubscriptionListResult] which provide lazy access to pages of the
         | 
| 384 | 
            +
                # response.
         | 
| 385 | 
            +
                #
         | 
| 386 | 
            +
                def list_as_lazy(custom_headers = nil)
         | 
| 387 | 
            +
                  response = list_async(custom_headers).value!
         | 
| 388 | 
            +
                  unless response.nil?
         | 
| 389 | 
            +
                    page = response.body
         | 
| 390 | 
            +
                    page.next_method = Proc.new do |next_page_link|
         | 
| 391 | 
            +
                      list_next_async(next_page_link, custom_headers)
         | 
| 392 | 
            +
                    end
         | 
| 393 | 
            +
                    page
         | 
| 394 | 
            +
                  end
         | 
| 395 | 
            +
                end
         | 
| 396 | 
            +
             | 
| 385 397 | 
             
              end
         | 
| 386 398 | 
             
            end
         | 
| @@ -1,11 +1,14 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| 6 6 | 
             
            module Azure::ARM::Subscriptions
         | 
| 7 7 | 
             
              #
         | 
| 8 | 
            -
              #  | 
| 8 | 
            +
              # All resource groups and resources exist within subscriptions. These
         | 
| 9 | 
            +
              # operation enable you get information about your subscriptions and tenants.
         | 
| 10 | 
            +
              # A tenant is a dedicated instance of Azure Active Directory (Azure AD) for
         | 
| 11 | 
            +
              # your organization.
         | 
| 9 12 | 
             
              #
         | 
| 10 13 | 
             
              class Tenants
         | 
| 11 14 | 
             
                include Azure::ARM::Subscriptions::Models
         | 
| @@ -23,27 +26,7 @@ module Azure::ARM::Subscriptions | |
| 23 26 | 
             
                attr_reader :client
         | 
| 24 27 |  | 
| 25 28 | 
             
                #
         | 
| 26 | 
            -
                # Gets  | 
| 27 | 
            -
                #
         | 
| 28 | 
            -
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 29 | 
            -
                # will be added to the HTTP request.
         | 
| 30 | 
            -
                #
         | 
| 31 | 
            -
                # @return [TenantListResult] which provide lazy access to pages of the
         | 
| 32 | 
            -
                # response.
         | 
| 33 | 
            -
                #
         | 
| 34 | 
            -
                def list_as_lazy(custom_headers = nil)
         | 
| 35 | 
            -
                  response = list_async(custom_headers).value!
         | 
| 36 | 
            -
                  unless response.nil?
         | 
| 37 | 
            -
                    page = response.body
         | 
| 38 | 
            -
                    page.next_method = Proc.new do |next_page_link|
         | 
| 39 | 
            -
                      list_next_async(next_page_link, custom_headers)
         | 
| 40 | 
            -
                    end
         | 
| 41 | 
            -
                    page
         | 
| 42 | 
            -
                  end
         | 
| 43 | 
            -
                end
         | 
| 44 | 
            -
             | 
| 45 | 
            -
                #
         | 
| 46 | 
            -
                # Gets a list of the tenantIds.
         | 
| 29 | 
            +
                # Gets the tenants for your account.
         | 
| 47 30 | 
             
                #
         | 
| 48 31 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 49 32 | 
             
                # will be added to the HTTP request.
         | 
| @@ -56,7 +39,7 @@ module Azure::ARM::Subscriptions | |
| 56 39 | 
             
                end
         | 
| 57 40 |  | 
| 58 41 | 
             
                #
         | 
| 59 | 
            -
                # Gets  | 
| 42 | 
            +
                # Gets the tenants for your account.
         | 
| 60 43 | 
             
                #
         | 
| 61 44 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 62 45 | 
             
                # will be added to the HTTP request.
         | 
| @@ -68,7 +51,7 @@ module Azure::ARM::Subscriptions | |
| 68 51 | 
             
                end
         | 
| 69 52 |  | 
| 70 53 | 
             
                #
         | 
| 71 | 
            -
                # Gets  | 
| 54 | 
            +
                # Gets the tenants for your account.
         | 
| 72 55 | 
             
                #
         | 
| 73 56 | 
             
                # @param [Hash{String => String}] A hash of custom headers that will be added
         | 
| 74 57 | 
             
                # to the HTTP request.
         | 
| @@ -124,10 +107,10 @@ module Azure::ARM::Subscriptions | |
| 124 107 | 
             
                end
         | 
| 125 108 |  | 
| 126 109 | 
             
                #
         | 
| 127 | 
            -
                # Gets  | 
| 110 | 
            +
                # Gets the tenants for your account.
         | 
| 128 111 | 
             
                #
         | 
| 129 | 
            -
                # @param next_page_link [String] The NextLink from the previous successful
         | 
| 130 | 
            -
                #  | 
| 112 | 
            +
                # @param next_page_link [String] The NextLink from the previous successful call
         | 
| 113 | 
            +
                # to List operation.
         | 
| 131 114 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 132 115 | 
             
                # will be added to the HTTP request.
         | 
| 133 116 | 
             
                #
         | 
| @@ -139,10 +122,10 @@ module Azure::ARM::Subscriptions | |
| 139 122 | 
             
                end
         | 
| 140 123 |  | 
| 141 124 | 
             
                #
         | 
| 142 | 
            -
                # Gets  | 
| 125 | 
            +
                # Gets the tenants for your account.
         | 
| 143 126 | 
             
                #
         | 
| 144 | 
            -
                # @param next_page_link [String] The NextLink from the previous successful
         | 
| 145 | 
            -
                #  | 
| 127 | 
            +
                # @param next_page_link [String] The NextLink from the previous successful call
         | 
| 128 | 
            +
                # to List operation.
         | 
| 146 129 | 
             
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 147 130 | 
             
                # will be added to the HTTP request.
         | 
| 148 131 | 
             
                #
         | 
| @@ -153,10 +136,10 @@ module Azure::ARM::Subscriptions | |
| 153 136 | 
             
                end
         | 
| 154 137 |  | 
| 155 138 | 
             
                #
         | 
| 156 | 
            -
                # Gets  | 
| 139 | 
            +
                # Gets the tenants for your account.
         | 
| 157 140 | 
             
                #
         | 
| 158 | 
            -
                # @param next_page_link [String] The NextLink from the previous successful
         | 
| 159 | 
            -
                #  | 
| 141 | 
            +
                # @param next_page_link [String] The NextLink from the previous successful call
         | 
| 142 | 
            +
                # to List operation.
         | 
| 160 143 | 
             
                # @param [Hash{String => String}] A hash of custom headers that will be added
         | 
| 161 144 | 
             
                # to the HTTP request.
         | 
| 162 145 | 
             
                #
         | 
| @@ -210,5 +193,25 @@ module Azure::ARM::Subscriptions | |
| 210 193 | 
             
                  promise.execute
         | 
| 211 194 | 
             
                end
         | 
| 212 195 |  | 
| 196 | 
            +
                #
         | 
| 197 | 
            +
                # Gets the tenants for your account.
         | 
| 198 | 
            +
                #
         | 
| 199 | 
            +
                # @param custom_headers [Hash{String => String}] A hash of custom headers that
         | 
| 200 | 
            +
                # will be added to the HTTP request.
         | 
| 201 | 
            +
                #
         | 
| 202 | 
            +
                # @return [TenantListResult] which provide lazy access to pages of the
         | 
| 203 | 
            +
                # response.
         | 
| 204 | 
            +
                #
         | 
| 205 | 
            +
                def list_as_lazy(custom_headers = nil)
         | 
| 206 | 
            +
                  response = list_async(custom_headers).value!
         | 
| 207 | 
            +
                  unless response.nil?
         | 
| 208 | 
            +
                    page = response.body
         | 
| 209 | 
            +
                    page.next_method = Proc.new do |next_page_link|
         | 
| 210 | 
            +
                      list_next_async(next_page_link, custom_headers)
         | 
| 211 | 
            +
                    end
         | 
| 212 | 
            +
                    page
         | 
| 213 | 
            +
                  end
         | 
| 214 | 
            +
                end
         | 
| 215 | 
            +
             | 
| 213 216 | 
             
              end
         | 
| 214 217 | 
             
            end
         | 
| @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| 6 6 | 
             
            module Azure::ARM::Subscriptions
         | 
| 7 | 
            -
                VERSION = '0. | 
| 7 | 
            +
                VERSION = '0.8.0'
         | 
| 8 8 | 
             
            end
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 | 
            -
            # Code generated by Microsoft (R) AutoRest Code Generator 0. | 
| 2 | 
            +
            # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
         | 
| 3 3 | 
             
            # Changes may cause incorrect behavior and will be lost if the code is
         | 
| 4 4 | 
             
            # regenerated.
         | 
| 5 5 |  | 
| @@ -25,12 +25,14 @@ module Azure::ARM::Subscriptions | |
| 25 25 | 
             
              autoload :SubscriptionClient,                                 'generated/azure_mgmt_subscriptions/subscription_client.rb'
         | 
| 26 26 |  | 
| 27 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 28 | 
             
                autoload :SubscriptionPolicies,                               'generated/azure_mgmt_subscriptions/models/subscription_policies.rb'
         | 
| 32 29 | 
             
                autoload :SubscriptionListResult,                             'generated/azure_mgmt_subscriptions/models/subscription_list_result.rb'
         | 
| 30 | 
            +
                autoload :LocationListResult,                                 'generated/azure_mgmt_subscriptions/models/location_list_result.rb'
         | 
| 33 31 | 
             
                autoload :TenantIdDescription,                                'generated/azure_mgmt_subscriptions/models/tenant_id_description.rb'
         | 
| 32 | 
            +
                autoload :Location,                                           'generated/azure_mgmt_subscriptions/models/location.rb'
         | 
| 34 33 | 
             
                autoload :TenantListResult,                                   'generated/azure_mgmt_subscriptions/models/tenant_list_result.rb'
         | 
| 34 | 
            +
                autoload :Subscription,                                       'generated/azure_mgmt_subscriptions/models/subscription.rb'
         | 
| 35 | 
            +
                autoload :SubscriptionState,                                  'generated/azure_mgmt_subscriptions/models/subscription_state.rb'
         | 
| 36 | 
            +
                autoload :SpendingLimit,                                      'generated/azure_mgmt_subscriptions/models/spending_limit.rb'
         | 
| 35 37 | 
             
              end
         | 
| 36 38 | 
             
            end
         | 
    
        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. | 
| 4 | 
            +
              version: 0.8.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Microsoft Corporation
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2016- | 
| 11 | 
            +
            date: 2016-11-16 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.6. | 
| 75 | 
            +
                    version: 0.6.2
         | 
| 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.6. | 
| 82 | 
            +
                    version: 0.6.2
         | 
| 83 83 | 
             
            description: Microsoft Azure Subscription Management Client Library for Ruby
         | 
| 84 84 | 
             
            email: azrubyteam@microsoft.com
         | 
| 85 85 | 
             
            executables: []
         | 
| @@ -91,9 +91,11 @@ files: | |
| 91 91 | 
             
            - lib/generated/azure_mgmt_subscriptions.rb
         | 
| 92 92 | 
             
            - lib/generated/azure_mgmt_subscriptions/models/location.rb
         | 
| 93 93 | 
             
            - lib/generated/azure_mgmt_subscriptions/models/location_list_result.rb
         | 
| 94 | 
            +
            - lib/generated/azure_mgmt_subscriptions/models/spending_limit.rb
         | 
| 94 95 | 
             
            - lib/generated/azure_mgmt_subscriptions/models/subscription.rb
         | 
| 95 96 | 
             
            - lib/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb
         | 
| 96 97 | 
             
            - lib/generated/azure_mgmt_subscriptions/models/subscription_policies.rb
         | 
| 98 | 
            +
            - lib/generated/azure_mgmt_subscriptions/models/subscription_state.rb
         | 
| 97 99 | 
             
            - lib/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb
         | 
| 98 100 | 
             
            - lib/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb
         | 
| 99 101 | 
             
            - lib/generated/azure_mgmt_subscriptions/module_definition.rb
         |