# encoding: utf-8 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. require 'azure_mgmt_cognitive_services' module Azure::CognitiveServices::Profiles::Latest module Mgmt Accounts = Azure::CognitiveServices::Mgmt::V2017_04_18::Accounts ResourceSkus = Azure::CognitiveServices::Mgmt::V2017_04_18::ResourceSkus Operations = Azure::CognitiveServices::Mgmt::V2017_04_18::Operations CheckSkuAvailability = Azure::CognitiveServices::Mgmt::V2017_04_18::CheckSkuAvailability module Models ErrorBody = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody Sku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku Error = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error CognitiveServicesAccountUpdateParameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountUpdateParameters OperationDisplayInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationDisplayInfo CognitiveServicesAccountListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountListResult OperationEntity = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntity RegenerateKeyParameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::RegenerateKeyParameters OperationEntityListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntityListResult CognitiveServicesAccountEnumerateSkusResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountEnumerateSkusResult CheckSkuAvailabilityParameter = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityParameter Usage = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage CheckSkuAvailabilityResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResult CognitiveServicesAccountCreateParameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountCreateParameters CheckSkuAvailabilityResultList = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResultList CognitiveServicesAccountKeys = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountKeys ResourceSkuRestrictionInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionInfo MetricName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::MetricName ResourceSkuRestrictions = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictions CognitiveServicesAccount = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount ResourceSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku UsagesResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UsagesResult ResourceSkusResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult CognitiveServicesResourceAndSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesResourceAndSku SkuTier = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier ProvisioningState = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState KeyName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName UnitType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType QuotaUsageStatus = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::QuotaUsageStatus ResourceSkuRestrictionsType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsType ResourceSkuRestrictionsReasonCode = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsReasonCode end # # CognitiveServicesManagementClass # class CognitiveServicesManagementClass attr_reader :accounts, :resource_skus, :operations, :check_sku_availability, :configurable, :base_url, :options, :model_classes def initialize(options = {}) if options.is_a?(Hash) && options.length == 0 @options = setup_default_options else @options = options end reset!(options) @configurable = self @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] @client_0 = Azure::CognitiveServices::Mgmt::V2017_04_18::CognitiveServicesManagementClient.new(configurable.credentials, base_url, options) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @accounts = @client_0.accounts @resource_skus = @client_0.resource_skus @operations = @client_0.operations @check_sku_availability = @client_0.check_sku_availability @model_classes = ModelClasses.new end def add_telemetry(client) profile_information = 'Profiles/Latest/CognitiveServices/Mgmt' client.add_user_agent_information(profile_information) end def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end end class ModelClasses def error_body Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody end def sku Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku end def error Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error end def cognitive_services_account_update_parameters Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountUpdateParameters end def operation_display_info Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationDisplayInfo end def cognitive_services_account_list_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountListResult end def operation_entity Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntity end def regenerate_key_parameters Azure::CognitiveServices::Mgmt::V2017_04_18::Models::RegenerateKeyParameters end def operation_entity_list_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntityListResult end def cognitive_services_account_enumerate_skus_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountEnumerateSkusResult end def check_sku_availability_parameter Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityParameter end def usage Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage end def check_sku_availability_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResult end def cognitive_services_account_create_parameters Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountCreateParameters end def check_sku_availability_result_list Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResultList end def cognitive_services_account_keys Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountKeys end def resource_sku_restriction_info Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionInfo end def metric_name Azure::CognitiveServices::Mgmt::V2017_04_18::Models::MetricName end def resource_sku_restrictions Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictions end def cognitive_services_account Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount end def resource_sku Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku end def usages_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UsagesResult end def resource_skus_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult end def cognitive_services_resource_and_sku Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesResourceAndSku end def sku_tier Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier end def provisioning_state Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState end def key_name Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName end def unit_type Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType end def quota_usage_status Azure::CognitiveServices::Mgmt::V2017_04_18::Models::QuotaUsageStatus end def resource_sku_restrictions_type Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsType end def resource_sku_restrictions_reason_code Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsReasonCode end end end end