azure_mgmt_notification_hubs 0.14.0 → 0.15.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/2017-04-01/generated/azure_mgmt_notification_hubs.rb +61 -0
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/hubs.rb +3 -3
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/access_rights.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/adm_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/apns_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/baidu_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/check_availability_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/check_name_availability_request_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/check_name_availability_response.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/gcm_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/mpns_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/namespace_type.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/policykey_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/resource_list_keys.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/sku.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/sku_name.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/sub_resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/models/wns_credential.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/module_definition.rb +3 -2
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/name.rb +3 -3
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/namespaces.rb +21 -21
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/notification_hubs.rb +18 -18
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +3 -3
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_notification_hubs/version.rb +2 -2
- data/lib/azure_mgmt_notification_hubs.rb +2 -1
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/modules/notificationhubs_profile_module.rb +168 -0
- data/lib/profiles/latest/notificationhubs_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/notificationhubs_module_definition.rb +9 -0
- data/lib/version.rb +7 -0
- metadata +47 -40
- data/lib/generated/azure_mgmt_notification_hubs.rb +0 -61
| @@ -0,0 +1,68 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
            # Copyright (c) Microsoft Corporation. All rights reserved.
         | 
| 3 | 
            +
            # Licensed under the MIT License. See License.txt in the project root for license information.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            module Azure::ARM
         | 
| 6 | 
            +
              # Default configuration options for {Azure::ARM.Client}
         | 
| 7 | 
            +
              module Default
         | 
| 8 | 
            +
                class << self
         | 
| 9 | 
            +
                  #
         | 
| 10 | 
            +
                  # Default Azure Tenant Id.
         | 
| 11 | 
            +
                  # @return [String] Azure Tenant Id.
         | 
| 12 | 
            +
                  #
         | 
| 13 | 
            +
                  def tenant_id
         | 
| 14 | 
            +
                    ENV['AZURE_TENANT_ID']
         | 
| 15 | 
            +
                  end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
                  #
         | 
| 18 | 
            +
                  # Default Azure Client Id.
         | 
| 19 | 
            +
                  # @return [String] Azure Client Id.
         | 
| 20 | 
            +
                  #
         | 
| 21 | 
            +
                  def client_id
         | 
| 22 | 
            +
                    ENV['AZURE_CLIENT_ID']
         | 
| 23 | 
            +
                  end
         | 
| 24 | 
            +
             | 
| 25 | 
            +
                  #
         | 
| 26 | 
            +
                  # Default Azure Client Secret.
         | 
| 27 | 
            +
                  # @return [String] Azure Client Secret.
         | 
| 28 | 
            +
                  #
         | 
| 29 | 
            +
                  def client_secret
         | 
| 30 | 
            +
                    ENV['AZURE_CLIENT_SECRET']
         | 
| 31 | 
            +
                  end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                  #
         | 
| 34 | 
            +
                  # Default Azure Subscription Id.
         | 
| 35 | 
            +
                  # @return [String] Azure Subscription Id.
         | 
| 36 | 
            +
                  #
         | 
| 37 | 
            +
                  def subscription_id
         | 
| 38 | 
            +
                    ENV['AZURE_SUBSCRIPTION_ID']
         | 
| 39 | 
            +
                  end
         | 
| 40 | 
            +
             | 
| 41 | 
            +
                  #
         | 
| 42 | 
            +
                  # Default Azure credentials to authorize HTTP requests made by the service client.
         | 
| 43 | 
            +
                  # @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
         | 
| 44 | 
            +
                  #
         | 
| 45 | 
            +
                  def credentials
         | 
| 46 | 
            +
                    MsRest::TokenCredentials.new(
         | 
| 47 | 
            +
                        MsRestAzure::ApplicationTokenProvider.new(
         | 
| 48 | 
            +
                            self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
         | 
| 49 | 
            +
                  end
         | 
| 50 | 
            +
             | 
| 51 | 
            +
                  #
         | 
| 52 | 
            +
                  # Default Azure Active Directory Service Settings.
         | 
| 53 | 
            +
                  # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
         | 
| 54 | 
            +
                  #
         | 
| 55 | 
            +
                  def active_directory_settings
         | 
| 56 | 
            +
                    MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
         | 
| 57 | 
            +
                  end
         | 
| 58 | 
            +
             | 
| 59 | 
            +
                  #
         | 
| 60 | 
            +
                  # Configuration options.
         | 
| 61 | 
            +
                  # @return [Hash] Configuration options.
         | 
| 62 | 
            +
                  #
         | 
| 63 | 
            +
                  def options
         | 
| 64 | 
            +
                    Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
         | 
| 65 | 
            +
                  end
         | 
| 66 | 
            +
                end
         | 
| 67 | 
            +
              end
         | 
| 68 | 
            +
            end
         | 
| @@ -0,0 +1,168 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
            # Copyright (c) Microsoft Corporation. All rights reserved.
         | 
| 3 | 
            +
            # Licensed under the MIT License. See License.txt in the project root for license information.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            require 'azure_mgmt_notification_hubs'
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            module Azure::NotificationHubs::Profiles::Latest::Mgmt
         | 
| 8 | 
            +
                Namespaces = Azure::NotificationHubs::Mgmt::V2017_04_01::Namespaces
         | 
| 9 | 
            +
                Name = Azure::NotificationHubs::Mgmt::V2017_04_01::Name
         | 
| 10 | 
            +
                NotificationHubs = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubs
         | 
| 11 | 
            +
                Hubs = Azure::NotificationHubs::Mgmt::V2017_04_01::Hubs
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                module Models
         | 
| 14 | 
            +
                  ResourceListKeys = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys
         | 
| 15 | 
            +
                  PolicykeyResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource
         | 
| 16 | 
            +
                  CheckNameAvailabilityResponse = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResponse
         | 
| 17 | 
            +
                  ApnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential
         | 
| 18 | 
            +
                  CheckAvailabilityParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters
         | 
| 19 | 
            +
                  WnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential
         | 
| 20 | 
            +
                  CheckNameAvailabilityRequestParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityRequestParameters
         | 
| 21 | 
            +
                  NamespacePatchParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters
         | 
| 22 | 
            +
                  Sku = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku
         | 
| 23 | 
            +
                  SharedAccessAuthorizationRuleProperties = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties
         | 
| 24 | 
            +
                  SubResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource
         | 
| 25 | 
            +
                  BaiduCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential
         | 
| 26 | 
            +
                  NamespaceListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult
         | 
| 27 | 
            +
                  NotificationHubListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult
         | 
| 28 | 
            +
                  GcmCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential
         | 
| 29 | 
            +
                  SharedAccessAuthorizationRuleListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult
         | 
| 30 | 
            +
                  MpnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::MpnsCredential
         | 
| 31 | 
            +
                  Resource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource
         | 
| 32 | 
            +
                  AdmCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AdmCredential
         | 
| 33 | 
            +
                  CheckAvailabilityResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult
         | 
| 34 | 
            +
                  NamespaceCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters
         | 
| 35 | 
            +
                  NamespaceResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource
         | 
| 36 | 
            +
                  SharedAccessAuthorizationRuleCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters
         | 
| 37 | 
            +
                  SharedAccessAuthorizationRuleResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource
         | 
| 38 | 
            +
                  NotificationHubCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters
         | 
| 39 | 
            +
                  NotificationHubResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource
         | 
| 40 | 
            +
                  PnsCredentialsResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource
         | 
| 41 | 
            +
                  SkuName = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName
         | 
| 42 | 
            +
                  NamespaceType = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType
         | 
| 43 | 
            +
                  AccessRights = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                #
         | 
| 47 | 
            +
                # NotificationHubs
         | 
| 48 | 
            +
                #
         | 
| 49 | 
            +
                class NotificationHubsClass
         | 
| 50 | 
            +
                  attr_reader :namespaces, :name, :notification_hubs, :hubs, :configurable, :base_url, :options, :model_classes
         | 
| 51 | 
            +
             | 
| 52 | 
            +
                  def initialize(options = {})
         | 
| 53 | 
            +
                    if options.is_a?(Hash) && options.length == 0
         | 
| 54 | 
            +
                      @options = setup_options
         | 
| 55 | 
            +
                    else
         | 
| 56 | 
            +
                      @options = options
         | 
| 57 | 
            +
                    end
         | 
| 58 | 
            +
             | 
| 59 | 
            +
                    reset!(options)
         | 
| 60 | 
            +
             | 
| 61 | 
            +
                    @configurable, @base_url, @options = self, nil, nil
         | 
| 62 | 
            +
             | 
| 63 | 
            +
                    client_0 = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubsManagementClient.new(configurable.credentials, base_url, options)
         | 
| 64 | 
            +
                    if(client_0.respond_to?(:subscription_id))
         | 
| 65 | 
            +
                      client_0.subscription_id = configurable.subscription_id
         | 
| 66 | 
            +
                    end
         | 
| 67 | 
            +
                    @namespaces = client_0.namespaces
         | 
| 68 | 
            +
                    @name = client_0.name
         | 
| 69 | 
            +
                    @notification_hubs = client_0.notification_hubs
         | 
| 70 | 
            +
                    @hubs = client_0.hubs
         | 
| 71 | 
            +
             | 
| 72 | 
            +
                    @model_classes = ModelClasses.new
         | 
| 73 | 
            +
                  end
         | 
| 74 | 
            +
             | 
| 75 | 
            +
                  class ModelClasses
         | 
| 76 | 
            +
                    def resource_list_keys
         | 
| 77 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys
         | 
| 78 | 
            +
                    end
         | 
| 79 | 
            +
                    def policykey_resource
         | 
| 80 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource
         | 
| 81 | 
            +
                    end
         | 
| 82 | 
            +
                    def check_name_availability_response
         | 
| 83 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResponse
         | 
| 84 | 
            +
                    end
         | 
| 85 | 
            +
                    def apns_credential
         | 
| 86 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential
         | 
| 87 | 
            +
                    end
         | 
| 88 | 
            +
                    def check_availability_parameters
         | 
| 89 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters
         | 
| 90 | 
            +
                    end
         | 
| 91 | 
            +
                    def wns_credential
         | 
| 92 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential
         | 
| 93 | 
            +
                    end
         | 
| 94 | 
            +
                    def check_name_availability_request_parameters
         | 
| 95 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityRequestParameters
         | 
| 96 | 
            +
                    end
         | 
| 97 | 
            +
                    def namespace_patch_parameters
         | 
| 98 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters
         | 
| 99 | 
            +
                    end
         | 
| 100 | 
            +
                    def sku
         | 
| 101 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku
         | 
| 102 | 
            +
                    end
         | 
| 103 | 
            +
                    def shared_access_authorization_rule_properties
         | 
| 104 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties
         | 
| 105 | 
            +
                    end
         | 
| 106 | 
            +
                    def sub_resource
         | 
| 107 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource
         | 
| 108 | 
            +
                    end
         | 
| 109 | 
            +
                    def baidu_credential
         | 
| 110 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential
         | 
| 111 | 
            +
                    end
         | 
| 112 | 
            +
                    def namespace_list_result
         | 
| 113 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult
         | 
| 114 | 
            +
                    end
         | 
| 115 | 
            +
                    def notification_hub_list_result
         | 
| 116 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult
         | 
| 117 | 
            +
                    end
         | 
| 118 | 
            +
                    def gcm_credential
         | 
| 119 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential
         | 
| 120 | 
            +
                    end
         | 
| 121 | 
            +
                    def shared_access_authorization_rule_list_result
         | 
| 122 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult
         | 
| 123 | 
            +
                    end
         | 
| 124 | 
            +
                    def mpns_credential
         | 
| 125 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::MpnsCredential
         | 
| 126 | 
            +
                    end
         | 
| 127 | 
            +
                    def resource
         | 
| 128 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource
         | 
| 129 | 
            +
                    end
         | 
| 130 | 
            +
                    def adm_credential
         | 
| 131 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AdmCredential
         | 
| 132 | 
            +
                    end
         | 
| 133 | 
            +
                    def check_availability_result
         | 
| 134 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult
         | 
| 135 | 
            +
                    end
         | 
| 136 | 
            +
                    def namespace_create_or_update_parameters
         | 
| 137 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters
         | 
| 138 | 
            +
                    end
         | 
| 139 | 
            +
                    def namespace_resource
         | 
| 140 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource
         | 
| 141 | 
            +
                    end
         | 
| 142 | 
            +
                    def shared_access_authorization_rule_create_or_update_parameters
         | 
| 143 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters
         | 
| 144 | 
            +
                    end
         | 
| 145 | 
            +
                    def shared_access_authorization_rule_resource
         | 
| 146 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource
         | 
| 147 | 
            +
                    end
         | 
| 148 | 
            +
                    def notification_hub_create_or_update_parameters
         | 
| 149 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters
         | 
| 150 | 
            +
                    end
         | 
| 151 | 
            +
                    def notification_hub_resource
         | 
| 152 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource
         | 
| 153 | 
            +
                    end
         | 
| 154 | 
            +
                    def pns_credentials_resource
         | 
| 155 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource
         | 
| 156 | 
            +
                    end
         | 
| 157 | 
            +
                    def sku_name
         | 
| 158 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName
         | 
| 159 | 
            +
                    end
         | 
| 160 | 
            +
                    def namespace_type
         | 
| 161 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType
         | 
| 162 | 
            +
                    end
         | 
| 163 | 
            +
                    def access_rights
         | 
| 164 | 
            +
                      Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights
         | 
| 165 | 
            +
                    end
         | 
| 166 | 
            +
                  end
         | 
| 167 | 
            +
                end
         | 
| 168 | 
            +
            end
         | 
| @@ -0,0 +1,33 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
            # Copyright (c) Microsoft Corporation. All rights reserved.
         | 
| 3 | 
            +
            # Licensed under the MIT License. See License.txt in the project root for license information.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            require 'profiles/latest/notificationhubs_module_definition'
         | 
| 6 | 
            +
            require 'profiles/latest/modules/notificationhubs_profile_module'
         | 
| 7 | 
            +
            require 'profiles/common/configurable'
         | 
| 8 | 
            +
            require 'profiles/common/default'
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            module Azure::NotificationHubs::Profiles::Latest::Mgmt
         | 
| 11 | 
            +
              #
         | 
| 12 | 
            +
              # Client class for the Latest profile SDK.
         | 
| 13 | 
            +
              #
         | 
| 14 | 
            +
              class Client < NotificationHubsClass
         | 
| 15 | 
            +
                include Azure::ARM::Configurable
         | 
| 16 | 
            +
             | 
| 17 | 
            +
             | 
| 18 | 
            +
                def initialize(options = {})
         | 
| 19 | 
            +
                  super(options)
         | 
| 20 | 
            +
                end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                def credentials
         | 
| 23 | 
            +
                  if @credentials.nil?
         | 
| 24 | 
            +
                    self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
         | 
| 25 | 
            +
             | 
| 26 | 
            +
                    @credentials = MsRest::TokenCredentials.new(
         | 
| 27 | 
            +
                                MsRestAzure::ApplicationTokenProvider.new(
         | 
| 28 | 
            +
                                    self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
         | 
| 29 | 
            +
                  end
         | 
| 30 | 
            +
                  @credentials
         | 
| 31 | 
            +
                end
         | 
| 32 | 
            +
              end
         | 
| 33 | 
            +
            end
         | 
| @@ -0,0 +1,9 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
            # Copyright (c) Microsoft Corporation. All rights reserved.
         | 
| 3 | 
            +
            # Licensed under the MIT License. See License.txt in the project root for license information.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            module Azure end
         | 
| 6 | 
            +
            module Azure::NotificationHubs end
         | 
| 7 | 
            +
            module Azure::NotificationHubs::Profiles end
         | 
| 8 | 
            +
            module Azure::NotificationHubs::Profiles::Latest end
         | 
| 9 | 
            +
            module Azure::NotificationHubs::Profiles::Latest::Mgmt end
         | 
    
        data/lib/version.rb
    ADDED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: azure_mgmt_notification_hubs
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.15.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: 2017-10- | 
| 11 | 
            +
            date: 2017-10-17 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -87,45 +87,52 @@ extensions: [] | |
| 87 87 | 
             
            extra_rdoc_files: []
         | 
| 88 88 | 
             
            files:
         | 
| 89 89 | 
             
            - LICENSE.txt
         | 
| 90 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs.rb
         | 
| 91 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb
         | 
| 92 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/access_rights.rb
         | 
| 93 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/adm_credential.rb
         | 
| 94 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/apns_credential.rb
         | 
| 95 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb
         | 
| 96 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb
         | 
| 97 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb
         | 
| 98 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_request_parameters.rb
         | 
| 99 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_response.rb
         | 
| 100 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb
         | 
| 101 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb
         | 
| 102 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb
         | 
| 103 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb
         | 
| 104 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb
         | 
| 105 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb
         | 
| 106 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_type.rb
         | 
| 107 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb
         | 
| 108 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb
         | 
| 109 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb
         | 
| 110 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb
         | 
| 111 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb
         | 
| 112 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/resource.rb
         | 
| 113 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb
         | 
| 114 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb
         | 
| 115 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb
         | 
| 116 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb
         | 
| 117 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb
         | 
| 118 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/sku.rb
         | 
| 119 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/sku_name.rb
         | 
| 120 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/sub_resource.rb
         | 
| 121 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/wns_credential.rb
         | 
| 122 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/module_definition.rb
         | 
| 123 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb
         | 
| 124 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb
         | 
| 125 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb
         | 
| 126 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb
         | 
| 127 | 
            +
            - lib/2017-04-01/generated/azure_mgmt_notification_hubs/version.rb
         | 
| 90 128 | 
             
            - lib/azure_mgmt_notification_hubs.rb
         | 
| 91 | 
            -
            - lib/ | 
| 92 | 
            -
            - lib/ | 
| 93 | 
            -
            - lib/ | 
| 94 | 
            -
            - lib/ | 
| 95 | 
            -
            - lib/ | 
| 96 | 
            -
            - lib/ | 
| 97 | 
            -
            - lib/ | 
| 98 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb
         | 
| 99 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/check_name_availability_request_parameters.rb
         | 
| 100 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/check_name_availability_response.rb
         | 
| 101 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb
         | 
| 102 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb
         | 
| 103 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb
         | 
| 104 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb
         | 
| 105 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb
         | 
| 106 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb
         | 
| 107 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/namespace_type.rb
         | 
| 108 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb
         | 
| 109 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb
         | 
| 110 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb
         | 
| 111 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb
         | 
| 112 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb
         | 
| 113 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/resource.rb
         | 
| 114 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb
         | 
| 115 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb
         | 
| 116 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb
         | 
| 117 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb
         | 
| 118 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb
         | 
| 119 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/sku.rb
         | 
| 120 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/sku_name.rb
         | 
| 121 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/sub_resource.rb
         | 
| 122 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/models/wns_credential.rb
         | 
| 123 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/module_definition.rb
         | 
| 124 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/name.rb
         | 
| 125 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/namespaces.rb
         | 
| 126 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/notification_hubs.rb
         | 
| 127 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb
         | 
| 128 | 
            -
            - lib/generated/azure_mgmt_notification_hubs/version.rb
         | 
| 129 | 
            +
            - lib/module_definition.rb
         | 
| 130 | 
            +
            - lib/profiles/common/configurable.rb
         | 
| 131 | 
            +
            - lib/profiles/common/default.rb
         | 
| 132 | 
            +
            - lib/profiles/latest/modules/notificationhubs_profile_module.rb
         | 
| 133 | 
            +
            - lib/profiles/latest/notificationhubs_latest_profile_client.rb
         | 
| 134 | 
            +
            - lib/profiles/latest/notificationhubs_module_definition.rb
         | 
| 135 | 
            +
            - lib/version.rb
         | 
| 129 136 | 
             
            homepage: https://aka.ms/azure-sdk-for-ruby
         | 
| 130 137 | 
             
            licenses:
         | 
| 131 138 | 
             
            - MIT
         | 
| @@ -1,61 +0,0 @@ | |
| 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 | 
            -
            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_notification_hubs/module_definition'
         | 
| 20 | 
            -
            require 'ms_rest_azure'
         | 
| 21 | 
            -
             | 
| 22 | 
            -
            module Azure::ARM::NotificationHubs
         | 
| 23 | 
            -
              autoload :Namespaces,                                         'generated/azure_mgmt_notification_hubs/namespaces.rb'
         | 
| 24 | 
            -
              autoload :Name,                                               'generated/azure_mgmt_notification_hubs/name.rb'
         | 
| 25 | 
            -
              autoload :NotificationHubs,                                   'generated/azure_mgmt_notification_hubs/notification_hubs.rb'
         | 
| 26 | 
            -
              autoload :Hubs,                                               'generated/azure_mgmt_notification_hubs/hubs.rb'
         | 
| 27 | 
            -
              autoload :NotificationHubsManagementClient,                   'generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb'
         | 
| 28 | 
            -
             | 
| 29 | 
            -
              module Models
         | 
| 30 | 
            -
                autoload :ResourceListKeys,                                   'generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb'
         | 
| 31 | 
            -
                autoload :PolicykeyResource,                                  'generated/azure_mgmt_notification_hubs/models/policykey_resource.rb'
         | 
| 32 | 
            -
                autoload :CheckNameAvailabilityResponse,                      'generated/azure_mgmt_notification_hubs/models/check_name_availability_response.rb'
         | 
| 33 | 
            -
                autoload :ApnsCredential,                                     'generated/azure_mgmt_notification_hubs/models/apns_credential.rb'
         | 
| 34 | 
            -
                autoload :CheckAvailabilityParameters,                        'generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb'
         | 
| 35 | 
            -
                autoload :WnsCredential,                                      'generated/azure_mgmt_notification_hubs/models/wns_credential.rb'
         | 
| 36 | 
            -
                autoload :CheckNameAvailabilityRequestParameters,             'generated/azure_mgmt_notification_hubs/models/check_name_availability_request_parameters.rb'
         | 
| 37 | 
            -
                autoload :NamespacePatchParameters,                           'generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb'
         | 
| 38 | 
            -
                autoload :Sku,                                                'generated/azure_mgmt_notification_hubs/models/sku.rb'
         | 
| 39 | 
            -
                autoload :SharedAccessAuthorizationRuleProperties,            'generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb'
         | 
| 40 | 
            -
                autoload :SubResource,                                        'generated/azure_mgmt_notification_hubs/models/sub_resource.rb'
         | 
| 41 | 
            -
                autoload :BaiduCredential,                                    'generated/azure_mgmt_notification_hubs/models/baidu_credential.rb'
         | 
| 42 | 
            -
                autoload :NamespaceListResult,                                'generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb'
         | 
| 43 | 
            -
                autoload :NotificationHubListResult,                          'generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb'
         | 
| 44 | 
            -
                autoload :GcmCredential,                                      'generated/azure_mgmt_notification_hubs/models/gcm_credential.rb'
         | 
| 45 | 
            -
                autoload :SharedAccessAuthorizationRuleListResult,            'generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb'
         | 
| 46 | 
            -
                autoload :MpnsCredential,                                     'generated/azure_mgmt_notification_hubs/models/mpns_credential.rb'
         | 
| 47 | 
            -
                autoload :Resource,                                           'generated/azure_mgmt_notification_hubs/models/resource.rb'
         | 
| 48 | 
            -
                autoload :AdmCredential,                                      'generated/azure_mgmt_notification_hubs/models/adm_credential.rb'
         | 
| 49 | 
            -
                autoload :CheckAvailabilityResult,                            'generated/azure_mgmt_notification_hubs/models/check_availability_result.rb'
         | 
| 50 | 
            -
                autoload :NamespaceCreateOrUpdateParameters,                  'generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb'
         | 
| 51 | 
            -
                autoload :NamespaceResource,                                  'generated/azure_mgmt_notification_hubs/models/namespace_resource.rb'
         | 
| 52 | 
            -
                autoload :SharedAccessAuthorizationRuleCreateOrUpdateParameters, 'generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb'
         | 
| 53 | 
            -
                autoload :SharedAccessAuthorizationRuleResource,              'generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb'
         | 
| 54 | 
            -
                autoload :NotificationHubCreateOrUpdateParameters,            'generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb'
         | 
| 55 | 
            -
                autoload :NotificationHubResource,                            'generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb'
         | 
| 56 | 
            -
                autoload :PnsCredentialsResource,                             'generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb'
         | 
| 57 | 
            -
                autoload :SkuName,                                            'generated/azure_mgmt_notification_hubs/models/sku_name.rb'
         | 
| 58 | 
            -
                autoload :NamespaceType,                                      'generated/azure_mgmt_notification_hubs/models/namespace_type.rb'
         | 
| 59 | 
            -
                autoload :AccessRights,                                       'generated/azure_mgmt_notification_hubs/models/access_rights.rb'
         | 
| 60 | 
            -
              end
         | 
| 61 | 
            -
            end
         |