зеркало из
1
0
Форкнуть 0

Merge pull request #1261 from sarangan12/MethodMissingFix

Method missing fix
This commit is contained in:
Sarangan Rajamanickam 2018-02-03 01:05:39 -08:00 коммит произвёл GitHub
Родитель 6b3015b0c5 d3518ca910
Коммит 520d4aac2a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
952 изменённых файлов: 38558 добавлений и 34438 удалений

Просмотреть файл

@ -35,12 +35,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::AnalysisServices::Mgmt::V2017_07_14::AnalysisServicesManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::AnalysisServices::Mgmt::V2017_07_14::AnalysisServicesManagementClient.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)
@servers = client_0.servers
add_telemetry(@client_0)
@servers = @client_0.servers
@model_classes = ModelClasses.new
end
@ -50,6 +50,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def analysis_services_server_update_parameters
Azure::AnalysisServices::Mgmt::V2017_07_14::Models::AnalysisServicesServerUpdateParameters

Просмотреть файл

@ -41,16 +41,16 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.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)
@classic_administrators = client_0.classic_administrators
@permissions = client_0.permissions
@provider_operations_metadata_operations = client_0.provider_operations_metadata_operations
@role_assignments = client_0.role_assignments
@role_definitions = client_0.role_definitions
add_telemetry(@client_0)
@classic_administrators = @client_0.classic_administrators
@permissions = @client_0.permissions
@provider_operations_metadata_operations = @client_0.provider_operations_metadata_operations
@role_assignments = @client_0.role_assignments
@role_definitions = @client_0.role_definitions
@model_classes = ModelClasses.new
end
@ -60,6 +60,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def provider_operations_metadata
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata

Просмотреть файл

@ -173,40 +173,40 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Automation::Mgmt::V2015_10_31::AutomationClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Automation::Mgmt::V2015_10_31::AutomationClient.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)
@automation_account_operations = client_0.automation_account_operations
@operations = client_0.operations
@statistics_operations = client_0.statistics_operations
@usages = client_0.usages
@certificate_operations = client_0.certificate_operations
@connection_operations = client_0.connection_operations
@connection_type_operations = client_0.connection_type_operations
@credential_operations = client_0.credential_operations
@dsc_compilation_job_operations = client_0.dsc_compilation_job_operations
@dsc_configuration_operations = client_0.dsc_configuration_operations
@agent_registration_information = client_0.agent_registration_information
@dsc_node_operations = client_0.dsc_node_operations
@node_reports = client_0.node_reports
@dsc_node_configuration_operations = client_0.dsc_node_configuration_operations
@hybrid_runbook_worker_group_operations = client_0.hybrid_runbook_worker_group_operations
@job_operations = client_0.job_operations
@job_stream_operations = client_0.job_stream_operations
@job_schedule_operations = client_0.job_schedule_operations
@activity_operations = client_0.activity_operations
@module_model_operations = client_0.module_model_operations
@object_data_types = client_0.object_data_types
@fields = client_0.fields
@runbook_draft_operations = client_0.runbook_draft_operations
@runbook_operations = client_0.runbook_operations
@test_job_streams = client_0.test_job_streams
@test_jobs = client_0.test_jobs
@schedule_operations = client_0.schedule_operations
@variable_operations = client_0.variable_operations
@webhook_operations = client_0.webhook_operations
add_telemetry(@client_0)
@automation_account_operations = @client_0.automation_account_operations
@operations = @client_0.operations
@statistics_operations = @client_0.statistics_operations
@usages = @client_0.usages
@certificate_operations = @client_0.certificate_operations
@connection_operations = @client_0.connection_operations
@connection_type_operations = @client_0.connection_type_operations
@credential_operations = @client_0.credential_operations
@dsc_compilation_job_operations = @client_0.dsc_compilation_job_operations
@dsc_configuration_operations = @client_0.dsc_configuration_operations
@agent_registration_information = @client_0.agent_registration_information
@dsc_node_operations = @client_0.dsc_node_operations
@node_reports = @client_0.node_reports
@dsc_node_configuration_operations = @client_0.dsc_node_configuration_operations
@hybrid_runbook_worker_group_operations = @client_0.hybrid_runbook_worker_group_operations
@job_operations = @client_0.job_operations
@job_stream_operations = @client_0.job_stream_operations
@job_schedule_operations = @client_0.job_schedule_operations
@activity_operations = @client_0.activity_operations
@module_model_operations = @client_0.module_model_operations
@object_data_types = @client_0.object_data_types
@fields = @client_0.fields
@runbook_draft_operations = @client_0.runbook_draft_operations
@runbook_operations = @client_0.runbook_operations
@test_job_streams = @client_0.test_job_streams
@test_jobs = @client_0.test_jobs
@schedule_operations = @client_0.schedule_operations
@variable_operations = @client_0.variable_operations
@webhook_operations = @client_0.webhook_operations
@model_classes = ModelClasses.new
end
@ -216,6 +216,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def dsc_compilation_job
Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob

Просмотреть файл

@ -49,16 +49,16 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Batch::Mgmt::V2017_05_01::BatchManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Batch::Mgmt::V2017_05_01::BatchManagementClient.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)
@batch_account_operations = client_0.batch_account_operations
@application_package_operations = client_0.application_package_operations
@application_operations = client_0.application_operations
@location = client_0.location
@operations = client_0.operations
add_telemetry(@client_0)
@batch_account_operations = @client_0.batch_account_operations
@application_package_operations = @client_0.application_package_operations
@application_operations = @client_0.application_operations
@location = @client_0.location
@operations = @client_0.operations
@model_classes = ModelClasses.new
end
@ -68,6 +68,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def application_package
Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationPackage

Просмотреть файл

@ -31,14 +31,14 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Billing::Mgmt::V2017_04_24_preview::BillingManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Billing::Mgmt::V2017_04_24_preview::BillingManagementClient.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)
@billing_periods = client_0.billing_periods
@invoices = client_0.invoices
@operations = client_0.operations
add_telemetry(@client_0)
@billing_periods = @client_0.billing_periods
@invoices = @client_0.invoices
@operations = @client_0.operations
@model_classes = ModelClasses.new
end
@ -48,6 +48,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def resource
Azure::Billing::Mgmt::V2017_04_24_preview::Models::Resource

Просмотреть файл

@ -71,18 +71,18 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CDN::Mgmt::V2017_04_02::CdnManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CDN::Mgmt::V2017_04_02::CdnManagementClient.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)
@profiles = client_0.profiles
@endpoints = client_0.endpoints
@origins = client_0.origins
@custom_domains = client_0.custom_domains
@resource_usage_operations = client_0.resource_usage_operations
@operations = client_0.operations
@edge_nodes = client_0.edge_nodes
add_telemetry(@client_0)
@profiles = @client_0.profiles
@endpoints = @client_0.endpoints
@origins = @client_0.origins
@custom_domains = @client_0.custom_domains
@resource_usage_operations = @client_0.resource_usage_operations
@operations = @client_0.operations
@edge_nodes = @client_0.edge_nodes
@model_classes = ModelClasses.new
end
@ -92,6 +92,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def custom_domain_list_result
Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomainListResult

Просмотреть файл

@ -42,14 +42,14 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, 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
@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
@operations = client_0.operations
@check_sku_availability = client_0.check_sku_availability
add_telemetry(@client_0)
@accounts = @client_0.accounts
@operations = @client_0.operations
@check_sku_availability = @client_0.check_sku_availability
@model_classes = ModelClasses.new
end
@ -59,6 +59,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def cognitive_services_account_enumerate_skus_result
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountEnumerateSkusResult

Просмотреть файл

@ -31,13 +31,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageManagementClient.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)
@usage_aggregates = client_0.usage_aggregates
@rate_card = client_0.rate_card
add_telemetry(@client_0)
@usage_aggregates = @client_0.usage_aggregates
@rate_card = @client_0.rate_card
@model_classes = ModelClasses.new
end
@ -47,6 +47,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def meter_info
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo

Просмотреть файл

@ -202,39 +202,39 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Compute::Mgmt::V2017_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Compute::Mgmt::V2017_03_30::ComputeManagementClient.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)
@disks = client_0.disks
@snapshots = client_0.snapshots
@virtual_machine_run_commands = client_0.virtual_machine_run_commands
add_telemetry(@client_0)
@disks = @client_0.disks
@snapshots = @client_0.snapshots
@virtual_machine_run_commands = @client_0.virtual_machine_run_commands
client_1 = Azure::Compute::Mgmt::V2017_09_01::ComputeManagementClient.new(configurable.credentials, base_url, options)
if(client_1.respond_to?(:subscription_id))
client_1.subscription_id = configurable.subscription_id
@client_1 = Azure::Compute::Mgmt::V2017_09_01::ComputeManagementClient.new(configurable.credentials, base_url, options)
if(@client_1.respond_to?(:subscription_id))
@client_1.subscription_id = configurable.subscription_id
end
add_telemetry(client_1)
@resource_skus = client_1.resource_skus
add_telemetry(@client_1)
@resource_skus = @client_1.resource_skus
client_2 = Azure::Compute::Mgmt::V2017_12_01::ComputeManagementClient.new(configurable.credentials, base_url, options)
if(client_2.respond_to?(:subscription_id))
client_2.subscription_id = configurable.subscription_id
@client_2 = Azure::Compute::Mgmt::V2017_12_01::ComputeManagementClient.new(configurable.credentials, base_url, options)
if(@client_2.respond_to?(:subscription_id))
@client_2.subscription_id = configurable.subscription_id
end
add_telemetry(client_2)
@availability_sets = client_2.availability_sets
@virtual_machine_extension_images = client_2.virtual_machine_extension_images
@virtual_machine_extensions = client_2.virtual_machine_extensions
@virtual_machine_images = client_2.virtual_machine_images
@usage_operations = client_2.usage_operations
@virtual_machine_sizes = client_2.virtual_machine_sizes
@images = client_2.images
@virtual_machines = client_2.virtual_machines
@virtual_machine_scale_sets = client_2.virtual_machine_scale_sets
@virtual_machine_scale_set_extensions = client_2.virtual_machine_scale_set_extensions
@virtual_machine_scale_set_rolling_upgrades = client_2.virtual_machine_scale_set_rolling_upgrades
@virtual_machine_scale_set_vms = client_2.virtual_machine_scale_set_vms
add_telemetry(@client_2)
@availability_sets = @client_2.availability_sets
@virtual_machine_extension_images = @client_2.virtual_machine_extension_images
@virtual_machine_extensions = @client_2.virtual_machine_extensions
@virtual_machine_images = @client_2.virtual_machine_images
@usage_operations = @client_2.usage_operations
@virtual_machine_sizes = @client_2.virtual_machine_sizes
@images = @client_2.images
@virtual_machines = @client_2.virtual_machines
@virtual_machine_scale_sets = @client_2.virtual_machine_scale_sets
@virtual_machine_scale_set_extensions = @client_2.virtual_machine_scale_set_extensions
@virtual_machine_scale_set_rolling_upgrades = @client_2.virtual_machine_scale_set_rolling_upgrades
@virtual_machine_scale_set_vms = @client_2.virtual_machine_scale_set_vms
@model_classes = ModelClasses.new
end
@ -244,6 +244,18 @@ module Azure::Profiles::Latest
client.add_user_agent_information(profile_information)
end
def method_missing(method, *args)
if @client_2.respond_to?method
@client_2.send(method, *args)
elsif @client_1.respond_to?method
@client_1.send(method, *args)
elsif @client_0.respond_to?method
@client_0.send(method, *args)
else
super
end
end
class ModelClasses
def run_command_input
Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandInput

Просмотреть файл

@ -52,11 +52,11 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::ComputerVision::V1_0::ComputerVisionClient.new(configurable.credentials, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::ComputerVision::V1_0::ComputerVisionClient.new(configurable.credentials, options)
if(@client_0.respond_to?(:subscription_id))
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)
add_telemetry(@client_0)
@model_classes = ModelClasses.new
end
@ -66,6 +66,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def image_description_details
Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageDescriptionDetails

Просмотреть файл

@ -28,13 +28,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Consumption::Mgmt::V2017_04_24_preview::ConsumptionManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Consumption::Mgmt::V2017_04_24_preview::ConsumptionManagementClient.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)
@usage_details = client_0.usage_details
@operations = client_0.operations
add_telemetry(@client_0)
@usage_details = @client_0.usage_details
@operations = @client_0.operations
@model_classes = ModelClasses.new
end
@ -44,6 +44,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def error_response
Azure::Consumption::Mgmt::V2017_04_24_preview::Models::ErrorResponse

Просмотреть файл

@ -41,13 +41,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::ContainerInstance::Mgmt::V2017_08_01_preview::ContainerInstanceManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::ContainerInstance::Mgmt::V2017_08_01_preview::ContainerInstanceManagementClient.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)
@container_groups = client_0.container_groups
@container_logs = client_0.container_logs
add_telemetry(@client_0)
@container_groups = @client_0.container_groups
@container_logs = @client_0.container_logs
@model_classes = ModelClasses.new
end
@ -57,6 +57,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def container
Azure::ContainerInstance::Mgmt::V2017_08_01_preview::Models::Container

Просмотреть файл

@ -63,15 +63,15 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::ContainerRegistry::Mgmt::V2017_10_01::ContainerRegistryManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::ContainerRegistry::Mgmt::V2017_10_01::ContainerRegistryManagementClient.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)
@registries = client_0.registries
@operations = client_0.operations
@replications = client_0.replications
@webhooks = client_0.webhooks
add_telemetry(@client_0)
@registries = @client_0.registries
@operations = @client_0.operations
@replications = @client_0.replications
@webhooks = @client_0.webhooks
@model_classes = ModelClasses.new
end
@ -81,6 +81,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def replication_update_parameters
Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationUpdateParameters

Просмотреть файл

@ -34,12 +34,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::ContainerService::Mgmt::V2017_01_31::ComputeManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::ContainerService::Mgmt::V2017_01_31::ComputeManagementClient.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)
@container_services = client_0.container_services
add_telemetry(@client_0)
@container_services = @client_0.container_services
@model_classes = ModelClasses.new
end
@ -49,6 +49,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def container_service_ssh_public_key
Azure::ContainerService::Mgmt::V2017_01_31::Models::ContainerServiceSshPublicKey

Просмотреть файл

@ -81,18 +81,18 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::ContentModerator::V1_0::ContentModeratorClient.new(configurable.credentials, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::ContentModerator::V1_0::ContentModeratorClient.new(configurable.credentials, options)
if(@client_0.respond_to?(:subscription_id))
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)
@image_moderation = client_0.image_moderation
@text_moderation = client_0.text_moderation
@list_management_image_lists = client_0.list_management_image_lists
@list_management_term_lists = client_0.list_management_term_lists
@list_management_image = client_0.list_management_image
@list_management_term = client_0.list_management_term
@reviews = client_0.reviews
add_telemetry(@client_0)
@image_moderation = @client_0.image_moderation
@text_moderation = @client_0.text_moderation
@list_management_image_lists = @client_0.list_management_image_lists
@list_management_term_lists = @client_0.list_management_term_lists
@list_management_image = @client_0.list_management_image
@list_management_term = @client_0.list_management_term
@reviews = @client_0.reviews
@model_classes = ModelClasses.new
end
@ -102,6 +102,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def image
Azure::CognitiveServices::ContentModerator::V1_0::Models::Image

Просмотреть файл

@ -138,28 +138,28 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CustomerInsights::Mgmt::V2017_04_26::CustomerInsightsManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CustomerInsights::Mgmt::V2017_04_26::CustomerInsightsManagementClient.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)
@operations = client_0.operations
@hubs = client_0.hubs
@profiles = client_0.profiles
@interactions = client_0.interactions
@relationships = client_0.relationships
@relationship_links = client_0.relationship_links
@authorization_policies = client_0.authorization_policies
@connectors = client_0.connectors
@connector_mappings = client_0.connector_mappings
@kpi = client_0.kpi
@widget_types = client_0.widget_types
@views = client_0.views
@links = client_0.links
@roles = client_0.roles
@role_assignments = client_0.role_assignments
@images = client_0.images
@predictions = client_0.predictions
add_telemetry(@client_0)
@operations = @client_0.operations
@hubs = @client_0.hubs
@profiles = @client_0.profiles
@interactions = @client_0.interactions
@relationships = @client_0.relationships
@relationship_links = @client_0.relationship_links
@authorization_policies = @client_0.authorization_policies
@connectors = @client_0.connectors
@connector_mappings = @client_0.connector_mappings
@kpi = @client_0.kpi
@widget_types = @client_0.widget_types
@views = @client_0.views
@links = @client_0.links
@roles = @client_0.roles
@role_assignments = @client_0.role_assignments
@images = @client_0.images
@predictions = @client_0.predictions
@model_classes = ModelClasses.new
end
@ -169,6 +169,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def kpi_list_result
Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiListResult

Просмотреть файл

@ -36,12 +36,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::CustomSearch::V1_0::CustomSearchClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::CustomSearch::V1_0::CustomSearchClient.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)
@custom_instance = client_0.custom_instance
add_telemetry(@client_0)
@custom_instance = @client_0.custom_instance
@model_classes = ModelClasses.new
end
@ -51,6 +51,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def response_base
Azure::CognitiveServices::CustomSearch::V1_0::Models::ResponseBase

Просмотреть файл

@ -54,16 +54,16 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeAnalyticsAccountManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeAnalyticsAccountManagementClient.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)
@compute_policies = client_0.compute_policies
@firewall_rules = client_0.firewall_rules
@storage_accounts = client_0.storage_accounts
@data_lake_store_accounts = client_0.data_lake_store_accounts
@account = client_0.account
add_telemetry(@client_0)
@compute_policies = @client_0.compute_policies
@firewall_rules = @client_0.firewall_rules
@storage_accounts = @client_0.storage_accounts
@data_lake_store_accounts = @client_0.data_lake_store_accounts
@account = @client_0.account
@model_classes = ModelClasses.new
end
@ -73,6 +73,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def update_storage_account_parameters
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters

Просмотреть файл

@ -47,14 +47,14 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::DataLakeStore::Mgmt::V2016_11_01::DataLakeStoreAccountManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::DataLakeStore::Mgmt::V2016_11_01::DataLakeStoreAccountManagementClient.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)
@firewall_rules = client_0.firewall_rules
@trusted_id_providers = client_0.trusted_id_providers
@account = client_0.account
add_telemetry(@client_0)
@firewall_rules = @client_0.firewall_rules
@trusted_id_providers = @client_0.trusted_id_providers
@account = @client_0.account
@model_classes = ModelClasses.new
end
@ -64,6 +64,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def update_key_vault_meta_info
Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateKeyVaultMetaInfo

Просмотреть файл

@ -188,32 +188,32 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::DevTestLabs::Mgmt::V2016_05_15::DevTestLabsClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::DevTestLabs::Mgmt::V2016_05_15::DevTestLabsClient.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)
@labs = client_0.labs
@global_schedules = client_0.global_schedules
@artifact_sources = client_0.artifact_sources
@arm_templates = client_0.arm_templates
@artifacts = client_0.artifacts
@costs = client_0.costs
@custom_images = client_0.custom_images
@formulas = client_0.formulas
@gallery_images = client_0.gallery_images
@notification_channels = client_0.notification_channels
@policy_sets = client_0.policy_sets
@policies = client_0.policies
@schedules = client_0.schedules
@service_runners = client_0.service_runners
@users = client_0.users
@disks = client_0.disks
@environments = client_0.environments
@secrets = client_0.secrets
@virtual_machines = client_0.virtual_machines
@virtual_machine_schedules = client_0.virtual_machine_schedules
@virtual_networks = client_0.virtual_networks
add_telemetry(@client_0)
@labs = @client_0.labs
@global_schedules = @client_0.global_schedules
@artifact_sources = @client_0.artifact_sources
@arm_templates = @client_0.arm_templates
@artifacts = @client_0.artifacts
@costs = @client_0.costs
@custom_images = @client_0.custom_images
@formulas = @client_0.formulas
@gallery_images = @client_0.gallery_images
@notification_channels = @client_0.notification_channels
@policy_sets = @client_0.policy_sets
@policies = @client_0.policies
@schedules = @client_0.schedules
@service_runners = @client_0.service_runners
@users = @client_0.users
@disks = @client_0.disks
@environments = @client_0.environments
@secrets = @client_0.secrets
@virtual_machines = @client_0.virtual_machines
@virtual_machine_schedules = @client_0.virtual_machine_schedules
@virtual_networks = @client_0.virtual_networks
@model_classes = ModelClasses.new
end
@ -223,6 +223,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def formula_properties_from_vm
Azure::DevTestLabs::Mgmt::V2016_05_15::Models::FormulaPropertiesFromVm

Просмотреть файл

@ -38,13 +38,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.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)
@record_sets = client_0.record_sets
@zones = client_0.zones
add_telemetry(@client_0)
@record_sets = @client_0.record_sets
@zones = @client_0.zones
@model_classes = ModelClasses.new
end
@ -54,6 +54,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def record_set
Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet

Просмотреть файл

@ -63,12 +63,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::EntitySearch::V1_0::EntitySearchClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::EntitySearch::V1_0::EntitySearchClient.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)
@entities_operations = client_0.entities_operations
add_telemetry(@client_0)
@entities_operations = @client_0.entities_operations
@model_classes = ModelClasses.new
end
@ -78,6 +78,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def response_base
Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase

Просмотреть файл

@ -26,11 +26,11 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::EventGrid::V2018_01_01::EventGridClient.new(configurable.credentials, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::EventGrid::V2018_01_01::EventGridClient.new(configurable.credentials, options)
if(@client_0.respond_to?(:subscription_id))
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)
add_telemetry(@client_0)
@model_classes = ModelClasses.new
end
@ -40,6 +40,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def resource_write_cancel_data
Azure::EventGrid::V2018_01_01::Models::ResourceWriteCancelData

Просмотреть файл

@ -54,16 +54,16 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.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)
@operations = client_0.operations
@namespaces = client_0.namespaces
@disaster_recovery_configs = client_0.disaster_recovery_configs
@event_hubs = client_0.event_hubs
@consumer_groups = client_0.consumer_groups
add_telemetry(@client_0)
@operations = @client_0.operations
@namespaces = @client_0.namespaces
@disaster_recovery_configs = @client_0.disaster_recovery_configs
@event_hubs = @client_0.event_hubs
@consumer_groups = @client_0.consumer_groups
@model_classes = ModelClasses.new
end
@ -73,6 +73,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def capture_description
Azure::EventHub::Mgmt::V2017_04_01::Models::CaptureDescription

Просмотреть файл

@ -69,15 +69,15 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::Face::V1_0::FaceClient.new(configurable.credentials, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::Face::V1_0::FaceClient.new(configurable.credentials, options)
if(@client_0.respond_to?(:subscription_id))
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)
@face = client_0.face
@person = client_0.person
@person_group = client_0.person_group
@face_list = client_0.face_list
add_telemetry(@client_0)
@face = @client_0.face
@person = @client_0.person
@person_group = @client_0.person_group
@face_list = @client_0.face_list
@model_classes = ModelClasses.new
end
@ -87,6 +87,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def similar_face_result
Azure::CognitiveServices::Face::V1_0::Models::SimilarFaceResult

Просмотреть файл

@ -21,12 +21,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.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)
@features = client_0.features
add_telemetry(@client_0)
@features = @client_0.features
@model_classes = ModelClasses.new
end
@ -36,6 +36,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def feature_result
Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult

Просмотреть файл

@ -61,17 +61,17 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::GraphRbac::V1_6::GraphRbacClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::GraphRbac::V1_6::GraphRbacClient.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)
@objects = client_0.objects
@applications = client_0.applications
@groups = client_0.groups
@service_principals = client_0.service_principals
@users = client_0.users
@domains = client_0.domains
add_telemetry(@client_0)
@objects = @client_0.objects
@applications = @client_0.applications
@groups = @client_0.groups
@service_principals = @client_0.service_principals
@users = @client_0.users
@domains = @client_0.domains
@model_classes = ModelClasses.new
end
@ -81,6 +81,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def group_get_member_groups_parameters
Azure::GraphRbac::V1_6::Models::GroupGetMemberGroupsParameters

Просмотреть файл

@ -75,12 +75,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::ImageSearch::V1_0::ImageSearchClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::ImageSearch::V1_0::ImageSearchClient.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)
@images_operations = client_0.images_operations
add_telemetry(@client_0)
@images_operations = @client_0.images_operations
@model_classes = ModelClasses.new
end
@ -90,6 +90,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def related_searches_module
Azure::CognitiveServices::ImageSearch::V1_0::Models::RelatedSearchesModule

Просмотреть файл

@ -78,14 +78,14 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::IotHub::Mgmt::V2017_07_01::IotHubClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::IotHub::Mgmt::V2017_07_01::IotHubClient.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)
@operations = client_0.operations
@iot_hub_resource = client_0.iot_hub_resource
@certificates = client_0.certificates
add_telemetry(@client_0)
@operations = @client_0.operations
@iot_hub_resource = @client_0.iot_hub_resource
@certificates = @client_0.certificates
@model_classes = ModelClasses.new
end
@ -95,6 +95,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def iot_hub_properties
Azure::IotHub::Mgmt::V2017_07_01::Models::IotHubProperties

Просмотреть файл

@ -36,12 +36,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::KeyVault::Mgmt::V2016_10_01::KeyVaultManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::KeyVault::Mgmt::V2016_10_01::KeyVaultManagementClient.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)
@vaults = client_0.vaults
add_telemetry(@client_0)
@vaults = @client_0.vaults
@model_classes = ModelClasses.new
end
@ -51,6 +51,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def vault_create_or_update_parameters
Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCreateOrUpdateParameters

Просмотреть файл

@ -23,12 +23,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.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)
@resource_links = client_0.resource_links
add_telemetry(@client_0)
@resource_links = @client_0.resource_links
@model_classes = ModelClasses.new
end
@ -38,6 +38,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def resource_link
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink

Просмотреть файл

@ -22,12 +22,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Locks::Mgmt::V2016_09_01::ManagementLockClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Locks::Mgmt::V2016_09_01::ManagementLockClient.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)
@management_locks = client_0.management_locks
add_telemetry(@client_0)
@management_locks = @client_0.management_locks
@model_classes = ModelClasses.new
end
@ -37,6 +37,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def management_lock_object
Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject

Просмотреть файл

@ -165,24 +165,24 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Logic::Mgmt::V2016_06_01::LogicManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Logic::Mgmt::V2016_06_01::LogicManagementClient.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)
@workflows = client_0.workflows
@workflow_versions = client_0.workflow_versions
@workflow_triggers = client_0.workflow_triggers
@workflow_trigger_histories = client_0.workflow_trigger_histories
@workflow_runs = client_0.workflow_runs
@workflow_run_actions = client_0.workflow_run_actions
@integration_accounts = client_0.integration_accounts
@schemas = client_0.schemas
@maps = client_0.maps
@partners = client_0.partners
@agreements = client_0.agreements
@certificates = client_0.certificates
@sessions = client_0.sessions
add_telemetry(@client_0)
@workflows = @client_0.workflows
@workflow_versions = @client_0.workflow_versions
@workflow_triggers = @client_0.workflow_triggers
@workflow_trigger_histories = @client_0.workflow_trigger_histories
@workflow_runs = @client_0.workflow_runs
@workflow_run_actions = @client_0.workflow_run_actions
@integration_accounts = @client_0.integration_accounts
@schemas = @client_0.schemas
@maps = @client_0.maps
@partners = @client_0.partners
@agreements = @client_0.agreements
@certificates = @client_0.certificates
@sessions = @client_0.sessions
@model_classes = ModelClasses.new
end
@ -192,6 +192,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def integration_account_partner_filter
Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountPartnerFilter

Просмотреть файл

@ -55,12 +55,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::MachineLearning::Mgmt::V2017_01_01::AzureMLWebServicesManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::MachineLearning::Mgmt::V2017_01_01::AzureMLWebServicesManagementClient.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)
@web_services = client_0.web_services
add_telemetry(@client_0)
@web_services = @client_0.web_services
@model_classes = ModelClasses.new
end
@ -70,6 +70,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def mode_value_info
Azure::MachineLearning::Mgmt::V2017_01_01::Models::ModeValueInfo

Просмотреть файл

@ -37,13 +37,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::ManagedApplicationClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::ManagedApplicationClient.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)
@appliances = client_0.appliances
@appliance_definitions = client_0.appliance_definitions
add_telemetry(@client_0)
@appliances = @client_0.appliances
@appliance_definitions = @client_0.appliance_definitions
@model_classes = ModelClasses.new
end
@ -53,6 +53,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def sku
Azure::ManagedApplications::Mgmt::V2016_09_01_preview::Models::Sku

Просмотреть файл

@ -25,13 +25,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::ManagedServiceIdentityClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::ManagedServiceIdentityClient.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)
@operations = client_0.operations
@user_assigned_identities = client_0.user_assigned_identities
add_telemetry(@client_0)
@operations = @client_0.operations
@user_assigned_identities = @client_0.user_assigned_identities
@model_classes = ModelClasses.new
end
@ -41,6 +41,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def identity
Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity

Просмотреть файл

@ -26,13 +26,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceOrderingAgreements.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceOrderingAgreements.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)
@marketplace_agreements = client_0.marketplace_agreements
@operations = client_0.operations
add_telemetry(@client_0)
@marketplace_agreements = @client_0.marketplace_agreements
@operations = @client_0.operations
@model_classes = ModelClasses.new
end
@ -42,6 +42,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def operation_display
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay

Просмотреть файл

@ -37,13 +37,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::MediaServices::Mgmt::V2015_10_01::MediaServicesManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::MediaServices::Mgmt::V2015_10_01::MediaServicesManagementClient.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)
@operations = client_0.operations
@media_service_operations = client_0.media_service_operations
add_telemetry(@client_0)
@operations = @client_0.operations
@media_service_operations = @client_0.media_service_operations
@model_classes = ModelClasses.new
end
@ -53,6 +53,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def regenerate_key_input
Azure::MediaServices::Mgmt::V2015_10_01::Models::RegenerateKeyInput

Просмотреть файл

@ -113,18 +113,18 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::MobileEngagement::Mgmt::V2014_12_01::EngagementManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::MobileEngagement::Mgmt::V2014_12_01::EngagementManagementClient.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)
@app_collections = client_0.app_collections
@apps = client_0.apps
@supported_platforms = client_0.supported_platforms
@campaigns = client_0.campaigns
@devices = client_0.devices
@export_tasks = client_0.export_tasks
@import_tasks = client_0.import_tasks
add_telemetry(@client_0)
@app_collections = @client_0.app_collections
@apps = @client_0.apps
@supported_platforms = @client_0.supported_platforms
@campaigns = @client_0.campaigns
@devices = @client_0.devices
@export_tasks = @client_0.export_tasks
@import_tasks = @client_0.import_tasks
@model_classes = ModelClasses.new
end
@ -134,6 +134,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def campaign_state
Azure::MobileEngagement::Mgmt::V2014_12_01::Models::CampaignState

Просмотреть файл

@ -96,38 +96,38 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.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)
@autoscale_settings = client_0.autoscale_settings
@operations = client_0.operations
add_telemetry(@client_0)
@autoscale_settings = @client_0.autoscale_settings
@operations = @client_0.operations
client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
if(client_1.respond_to?(:subscription_id))
client_1.subscription_id = configurable.subscription_id
@client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
if(@client_1.respond_to?(:subscription_id))
@client_1.subscription_id = configurable.subscription_id
end
add_telemetry(client_1)
@alert_rule_incidents = client_1.alert_rule_incidents
@alert_rules = client_1.alert_rules
@log_profiles = client_1.log_profiles
add_telemetry(@client_1)
@alert_rule_incidents = @client_1.alert_rule_incidents
@alert_rules = @client_1.alert_rules
@log_profiles = @client_1.log_profiles
client_2 = Azure::Monitor::Mgmt::V2017_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
if(client_2.respond_to?(:subscription_id))
client_2.subscription_id = configurable.subscription_id
@client_2 = Azure::Monitor::Mgmt::V2017_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
if(@client_2.respond_to?(:subscription_id))
@client_2.subscription_id = configurable.subscription_id
end
add_telemetry(client_2)
@action_groups = client_2.action_groups
@activity_log_alerts = client_2.activity_log_alerts
add_telemetry(@client_2)
@action_groups = @client_2.action_groups
@activity_log_alerts = @client_2.activity_log_alerts
client_3 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorClient.new(configurable.credentials, base_url, options)
if(client_3.respond_to?(:subscription_id))
client_3.subscription_id = configurable.subscription_id
@client_3 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorClient.new(configurable.credentials, base_url, options)
if(@client_3.respond_to?(:subscription_id))
@client_3.subscription_id = configurable.subscription_id
end
add_telemetry(client_3)
@diagnostic_settings_category_operations = client_3.diagnostic_settings_category_operations
@diagnostic_settings_operations = client_3.diagnostic_settings_operations
add_telemetry(@client_3)
@diagnostic_settings_category_operations = @client_3.diagnostic_settings_category_operations
@diagnostic_settings_operations = @client_3.diagnostic_settings_operations
@model_classes = ModelClasses.new
end
@ -137,6 +137,20 @@ module Azure::Profiles::Latest
client.add_user_agent_information(profile_information)
end
def method_missing(method, *args)
if @client_3.respond_to?method
@client_3.send(method, *args)
elsif @client_2.respond_to?method
@client_2.send(method, *args)
elsif @client_1.respond_to?method
@client_1.send(method, *args)
elsif @client_0.respond_to?method
@client_0.send(method, *args)
else
super
end
end
class ModelClasses
def email_notification
Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification

Просмотреть файл

@ -318,46 +318,46 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Network::Mgmt::V2017_09_01::NetworkManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Network::Mgmt::V2017_09_01::NetworkManagementClient.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)
@application_gateways = client_0.application_gateways
@application_security_groups = client_0.application_security_groups
@available_endpoint_services = client_0.available_endpoint_services
@express_route_circuit_authorizations = client_0.express_route_circuit_authorizations
@express_route_circuit_peerings = client_0.express_route_circuit_peerings
@express_route_circuits = client_0.express_route_circuits
@express_route_service_providers = client_0.express_route_service_providers
@load_balancers = client_0.load_balancers
@load_balancer_backend_address_pools = client_0.load_balancer_backend_address_pools
@load_balancer_frontend_ipconfigurations = client_0.load_balancer_frontend_ipconfigurations
@inbound_nat_rules = client_0.inbound_nat_rules
@load_balancer_load_balancing_rules = client_0.load_balancer_load_balancing_rules
@load_balancer_network_interfaces = client_0.load_balancer_network_interfaces
@load_balancer_probes = client_0.load_balancer_probes
@network_interfaces = client_0.network_interfaces
@network_interface_ipconfigurations = client_0.network_interface_ipconfigurations
@network_interface_load_balancers = client_0.network_interface_load_balancers
@network_security_groups = client_0.network_security_groups
@security_rules = client_0.security_rules
@default_security_rules = client_0.default_security_rules
@network_watchers = client_0.network_watchers
@packet_captures = client_0.packet_captures
@public_ipaddresses = client_0.public_ipaddresses
@route_filters = client_0.route_filters
@route_filter_rules = client_0.route_filter_rules
@bgp_service_communities = client_0.bgp_service_communities
@route_tables = client_0.route_tables
@routes = client_0.routes
@usages = client_0.usages
@virtual_networks = client_0.virtual_networks
@subnets = client_0.subnets
@virtual_network_peerings = client_0.virtual_network_peerings
@virtual_network_gateways = client_0.virtual_network_gateways
@virtual_network_gateway_connections = client_0.virtual_network_gateway_connections
@local_network_gateways = client_0.local_network_gateways
add_telemetry(@client_0)
@application_gateways = @client_0.application_gateways
@application_security_groups = @client_0.application_security_groups
@available_endpoint_services = @client_0.available_endpoint_services
@express_route_circuit_authorizations = @client_0.express_route_circuit_authorizations
@express_route_circuit_peerings = @client_0.express_route_circuit_peerings
@express_route_circuits = @client_0.express_route_circuits
@express_route_service_providers = @client_0.express_route_service_providers
@load_balancers = @client_0.load_balancers
@load_balancer_backend_address_pools = @client_0.load_balancer_backend_address_pools
@load_balancer_frontend_ipconfigurations = @client_0.load_balancer_frontend_ipconfigurations
@inbound_nat_rules = @client_0.inbound_nat_rules
@load_balancer_load_balancing_rules = @client_0.load_balancer_load_balancing_rules
@load_balancer_network_interfaces = @client_0.load_balancer_network_interfaces
@load_balancer_probes = @client_0.load_balancer_probes
@network_interfaces = @client_0.network_interfaces
@network_interface_ipconfigurations = @client_0.network_interface_ipconfigurations
@network_interface_load_balancers = @client_0.network_interface_load_balancers
@network_security_groups = @client_0.network_security_groups
@security_rules = @client_0.security_rules
@default_security_rules = @client_0.default_security_rules
@network_watchers = @client_0.network_watchers
@packet_captures = @client_0.packet_captures
@public_ipaddresses = @client_0.public_ipaddresses
@route_filters = @client_0.route_filters
@route_filter_rules = @client_0.route_filter_rules
@bgp_service_communities = @client_0.bgp_service_communities
@route_tables = @client_0.route_tables
@routes = @client_0.routes
@usages = @client_0.usages
@virtual_networks = @client_0.virtual_networks
@subnets = @client_0.subnets
@virtual_network_peerings = @client_0.virtual_network_peerings
@virtual_network_gateways = @client_0.virtual_network_gateways
@virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections
@local_network_gateways = @client_0.local_network_gateways
@model_classes = ModelClasses.new
end
@ -367,6 +367,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def effective_network_security_group_list_result
Azure::Network::Mgmt::V2017_09_01::Models::EffectiveNetworkSecurityGroupListResult

Просмотреть файл

@ -41,12 +41,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::NewsSearch::V1_0::NewsSearchClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::NewsSearch::V1_0::NewsSearchClient.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)
@news_operations = client_0.news_operations
add_telemetry(@client_0)
@news_operations = @client_0.news_operations
@model_classes = ModelClasses.new
end
@ -56,6 +56,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def response_base
Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase

Просмотреть файл

@ -51,15 +51,15 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubsManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubsManagementClient.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)
@namespaces = client_0.namespaces
@name = client_0.name
@notification_hubs = client_0.notification_hubs
@hubs = client_0.hubs
add_telemetry(@client_0)
@namespaces = @client_0.namespaces
@name = @client_0.name
@notification_hubs = @client_0.notification_hubs
@hubs = @client_0.hubs
@model_classes = ModelClasses.new
end
@ -69,6 +69,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def resource_list_keys
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys

Просмотреть файл

@ -62,22 +62,22 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::OperationalInsights::Mgmt::V2015_03_20::OperationalInsightsManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::OperationalInsights::Mgmt::V2015_03_20::OperationalInsightsManagementClient.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)
@storage_insights = client_0.storage_insights
@saved_searches = client_0.saved_searches
add_telemetry(@client_0)
@storage_insights = @client_0.storage_insights
@saved_searches = @client_0.saved_searches
client_1 = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::AzureLogAnalytics.new(configurable.credentials, base_url, options)
if(client_1.respond_to?(:subscription_id))
client_1.subscription_id = configurable.subscription_id
@client_1 = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::AzureLogAnalytics.new(configurable.credentials, base_url, options)
if(@client_1.respond_to?(:subscription_id))
@client_1.subscription_id = configurable.subscription_id
end
add_telemetry(client_1)
@linked_services = client_1.linked_services
@data_sources = client_1.data_sources
@workspaces = client_1.workspaces
add_telemetry(@client_1)
@linked_services = @client_1.linked_services
@data_sources = @client_1.data_sources
@workspaces = @client_1.workspaces
@model_classes = ModelClasses.new
end
@ -87,6 +87,16 @@ module Azure::Profiles::Latest
client.add_user_agent_information(profile_information)
end
def method_missing(method, *args)
if @client_1.respond_to?method
@client_1.send(method, *args)
elsif @client_0.respond_to?method
@client_0.send(method, *args)
else
super
end
end
class ModelClasses
def search_schema_value
Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSchemaValue

Просмотреть файл

@ -31,20 +31,20 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Policy::Mgmt::V2016_12_01::PolicyClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Policy::Mgmt::V2016_12_01::PolicyClient.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)
@policy_definitions = client_0.policy_definitions
add_telemetry(@client_0)
@policy_definitions = @client_0.policy_definitions
client_1 = Azure::Policy::Mgmt::V2017_06_01_preview::PolicyClient.new(configurable.credentials, base_url, options)
if(client_1.respond_to?(:subscription_id))
client_1.subscription_id = configurable.subscription_id
@client_1 = Azure::Policy::Mgmt::V2017_06_01_preview::PolicyClient.new(configurable.credentials, base_url, options)
if(@client_1.respond_to?(:subscription_id))
@client_1.subscription_id = configurable.subscription_id
end
add_telemetry(client_1)
@policy_assignments = client_1.policy_assignments
@policy_set_definitions = client_1.policy_set_definitions
add_telemetry(@client_1)
@policy_assignments = @client_1.policy_assignments
@policy_set_definitions = @client_1.policy_set_definitions
@model_classes = ModelClasses.new
end
@ -54,6 +54,16 @@ module Azure::Profiles::Latest
client.add_user_agent_information(profile_information)
end
def method_missing(method, *args)
if @client_1.respond_to?method
@client_1.send(method, *args)
elsif @client_0.respond_to?method
@client_0.send(method, *args)
else
super
end
end
class ModelClasses
def policy_definition
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinition

Просмотреть файл

@ -38,13 +38,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::PowerBIEmbeddedManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::PowerBIEmbeddedManagementClient.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)
@workspace_collections = client_0.workspace_collections
@workspaces = client_0.workspaces
add_telemetry(@client_0)
@workspace_collections = @client_0.workspace_collections
@workspaces = @client_0.workspaces
@model_classes = ModelClasses.new
end
@ -54,6 +54,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def operation
Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Operation

Просмотреть файл

@ -64,26 +64,26 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::RecoveryServices::Mgmt::V2016_06_01::RecoveryServicesClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::RecoveryServices::Mgmt::V2016_06_01::RecoveryServicesClient.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)
@vault_certificates = client_0.vault_certificates
@registered_identities = client_0.registered_identities
@replication_usages = client_0.replication_usages
@vaults = client_0.vaults
@operations = client_0.operations
@vault_extended_info_operations = client_0.vault_extended_info_operations
@usages = client_0.usages
add_telemetry(@client_0)
@vault_certificates = @client_0.vault_certificates
@registered_identities = @client_0.registered_identities
@replication_usages = @client_0.replication_usages
@vaults = @client_0.vaults
@operations = @client_0.operations
@vault_extended_info_operations = @client_0.vault_extended_info_operations
@usages = @client_0.usages
client_1 = Azure::RecoveryServices::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
if(client_1.respond_to?(:subscription_id))
client_1.subscription_id = configurable.subscription_id
@client_1 = Azure::RecoveryServices::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
if(@client_1.respond_to?(:subscription_id))
@client_1.subscription_id = configurable.subscription_id
end
add_telemetry(client_1)
@backup_vault_configs = client_1.backup_vault_configs
@backup_storage_configs = client_1.backup_storage_configs
add_telemetry(@client_1)
@backup_vault_configs = @client_1.backup_vault_configs
@backup_storage_configs = @client_1.backup_storage_configs
@model_classes = ModelClasses.new
end
@ -93,6 +93,16 @@ module Azure::Profiles::Latest
client.add_user_agent_information(profile_information)
end
def method_missing(method, *args)
if @client_1.respond_to?method
@client_1.send(method, *args)
elsif @client_0.respond_to?method
@client_0.send(method, *args)
else
super
end
end
class ModelClasses
def client_discovery_for_properties
Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForProperties

Просмотреть файл

@ -209,54 +209,54 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::RecoveryServicesBackupClient.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)
@operations = client_0.operations
add_telemetry(@client_0)
@operations = @client_0.operations
client_1 = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
if(client_1.respond_to?(:subscription_id))
client_1.subscription_id = configurable.subscription_id
@client_1 = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
if(@client_1.respond_to?(:subscription_id))
@client_1.subscription_id = configurable.subscription_id
end
add_telemetry(client_1)
@backup_resource_vault_configs = client_1.backup_resource_vault_configs
@backup_engines = client_1.backup_engines
@protection_container_refresh_operation_results = client_1.protection_container_refresh_operation_results
@protection_containers = client_1.protection_containers
@protection_container_operation_results = client_1.protection_container_operation_results
@protected_items = client_1.protected_items
@backups = client_1.backups
@protected_item_operation_results = client_1.protected_item_operation_results
@protected_item_operation_statuses = client_1.protected_item_operation_statuses
@recovery_points = client_1.recovery_points
@item_level_recovery_connections = client_1.item_level_recovery_connections
@restores = client_1.restores
@job_cancellations = client_1.job_cancellations
@job_operation_results = client_1.job_operation_results
@export_jobs_operation_results = client_1.export_jobs_operation_results
@jobs = client_1.jobs
@backup_operation_results = client_1.backup_operation_results
@backup_operation_statuses = client_1.backup_operation_statuses
@backup_policies = client_1.backup_policies
@protection_policies = client_1.protection_policies
@protection_policy_operation_results = client_1.protection_policy_operation_results
@protection_policy_operation_statuses = client_1.protection_policy_operation_statuses
@backup_protectable_items = client_1.backup_protectable_items
@backup_protected_items = client_1.backup_protected_items
@backup_protection_containers = client_1.backup_protection_containers
@security_pins = client_1.security_pins
@backup_resource_storage_configs = client_1.backup_resource_storage_configs
@backup_usage_summaries = client_1.backup_usage_summaries
add_telemetry(@client_1)
@backup_resource_vault_configs = @client_1.backup_resource_vault_configs
@backup_engines = @client_1.backup_engines
@protection_container_refresh_operation_results = @client_1.protection_container_refresh_operation_results
@protection_containers = @client_1.protection_containers
@protection_container_operation_results = @client_1.protection_container_operation_results
@protected_items = @client_1.protected_items
@backups = @client_1.backups
@protected_item_operation_results = @client_1.protected_item_operation_results
@protected_item_operation_statuses = @client_1.protected_item_operation_statuses
@recovery_points = @client_1.recovery_points
@item_level_recovery_connections = @client_1.item_level_recovery_connections
@restores = @client_1.restores
@job_cancellations = @client_1.job_cancellations
@job_operation_results = @client_1.job_operation_results
@export_jobs_operation_results = @client_1.export_jobs_operation_results
@jobs = @client_1.jobs
@backup_operation_results = @client_1.backup_operation_results
@backup_operation_statuses = @client_1.backup_operation_statuses
@backup_policies = @client_1.backup_policies
@protection_policies = @client_1.protection_policies
@protection_policy_operation_results = @client_1.protection_policy_operation_results
@protection_policy_operation_statuses = @client_1.protection_policy_operation_statuses
@backup_protectable_items = @client_1.backup_protectable_items
@backup_protected_items = @client_1.backup_protected_items
@backup_protection_containers = @client_1.backup_protection_containers
@security_pins = @client_1.security_pins
@backup_resource_storage_configs = @client_1.backup_resource_storage_configs
@backup_usage_summaries = @client_1.backup_usage_summaries
client_2 = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
if(client_2.respond_to?(:subscription_id))
client_2.subscription_id = configurable.subscription_id
@client_2 = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
if(@client_2.respond_to?(:subscription_id))
@client_2.subscription_id = configurable.subscription_id
end
add_telemetry(client_2)
@backup_jobs = client_2.backup_jobs
@job_details = client_2.job_details
add_telemetry(@client_2)
@backup_jobs = @client_2.backup_jobs
@job_details = @client_2.job_details
@model_classes = ModelClasses.new
end
@ -266,6 +266,18 @@ module Azure::Profiles::Latest
client.add_user_agent_information(profile_information)
end
def method_missing(method, *args)
if @client_2.respond_to?method
@client_2.send(method, *args)
elsif @client_1.respond_to?method
@client_1.send(method, *args)
elsif @client_0.respond_to?method
@client_0.send(method, *args)
else
super
end
end
class ModelClasses
def client_discovery_for_properties
Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForProperties

Просмотреть файл

@ -362,31 +362,31 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::SiteRecoveryManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::SiteRecoveryManagementClient.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)
@replication_vault_health = client_0.replication_vault_health
@replication_protected_items = client_0.replication_protected_items
@replication_network_mappings = client_0.replication_network_mappings
@replication_fabrics = client_0.replication_fabrics
@replicationv_centers = client_0.replicationv_centers
@replication_storage_classification_mappings = client_0.replication_storage_classification_mappings
@replication_storage_classifications = client_0.replication_storage_classifications
@replication_recovery_services_providers = client_0.replication_recovery_services_providers
@recovery_points = client_0.recovery_points
@replication_recovery_plans = client_0.replication_recovery_plans
@replication_protection_containers = client_0.replication_protection_containers
@replication_protection_container_mappings = client_0.replication_protection_container_mappings
@replication_protectable_items = client_0.replication_protectable_items
@replication_policies = client_0.replication_policies
@operations = client_0.operations
@replication_networks = client_0.replication_networks
@replication_logical_networks = client_0.replication_logical_networks
@replication_jobs = client_0.replication_jobs
@replication_events = client_0.replication_events
@replication_alert_settings = client_0.replication_alert_settings
add_telemetry(@client_0)
@replication_vault_health = @client_0.replication_vault_health
@replication_protected_items = @client_0.replication_protected_items
@replication_network_mappings = @client_0.replication_network_mappings
@replication_fabrics = @client_0.replication_fabrics
@replicationv_centers = @client_0.replicationv_centers
@replication_storage_classification_mappings = @client_0.replication_storage_classification_mappings
@replication_storage_classifications = @client_0.replication_storage_classifications
@replication_recovery_services_providers = @client_0.replication_recovery_services_providers
@recovery_points = @client_0.recovery_points
@replication_recovery_plans = @client_0.replication_recovery_plans
@replication_protection_containers = @client_0.replication_protection_containers
@replication_protection_container_mappings = @client_0.replication_protection_container_mappings
@replication_protectable_items = @client_0.replication_protectable_items
@replication_policies = @client_0.replication_policies
@operations = @client_0.operations
@replication_networks = @client_0.replication_networks
@replication_logical_networks = @client_0.replication_logical_networks
@replication_jobs = @client_0.replication_jobs
@replication_events = @client_0.replication_events
@replication_alert_settings = @client_0.replication_alert_settings
@model_classes = ModelClasses.new
end
@ -396,6 +396,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def storage_classification_properties
Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::StorageClassificationProperties

Просмотреть файл

@ -54,16 +54,16 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Redis::Mgmt::V2017_02_01::RedisManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Redis::Mgmt::V2017_02_01::RedisManagementClient.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)
@operations = client_0.operations
@redis = client_0.redis
@firewall_rules = client_0.firewall_rules
@patch_schedules = client_0.patch_schedules
@redis_linked_server_operations = client_0.redis_linked_server_operations
add_telemetry(@client_0)
@operations = @client_0.operations
@redis = @client_0.redis
@firewall_rules = @client_0.firewall_rules
@patch_schedules = @client_0.patch_schedules
@redis_linked_server_operations = @client_0.redis_linked_server_operations
@model_classes = ModelClasses.new
end
@ -73,6 +73,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def redis_list_result
Azure::Redis::Mgmt::V2017_02_01::Models::RedisListResult

Просмотреть файл

@ -48,15 +48,15 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Relay::Mgmt::V2017_04_01::RelayManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Relay::Mgmt::V2017_04_01::RelayManagementClient.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)
@operations = client_0.operations
@namespaces = client_0.namespaces
@hybrid_connections = client_0.hybrid_connections
@wcfrelays = client_0.wcfrelays
add_telemetry(@client_0)
@operations = @client_0.operations
@namespaces = @client_0.namespaces
@hybrid_connections = @client_0.hybrid_connections
@wcfrelays = @client_0.wcfrelays
@model_classes = ModelClasses.new
end
@ -66,6 +66,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def relay_namespace_list_result
Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult

Просмотреть файл

@ -70,17 +70,17 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Resources::Mgmt::V2017_05_10::ResourceManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Resources::Mgmt::V2017_05_10::ResourceManagementClient.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)
@deployments = client_0.deployments
@providers = client_0.providers
@resources = client_0.resources
@resource_groups = client_0.resource_groups
@tags = client_0.tags
@deployment_operations = client_0.deployment_operations
add_telemetry(@client_0)
@deployments = @client_0.deployments
@providers = @client_0.providers
@resources = @client_0.resources
@resource_groups = @client_0.resource_groups
@tags = @client_0.tags
@deployment_operations = @client_0.deployment_operations
@model_classes = ModelClasses.new
end
@ -90,6 +90,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def sku
Azure::Resources::Mgmt::V2017_05_10::Models::Sku

Просмотреть файл

@ -33,13 +33,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::ManagementGroupsAPI.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::ManagementGroupsAPI.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)
@management_groups = client_0.management_groups
@operations = client_0.operations
add_telemetry(@client_0)
@management_groups = @client_0.management_groups
@operations = @client_0.operations
@model_classes = ModelClasses.new
end
@ -49,6 +49,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def parent_group_info
Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ParentGroupInfo

Просмотреть файл

@ -64,13 +64,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Scheduler::Mgmt::V2016_03_01::SchedulerManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Scheduler::Mgmt::V2016_03_01::SchedulerManagementClient.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)
@job_collections = client_0.job_collections
@jobs = client_0.jobs
add_telemetry(@client_0)
@job_collections = @client_0.job_collections
@jobs = @client_0.jobs
@model_classes = ModelClasses.new
end
@ -80,6 +80,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def job_recurrence
Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrence

Просмотреть файл

@ -34,14 +34,14 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Search::Mgmt::V2015_08_19::SearchManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Search::Mgmt::V2015_08_19::SearchManagementClient.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)
@admin_keys = client_0.admin_keys
@query_keys = client_0.query_keys
@services = client_0.services
add_telemetry(@client_0)
@admin_keys = @client_0.admin_keys
@query_keys = @client_0.query_keys
@services = @client_0.services
@model_classes = ModelClasses.new
end
@ -51,6 +51,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def sku
Azure::Search::Mgmt::V2015_08_19::Models::Sku

Просмотреть файл

@ -51,15 +51,15 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::ServerManagement::Mgmt::V2016_07_01_preview::ServerManagement.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::ServerManagement::Mgmt::V2016_07_01_preview::ServerManagement.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)
@gateway = client_0.gateway
@node = client_0.node
@session = client_0.session
@power_shell = client_0.power_shell
add_telemetry(@client_0)
@gateway = @client_0.gateway
@node = @client_0.node
@session = @client_0.session
@power_shell = @client_0.power_shell
@model_classes = ModelClasses.new
end
@ -69,6 +69,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def version
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::Version

Просмотреть файл

@ -77,21 +77,21 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::ServiceBus::Mgmt::V2017_04_01::ServiceBusManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::ServiceBus::Mgmt::V2017_04_01::ServiceBusManagementClient.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)
@operations = client_0.operations
@namespaces = client_0.namespaces
@disaster_recovery_configs = client_0.disaster_recovery_configs
@queues = client_0.queues
@topics = client_0.topics
@subscriptions = client_0.subscriptions
@rules = client_0.rules
@regions = client_0.regions
@premium_messaging_regions_operations = client_0.premium_messaging_regions_operations
@event_hubs = client_0.event_hubs
add_telemetry(@client_0)
@operations = @client_0.operations
@namespaces = @client_0.namespaces
@disaster_recovery_configs = @client_0.disaster_recovery_configs
@queues = @client_0.queues
@topics = @client_0.topics
@subscriptions = @client_0.subscriptions
@rules = @client_0.rules
@regions = @client_0.regions
@premium_messaging_regions_operations = @client_0.premium_messaging_regions_operations
@event_hubs = @client_0.event_hubs
@model_classes = ModelClasses.new
end
@ -101,6 +101,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def check_name_availability_result
Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult

Просмотреть файл

@ -45,14 +45,14 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::ServiceFabric::Mgmt::V2016_09_01::ServiceFabricManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::ServiceFabric::Mgmt::V2016_09_01::ServiceFabricManagementClient.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)
@clusters = client_0.clusters
@cluster_versions = client_0.cluster_versions
@operations = client_0.operations
add_telemetry(@client_0)
@clusters = @client_0.clusters
@cluster_versions = @client_0.cluster_versions
@operations = @client_0.operations
@model_classes = ModelClasses.new
end
@ -62,6 +62,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def cluster_upgrade_policy
Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradePolicy

Просмотреть файл

@ -30,11 +30,11 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::SpellCheck::V1_0::SpellCheckClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::SpellCheck::V1_0::SpellCheckClient.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)
add_telemetry(@client_0)
@model_classes = ModelClasses.new
end
@ -44,6 +44,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def spelling_token_suggestion
Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion

Просмотреть файл

@ -264,69 +264,69 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::SQL::Mgmt::V2014_04_01::SqlManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::SQL::Mgmt::V2014_04_01::SqlManagementClient.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)
@backup_long_term_retention_policies = client_0.backup_long_term_retention_policies
@backup_long_term_retention_vaults = client_0.backup_long_term_retention_vaults
@restore_points = client_0.restore_points
@recoverable_databases = client_0.recoverable_databases
@restorable_dropped_databases = client_0.restorable_dropped_databases
@capabilities = client_0.capabilities
@server_connection_policies = client_0.server_connection_policies
@database_threat_detection_policies = client_0.database_threat_detection_policies
@data_masking_policies = client_0.data_masking_policies
@data_masking_rules = client_0.data_masking_rules
@transparent_data_encryption_configurations = client_0.transparent_data_encryption_configurations
@firewall_rules = client_0.firewall_rules
@geo_backup_policies = client_0.geo_backup_policies
@databases = client_0.databases
@elastic_pools = client_0.elastic_pools
@queries = client_0.queries
@query_statistics = client_0.query_statistics
@replication_links = client_0.replication_links
@server_azure_adadministrators = client_0.server_azure_adadministrators
@server_communication_links = client_0.server_communication_links
@service_objectives = client_0.service_objectives
@elastic_pool_activities = client_0.elastic_pool_activities
@elastic_pool_database_activities = client_0.elastic_pool_database_activities
@recommended_elastic_pools = client_0.recommended_elastic_pools
@service_tier_advisors = client_0.service_tier_advisors
@transparent_data_encryptions = client_0.transparent_data_encryptions
@transparent_data_encryption_activities = client_0.transparent_data_encryption_activities
@server_table_auditing_policies = client_0.server_table_auditing_policies
@database_table_auditing_policies = client_0.database_table_auditing_policies
@database_connection_policies = client_0.database_connection_policies
@server_usages = client_0.server_usages
@database_usages = client_0.database_usages
add_telemetry(@client_0)
@backup_long_term_retention_policies = @client_0.backup_long_term_retention_policies
@backup_long_term_retention_vaults = @client_0.backup_long_term_retention_vaults
@restore_points = @client_0.restore_points
@recoverable_databases = @client_0.recoverable_databases
@restorable_dropped_databases = @client_0.restorable_dropped_databases
@capabilities = @client_0.capabilities
@server_connection_policies = @client_0.server_connection_policies
@database_threat_detection_policies = @client_0.database_threat_detection_policies
@data_masking_policies = @client_0.data_masking_policies
@data_masking_rules = @client_0.data_masking_rules
@transparent_data_encryption_configurations = @client_0.transparent_data_encryption_configurations
@firewall_rules = @client_0.firewall_rules
@geo_backup_policies = @client_0.geo_backup_policies
@databases = @client_0.databases
@elastic_pools = @client_0.elastic_pools
@queries = @client_0.queries
@query_statistics = @client_0.query_statistics
@replication_links = @client_0.replication_links
@server_azure_adadministrators = @client_0.server_azure_adadministrators
@server_communication_links = @client_0.server_communication_links
@service_objectives = @client_0.service_objectives
@elastic_pool_activities = @client_0.elastic_pool_activities
@elastic_pool_database_activities = @client_0.elastic_pool_database_activities
@recommended_elastic_pools = @client_0.recommended_elastic_pools
@service_tier_advisors = @client_0.service_tier_advisors
@transparent_data_encryptions = @client_0.transparent_data_encryptions
@transparent_data_encryption_activities = @client_0.transparent_data_encryption_activities
@server_table_auditing_policies = @client_0.server_table_auditing_policies
@database_table_auditing_policies = @client_0.database_table_auditing_policies
@database_connection_policies = @client_0.database_connection_policies
@server_usages = @client_0.server_usages
@database_usages = @client_0.database_usages
client_1 = Azure::SQL::Mgmt::V2015_05_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options)
if(client_1.respond_to?(:subscription_id))
client_1.subscription_id = configurable.subscription_id
@client_1 = Azure::SQL::Mgmt::V2015_05_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options)
if(@client_1.respond_to?(:subscription_id))
@client_1.subscription_id = configurable.subscription_id
end
add_telemetry(client_1)
@database_advisors = client_1.database_advisors
@database_recommended_actions = client_1.database_recommended_actions
@server_advisors = client_1.server_advisors
@database_blob_auditing_policies = client_1.database_blob_auditing_policies
@encryption_protectors = client_1.encryption_protectors
@failover_groups = client_1.failover_groups
@operations = client_1.operations
@server_keys = client_1.server_keys
@servers = client_1.servers
@sync_agents = client_1.sync_agents
@sync_groups = client_1.sync_groups
@sync_members = client_1.sync_members
@virtual_network_rules = client_1.virtual_network_rules
add_telemetry(@client_1)
@database_advisors = @client_1.database_advisors
@database_recommended_actions = @client_1.database_recommended_actions
@server_advisors = @client_1.server_advisors
@database_blob_auditing_policies = @client_1.database_blob_auditing_policies
@encryption_protectors = @client_1.encryption_protectors
@failover_groups = @client_1.failover_groups
@operations = @client_1.operations
@server_keys = @client_1.server_keys
@servers = @client_1.servers
@sync_agents = @client_1.sync_agents
@sync_groups = @client_1.sync_groups
@sync_members = @client_1.sync_members
@virtual_network_rules = @client_1.virtual_network_rules
client_2 = Azure::SQL::Mgmt::V2017_03_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options)
if(client_2.respond_to?(:subscription_id))
client_2.subscription_id = configurable.subscription_id
@client_2 = Azure::SQL::Mgmt::V2017_03_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options)
if(@client_2.respond_to?(:subscription_id))
@client_2.subscription_id = configurable.subscription_id
end
add_telemetry(client_2)
@database_operations = client_2.database_operations
add_telemetry(@client_2)
@database_operations = @client_2.database_operations
@model_classes = ModelClasses.new
end
@ -336,6 +336,18 @@ module Azure::Profiles::Latest
client.add_user_agent_information(profile_information)
end
def method_missing(method, *args)
if @client_2.respond_to?method
@client_2.send(method, *args)
elsif @client_1.respond_to?method
@client_1.send(method, *args)
elsif @client_0.respond_to?method
@client_0.send(method, *args)
else
super
end
end
class ModelClasses
def firewall_rule_list_result
Azure::SQL::Mgmt::V2014_04_01::Models::FirewallRuleListResult

Просмотреть файл

@ -78,15 +78,15 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Storage::Mgmt::V2017_10_01::StorageManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Storage::Mgmt::V2017_10_01::StorageManagementClient.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)
@operations = client_0.operations
@skus = client_0.skus
@storage_accounts = client_0.storage_accounts
@usage_operations = client_0.usage_operations
add_telemetry(@client_0)
@operations = @client_0.operations
@skus = @client_0.skus
@storage_accounts = @client_0.storage_accounts
@usage_operations = @client_0.usage_operations
@model_classes = ModelClasses.new
end
@ -96,6 +96,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def iprule
Azure::Storage::Mgmt::V2017_10_01::Models::IPRule

Просмотреть файл

@ -192,27 +192,27 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::StorSimple8000SeriesManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::StorSimple8000SeriesManagementClient.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)
@operations = client_0.operations
@managers = client_0.managers
@access_control_records = client_0.access_control_records
@alerts = client_0.alerts
@bandwidth_settings = client_0.bandwidth_settings
@cloud_appliances = client_0.cloud_appliances
@devices = client_0.devices
@device_settings = client_0.device_settings
@backup_policies = client_0.backup_policies
@backup_schedules = client_0.backup_schedules
@backups = client_0.backups
@hardware_component_groups = client_0.hardware_component_groups
@jobs = client_0.jobs
@volume_containers = client_0.volume_containers
@volumes = client_0.volumes
@storage_account_credentials = client_0.storage_account_credentials
add_telemetry(@client_0)
@operations = @client_0.operations
@managers = @client_0.managers
@access_control_records = @client_0.access_control_records
@alerts = @client_0.alerts
@bandwidth_settings = @client_0.bandwidth_settings
@cloud_appliances = @client_0.cloud_appliances
@devices = @client_0.devices
@device_settings = @client_0.device_settings
@backup_policies = @client_0.backup_policies
@backup_schedules = @client_0.backup_schedules
@backups = @client_0.backups
@hardware_component_groups = @client_0.hardware_component_groups
@jobs = @client_0.jobs
@volume_containers = @client_0.volume_containers
@volumes = @client_0.volumes
@storage_account_credentials = @client_0.storage_account_credentials
@model_classes = ModelClasses.new
end
@ -222,6 +222,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def target_eligibility_result
Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResult

Просмотреть файл

@ -96,18 +96,18 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::StreamAnalytics::Mgmt::V2016_03_01::StreamAnalyticsManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::StreamAnalytics::Mgmt::V2016_03_01::StreamAnalyticsManagementClient.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)
@operations = client_0.operations
@streaming_jobs = client_0.streaming_jobs
@inputs = client_0.inputs
@outputs = client_0.outputs
@transformations = client_0.transformations
@functions = client_0.functions
@subscriptions = client_0.subscriptions
add_telemetry(@client_0)
@operations = @client_0.operations
@streaming_jobs = @client_0.streaming_jobs
@inputs = @client_0.inputs
@outputs = @client_0.outputs
@transformations = @client_0.transformations
@functions = @client_0.functions
@subscriptions = @client_0.subscriptions
@model_classes = ModelClasses.new
end
@ -117,6 +117,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def azure_machine_learning_web_service_input_column
Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceInputColumn

Просмотреть файл

@ -28,13 +28,13 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.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)
@subscriptions = client_0.subscriptions
@tenants = client_0.tenants
add_telemetry(@client_0)
@subscriptions = @client_0.subscriptions
@tenants = @client_0.tenants
@model_classes = ModelClasses.new
end
@ -44,6 +44,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def subscription
Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription

Просмотреть файл

@ -31,11 +31,11 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::TextAnalytics::V2_0::TextAnalyticsClient.new(configurable.credentials, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::TextAnalytics::V2_0::TextAnalyticsClient.new(configurable.credentials, options)
if(@client_0.respond_to?(:subscription_id))
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)
add_telemetry(@client_0)
@model_classes = ModelClasses.new
end
@ -45,6 +45,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def input
Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input

Просмотреть файл

@ -46,22 +46,22 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::TrafficManager::Mgmt::V2017_05_01::TrafficManagerManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::TrafficManager::Mgmt::V2017_05_01::TrafficManagerManagementClient.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)
@endpoints = client_0.endpoints
@profiles = client_0.profiles
@geographic_hierarchies = client_0.geographic_hierarchies
add_telemetry(@client_0)
@endpoints = @client_0.endpoints
@profiles = @client_0.profiles
@geographic_hierarchies = @client_0.geographic_hierarchies
client_1 = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerManagementClient.new(configurable.credentials, base_url, options)
if(client_1.respond_to?(:subscription_id))
client_1.subscription_id = configurable.subscription_id
@client_1 = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerManagementClient.new(configurable.credentials, base_url, options)
if(@client_1.respond_to?(:subscription_id))
@client_1.subscription_id = configurable.subscription_id
end
add_telemetry(client_1)
@heat_map = client_1.heat_map
@traffic_manager_user_metrics_keys = client_1.traffic_manager_user_metrics_keys
add_telemetry(@client_1)
@heat_map = @client_1.heat_map
@traffic_manager_user_metrics_keys = @client_1.traffic_manager_user_metrics_keys
@model_classes = ModelClasses.new
end
@ -71,6 +71,16 @@ module Azure::Profiles::Latest
client.add_user_agent_information(profile_information)
end
def method_missing(method, *args)
if @client_1.respond_to?method
@client_1.send(method, *args)
elsif @client_0.respond_to?method
@client_0.send(method, *args)
else
super
end
end
class ModelClasses
def traffic_manager_name_availability
Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerNameAvailability

Просмотреть файл

@ -49,12 +49,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::VideoSearch::V1_0::VideoSearchClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::VideoSearch::V1_0::VideoSearchClient.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)
@videos_operations = client_0.videos_operations
add_telemetry(@client_0)
@videos_operations = @client_0.videos_operations
@model_classes = ModelClasses.new
end
@ -64,6 +64,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def trending_videos_category
Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosCategory

Просмотреть файл

@ -299,45 +299,45 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Web::Mgmt::V2015_04_01::WebSiteManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Web::Mgmt::V2015_04_01::WebSiteManagementClient.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)
@domains = client_0.domains
@top_level_domains = client_0.top_level_domains
add_telemetry(@client_0)
@domains = @client_0.domains
@top_level_domains = @client_0.top_level_domains
client_1 = Azure::Web::Mgmt::V2015_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options)
if(client_1.respond_to?(:subscription_id))
client_1.subscription_id = configurable.subscription_id
@client_1 = Azure::Web::Mgmt::V2015_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options)
if(@client_1.respond_to?(:subscription_id))
@client_1.subscription_id = configurable.subscription_id
end
add_telemetry(client_1)
@app_service_certificate_orders = client_1.app_service_certificate_orders
add_telemetry(@client_1)
@app_service_certificate_orders = @client_1.app_service_certificate_orders
client_2 = Azure::Web::Mgmt::V2016_03_01::WebSiteManagementClient.new(configurable.credentials, base_url, options)
if(client_2.respond_to?(:subscription_id))
client_2.subscription_id = configurable.subscription_id
@client_2 = Azure::Web::Mgmt::V2016_03_01::WebSiteManagementClient.new(configurable.credentials, base_url, options)
if(@client_2.respond_to?(:subscription_id))
@client_2.subscription_id = configurable.subscription_id
end
add_telemetry(client_2)
@certificates = client_2.certificates
@deleted_web_apps = client_2.deleted_web_apps
@provider = client_2.provider
@recommendations = client_2.recommendations
add_telemetry(@client_2)
@certificates = @client_2.certificates
@deleted_web_apps = @client_2.deleted_web_apps
@provider = @client_2.provider
@recommendations = @client_2.recommendations
client_3 = Azure::Web::Mgmt::V2016_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options)
if(client_3.respond_to?(:subscription_id))
client_3.subscription_id = configurable.subscription_id
@client_3 = Azure::Web::Mgmt::V2016_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options)
if(@client_3.respond_to?(:subscription_id))
@client_3.subscription_id = configurable.subscription_id
end
add_telemetry(client_3)
@web_apps = client_3.web_apps
add_telemetry(@client_3)
@web_apps = @client_3.web_apps
client_4 = Azure::Web::Mgmt::V2016_09_01::WebSiteManagementClient.new(configurable.credentials, base_url, options)
if(client_4.respond_to?(:subscription_id))
client_4.subscription_id = configurable.subscription_id
@client_4 = Azure::Web::Mgmt::V2016_09_01::WebSiteManagementClient.new(configurable.credentials, base_url, options)
if(@client_4.respond_to?(:subscription_id))
@client_4.subscription_id = configurable.subscription_id
end
add_telemetry(client_4)
@app_service_environments = client_4.app_service_environments
@app_service_plans = client_4.app_service_plans
add_telemetry(@client_4)
@app_service_environments = @client_4.app_service_environments
@app_service_plans = @client_4.app_service_plans
@model_classes = ModelClasses.new
end
@ -347,6 +347,22 @@ module Azure::Profiles::Latest
client.add_user_agent_information(profile_information)
end
def method_missing(method, *args)
if @client_4.respond_to?method
@client_4.send(method, *args)
elsif @client_3.respond_to?method
@client_3.send(method, *args)
elsif @client_2.respond_to?method
@client_2.send(method, *args)
elsif @client_1.respond_to?method
@client_1.send(method, *args)
elsif @client_0.respond_to?method
@client_0.send(method, *args)
else
super
end
end
class ModelClasses
def domain_recommendation_search_parameters
Azure::Web::Mgmt::V2015_04_01::Models::DomainRecommendationSearchParameters

Просмотреть файл

@ -58,12 +58,12 @@ module Azure::Profiles::Latest
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::CognitiveServices::WebSearch::V1_0::WebSearchClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::WebSearch::V1_0::WebSearchClient.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)
@web = client_0.web
add_telemetry(@client_0)
@web = @client_0.web
@model_classes = ModelClasses.new
end
@ -73,6 +73,14 @@ module Azure::Profiles::Latest
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
class ModelClasses
def ranking_ranking_item
Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem

Просмотреть файл

@ -124,20 +124,20 @@ module Azure::Profiles::V2017_03_09
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Compute::Mgmt::V2016_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Compute::Mgmt::V2016_03_30::ComputeManagementClient.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)
@availability_sets = client_0.availability_sets
@virtual_machine_extension_images = client_0.virtual_machine_extension_images
@virtual_machine_extensions = client_0.virtual_machine_extensions
@virtual_machine_images = client_0.virtual_machine_images
@usage_operations = client_0.usage_operations
@virtual_machine_sizes = client_0.virtual_machine_sizes
@virtual_machines = client_0.virtual_machines
@virtual_machine_scale_sets = client_0.virtual_machine_scale_sets
@virtual_machine_scale_set_vms = client_0.virtual_machine_scale_set_vms
add_telemetry(@client_0)
@availability_sets = @client_0.availability_sets
@virtual_machine_extension_images = @client_0.virtual_machine_extension_images
@virtual_machine_extensions = @client_0.virtual_machine_extensions
@virtual_machine_images = @client_0.virtual_machine_images
@usage_operations = @client_0.usage_operations
@virtual_machine_sizes = @client_0.virtual_machine_sizes
@virtual_machines = @client_0.virtual_machines
@virtual_machine_scale_sets = @client_0.virtual_machine_scale_sets
@virtual_machine_scale_set_vms = @client_0.virtual_machine_scale_set_vms
@model_classes = ModelClasses.new
end
@ -147,6 +147,14 @@ module Azure::Profiles::V2017_03_09
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
class ModelClasses
def diagnostics_profile
Azure::Compute::Mgmt::V2016_03_30::Models::DiagnosticsProfile

Просмотреть файл

@ -21,12 +21,12 @@ module Azure::Profiles::V2017_03_09
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.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)
@features = client_0.features
add_telemetry(@client_0)
@features = @client_0.features
@model_classes = ModelClasses.new
end
@ -36,6 +36,14 @@ module Azure::Profiles::V2017_03_09
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
class ModelClasses
def feature_result
Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult

Просмотреть файл

@ -23,12 +23,12 @@ module Azure::Profiles::V2017_03_09
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.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)
@resource_links = client_0.resource_links
add_telemetry(@client_0)
@resource_links = @client_0.resource_links
@model_classes = ModelClasses.new
end
@ -38,6 +38,14 @@ module Azure::Profiles::V2017_03_09
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
class ModelClasses
def resource_link
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink

Просмотреть файл

@ -21,12 +21,12 @@ module Azure::Profiles::V2017_03_09
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Locks::Mgmt::V2015_01_01::ManagementLockClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Locks::Mgmt::V2015_01_01::ManagementLockClient.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)
@management_locks = client_0.management_locks
add_telemetry(@client_0)
@management_locks = @client_0.management_locks
@model_classes = ModelClasses.new
end
@ -36,6 +36,14 @@ module Azure::Profiles::V2017_03_09
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
class ModelClasses
def management_lock_list_result
Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockListResult

Просмотреть файл

@ -153,29 +153,29 @@ module Azure::Profiles::V2017_03_09
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Network::Mgmt::V2015_06_15::NetworkManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Network::Mgmt::V2015_06_15::NetworkManagementClient.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)
@application_gateways = client_0.application_gateways
@express_route_circuit_authorizations = client_0.express_route_circuit_authorizations
@express_route_circuit_peerings = client_0.express_route_circuit_peerings
@express_route_circuits = client_0.express_route_circuits
@express_route_service_providers = client_0.express_route_service_providers
@load_balancers = client_0.load_balancers
@network_interfaces = client_0.network_interfaces
@network_security_groups = client_0.network_security_groups
@security_rules = client_0.security_rules
@public_ipaddresses = client_0.public_ipaddresses
@route_tables = client_0.route_tables
@routes = client_0.routes
@usages = client_0.usages
@virtual_networks = client_0.virtual_networks
@subnets = client_0.subnets
@virtual_network_gateways = client_0.virtual_network_gateways
@virtual_network_gateway_connections = client_0.virtual_network_gateway_connections
@local_network_gateways = client_0.local_network_gateways
add_telemetry(@client_0)
@application_gateways = @client_0.application_gateways
@express_route_circuit_authorizations = @client_0.express_route_circuit_authorizations
@express_route_circuit_peerings = @client_0.express_route_circuit_peerings
@express_route_circuits = @client_0.express_route_circuits
@express_route_service_providers = @client_0.express_route_service_providers
@load_balancers = @client_0.load_balancers
@network_interfaces = @client_0.network_interfaces
@network_security_groups = @client_0.network_security_groups
@security_rules = @client_0.security_rules
@public_ipaddresses = @client_0.public_ipaddresses
@route_tables = @client_0.route_tables
@routes = @client_0.routes
@usages = @client_0.usages
@virtual_networks = @client_0.virtual_networks
@subnets = @client_0.subnets
@virtual_network_gateways = @client_0.virtual_network_gateways
@virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections
@local_network_gateways = @client_0.local_network_gateways
@model_classes = ModelClasses.new
end
@ -185,6 +185,14 @@ module Azure::Profiles::V2017_03_09
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
class ModelClasses
def express_route_circuits_stats_list_result
Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsStatsListResult

Просмотреть файл

@ -24,13 +24,13 @@ module Azure::Profiles::V2017_03_09
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyClient.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)
@policy_assignments = client_0.policy_assignments
@policy_definitions = client_0.policy_definitions
add_telemetry(@client_0)
@policy_assignments = @client_0.policy_assignments
@policy_definitions = @client_0.policy_definitions
@model_classes = ModelClasses.new
end
@ -40,6 +40,14 @@ module Azure::Profiles::V2017_03_09
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
class ModelClasses
def policy_assignment
Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignment

Просмотреть файл

@ -69,17 +69,17 @@ module Azure::Profiles::V2017_03_09
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Resources::Mgmt::V2016_02_01::ResourceManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Resources::Mgmt::V2016_02_01::ResourceManagementClient.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)
@deployments = client_0.deployments
@providers = client_0.providers
@resource_groups = client_0.resource_groups
@resources = client_0.resources
@tags = client_0.tags
@deployment_operations = client_0.deployment_operations
add_telemetry(@client_0)
@deployments = @client_0.deployments
@providers = @client_0.providers
@resource_groups = @client_0.resource_groups
@resources = @client_0.resources
@tags = @client_0.tags
@deployment_operations = @client_0.deployment_operations
@model_classes = ModelClasses.new
end
@ -89,6 +89,14 @@ module Azure::Profiles::V2017_03_09
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
class ModelClasses
def sku
Azure::Resources::Mgmt::V2016_02_01::Models::Sku

Просмотреть файл

@ -47,13 +47,13 @@ module Azure::Profiles::V2017_03_09
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Storage::Mgmt::V2016_01_01::StorageManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Storage::Mgmt::V2016_01_01::StorageManagementClient.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)
@storage_accounts = client_0.storage_accounts
@usage_operations = client_0.usage_operations
add_telemetry(@client_0)
@storage_accounts = @client_0.storage_accounts
@usage_operations = @client_0.usage_operations
@model_classes = ModelClasses.new
end
@ -63,6 +63,14 @@ module Azure::Profiles::V2017_03_09
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
class ModelClasses
def storage_account_check_name_availability_parameters
Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters

Просмотреть файл

@ -28,13 +28,13 @@ module Azure::Profiles::V2017_03_09
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.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)
@subscriptions = client_0.subscriptions
@tenants = client_0.tenants
add_telemetry(@client_0)
@subscriptions = @client_0.subscriptions
@tenants = @client_0.tenants
@model_classes = ModelClasses.new
end
@ -44,6 +44,14 @@ module Azure::Profiles::V2017_03_09
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
class ModelClasses
def subscription
Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription

Просмотреть файл

@ -123,8 +123,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [ListModelsResult] operation results.
#
def list_models(custom_headers = nil)
response = list_models_async(custom_headers).value!
def list_models(custom_headers:nil)
response = list_models_async(custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -140,8 +140,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_models_with_http_info(custom_headers = nil)
list_models_async(custom_headers).value!
def list_models_with_http_info(custom_headers:nil)
list_models_async(custom_headers:custom_headers).value!
end
#
@ -156,11 +156,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_models_async(custom_headers = nil)
def list_models_async(custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -237,8 +238,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [ImageAnalysis] operation results.
#
def analyze_image(url, visual_features = nil, details = nil, language = nil, custom_headers = nil)
response = analyze_image_async(url, visual_features, details, language, custom_headers).value!
def analyze_image(url, visual_features:nil, details:nil, language:nil, custom_headers:nil)
response = analyze_image_async(url, visual_features:visual_features, details:details, language:language, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -275,8 +276,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def analyze_image_with_http_info(url, visual_features = nil, details = nil, language = nil, custom_headers = nil)
analyze_image_async(url, visual_features, details, language, custom_headers).value!
def analyze_image_with_http_info(url, visual_features:nil, details:nil, language:nil, custom_headers:nil)
analyze_image_async(url, visual_features:visual_features, details:details, language:language, custom_headers:custom_headers).value!
end
#
@ -312,7 +313,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def analyze_image_async(url, visual_features = nil, details = nil, language = nil, custom_headers = nil)
def analyze_image_async(url, visual_features:nil, details:nil, language:nil, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'url is nil' if url.nil?
@ -322,7 +323,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -395,8 +395,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [NOT_IMPLEMENTED] operation results.
#
def generate_thumbnail(width, height, url, smart_cropping = false, custom_headers = nil)
response = generate_thumbnail_async(width, height, url, smart_cropping, custom_headers).value!
def generate_thumbnail(width, height, url, smart_cropping:false, custom_headers:nil)
response = generate_thumbnail_async(width, height, url, smart_cropping:smart_cropping, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -420,8 +420,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def generate_thumbnail_with_http_info(width, height, url, smart_cropping = false, custom_headers = nil)
generate_thumbnail_async(width, height, url, smart_cropping, custom_headers).value!
def generate_thumbnail_with_http_info(width, height, url, smart_cropping:false, custom_headers:nil)
generate_thumbnail_async(width, height, url, smart_cropping:smart_cropping, custom_headers:custom_headers).value!
end
#
@ -444,7 +444,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def generate_thumbnail_async(width, height, url, smart_cropping = false, custom_headers = nil)
def generate_thumbnail_async(width, height, url, smart_cropping:false, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'width is nil' if width.nil?
fail ArgumentError, "'width' should satisfy the constraint - 'InclusiveMaximum': '1023'" if !width.nil? && width > 1023
@ -460,7 +460,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -543,8 +542,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [OcrResult] operation results.
#
def recognize_printed_text(detect_orientation, url, language = nil, custom_headers = nil)
response = recognize_printed_text_async(detect_orientation, url, language, custom_headers).value!
def recognize_printed_text(detect_orientation, url, language:nil, custom_headers:nil)
response = recognize_printed_text_async(detect_orientation, url, language:language, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -571,8 +570,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def recognize_printed_text_with_http_info(detect_orientation, url, language = nil, custom_headers = nil)
recognize_printed_text_async(detect_orientation, url, language, custom_headers).value!
def recognize_printed_text_with_http_info(detect_orientation, url, language:nil, custom_headers:nil)
recognize_printed_text_async(detect_orientation, url, language:language, custom_headers:custom_headers).value!
end
#
@ -598,7 +597,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def recognize_printed_text_async(detect_orientation, url, language = nil, custom_headers = nil)
def recognize_printed_text_async(detect_orientation, url, language:nil, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'detect_orientation is nil' if detect_orientation.nil?
fail ArgumentError, 'url is nil' if url.nil?
@ -609,7 +608,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -680,8 +678,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [ImageDescription] operation results.
#
def describe_image(url, max_candidates = '1', custom_headers = nil)
response = describe_image_async(url, max_candidates, custom_headers).value!
def describe_image(url, max_candidates:'1', custom_headers:nil)
response = describe_image_async(url, max_candidates:max_candidates, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -703,8 +701,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def describe_image_with_http_info(url, max_candidates = '1', custom_headers = nil)
describe_image_async(url, max_candidates, custom_headers).value!
def describe_image_with_http_info(url, max_candidates:'1', custom_headers:nil)
describe_image_async(url, max_candidates:max_candidates, custom_headers:custom_headers).value!
end
#
@ -725,7 +723,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def describe_image_async(url, max_candidates = '1', custom_headers = nil)
def describe_image_async(url, max_candidates:'1', custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'url is nil' if url.nil?
@ -735,7 +733,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -803,8 +800,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [TagResult] operation results.
#
def tag_image(url, custom_headers = nil)
response = tag_image_async(url, custom_headers).value!
def tag_image(url, custom_headers:nil)
response = tag_image_async(url, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -823,8 +820,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def tag_image_with_http_info(url, custom_headers = nil)
tag_image_async(url, custom_headers).value!
def tag_image_with_http_info(url, custom_headers:nil)
tag_image_async(url, custom_headers:custom_headers).value!
end
#
@ -842,7 +839,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def tag_image_async(url, custom_headers = nil)
def tag_image_async(url, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'url is nil' if url.nil?
@ -852,7 +849,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -922,8 +918,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [DomainModelResults] operation results.
#
def analyze_image_by_domain(model, url, custom_headers = nil)
response = analyze_image_by_domain_async(model, url, custom_headers).value!
def analyze_image_by_domain(model, url, custom_headers:nil)
response = analyze_image_by_domain_async(model, url, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -945,8 +941,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def analyze_image_by_domain_with_http_info(model, url, custom_headers = nil)
analyze_image_by_domain_async(model, url, custom_headers).value!
def analyze_image_by_domain_with_http_info(model, url, custom_headers:nil)
analyze_image_by_domain_async(model, url, custom_headers:custom_headers).value!
end
#
@ -967,7 +963,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def analyze_image_by_domain_async(model, url, custom_headers = nil)
def analyze_image_by_domain_async(model, url, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'model is nil' if model.nil?
fail ArgumentError, 'url is nil' if url.nil?
@ -978,7 +974,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -1045,8 +1040,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
# will be added to the HTTP request.
#
#
def recognize_text(url, detect_handwriting = false, custom_headers = nil)
response = recognize_text_async(url, detect_handwriting, custom_headers).value!
def recognize_text(url, detect_handwriting:false, custom_headers:nil)
response = recognize_text_async(url, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value!
nil
end
@ -1065,8 +1060,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def recognize_text_with_http_info(url, detect_handwriting = false, custom_headers = nil)
recognize_text_async(url, detect_handwriting, custom_headers).value!
def recognize_text_with_http_info(url, detect_handwriting:false, custom_headers:nil)
recognize_text_async(url, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value!
end
#
@ -1084,7 +1079,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def recognize_text_async(url, detect_handwriting = false, custom_headers = nil)
def recognize_text_async(url, detect_handwriting:false, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'url is nil' if url.nil?
@ -1094,7 +1089,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -1149,8 +1143,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [TextOperationResult] operation results.
#
def get_text_operation_result(operation_id, custom_headers = nil)
response = get_text_operation_result_async(operation_id, custom_headers).value!
def get_text_operation_result(operation_id, custom_headers:nil)
response = get_text_operation_result_async(operation_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1166,8 +1160,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_text_operation_result_with_http_info(operation_id, custom_headers = nil)
get_text_operation_result_async(operation_id, custom_headers).value!
def get_text_operation_result_with_http_info(operation_id, custom_headers:nil)
get_text_operation_result_async(operation_id, custom_headers:custom_headers).value!
end
#
@ -1182,12 +1176,13 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_text_operation_result_async(operation_id, custom_headers = nil)
def get_text_operation_result_async(operation_id, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -1262,8 +1257,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [ImageAnalysis] operation results.
#
def analyze_image_in_stream(image, visual_features = nil, details = nil, language = nil, custom_headers = nil)
response = analyze_image_in_stream_async(image, visual_features, details, language, custom_headers).value!
def analyze_image_in_stream(image, visual_features:nil, details:nil, language:nil, custom_headers:nil)
response = analyze_image_in_stream_async(image, visual_features:visual_features, details:details, language:language, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1297,8 +1292,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def analyze_image_in_stream_with_http_info(image, visual_features = nil, details = nil, language = nil, custom_headers = nil)
analyze_image_in_stream_async(image, visual_features, details, language, custom_headers).value!
def analyze_image_in_stream_with_http_info(image, visual_features:nil, details:nil, language:nil, custom_headers:nil)
analyze_image_in_stream_async(image, visual_features:visual_features, details:details, language:language, custom_headers:custom_headers).value!
end
#
@ -1331,13 +1326,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def analyze_image_in_stream_async(image, visual_features = nil, details = nil, language = nil, custom_headers = nil)
def analyze_image_in_stream_async(image, visual_features:nil, details:nil, language:nil, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'image is nil' if image.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers
@ -1417,8 +1411,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [NOT_IMPLEMENTED] operation results.
#
def generate_thumbnail_in_stream(width, height, image, smart_cropping = false, custom_headers = nil)
response = generate_thumbnail_in_stream_async(width, height, image, smart_cropping, custom_headers).value!
def generate_thumbnail_in_stream(width, height, image, smart_cropping:false, custom_headers:nil)
response = generate_thumbnail_in_stream_async(width, height, image, smart_cropping:smart_cropping, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1442,8 +1436,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def generate_thumbnail_in_stream_with_http_info(width, height, image, smart_cropping = false, custom_headers = nil)
generate_thumbnail_in_stream_async(width, height, image, smart_cropping, custom_headers).value!
def generate_thumbnail_in_stream_with_http_info(width, height, image, smart_cropping:false, custom_headers:nil)
generate_thumbnail_in_stream_async(width, height, image, smart_cropping:smart_cropping, custom_headers:custom_headers).value!
end
#
@ -1466,7 +1460,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def generate_thumbnail_in_stream_async(width, height, image, smart_cropping = false, custom_headers = nil)
def generate_thumbnail_in_stream_async(width, height, image, smart_cropping:false, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'width is nil' if width.nil?
fail ArgumentError, "'width' should satisfy the constraint - 'InclusiveMaximum': '1023'" if !width.nil? && width > 1023
@ -1478,7 +1472,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers
@ -1568,8 +1561,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [OcrResult] operation results.
#
def recognize_printed_text_in_stream(detect_orientation, image, language = nil, custom_headers = nil)
response = recognize_printed_text_in_stream_async(detect_orientation, image, language, custom_headers).value!
def recognize_printed_text_in_stream(detect_orientation, image, language:nil, custom_headers:nil)
response = recognize_printed_text_in_stream_async(detect_orientation, image, language:language, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1596,8 +1589,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def recognize_printed_text_in_stream_with_http_info(detect_orientation, image, language = nil, custom_headers = nil)
recognize_printed_text_in_stream_async(detect_orientation, image, language, custom_headers).value!
def recognize_printed_text_in_stream_with_http_info(detect_orientation, image, language:nil, custom_headers:nil)
recognize_printed_text_in_stream_async(detect_orientation, image, language:language, custom_headers:custom_headers).value!
end
#
@ -1623,14 +1616,13 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def recognize_printed_text_in_stream_async(detect_orientation, image, language = nil, custom_headers = nil)
def recognize_printed_text_in_stream_async(detect_orientation, image, language:nil, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'detect_orientation is nil' if detect_orientation.nil?
fail ArgumentError, 'image is nil' if image.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers
@ -1708,8 +1700,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [ImageDescription] operation results.
#
def describe_image_in_stream(image, max_candidates = '1', custom_headers = nil)
response = describe_image_in_stream_async(image, max_candidates, custom_headers).value!
def describe_image_in_stream(image, max_candidates:'1', custom_headers:nil)
response = describe_image_in_stream_async(image, max_candidates:max_candidates, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1731,8 +1723,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def describe_image_in_stream_with_http_info(image, max_candidates = '1', custom_headers = nil)
describe_image_in_stream_async(image, max_candidates, custom_headers).value!
def describe_image_in_stream_with_http_info(image, max_candidates:'1', custom_headers:nil)
describe_image_in_stream_async(image, max_candidates:max_candidates, custom_headers:custom_headers).value!
end
#
@ -1753,13 +1745,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def describe_image_in_stream_async(image, max_candidates = '1', custom_headers = nil)
def describe_image_in_stream_async(image, max_candidates:'1', custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'image is nil' if image.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers
@ -1834,8 +1825,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [TagResult] operation results.
#
def tag_image_in_stream(image, custom_headers = nil)
response = tag_image_in_stream_async(image, custom_headers).value!
def tag_image_in_stream(image, custom_headers:nil)
response = tag_image_in_stream_async(image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1854,8 +1845,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def tag_image_in_stream_with_http_info(image, custom_headers = nil)
tag_image_in_stream_async(image, custom_headers).value!
def tag_image_in_stream_with_http_info(image, custom_headers:nil)
tag_image_in_stream_async(image, custom_headers:custom_headers).value!
end
#
@ -1873,13 +1864,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def tag_image_in_stream_async(image, custom_headers = nil)
def tag_image_in_stream_async(image, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'image is nil' if image.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers
@ -1955,8 +1945,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [DomainModelResults] operation results.
#
def analyze_image_by_domain_in_stream(model, image, custom_headers = nil)
response = analyze_image_by_domain_in_stream_async(model, image, custom_headers).value!
def analyze_image_by_domain_in_stream(model, image, custom_headers:nil)
response = analyze_image_by_domain_in_stream_async(model, image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1977,8 +1967,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def analyze_image_by_domain_in_stream_with_http_info(model, image, custom_headers = nil)
analyze_image_by_domain_in_stream_async(model, image, custom_headers).value!
def analyze_image_by_domain_in_stream_with_http_info(model, image, custom_headers:nil)
analyze_image_by_domain_in_stream_async(model, image, custom_headers:custom_headers).value!
end
#
@ -1998,14 +1988,13 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def analyze_image_by_domain_in_stream_async(model, image, custom_headers = nil)
def analyze_image_by_domain_in_stream_async(model, image, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'model is nil' if model.nil?
fail ArgumentError, 'image is nil' if image.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers
@ -2079,8 +2068,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
# will be added to the HTTP request.
#
#
def recognize_text_in_stream(image, detect_handwriting = false, custom_headers = nil)
response = recognize_text_in_stream_async(image, detect_handwriting, custom_headers).value!
def recognize_text_in_stream(image, detect_handwriting:false, custom_headers:nil)
response = recognize_text_in_stream_async(image, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value!
nil
end
@ -2099,8 +2088,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def recognize_text_in_stream_with_http_info(image, detect_handwriting = false, custom_headers = nil)
recognize_text_in_stream_async(image, detect_handwriting, custom_headers).value!
def recognize_text_in_stream_with_http_info(image, detect_handwriting:false, custom_headers:nil)
recognize_text_in_stream_async(image, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value!
end
#
@ -2118,13 +2107,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def recognize_text_in_stream_async(image, detect_handwriting = false, custom_headers = nil)
def recognize_text_in_stream_async(image, detect_handwriting:false, custom_headers:nil)
fail ArgumentError, 'azure_region is nil' if azure_region.nil?
fail ArgumentError, 'image is nil' if image.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers

Просмотреть файл

@ -64,11 +64,11 @@ module Azure::ComputerVision::Profiles::Latest
@base_url = options[:base_url].nil? ? nil:options[:base_url]
@options = options[:options].nil? ? nil:options[:options]
client_0 = Azure::CognitiveServices::ComputerVision::V1_0::ComputerVisionClient.new(configurable.credentials, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::ComputerVision::V1_0::ComputerVisionClient.new(configurable.credentials, options)
if(@client_0.respond_to?(:subscription_id))
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)
add_telemetry(@client_0)
@model_classes = ModelClasses.new
end
@ -78,6 +78,14 @@ module Azure::ComputerVision::Profiles::Latest
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

Просмотреть файл

@ -49,8 +49,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [FoundFaces] operation results.
#
def find_faces(cache_image = nil, custom_headers = nil)
response = find_faces_async(cache_image, custom_headers).value!
def find_faces(cache_image:nil, custom_headers:nil)
response = find_faces_async(cache_image:cache_image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -64,8 +64,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def find_faces_with_http_info(cache_image = nil, custom_headers = nil)
find_faces_async(cache_image, custom_headers).value!
def find_faces_with_http_info(cache_image:nil, custom_headers:nil)
find_faces_async(cache_image:cache_image, custom_headers:custom_headers).value!
end
#
@ -78,11 +78,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def find_faces_async(cache_image = nil, custom_headers = nil)
def find_faces_async(cache_image:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -145,8 +146,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [OCR] operation results.
#
def ocrmethod(language, cache_image = nil, enhanced = false, custom_headers = nil)
response = ocrmethod_async(language, cache_image, enhanced, custom_headers).value!
def ocrmethod(language, cache_image:nil, enhanced:false, custom_headers:nil)
response = ocrmethod_async(language, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -168,8 +169,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def ocrmethod_with_http_info(language, cache_image = nil, enhanced = false, custom_headers = nil)
ocrmethod_async(language, cache_image, enhanced, custom_headers).value!
def ocrmethod_with_http_info(language, cache_image:nil, enhanced:false, custom_headers:nil)
ocrmethod_async(language, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value!
end
#
@ -190,12 +191,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def ocrmethod_async(language, cache_image = nil, enhanced = false, custom_headers = nil)
def ocrmethod_async(language, cache_image:nil, enhanced:false, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'language is nil' if language.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -250,8 +252,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Evaluate] operation results.
#
def evaluate_method(cache_image = nil, custom_headers = nil)
response = evaluate_method_async(cache_image, custom_headers).value!
def evaluate_method(cache_image:nil, custom_headers:nil)
response = evaluate_method_async(cache_image:cache_image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -265,8 +267,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def evaluate_method_with_http_info(cache_image = nil, custom_headers = nil)
evaluate_method_async(cache_image, custom_headers).value!
def evaluate_method_with_http_info(cache_image:nil, custom_headers:nil)
evaluate_method_async(cache_image:cache_image, custom_headers:custom_headers).value!
end
#
@ -279,11 +281,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def evaluate_method_async(cache_image = nil, custom_headers = nil)
def evaluate_method_async(cache_image:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -347,8 +350,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MatchResponse] operation results.
#
def match_method(list_id = nil, cache_image = nil, custom_headers = nil)
response = match_method_async(list_id, cache_image, custom_headers).value!
def match_method(list_id:nil, cache_image:nil, custom_headers:nil)
response = match_method_async(list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -371,8 +374,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def match_method_with_http_info(list_id = nil, cache_image = nil, custom_headers = nil)
match_method_async(list_id, cache_image, custom_headers).value!
def match_method_with_http_info(list_id:nil, cache_image:nil, custom_headers:nil)
match_method_async(list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value!
end
#
@ -394,11 +397,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def match_method_async(list_id = nil, cache_image = nil, custom_headers = nil)
def match_method_async(list_id:nil, cache_image:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -454,8 +458,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [FoundFaces] operation results.
#
def find_faces_file_input(image_stream, cache_image = nil, custom_headers = nil)
response = find_faces_file_input_async(image_stream, cache_image, custom_headers).value!
def find_faces_file_input(image_stream, cache_image:nil, custom_headers:nil)
response = find_faces_file_input_async(image_stream, cache_image:cache_image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -470,8 +474,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def find_faces_file_input_with_http_info(image_stream, cache_image = nil, custom_headers = nil)
find_faces_file_input_async(image_stream, cache_image, custom_headers).value!
def find_faces_file_input_with_http_info(image_stream, cache_image:nil, custom_headers:nil)
find_faces_file_input_async(image_stream, cache_image:cache_image, custom_headers:custom_headers).value!
end
#
@ -485,13 +489,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def find_faces_file_input_async(image_stream, cache_image = nil, custom_headers = nil)
def find_faces_file_input_async(image_stream, cache_image:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'image_stream is nil' if image_stream.nil?
request_headers = {}
request_headers['Content-Type'] = 'image/gif'
# Set Headers
@ -563,8 +566,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [FoundFaces] operation results.
#
def find_faces_url_input(content_type, image_url, cache_image = nil, custom_headers = nil)
response = find_faces_url_input_async(content_type, image_url, cache_image, custom_headers).value!
def find_faces_url_input(content_type, image_url, cache_image:nil, custom_headers:nil)
response = find_faces_url_input_async(content_type, image_url, cache_image:cache_image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -580,8 +583,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def find_faces_url_input_with_http_info(content_type, image_url, cache_image = nil, custom_headers = nil)
find_faces_url_input_async(content_type, image_url, cache_image, custom_headers).value!
def find_faces_url_input_with_http_info(content_type, image_url, cache_image:nil, custom_headers:nil)
find_faces_url_input_async(content_type, image_url, cache_image:cache_image, custom_headers:custom_headers).value!
end
#
@ -596,14 +599,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def find_faces_url_input_async(content_type, image_url, cache_image = nil, custom_headers = nil)
def find_faces_url_input_async(content_type, image_url, cache_image:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
fail ArgumentError, 'image_url is nil' if image_url.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -677,8 +679,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [OCR] operation results.
#
def ocrurl_input(language, content_type, image_url, cache_image = nil, enhanced = false, custom_headers = nil)
response = ocrurl_input_async(language, content_type, image_url, cache_image, enhanced, custom_headers).value!
def ocrurl_input(language, content_type, image_url, cache_image:nil, enhanced:false, custom_headers:nil)
response = ocrurl_input_async(language, content_type, image_url, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -702,8 +704,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def ocrurl_input_with_http_info(language, content_type, image_url, cache_image = nil, enhanced = false, custom_headers = nil)
ocrurl_input_async(language, content_type, image_url, cache_image, enhanced, custom_headers).value!
def ocrurl_input_with_http_info(language, content_type, image_url, cache_image:nil, enhanced:false, custom_headers:nil)
ocrurl_input_async(language, content_type, image_url, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value!
end
#
@ -726,7 +728,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def ocrurl_input_async(language, content_type, image_url, cache_image = nil, enhanced = false, custom_headers = nil)
def ocrurl_input_async(language, content_type, image_url, cache_image:nil, enhanced:false, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'language is nil' if language.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
@ -734,7 +736,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -807,8 +808,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [OCR] operation results.
#
def ocrfile_input(language, image_stream, cache_image = nil, enhanced = false, custom_headers = nil)
response = ocrfile_input_async(language, image_stream, cache_image, enhanced, custom_headers).value!
def ocrfile_input(language, image_stream, cache_image:nil, enhanced:false, custom_headers:nil)
response = ocrfile_input_async(language, image_stream, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -831,8 +832,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def ocrfile_input_with_http_info(language, image_stream, cache_image = nil, enhanced = false, custom_headers = nil)
ocrfile_input_async(language, image_stream, cache_image, enhanced, custom_headers).value!
def ocrfile_input_with_http_info(language, image_stream, cache_image:nil, enhanced:false, custom_headers:nil)
ocrfile_input_async(language, image_stream, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value!
end
#
@ -854,14 +855,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def ocrfile_input_async(language, image_stream, cache_image = nil, enhanced = false, custom_headers = nil)
def ocrfile_input_async(language, image_stream, cache_image:nil, enhanced:false, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'language is nil' if language.nil?
fail ArgumentError, 'image_stream is nil' if image_stream.nil?
request_headers = {}
request_headers['Content-Type'] = 'image/gif'
# Set Headers
@ -932,8 +932,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Evaluate] operation results.
#
def evaluate_file_input(image_stream, cache_image = nil, custom_headers = nil)
response = evaluate_file_input_async(image_stream, cache_image, custom_headers).value!
def evaluate_file_input(image_stream, cache_image:nil, custom_headers:nil)
response = evaluate_file_input_async(image_stream, cache_image:cache_image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -948,8 +948,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def evaluate_file_input_with_http_info(image_stream, cache_image = nil, custom_headers = nil)
evaluate_file_input_async(image_stream, cache_image, custom_headers).value!
def evaluate_file_input_with_http_info(image_stream, cache_image:nil, custom_headers:nil)
evaluate_file_input_async(image_stream, cache_image:cache_image, custom_headers:custom_headers).value!
end
#
@ -963,13 +963,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def evaluate_file_input_async(image_stream, cache_image = nil, custom_headers = nil)
def evaluate_file_input_async(image_stream, cache_image:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'image_stream is nil' if image_stream.nil?
request_headers = {}
request_headers['Content-Type'] = 'image/gif'
# Set Headers
@ -1041,8 +1040,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Evaluate] operation results.
#
def evaluate_url_input(content_type, image_url, cache_image = nil, custom_headers = nil)
response = evaluate_url_input_async(content_type, image_url, cache_image, custom_headers).value!
def evaluate_url_input(content_type, image_url, cache_image:nil, custom_headers:nil)
response = evaluate_url_input_async(content_type, image_url, cache_image:cache_image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1058,8 +1057,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def evaluate_url_input_with_http_info(content_type, image_url, cache_image = nil, custom_headers = nil)
evaluate_url_input_async(content_type, image_url, cache_image, custom_headers).value!
def evaluate_url_input_with_http_info(content_type, image_url, cache_image:nil, custom_headers:nil)
evaluate_url_input_async(content_type, image_url, cache_image:cache_image, custom_headers:custom_headers).value!
end
#
@ -1074,14 +1073,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def evaluate_url_input_async(content_type, image_url, cache_image = nil, custom_headers = nil)
def evaluate_url_input_async(content_type, image_url, cache_image:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
fail ArgumentError, 'image_url is nil' if image_url.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -1156,8 +1154,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MatchResponse] operation results.
#
def match_url_input(content_type, image_url, list_id = nil, cache_image = nil, custom_headers = nil)
response = match_url_input_async(content_type, image_url, list_id, cache_image, custom_headers).value!
def match_url_input(content_type, image_url, list_id:nil, cache_image:nil, custom_headers:nil)
response = match_url_input_async(content_type, image_url, list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1182,8 +1180,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def match_url_input_with_http_info(content_type, image_url, list_id = nil, cache_image = nil, custom_headers = nil)
match_url_input_async(content_type, image_url, list_id, cache_image, custom_headers).value!
def match_url_input_with_http_info(content_type, image_url, list_id:nil, cache_image:nil, custom_headers:nil)
match_url_input_async(content_type, image_url, list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value!
end
#
@ -1207,14 +1205,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def match_url_input_async(content_type, image_url, list_id = nil, cache_image = nil, custom_headers = nil)
def match_url_input_async(content_type, image_url, list_id:nil, cache_image:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
fail ArgumentError, 'image_url is nil' if image_url.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -1288,8 +1285,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MatchResponse] operation results.
#
def match_file_input(image_stream, list_id = nil, cache_image = nil, custom_headers = nil)
response = match_file_input_async(image_stream, list_id, cache_image, custom_headers).value!
def match_file_input(image_stream, list_id:nil, cache_image:nil, custom_headers:nil)
response = match_file_input_async(image_stream, list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1313,8 +1310,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def match_file_input_with_http_info(image_stream, list_id = nil, cache_image = nil, custom_headers = nil)
match_file_input_async(image_stream, list_id, cache_image, custom_headers).value!
def match_file_input_with_http_info(image_stream, list_id:nil, cache_image:nil, custom_headers:nil)
match_file_input_async(image_stream, list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value!
end
#
@ -1337,13 +1334,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def match_file_input_async(image_stream, list_id = nil, cache_image = nil, custom_headers = nil)
def match_file_input_async(image_stream, list_id:nil, cache_image:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'image_stream is nil' if image_stream.nil?
request_headers = {}
request_headers['Content-Type'] = 'image/gif'
# Set Headers

Просмотреть файл

@ -50,8 +50,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Image] operation results.
#
def add_image(list_id, tag = nil, label = nil, custom_headers = nil)
response = add_image_async(list_id, tag, label, custom_headers).value!
def add_image(list_id, tag:nil, label:nil, custom_headers:nil)
response = add_image_async(list_id, tag:tag, label:label, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -66,8 +66,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_image_with_http_info(list_id, tag = nil, label = nil, custom_headers = nil)
add_image_async(list_id, tag, label, custom_headers).value!
def add_image_with_http_info(list_id, tag:nil, label:nil, custom_headers:nil)
add_image_async(list_id, tag:tag, label:label, custom_headers:custom_headers).value!
end
#
@ -81,12 +81,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_image_async(list_id, tag = nil, label = nil, custom_headers = nil)
def add_image_async(list_id, tag:nil, label:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -141,8 +142,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [String] operation results.
#
def delete_all_images(list_id, custom_headers = nil)
response = delete_all_images_async(list_id, custom_headers).value!
def delete_all_images(list_id, custom_headers:nil)
response = delete_all_images_async(list_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -155,8 +156,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_all_images_with_http_info(list_id, custom_headers = nil)
delete_all_images_async(list_id, custom_headers).value!
def delete_all_images_with_http_info(list_id, custom_headers:nil)
delete_all_images_async(list_id, custom_headers:custom_headers).value!
end
#
@ -168,12 +169,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_all_images_async(list_id, custom_headers = nil)
def delete_all_images_async(list_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -234,8 +236,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [ImageIds] operation results.
#
def get_all_image_ids(list_id, custom_headers = nil)
response = get_all_image_ids_async(list_id, custom_headers).value!
def get_all_image_ids(list_id, custom_headers:nil)
response = get_all_image_ids_async(list_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -248,8 +250,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_all_image_ids_with_http_info(list_id, custom_headers = nil)
get_all_image_ids_async(list_id, custom_headers).value!
def get_all_image_ids_with_http_info(list_id, custom_headers:nil)
get_all_image_ids_async(list_id, custom_headers:custom_headers).value!
end
#
@ -261,12 +263,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_all_image_ids_async(list_id, custom_headers = nil)
def get_all_image_ids_async(list_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -321,8 +324,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [String] operation results.
#
def delete_image(list_id, image_id, custom_headers = nil)
response = delete_image_async(list_id, image_id, custom_headers).value!
def delete_image(list_id, image_id, custom_headers:nil)
response = delete_image_async(list_id, image_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -336,8 +339,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_image_with_http_info(list_id, image_id, custom_headers = nil)
delete_image_async(list_id, image_id, custom_headers).value!
def delete_image_with_http_info(list_id, image_id, custom_headers:nil)
delete_image_async(list_id, image_id, custom_headers:custom_headers).value!
end
#
@ -350,13 +353,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_image_async(list_id, image_id, custom_headers = nil)
def delete_image_async(list_id, image_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'image_id is nil' if image_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -421,8 +425,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Image] operation results.
#
def add_image_url_input(list_id, content_type, image_url, tag = nil, label = nil, custom_headers = nil)
response = add_image_url_input_async(list_id, content_type, image_url, tag, label, custom_headers).value!
def add_image_url_input(list_id, content_type, image_url, tag:nil, label:nil, custom_headers:nil)
response = add_image_url_input_async(list_id, content_type, image_url, tag:tag, label:label, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -439,8 +443,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_image_url_input_with_http_info(list_id, content_type, image_url, tag = nil, label = nil, custom_headers = nil)
add_image_url_input_async(list_id, content_type, image_url, tag, label, custom_headers).value!
def add_image_url_input_with_http_info(list_id, content_type, image_url, tag:nil, label:nil, custom_headers:nil)
add_image_url_input_async(list_id, content_type, image_url, tag:tag, label:label, custom_headers:custom_headers).value!
end
#
@ -456,7 +460,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_image_url_input_async(list_id, content_type, image_url, tag = nil, label = nil, custom_headers = nil)
def add_image_url_input_async(list_id, content_type, image_url, tag:nil, label:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
@ -464,7 +468,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -531,8 +534,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Image] operation results.
#
def add_image_file_input(list_id, image_stream, tag = nil, label = nil, custom_headers = nil)
response = add_image_file_input_async(list_id, image_stream, tag, label, custom_headers).value!
def add_image_file_input(list_id, image_stream, tag:nil, label:nil, custom_headers:nil)
response = add_image_file_input_async(list_id, image_stream, tag:tag, label:label, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -548,8 +551,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_image_file_input_with_http_info(list_id, image_stream, tag = nil, label = nil, custom_headers = nil)
add_image_file_input_async(list_id, image_stream, tag, label, custom_headers).value!
def add_image_file_input_with_http_info(list_id, image_stream, tag:nil, label:nil, custom_headers:nil)
add_image_file_input_async(list_id, image_stream, tag:tag, label:label, custom_headers:custom_headers).value!
end
#
@ -564,14 +567,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_image_file_input_async(list_id, image_stream, tag = nil, label = nil, custom_headers = nil)
def add_image_file_input_async(list_id, image_stream, tag:nil, label:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'image_stream is nil' if image_stream.nil?
request_headers = {}
request_headers['Content-Type'] = 'image/gif'
# Set Headers

Просмотреть файл

@ -48,8 +48,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [ImageList] operation results.
#
def get_details(list_id, custom_headers = nil)
response = get_details_async(list_id, custom_headers).value!
def get_details(list_id, custom_headers:nil)
response = get_details_async(list_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -62,8 +62,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_details_with_http_info(list_id, custom_headers = nil)
get_details_async(list_id, custom_headers).value!
def get_details_with_http_info(list_id, custom_headers:nil)
get_details_async(list_id, custom_headers:custom_headers).value!
end
#
@ -75,12 +75,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_details_async(list_id, custom_headers = nil)
def get_details_async(list_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -134,8 +135,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [String] operation results.
#
def delete(list_id, custom_headers = nil)
response = delete_async(list_id, custom_headers).value!
def delete(list_id, custom_headers:nil)
response = delete_async(list_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -148,8 +149,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_with_http_info(list_id, custom_headers = nil)
delete_async(list_id, custom_headers).value!
def delete_with_http_info(list_id, custom_headers:nil)
delete_async(list_id, custom_headers:custom_headers).value!
end
#
@ -161,12 +162,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_async(list_id, custom_headers = nil)
def delete_async(list_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -229,8 +231,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [ImageList] operation results.
#
def update(list_id, content_type, body, custom_headers = nil)
response = update_async(list_id, content_type, body, custom_headers).value!
def update(list_id, content_type, body, custom_headers:nil)
response = update_async(list_id, content_type, body, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -245,8 +247,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def update_with_http_info(list_id, content_type, body, custom_headers = nil)
update_async(list_id, content_type, body, custom_headers).value!
def update_with_http_info(list_id, content_type, body, custom_headers:nil)
update_async(list_id, content_type, body, custom_headers:custom_headers).value!
end
#
@ -260,7 +262,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def update_async(list_id, content_type, body, custom_headers = nil)
def update_async(list_id, content_type, body, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
@ -268,7 +270,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -332,8 +333,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [ImageList] operation results.
#
def create(content_type, body, custom_headers = nil)
response = create_async(content_type, body, custom_headers).value!
def create(content_type, body, custom_headers:nil)
response = create_async(content_type, body, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -347,8 +348,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_with_http_info(content_type, body, custom_headers = nil)
create_async(content_type, body, custom_headers).value!
def create_with_http_info(content_type, body, custom_headers:nil)
create_async(content_type, body, custom_headers:custom_headers).value!
end
#
@ -361,14 +362,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_async(content_type, body, custom_headers = nil)
def create_async(content_type, body, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
fail ArgumentError, 'body is nil' if body.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -429,8 +429,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Array] operation results.
#
def get_all_image_lists(custom_headers = nil)
response = get_all_image_lists_async(custom_headers).value!
def get_all_image_lists(custom_headers:nil)
response = get_all_image_lists_async(custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -442,8 +442,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_all_image_lists_with_http_info(custom_headers = nil)
get_all_image_lists_async(custom_headers).value!
def get_all_image_lists_with_http_info(custom_headers:nil)
get_all_image_lists_async(custom_headers:custom_headers).value!
end
#
@ -454,11 +454,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_all_image_lists_async(custom_headers = nil)
def get_all_image_lists_async(custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -527,8 +528,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [RefreshIndex] operation results.
#
def refresh_index_method(list_id, custom_headers = nil)
response = refresh_index_method_async(list_id, custom_headers).value!
def refresh_index_method(list_id, custom_headers:nil)
response = refresh_index_method_async(list_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -541,8 +542,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def refresh_index_method_with_http_info(list_id, custom_headers = nil)
refresh_index_method_async(list_id, custom_headers).value!
def refresh_index_method_with_http_info(list_id, custom_headers:nil)
refresh_index_method_async(list_id, custom_headers:custom_headers).value!
end
#
@ -554,12 +555,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def refresh_index_method_async(list_id, custom_headers = nil)
def refresh_index_method_async(list_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid

Просмотреть файл

@ -50,8 +50,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Object] operation results.
#
def add_term(list_id, term, language, custom_headers = nil)
response = add_term_async(list_id, term, language, custom_headers).value!
def add_term(list_id, term, language, custom_headers:nil)
response = add_term_async(list_id, term, language, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -66,8 +66,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_term_with_http_info(list_id, term, language, custom_headers = nil)
add_term_async(list_id, term, language, custom_headers).value!
def add_term_with_http_info(list_id, term, language, custom_headers:nil)
add_term_async(list_id, term, language, custom_headers:custom_headers).value!
end
#
@ -81,7 +81,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_term_async(list_id, term, language, custom_headers = nil)
def add_term_async(list_id, term, language, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'term is nil' if term.nil?
@ -89,6 +89,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -135,8 +136,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [String] operation results.
#
def delete_term(list_id, term, language, custom_headers = nil)
response = delete_term_async(list_id, term, language, custom_headers).value!
def delete_term(list_id, term, language, custom_headers:nil)
response = delete_term_async(list_id, term, language, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -151,8 +152,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_term_with_http_info(list_id, term, language, custom_headers = nil)
delete_term_async(list_id, term, language, custom_headers).value!
def delete_term_with_http_info(list_id, term, language, custom_headers:nil)
delete_term_async(list_id, term, language, custom_headers:custom_headers).value!
end
#
@ -166,7 +167,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_term_async(list_id, term, language, custom_headers = nil)
def delete_term_async(list_id, term, language, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'term is nil' if term.nil?
@ -174,6 +175,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -238,8 +240,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Terms] operation results.
#
def get_all_terms(list_id, language, offset = nil, limit = nil, custom_headers = nil)
response = get_all_terms_async(list_id, language, offset, limit, custom_headers).value!
def get_all_terms(list_id, language, offset:nil, limit:nil, custom_headers:nil)
response = get_all_terms_async(list_id, language, offset:offset, limit:limit, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -255,8 +257,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_all_terms_with_http_info(list_id, language, offset = nil, limit = nil, custom_headers = nil)
get_all_terms_async(list_id, language, offset, limit, custom_headers).value!
def get_all_terms_with_http_info(list_id, language, offset:nil, limit:nil, custom_headers:nil)
get_all_terms_async(list_id, language, offset:offset, limit:limit, custom_headers:custom_headers).value!
end
#
@ -271,13 +273,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_all_terms_async(list_id, language, offset = nil, limit = nil, custom_headers = nil)
def get_all_terms_async(list_id, language, offset:nil, limit:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'language is nil' if language.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -333,8 +336,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [String] operation results.
#
def delete_all_terms(list_id, language, custom_headers = nil)
response = delete_all_terms_async(list_id, language, custom_headers).value!
def delete_all_terms(list_id, language, custom_headers:nil)
response = delete_all_terms_async(list_id, language, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -348,8 +351,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_all_terms_with_http_info(list_id, language, custom_headers = nil)
delete_all_terms_async(list_id, language, custom_headers).value!
def delete_all_terms_with_http_info(list_id, language, custom_headers:nil)
delete_all_terms_async(list_id, language, custom_headers:custom_headers).value!
end
#
@ -362,13 +365,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_all_terms_async(list_id, language, custom_headers = nil)
def delete_all_terms_async(list_id, language, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'language is nil' if language.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid

Просмотреть файл

@ -49,8 +49,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [TermList] operation results.
#
def get_details(list_id, custom_headers = nil)
response = get_details_async(list_id, custom_headers).value!
def get_details(list_id, custom_headers:nil)
response = get_details_async(list_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -64,8 +64,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_details_with_http_info(list_id, custom_headers = nil)
get_details_async(list_id, custom_headers).value!
def get_details_with_http_info(list_id, custom_headers:nil)
get_details_async(list_id, custom_headers:custom_headers).value!
end
#
@ -78,12 +78,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_details_async(list_id, custom_headers = nil)
def get_details_async(list_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -137,8 +138,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [String] operation results.
#
def delete(list_id, custom_headers = nil)
response = delete_async(list_id, custom_headers).value!
def delete(list_id, custom_headers:nil)
response = delete_async(list_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -151,8 +152,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_with_http_info(list_id, custom_headers = nil)
delete_async(list_id, custom_headers).value!
def delete_with_http_info(list_id, custom_headers:nil)
delete_async(list_id, custom_headers:custom_headers).value!
end
#
@ -164,12 +165,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_async(list_id, custom_headers = nil)
def delete_async(list_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -232,8 +234,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [TermList] operation results.
#
def update(list_id, content_type, body, custom_headers = nil)
response = update_async(list_id, content_type, body, custom_headers).value!
def update(list_id, content_type, body, custom_headers:nil)
response = update_async(list_id, content_type, body, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -248,8 +250,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def update_with_http_info(list_id, content_type, body, custom_headers = nil)
update_async(list_id, content_type, body, custom_headers).value!
def update_with_http_info(list_id, content_type, body, custom_headers:nil)
update_async(list_id, content_type, body, custom_headers:custom_headers).value!
end
#
@ -263,7 +265,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def update_async(list_id, content_type, body, custom_headers = nil)
def update_async(list_id, content_type, body, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
@ -271,7 +273,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -335,8 +336,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [TermList] operation results.
#
def create(content_type, body, custom_headers = nil)
response = create_async(content_type, body, custom_headers).value!
def create(content_type, body, custom_headers:nil)
response = create_async(content_type, body, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -350,8 +351,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_with_http_info(content_type, body, custom_headers = nil)
create_async(content_type, body, custom_headers).value!
def create_with_http_info(content_type, body, custom_headers:nil)
create_async(content_type, body, custom_headers:custom_headers).value!
end
#
@ -364,14 +365,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_async(content_type, body, custom_headers = nil)
def create_async(content_type, body, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
fail ArgumentError, 'body is nil' if body.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -432,8 +432,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Array] operation results.
#
def get_all_term_lists(custom_headers = nil)
response = get_all_term_lists_async(custom_headers).value!
def get_all_term_lists(custom_headers:nil)
response = get_all_term_lists_async(custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -445,8 +445,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_all_term_lists_with_http_info(custom_headers = nil)
get_all_term_lists_async(custom_headers).value!
def get_all_term_lists_with_http_info(custom_headers:nil)
get_all_term_lists_async(custom_headers:custom_headers).value!
end
#
@ -457,11 +457,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_all_term_lists_async(custom_headers = nil)
def get_all_term_lists_async(custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -531,8 +532,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [RefreshIndex] operation results.
#
def refresh_index_method(list_id, language, custom_headers = nil)
response = refresh_index_method_async(list_id, language, custom_headers).value!
def refresh_index_method(list_id, language, custom_headers:nil)
response = refresh_index_method_async(list_id, language, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -546,8 +547,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def refresh_index_method_with_http_info(list_id, language, custom_headers = nil)
refresh_index_method_async(list_id, language, custom_headers).value!
def refresh_index_method_with_http_info(list_id, language, custom_headers:nil)
refresh_index_method_async(list_id, language, custom_headers:custom_headers).value!
end
#
@ -560,13 +561,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def refresh_index_method_async(list_id, language, custom_headers = nil)
def refresh_index_method_async(list_id, language, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'list_id is nil' if list_id.nil?
fail ArgumentError, 'language is nil' if language.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid

Просмотреть файл

@ -49,8 +49,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Review] operation results.
#
def get_review(team_name, review_id, custom_headers = nil)
response = get_review_async(team_name, review_id, custom_headers).value!
def get_review(team_name, review_id, custom_headers:nil)
response = get_review_async(team_name, review_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -64,8 +64,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_review_with_http_info(team_name, review_id, custom_headers = nil)
get_review_async(team_name, review_id, custom_headers).value!
def get_review_with_http_info(team_name, review_id, custom_headers:nil)
get_review_async(team_name, review_id, custom_headers:custom_headers).value!
end
#
@ -78,13 +78,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_review_async(team_name, review_id, custom_headers = nil)
def get_review_async(team_name, review_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
fail ArgumentError, 'review_id is nil' if review_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -139,8 +140,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Job] operation results.
#
def get_job_details(team_name, job_id, custom_headers = nil)
response = get_job_details_async(team_name, job_id, custom_headers).value!
def get_job_details(team_name, job_id, custom_headers:nil)
response = get_job_details_async(team_name, job_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -154,8 +155,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_job_details_with_http_info(team_name, job_id, custom_headers = nil)
get_job_details_async(team_name, job_id, custom_headers).value!
def get_job_details_with_http_info(team_name, job_id, custom_headers:nil)
get_job_details_async(team_name, job_id, custom_headers:custom_headers).value!
end
#
@ -168,13 +169,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_job_details_async(team_name, job_id, custom_headers = nil)
def get_job_details_async(team_name, job_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
fail ArgumentError, 'job_id is nil' if job_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -258,8 +260,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Array] operation results.
#
def create_reviews(url_content_type, team_name, create_review_body, sub_team = nil, custom_headers = nil)
response = create_reviews_async(url_content_type, team_name, create_review_body, sub_team, custom_headers).value!
def create_reviews(url_content_type, team_name, create_review_body, sub_team:nil, custom_headers:nil)
response = create_reviews_async(url_content_type, team_name, create_review_body, sub_team:sub_team, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -302,8 +304,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_reviews_with_http_info(url_content_type, team_name, create_review_body, sub_team = nil, custom_headers = nil)
create_reviews_async(url_content_type, team_name, create_review_body, sub_team, custom_headers).value!
def create_reviews_with_http_info(url_content_type, team_name, create_review_body, sub_team:nil, custom_headers:nil)
create_reviews_async(url_content_type, team_name, create_review_body, sub_team:sub_team, custom_headers:custom_headers).value!
end
#
@ -345,7 +347,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_reviews_async(url_content_type, team_name, create_review_body, sub_team = nil, custom_headers = nil)
def create_reviews_async(url_content_type, team_name, create_review_body, sub_team:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'url_content_type is nil' if url_content_type.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
@ -353,7 +355,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -506,8 +507,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [JobId] operation results.
#
def create_job(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint = nil, custom_headers = nil)
response = create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint, custom_headers).value!
def create_job(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:nil, custom_headers:nil)
response = create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:call_back_endpoint, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -578,8 +579,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_job_with_http_info(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint = nil, custom_headers = nil)
create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint, custom_headers).value!
def create_job_with_http_info(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:nil, custom_headers:nil)
create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:call_back_endpoint, custom_headers:custom_headers).value!
end
#
@ -649,7 +650,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint = nil, custom_headers = nil)
def create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
@ -660,7 +661,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -750,8 +750,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
# will be added to the HTTP request.
#
#
def add_video_frame(team_name, review_id, timescale = nil, custom_headers = nil)
response = add_video_frame_async(team_name, review_id, timescale, custom_headers).value!
def add_video_frame(team_name, review_id, timescale:nil, custom_headers:nil)
response = add_video_frame_async(team_name, review_id, timescale:timescale, custom_headers:custom_headers).value!
nil
end
@ -791,8 +791,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_video_frame_with_http_info(team_name, review_id, timescale = nil, custom_headers = nil)
add_video_frame_async(team_name, review_id, timescale, custom_headers).value!
def add_video_frame_with_http_info(team_name, review_id, timescale:nil, custom_headers:nil)
add_video_frame_async(team_name, review_id, timescale:timescale, custom_headers:custom_headers).value!
end
#
@ -831,13 +831,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_video_frame_async(team_name, review_id, timescale = nil, custom_headers = nil)
def add_video_frame_async(team_name, review_id, timescale:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
fail ArgumentError, 'review_id is nil' if review_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -912,8 +913,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Frames] operation results.
#
def get_video_frames(team_name, review_id, start_seed = nil, no_of_records = nil, filter = nil, custom_headers = nil)
response = get_video_frames_async(team_name, review_id, start_seed, no_of_records, filter, custom_headers).value!
def get_video_frames(team_name, review_id, start_seed:nil, no_of_records:nil, filter:nil, custom_headers:nil)
response = get_video_frames_async(team_name, review_id, start_seed:start_seed, no_of_records:no_of_records, filter:filter, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -956,8 +957,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_video_frames_with_http_info(team_name, review_id, start_seed = nil, no_of_records = nil, filter = nil, custom_headers = nil)
get_video_frames_async(team_name, review_id, start_seed, no_of_records, filter, custom_headers).value!
def get_video_frames_with_http_info(team_name, review_id, start_seed:nil, no_of_records:nil, filter:nil, custom_headers:nil)
get_video_frames_async(team_name, review_id, start_seed:start_seed, no_of_records:no_of_records, filter:filter, custom_headers:custom_headers).value!
end
#
@ -999,13 +1000,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_video_frames_async(team_name, review_id, start_seed = nil, no_of_records = nil, filter = nil, custom_headers = nil)
def get_video_frames_async(team_name, review_id, start_seed:nil, no_of_records:nil, filter:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
fail ArgumentError, 'review_id is nil' if review_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -1060,8 +1062,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
# will be added to the HTTP request.
#
#
def publish_video_review(team_name, review_id, custom_headers = nil)
response = publish_video_review_async(team_name, review_id, custom_headers).value!
def publish_video_review(team_name, review_id, custom_headers:nil)
response = publish_video_review_async(team_name, review_id, custom_headers:custom_headers).value!
nil
end
@ -1075,8 +1077,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def publish_video_review_with_http_info(team_name, review_id, custom_headers = nil)
publish_video_review_async(team_name, review_id, custom_headers).value!
def publish_video_review_with_http_info(team_name, review_id, custom_headers:nil)
publish_video_review_async(team_name, review_id, custom_headers:custom_headers).value!
end
#
@ -1089,13 +1091,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def publish_video_review_async(team_name, review_id, custom_headers = nil)
def publish_video_review_async(team_name, review_id, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
fail ArgumentError, 'review_id is nil' if review_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -1145,8 +1148,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
# will be added to the HTTP request.
#
#
def add_video_transcript_moderation_result(content_type, team_name, review_id, transcript_moderation_body, custom_headers = nil)
response = add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers).value!
def add_video_transcript_moderation_result(content_type, team_name, review_id, transcript_moderation_body, custom_headers:nil)
response = add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers:custom_headers).value!
nil
end
@ -1166,8 +1169,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_video_transcript_moderation_result_with_http_info(content_type, team_name, review_id, transcript_moderation_body, custom_headers = nil)
add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers).value!
def add_video_transcript_moderation_result_with_http_info(content_type, team_name, review_id, transcript_moderation_body, custom_headers:nil)
add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers:custom_headers).value!
end
#
@ -1186,7 +1189,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers = nil)
def add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
@ -1195,7 +1198,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -1266,8 +1268,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
# will be added to the HTTP request.
#
#
def add_video_transcript(team_name, review_id, vttfile, custom_headers = nil)
response = add_video_transcript_async(team_name, review_id, vttfile, custom_headers).value!
def add_video_transcript(team_name, review_id, vttfile, custom_headers:nil)
response = add_video_transcript_async(team_name, review_id, vttfile, custom_headers:custom_headers).value!
nil
end
@ -1283,8 +1285,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_video_transcript_with_http_info(team_name, review_id, vttfile, custom_headers = nil)
add_video_transcript_async(team_name, review_id, vttfile, custom_headers).value!
def add_video_transcript_with_http_info(team_name, review_id, vttfile, custom_headers:nil)
add_video_transcript_async(team_name, review_id, vttfile, custom_headers:custom_headers).value!
end
#
@ -1299,7 +1301,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_video_transcript_async(team_name, review_id, vttfile, custom_headers = nil)
def add_video_transcript_async(team_name, review_id, vttfile, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
fail ArgumentError, 'review_id is nil' if review_id.nil?
@ -1308,7 +1310,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'text/plain'
# Set Headers
@ -1398,8 +1399,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Array] operation results.
#
def create_video_reviews(content_type, team_name, create_video_reviews_body, sub_team = nil, custom_headers = nil)
response = create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team, custom_headers).value!
def create_video_reviews(content_type, team_name, create_video_reviews_body, sub_team:nil, custom_headers:nil)
response = create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team:sub_team, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1442,8 +1443,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_video_reviews_with_http_info(content_type, team_name, create_video_reviews_body, sub_team = nil, custom_headers = nil)
create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team, custom_headers).value!
def create_video_reviews_with_http_info(content_type, team_name, create_video_reviews_body, sub_team:nil, custom_headers:nil)
create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team:sub_team, custom_headers:custom_headers).value!
end
#
@ -1485,7 +1486,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team = nil, custom_headers = nil)
def create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
@ -1493,7 +1494,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -1596,8 +1596,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
# will be added to the HTTP request.
#
#
def add_video_frame_url(content_type, team_name, review_id, video_frame_body, timescale = nil, custom_headers = nil)
response = add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale, custom_headers).value!
def add_video_frame_url(content_type, team_name, review_id, video_frame_body, timescale:nil, custom_headers:nil)
response = add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale:timescale, custom_headers:custom_headers).value!
nil
end
@ -1619,8 +1619,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_video_frame_url_with_http_info(content_type, team_name, review_id, video_frame_body, timescale = nil, custom_headers = nil)
add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale, custom_headers).value!
def add_video_frame_url_with_http_info(content_type, team_name, review_id, video_frame_body, timescale:nil, custom_headers:nil)
add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale:timescale, custom_headers:custom_headers).value!
end
#
@ -1641,7 +1641,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale = nil, custom_headers = nil)
def add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
@ -1650,7 +1650,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -1728,8 +1727,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
# will be added to the HTTP request.
#
#
def add_video_frame_stream(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale = nil, custom_headers = nil)
response = add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale, custom_headers).value!
def add_video_frame_stream(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:nil, custom_headers:nil)
response = add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:timescale, custom_headers:custom_headers).value!
nil
end
@ -1751,8 +1750,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_video_frame_stream_with_http_info(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale = nil, custom_headers = nil)
add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale, custom_headers).value!
def add_video_frame_stream_with_http_info(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:nil, custom_headers:nil)
add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:timescale, custom_headers:custom_headers).value!
end
#
@ -1773,7 +1772,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale = nil, custom_headers = nil)
def add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:nil, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'content_type is nil' if content_type.nil?
fail ArgumentError, 'team_name is nil' if team_name.nil?
@ -1783,11 +1782,18 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'multipart/form-data'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['Content-Type'] = content_type unless content_type.nil?
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
# Set Form Data
form_data = {}
form_data['frameImageZip'] = frame_image_zip.to_s unless frame_image_zip.to_s.nil?
form_data['frameMetadata'] = frame_metadata unless frame_metadata.nil?
path_template = 'contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/frames'
request_url = @base_url || @client.base_url
@ -1798,6 +1804,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
path_params: {'teamName' => team_name,'reviewId' => review_id},
query_params: {'timescale' => timescale},
headers: request_headers.merge(custom_headers || {}),
body: URI.encode_www_form(form_data),
base_url: request_url
}
promise = @client.make_request_async(:post, path_template, options)

Просмотреть файл

@ -58,8 +58,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Screen] operation results.
#
def screen_text(language, text_content_type, text_content, autocorrect = false, pii = false, list_id = nil, classify = false, custom_headers = nil)
response = screen_text_async(language, text_content_type, text_content, autocorrect, pii, list_id, classify, custom_headers).value!
def screen_text(language, text_content_type, text_content, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil)
response = screen_text_async(language, text_content_type, text_content, autocorrect:autocorrect, pii:pii, list_id:list_id, classify:classify, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -82,8 +82,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def screen_text_with_http_info(language, text_content_type, text_content, autocorrect = false, pii = false, list_id = nil, classify = false, custom_headers = nil)
screen_text_async(language, text_content_type, text_content, autocorrect, pii, list_id, classify, custom_headers).value!
def screen_text_with_http_info(language, text_content_type, text_content, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil)
screen_text_async(language, text_content_type, text_content, autocorrect:autocorrect, pii:pii, list_id:list_id, classify:classify, custom_headers:custom_headers).value!
end
#
@ -105,7 +105,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def screen_text_async(language, text_content_type, text_content, autocorrect = false, pii = false, list_id = nil, classify = false, custom_headers = nil)
def screen_text_async(language, text_content_type, text_content, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'language is nil' if language.nil?
fail ArgumentError, 'text_content_type is nil' if text_content_type.nil?
@ -113,7 +113,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0
request_headers = {}
request_headers['Content-Type'] = 'text/plain'
# Set Headers
@ -188,8 +187,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [DetectedLanguage] operation results.
#
def detect_language(text_content_type, text_content, custom_headers = nil)
response = detect_language_async(text_content_type, text_content, custom_headers).value!
def detect_language(text_content_type, text_content, custom_headers:nil)
response = detect_language_async(text_content_type, text_content, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -207,8 +206,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def detect_language_with_http_info(text_content_type, text_content, custom_headers = nil)
detect_language_async(text_content_type, text_content, custom_headers).value!
def detect_language_with_http_info(text_content_type, text_content, custom_headers:nil)
detect_language_async(text_content_type, text_content, custom_headers:custom_headers).value!
end
#
@ -225,14 +224,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def detect_language_async(text_content_type, text_content, custom_headers = nil)
def detect_language_async(text_content_type, text_content, custom_headers:nil)
fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil?
fail ArgumentError, 'text_content_type is nil' if text_content_type.nil?
fail ArgumentError, 'text_content is nil' if text_content.nil?
request_headers = {}
request_headers['Content-Type'] = 'text/plain'
# Set Headers

Просмотреть файл

@ -93,18 +93,18 @@ module Azure::ContentModerator::Profiles::Latest
@base_url = options[:base_url].nil? ? nil:options[:base_url]
@options = options[:options].nil? ? nil:options[:options]
client_0 = Azure::CognitiveServices::ContentModerator::V1_0::ContentModeratorClient.new(configurable.credentials, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::ContentModerator::V1_0::ContentModeratorClient.new(configurable.credentials, options)
if(@client_0.respond_to?(:subscription_id))
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)
@image_moderation = client_0.image_moderation
@text_moderation = client_0.text_moderation
@list_management_image_lists = client_0.list_management_image_lists
@list_management_term_lists = client_0.list_management_term_lists
@list_management_image = client_0.list_management_image
@list_management_term = client_0.list_management_term
@reviews = client_0.reviews
add_telemetry(@client_0)
@image_moderation = @client_0.image_moderation
@text_moderation = @client_0.text_moderation
@list_management_image_lists = @client_0.list_management_image_lists
@list_management_term_lists = @client_0.list_management_term_lists
@list_management_image = @client_0.list_management_image
@list_management_term = @client_0.list_management_term
@reviews = @client_0.reviews
@model_classes = ModelClasses.new
end
@ -114,6 +114,14 @@ module Azure::ContentModerator::Profiles::Latest
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

Просмотреть файл

@ -209,8 +209,8 @@ module Azure::CognitiveServices::CustomSearch::V1_0
#
# @return [SearchResponse] operation results.
#
def search(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, custom_config = nil, country_code = nil, count = nil, market = 'en-us', offset = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
response = search_async(query, accept_language, user_agent, client_id, client_ip, location, custom_config, country_code, count, market, offset, safe_search, set_lang, text_decorations, text_format, custom_headers).value!
def search(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, custom_config:nil, country_code:nil, count:nil, market:'en-us', offset:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
response = search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, custom_config:custom_config, country_code:country_code, count:count, market:market, offset:offset, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -401,8 +401,8 @@ module Azure::CognitiveServices::CustomSearch::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def search_with_http_info(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, custom_config = nil, country_code = nil, count = nil, market = 'en-us', offset = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
search_async(query, accept_language, user_agent, client_id, client_ip, location, custom_config, country_code, count, market, offset, safe_search, set_lang, text_decorations, text_format, custom_headers).value!
def search_with_http_info(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, custom_config:nil, country_code:nil, count:nil, market:'en-us', offset:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, custom_config:custom_config, country_code:country_code, count:count, market:market, offset:offset, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value!
end
#
@ -592,12 +592,13 @@ module Azure::CognitiveServices::CustomSearch::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def search_async(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, custom_config = nil, country_code = nil, count = nil, market = 'en-us', offset = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
def search_async(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, custom_config:nil, country_code:nil, count:nil, market:'en-us', offset:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
x_bing_apis_sdk = 'true'
fail ArgumentError, 'query is nil' if query.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid

Просмотреть файл

@ -48,12 +48,12 @@ module Azure::CustomSearch::Profiles::Latest
@base_url = options[:base_url].nil? ? nil:options[:base_url]
@options = options[:options].nil? ? nil:options[:options]
client_0 = Azure::CognitiveServices::CustomSearch::V1_0::CustomSearchClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::CustomSearch::V1_0::CustomSearchClient.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)
@custom_instance = client_0.custom_instance
add_telemetry(@client_0)
@custom_instance = @client_0.custom_instance
@model_classes = ModelClasses.new
end
@ -63,6 +63,14 @@ module Azure::CustomSearch::Profiles::Latest
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

Просмотреть файл

@ -186,8 +186,8 @@ module Azure::CognitiveServices::EntitySearch::V1_0
#
# @return [SearchResponse] operation results.
#
def search(query, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = 'en-us', response_filter = nil, response_format = nil, safe_search = nil, set_lang = nil, custom_headers = nil)
response = search_async(query, accept_language, pragma, user_agent, client_id, client_ip, location, country_code, market, response_filter, response_format, safe_search, set_lang, custom_headers).value!
def search(query, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:'en-us', response_filter:nil, response_format:nil, safe_search:nil, set_lang:nil, custom_headers:nil)
response = search_async(query, accept_language:accept_language, pragma:pragma, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, response_filter:response_filter, response_format:response_format, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -350,8 +350,8 @@ module Azure::CognitiveServices::EntitySearch::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def search_with_http_info(query, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = 'en-us', response_filter = nil, response_format = nil, safe_search = nil, set_lang = nil, custom_headers = nil)
search_async(query, accept_language, pragma, user_agent, client_id, client_ip, location, country_code, market, response_filter, response_format, safe_search, set_lang, custom_headers).value!
def search_with_http_info(query, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:'en-us', response_filter:nil, response_format:nil, safe_search:nil, set_lang:nil, custom_headers:nil)
search_async(query, accept_language:accept_language, pragma:pragma, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, response_filter:response_filter, response_format:response_format, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value!
end
#
@ -513,12 +513,13 @@ module Azure::CognitiveServices::EntitySearch::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def search_async(query, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = 'en-us', response_filter = nil, response_format = nil, safe_search = nil, set_lang = nil, custom_headers = nil)
def search_async(query, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:'en-us', response_filter:nil, response_format:nil, safe_search:nil, set_lang:nil, custom_headers:nil)
x_bing_apis_sdk = 'true'
fail ArgumentError, 'query is nil' if query.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid

Просмотреть файл

@ -75,12 +75,12 @@ module Azure::EntitySearch::Profiles::Latest
@base_url = options[:base_url].nil? ? nil:options[:base_url]
@options = options[:options].nil? ? nil:options[:options]
client_0 = Azure::CognitiveServices::EntitySearch::V1_0::EntitySearchClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::EntitySearch::V1_0::EntitySearchClient.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)
@entities_operations = client_0.entities_operations
add_telemetry(@client_0)
@entities_operations = @client_0.entities_operations
@model_classes = ModelClasses.new
end
@ -90,6 +90,14 @@ module Azure::EntitySearch::Profiles::Latest
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

Просмотреть файл

@ -44,8 +44,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Array] operation results.
#
def find_similar(face_id, face_list_id = nil, face_ids = nil, max_num_of_candidates_returned = 20, mode = nil, custom_headers = nil)
response = find_similar_async(face_id, face_list_id, face_ids, max_num_of_candidates_returned, mode, custom_headers).value!
def find_similar(face_id, face_list_id:nil, face_ids:nil, max_num_of_candidates_returned:20, mode:nil, custom_headers:nil)
response = find_similar_async(face_id, face_list_id:face_list_id, face_ids:face_ids, max_num_of_candidates_returned:max_num_of_candidates_returned, mode:mode, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -72,8 +72,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def find_similar_with_http_info(face_id, face_list_id = nil, face_ids = nil, max_num_of_candidates_returned = 20, mode = nil, custom_headers = nil)
find_similar_async(face_id, face_list_id, face_ids, max_num_of_candidates_returned, mode, custom_headers).value!
def find_similar_with_http_info(face_id, face_list_id:nil, face_ids:nil, max_num_of_candidates_returned:20, mode:nil, custom_headers:nil)
find_similar_async(face_id, face_list_id:face_list_id, face_ids:face_ids, max_num_of_candidates_returned:max_num_of_candidates_returned, mode:mode, custom_headers:custom_headers).value!
end
#
@ -99,7 +99,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def find_similar_async(face_id, face_list_id = nil, face_ids = nil, max_num_of_candidates_returned = 20, mode = nil, custom_headers = nil)
def find_similar_async(face_id, face_list_id:nil, face_ids:nil, max_num_of_candidates_returned:20, mode:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_id is nil' if face_id.nil?
fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
@ -118,7 +118,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -196,8 +195,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [GroupResponse] operation results.
#
def group(face_ids, custom_headers = nil)
response = group_async(face_ids, custom_headers).value!
def group(face_ids, custom_headers:nil)
response = group_async(face_ids, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -211,8 +210,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def group_with_http_info(face_ids, custom_headers = nil)
group_async(face_ids, custom_headers).value!
def group_with_http_info(face_ids, custom_headers:nil)
group_async(face_ids, custom_headers:custom_headers).value!
end
#
@ -225,7 +224,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def group_async(face_ids, custom_headers = nil)
def group_async(face_ids, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_ids is nil' if face_ids.nil?
fail ArgumentError, "'face_ids' should satisfy the constraint - 'MaxItems': '1000'" if !face_ids.nil? && face_ids.length > 1000
@ -236,7 +235,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -302,8 +300,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Array] operation results.
#
def identify(person_group_id, face_ids, max_num_of_candidates_returned = 1, confidence_threshold = nil, custom_headers = nil)
response = identify_async(person_group_id, face_ids, max_num_of_candidates_returned, confidence_threshold, custom_headers).value!
def identify(person_group_id, face_ids, max_num_of_candidates_returned:1, confidence_threshold:nil, custom_headers:nil)
response = identify_async(person_group_id, face_ids, max_num_of_candidates_returned:max_num_of_candidates_returned, confidence_threshold:confidence_threshold, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -321,8 +319,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def identify_with_http_info(person_group_id, face_ids, max_num_of_candidates_returned = 1, confidence_threshold = nil, custom_headers = nil)
identify_async(person_group_id, face_ids, max_num_of_candidates_returned, confidence_threshold, custom_headers).value!
def identify_with_http_info(person_group_id, face_ids, max_num_of_candidates_returned:1, confidence_threshold:nil, custom_headers:nil)
identify_async(person_group_id, face_ids, max_num_of_candidates_returned:max_num_of_candidates_returned, confidence_threshold:confidence_threshold, custom_headers:custom_headers).value!
end
#
@ -339,7 +337,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def identify_async(person_group_id, face_ids, max_num_of_candidates_returned = 1, confidence_threshold = nil, custom_headers = nil)
def identify_async(person_group_id, face_ids, max_num_of_candidates_returned:1, confidence_threshold:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -358,7 +356,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -437,8 +434,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [VerifyResult] operation results.
#
def verify(face_id1, face_id2, custom_headers = nil)
response = verify_async(face_id1, face_id2, custom_headers).value!
def verify(face_id1, face_id2, custom_headers:nil)
response = verify_async(face_id1, face_id2, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -453,8 +450,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def verify_with_http_info(face_id1, face_id2, custom_headers = nil)
verify_async(face_id1, face_id2, custom_headers).value!
def verify_with_http_info(face_id1, face_id2, custom_headers:nil)
verify_async(face_id1, face_id2, custom_headers:custom_headers).value!
end
#
@ -468,7 +465,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def verify_async(face_id1, face_id2, custom_headers = nil)
def verify_async(face_id1, face_id2, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_id1 is nil' if face_id1.nil?
fail ArgumentError, 'face_id2 is nil' if face_id2.nil?
@ -480,7 +477,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -551,8 +547,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Array] operation results.
#
def detect(url, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil)
response = detect_async(url, return_face_id, return_face_landmarks, return_face_attributes, custom_headers).value!
def detect(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil)
response = detect_async(url, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -575,8 +571,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def detect_with_http_info(url, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil)
detect_async(url, return_face_id, return_face_landmarks, return_face_attributes, custom_headers).value!
def detect_with_http_info(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil)
detect_async(url, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, custom_headers:custom_headers).value!
end
#
@ -598,7 +594,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def detect_async(url, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil)
def detect_async(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'url is nil' if url.nil?
@ -608,7 +604,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -692,8 +687,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [VerifyResult] operation results.
#
def verify_with_person_group(face_id, person_id, person_group_id, custom_headers = nil)
response = verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers).value!
def verify_with_person_group(face_id, person_id, person_group_id, custom_headers:nil)
response = verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -712,8 +707,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def verify_with_person_group_with_http_info(face_id, person_id, person_group_id, custom_headers = nil)
verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers).value!
def verify_with_person_group_with_http_info(face_id, person_id, person_group_id, custom_headers:nil)
verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers:custom_headers).value!
end
#
@ -731,7 +726,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers = nil)
def verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_id is nil' if face_id.nil?
fail ArgumentError, 'person_id is nil' if person_id.nil?
@ -747,7 +742,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -818,8 +812,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Array] operation results.
#
def detect_in_stream(image, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil)
response = detect_in_stream_async(image, return_face_id, return_face_landmarks, return_face_attributes, custom_headers).value!
def detect_in_stream(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil)
response = detect_in_stream_async(image, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -842,8 +836,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def detect_in_stream_with_http_info(image, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil)
detect_in_stream_async(image, return_face_id, return_face_landmarks, return_face_attributes, custom_headers).value!
def detect_in_stream_with_http_info(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil)
detect_in_stream_async(image, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, custom_headers:custom_headers).value!
end
#
@ -865,13 +859,12 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def detect_in_stream_async(image, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil)
def detect_in_stream_async(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'image is nil' if image.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers

Просмотреть файл

@ -33,8 +33,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def create(face_list_id, name = nil, user_data = nil, custom_headers = nil)
response = create_async(face_list_id, name, user_data, custom_headers).value!
def create(face_list_id, name:nil, user_data:nil, custom_headers:nil)
response = create_async(face_list_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
nil
end
@ -51,8 +51,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_with_http_info(face_list_id, name = nil, user_data = nil, custom_headers = nil)
create_async(face_list_id, name, user_data, custom_headers).value!
def create_with_http_info(face_list_id, name:nil, user_data:nil, custom_headers:nil)
create_async(face_list_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
end
#
@ -68,7 +68,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_async(face_list_id, name = nil, user_data = nil, custom_headers = nil)
def create_async(face_list_id, name:nil, user_data:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
@ -83,7 +83,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -135,8 +134,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [GetFaceListResult] operation results.
#
def get(face_list_id, custom_headers = nil)
response = get_async(face_list_id, custom_headers).value!
def get(face_list_id, custom_headers:nil)
response = get_async(face_list_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -149,8 +148,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_with_http_info(face_list_id, custom_headers = nil)
get_async(face_list_id, custom_headers).value!
def get_with_http_info(face_list_id, custom_headers:nil)
get_async(face_list_id, custom_headers:custom_headers).value!
end
#
@ -162,7 +161,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_async(face_list_id, custom_headers = nil)
def get_async(face_list_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
@ -170,6 +169,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -225,8 +225,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def update(face_list_id, name = nil, user_data = nil, custom_headers = nil)
response = update_async(face_list_id, name, user_data, custom_headers).value!
def update(face_list_id, name:nil, user_data:nil, custom_headers:nil)
response = update_async(face_list_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
nil
end
@ -242,8 +242,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def update_with_http_info(face_list_id, name = nil, user_data = nil, custom_headers = nil)
update_async(face_list_id, name, user_data, custom_headers).value!
def update_with_http_info(face_list_id, name:nil, user_data:nil, custom_headers:nil)
update_async(face_list_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
end
#
@ -258,7 +258,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def update_async(face_list_id, name = nil, user_data = nil, custom_headers = nil)
def update_async(face_list_id, name:nil, user_data:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
@ -273,7 +273,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -325,8 +324,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def delete(face_list_id, custom_headers = nil)
response = delete_async(face_list_id, custom_headers).value!
def delete(face_list_id, custom_headers:nil)
response = delete_async(face_list_id, custom_headers:custom_headers).value!
nil
end
@ -340,8 +339,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_with_http_info(face_list_id, custom_headers = nil)
delete_async(face_list_id, custom_headers).value!
def delete_with_http_info(face_list_id, custom_headers:nil)
delete_async(face_list_id, custom_headers:custom_headers).value!
end
#
@ -354,7 +353,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_async(face_list_id, custom_headers = nil)
def delete_async(face_list_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
@ -362,6 +361,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -405,8 +405,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Array] operation results.
#
def list(custom_headers = nil)
response = list_async(custom_headers).value!
def list(custom_headers:nil)
response = list_async(custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -419,8 +419,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_with_http_info(custom_headers = nil)
list_async(custom_headers).value!
def list_with_http_info(custom_headers:nil)
list_async(custom_headers:custom_headers).value!
end
#
@ -432,11 +432,12 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_async(custom_headers = nil)
def list_async(custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -506,8 +507,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def delete_face(face_list_id, persisted_face_id, custom_headers = nil)
response = delete_face_async(face_list_id, persisted_face_id, custom_headers).value!
def delete_face(face_list_id, persisted_face_id, custom_headers:nil)
response = delete_face_async(face_list_id, persisted_face_id, custom_headers:custom_headers).value!
nil
end
@ -522,8 +523,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_face_with_http_info(face_list_id, persisted_face_id, custom_headers = nil)
delete_face_async(face_list_id, persisted_face_id, custom_headers).value!
def delete_face_with_http_info(face_list_id, persisted_face_id, custom_headers:nil)
delete_face_async(face_list_id, persisted_face_id, custom_headers:custom_headers).value!
end
#
@ -537,7 +538,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_face_async(face_list_id, persisted_face_id, custom_headers = nil)
def delete_face_async(face_list_id, persisted_face_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
@ -546,6 +547,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -600,8 +602,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [PersistedFaceResult] operation results.
#
def add_face(face_list_id, url, user_data = nil, target_face = nil, custom_headers = nil)
response = add_face_async(face_list_id, url, user_data, target_face, custom_headers).value!
def add_face(face_list_id, url, user_data:nil, target_face:nil, custom_headers:nil)
response = add_face_async(face_list_id, url, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -625,8 +627,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_face_with_http_info(face_list_id, url, user_data = nil, target_face = nil, custom_headers = nil)
add_face_async(face_list_id, url, user_data, target_face, custom_headers).value!
def add_face_with_http_info(face_list_id, url, user_data:nil, target_face:nil, custom_headers:nil)
add_face_async(face_list_id, url, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value!
end
#
@ -649,7 +651,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_face_async(face_list_id, url, user_data = nil, target_face = nil, custom_headers = nil)
def add_face_async(face_list_id, url, user_data:nil, target_face:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
@ -663,7 +665,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -737,8 +738,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [PersistedFaceResult] operation results.
#
def add_face_from_stream(face_list_id, image, user_data = nil, target_face = nil, custom_headers = nil)
response = add_face_from_stream_async(face_list_id, image, user_data, target_face, custom_headers).value!
def add_face_from_stream(face_list_id, image, user_data:nil, target_face:nil, custom_headers:nil)
response = add_face_from_stream_async(face_list_id, image, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -762,8 +763,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_face_from_stream_with_http_info(face_list_id, image, user_data = nil, target_face = nil, custom_headers = nil)
add_face_from_stream_async(face_list_id, image, user_data, target_face, custom_headers).value!
def add_face_from_stream_with_http_info(face_list_id, image, user_data:nil, target_face:nil, custom_headers:nil)
add_face_from_stream_async(face_list_id, image, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value!
end
#
@ -786,7 +787,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_face_from_stream_async(face_list_id, image, user_data = nil, target_face = nil, custom_headers = nil)
def add_face_from_stream_async(face_list_id, image, user_data:nil, target_face:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'face_list_id is nil' if face_list_id.nil?
fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64
@ -796,7 +797,6 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers

Просмотреть файл

@ -35,8 +35,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [CreatePersonResult] operation results.
#
def create(person_group_id, name = nil, user_data = nil, custom_headers = nil)
response = create_async(person_group_id, name, user_data, custom_headers).value!
def create(person_group_id, name:nil, user_data:nil, custom_headers:nil)
response = create_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -54,8 +54,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_with_http_info(person_group_id, name = nil, user_data = nil, custom_headers = nil)
create_async(person_group_id, name, user_data, custom_headers).value!
def create_with_http_info(person_group_id, name:nil, user_data:nil, custom_headers:nil)
create_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
end
#
@ -72,7 +72,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_async(person_group_id, name = nil, user_data = nil, custom_headers = nil)
def create_async(person_group_id, name:nil, user_data:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -87,7 +87,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -155,8 +154,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Array] operation results.
#
def list(person_group_id, start = nil, top = nil, custom_headers = nil)
response = list_async(person_group_id, start, top, custom_headers).value!
def list(person_group_id, start:nil, top:nil, custom_headers:nil)
response = list_async(person_group_id, start:start, top:top, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -175,8 +174,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_with_http_info(person_group_id, start = nil, top = nil, custom_headers = nil)
list_async(person_group_id, start, top, custom_headers).value!
def list_with_http_info(person_group_id, start:nil, top:nil, custom_headers:nil)
list_async(person_group_id, start:start, top:top, custom_headers:custom_headers).value!
end
#
@ -194,7 +193,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_async(person_group_id, start = nil, top = nil, custom_headers = nil)
def list_async(person_group_id, start:nil, top:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -204,6 +203,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -276,8 +276,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def delete(person_group_id, person_id, custom_headers = nil)
response = delete_async(person_group_id, person_id, custom_headers).value!
def delete(person_group_id, person_id, custom_headers:nil)
response = delete_async(person_group_id, person_id, custom_headers:custom_headers).value!
nil
end
@ -293,8 +293,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_with_http_info(person_group_id, person_id, custom_headers = nil)
delete_async(person_group_id, person_id, custom_headers).value!
def delete_with_http_info(person_group_id, person_id, custom_headers:nil)
delete_async(person_group_id, person_id, custom_headers:custom_headers).value!
end
#
@ -309,7 +309,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_async(person_group_id, person_id, custom_headers = nil)
def delete_async(person_group_id, person_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -318,6 +318,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -364,8 +365,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [PersonResult] operation results.
#
def get(person_group_id, person_id, custom_headers = nil)
response = get_async(person_group_id, person_id, custom_headers).value!
def get(person_group_id, person_id, custom_headers:nil)
response = get_async(person_group_id, person_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -381,8 +382,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_with_http_info(person_group_id, person_id, custom_headers = nil)
get_async(person_group_id, person_id, custom_headers).value!
def get_with_http_info(person_group_id, person_id, custom_headers:nil)
get_async(person_group_id, person_id, custom_headers:custom_headers).value!
end
#
@ -397,7 +398,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_async(person_group_id, person_id, custom_headers = nil)
def get_async(person_group_id, person_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -406,6 +407,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -464,8 +466,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def update(person_group_id, person_id, name = nil, user_data = nil, custom_headers = nil)
response = update_async(person_group_id, person_id, name, user_data, custom_headers).value!
def update(person_group_id, person_id, name:nil, user_data:nil, custom_headers:nil)
response = update_async(person_group_id, person_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
nil
end
@ -484,8 +486,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def update_with_http_info(person_group_id, person_id, name = nil, user_data = nil, custom_headers = nil)
update_async(person_group_id, person_id, name, user_data, custom_headers).value!
def update_with_http_info(person_group_id, person_id, name:nil, user_data:nil, custom_headers:nil)
update_async(person_group_id, person_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
end
#
@ -503,7 +505,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def update_async(person_group_id, person_id, name = nil, user_data = nil, custom_headers = nil)
def update_async(person_group_id, person_id, name:nil, user_data:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -519,7 +521,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -575,8 +576,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def delete_face(person_group_id, person_id, persisted_face_id, custom_headers = nil)
response = delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers).value!
def delete_face(person_group_id, person_id, persisted_face_id, custom_headers:nil)
response = delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value!
nil
end
@ -594,8 +595,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_face_with_http_info(person_group_id, person_id, persisted_face_id, custom_headers = nil)
delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers).value!
def delete_face_with_http_info(person_group_id, person_id, persisted_face_id, custom_headers:nil)
delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value!
end
#
@ -612,7 +613,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers = nil)
def delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -622,6 +623,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -670,8 +672,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [PersonFaceResult] operation results.
#
def get_face(person_group_id, person_id, persisted_face_id, custom_headers = nil)
response = get_face_async(person_group_id, person_id, persisted_face_id, custom_headers).value!
def get_face(person_group_id, person_id, persisted_face_id, custom_headers:nil)
response = get_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -689,8 +691,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_face_with_http_info(person_group_id, person_id, persisted_face_id, custom_headers = nil)
get_face_async(person_group_id, person_id, persisted_face_id, custom_headers).value!
def get_face_with_http_info(person_group_id, person_id, persisted_face_id, custom_headers:nil)
get_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value!
end
#
@ -707,7 +709,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_face_async(person_group_id, person_id, persisted_face_id, custom_headers = nil)
def get_face_async(person_group_id, person_id, persisted_face_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -717,6 +719,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -775,8 +778,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def update_face(person_group_id, person_id, persisted_face_id, user_data = nil, custom_headers = nil)
response = update_face_async(person_group_id, person_id, persisted_face_id, user_data, custom_headers).value!
def update_face(person_group_id, person_id, persisted_face_id, user_data:nil, custom_headers:nil)
response = update_face_async(person_group_id, person_id, persisted_face_id, user_data:user_data, custom_headers:custom_headers).value!
nil
end
@ -795,8 +798,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def update_face_with_http_info(person_group_id, person_id, persisted_face_id, user_data = nil, custom_headers = nil)
update_face_async(person_group_id, person_id, persisted_face_id, user_data, custom_headers).value!
def update_face_with_http_info(person_group_id, person_id, persisted_face_id, user_data:nil, custom_headers:nil)
update_face_async(person_group_id, person_id, persisted_face_id, user_data:user_data, custom_headers:custom_headers).value!
end
#
@ -814,7 +817,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def update_face_async(person_group_id, person_id, persisted_face_id, user_data = nil, custom_headers = nil)
def update_face_async(person_group_id, person_id, persisted_face_id, user_data:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -829,7 +832,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -893,8 +895,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [PersistedFaceResult] operation results.
#
def add_person_face(person_group_id, person_id, url, user_data = nil, target_face = nil, custom_headers = nil)
response = add_person_face_async(person_group_id, person_id, url, user_data, target_face, custom_headers).value!
def add_person_face(person_group_id, person_id, url, user_data:nil, target_face:nil, custom_headers:nil)
response = add_person_face_async(person_group_id, person_id, url, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -919,8 +921,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_person_face_with_http_info(person_group_id, person_id, url, user_data = nil, target_face = nil, custom_headers = nil)
add_person_face_async(person_group_id, person_id, url, user_data, target_face, custom_headers).value!
def add_person_face_with_http_info(person_group_id, person_id, url, user_data:nil, target_face:nil, custom_headers:nil)
add_person_face_async(person_group_id, person_id, url, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value!
end
#
@ -944,7 +946,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_person_face_async(person_group_id, person_id, url, user_data = nil, target_face = nil, custom_headers = nil)
def add_person_face_async(person_group_id, person_id, url, user_data:nil, target_face:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -959,7 +961,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -1034,8 +1035,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [PersistedFaceResult] operation results.
#
def add_person_face_from_stream(person_group_id, person_id, image, user_data = nil, target_face = nil, custom_headers = nil)
response = add_person_face_from_stream_async(person_group_id, person_id, image, user_data, target_face, custom_headers).value!
def add_person_face_from_stream(person_group_id, person_id, image, user_data:nil, target_face:nil, custom_headers:nil)
response = add_person_face_from_stream_async(person_group_id, person_id, image, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1060,8 +1061,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def add_person_face_from_stream_with_http_info(person_group_id, person_id, image, user_data = nil, target_face = nil, custom_headers = nil)
add_person_face_from_stream_async(person_group_id, person_id, image, user_data, target_face, custom_headers).value!
def add_person_face_from_stream_with_http_info(person_group_id, person_id, image, user_data:nil, target_face:nil, custom_headers:nil)
add_person_face_from_stream_async(person_group_id, person_id, image, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value!
end
#
@ -1085,7 +1086,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def add_person_face_from_stream_async(person_group_id, person_id, image, user_data = nil, target_face = nil, custom_headers = nil)
def add_person_face_from_stream_async(person_group_id, person_id, image, user_data:nil, target_face:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -1096,7 +1097,6 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/octet-stream'
# Set Headers

Просмотреть файл

@ -33,8 +33,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def create(person_group_id, name = nil, user_data = nil, custom_headers = nil)
response = create_async(person_group_id, name, user_data, custom_headers).value!
def create(person_group_id, name:nil, user_data:nil, custom_headers:nil)
response = create_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
nil
end
@ -51,8 +51,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_with_http_info(person_group_id, name = nil, user_data = nil, custom_headers = nil)
create_async(person_group_id, name, user_data, custom_headers).value!
def create_with_http_info(person_group_id, name:nil, user_data:nil, custom_headers:nil)
create_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
end
#
@ -68,7 +68,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_async(person_group_id, name = nil, user_data = nil, custom_headers = nil)
def create_async(person_group_id, name:nil, user_data:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -83,7 +83,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -136,8 +135,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def delete(person_group_id, custom_headers = nil)
response = delete_async(person_group_id, custom_headers).value!
def delete(person_group_id, custom_headers:nil)
response = delete_async(person_group_id, custom_headers:custom_headers).value!
nil
end
@ -152,8 +151,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_with_http_info(person_group_id, custom_headers = nil)
delete_async(person_group_id, custom_headers).value!
def delete_with_http_info(person_group_id, custom_headers:nil)
delete_async(person_group_id, custom_headers:custom_headers).value!
end
#
@ -167,7 +166,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_async(person_group_id, custom_headers = nil)
def delete_async(person_group_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -175,6 +174,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -218,8 +218,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [PersonGroupResult] operation results.
#
def get(person_group_id, custom_headers = nil)
response = get_async(person_group_id, custom_headers).value!
def get(person_group_id, custom_headers:nil)
response = get_async(person_group_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -232,8 +232,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_with_http_info(person_group_id, custom_headers = nil)
get_async(person_group_id, custom_headers).value!
def get_with_http_info(person_group_id, custom_headers:nil)
get_async(person_group_id, custom_headers:custom_headers).value!
end
#
@ -245,7 +245,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_async(person_group_id, custom_headers = nil)
def get_async(person_group_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -253,6 +253,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -310,8 +311,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def update(person_group_id, name = nil, user_data = nil, custom_headers = nil)
response = update_async(person_group_id, name, user_data, custom_headers).value!
def update(person_group_id, name:nil, user_data:nil, custom_headers:nil)
response = update_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
nil
end
@ -329,8 +330,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def update_with_http_info(person_group_id, name = nil, user_data = nil, custom_headers = nil)
update_async(person_group_id, name, user_data, custom_headers).value!
def update_with_http_info(person_group_id, name:nil, user_data:nil, custom_headers:nil)
update_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value!
end
#
@ -347,7 +348,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def update_async(person_group_id, name = nil, user_data = nil, custom_headers = nil)
def update_async(person_group_id, name:nil, user_data:nil, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -362,7 +363,6 @@ module Azure::CognitiveServices::Face::V1_0
end
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
@ -414,8 +414,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [TrainingStatus] operation results.
#
def get_training_status(person_group_id, custom_headers = nil)
response = get_training_status_async(person_group_id, custom_headers).value!
def get_training_status(person_group_id, custom_headers:nil)
response = get_training_status_async(person_group_id, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -428,8 +428,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_training_status_with_http_info(person_group_id, custom_headers = nil)
get_training_status_async(person_group_id, custom_headers).value!
def get_training_status_with_http_info(person_group_id, custom_headers:nil)
get_training_status_async(person_group_id, custom_headers:custom_headers).value!
end
#
@ -441,7 +441,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_training_status_async(person_group_id, custom_headers = nil)
def get_training_status_async(person_group_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -449,6 +449,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -504,8 +505,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Array] operation results.
#
def list(start = nil, top = 1000, custom_headers = nil)
response = list_async(start, top, custom_headers).value!
def list(start:nil, top:1000, custom_headers:nil)
response = list_async(start:start, top:top, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -520,8 +521,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_with_http_info(start = nil, top = 1000, custom_headers = nil)
list_async(start, top, custom_headers).value!
def list_with_http_info(start:nil, top:1000, custom_headers:nil)
list_async(start:start, top:top, custom_headers:custom_headers).value!
end
#
@ -535,7 +536,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_async(start = nil, top = 1000, custom_headers = nil)
def list_async(start:nil, top:1000, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, "'start' should satisfy the constraint - 'MaxLength': '64'" if !start.nil? && start.length > 64
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000
@ -543,6 +544,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -612,8 +614,8 @@ module Azure::CognitiveServices::Face::V1_0
# will be added to the HTTP request.
#
#
def train(person_group_id, custom_headers = nil)
response = train_async(person_group_id, custom_headers).value!
def train(person_group_id, custom_headers:nil)
response = train_async(person_group_id, custom_headers:custom_headers).value!
nil
end
@ -627,8 +629,8 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def train_with_http_info(person_group_id, custom_headers = nil)
train_async(person_group_id, custom_headers).value!
def train_with_http_info(person_group_id, custom_headers:nil)
train_async(person_group_id, custom_headers:custom_headers).value!
end
#
@ -641,7 +643,7 @@ module Azure::CognitiveServices::Face::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def train_async(person_group_id, custom_headers = nil)
def train_async(person_group_id, custom_headers:nil)
fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil?
fail ArgumentError, 'person_group_id is nil' if person_group_id.nil?
fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64
@ -649,6 +651,7 @@ module Azure::CognitiveServices::Face::V1_0
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid

Просмотреть файл

@ -81,15 +81,15 @@ module Azure::Face::Profiles::Latest
@base_url = options[:base_url].nil? ? nil:options[:base_url]
@options = options[:options].nil? ? nil:options[:options]
client_0 = Azure::CognitiveServices::Face::V1_0::FaceClient.new(configurable.credentials, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::Face::V1_0::FaceClient.new(configurable.credentials, options)
if(@client_0.respond_to?(:subscription_id))
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)
@face = client_0.face
@person = client_0.person
@person_group = client_0.person_group
@face_list = client_0.face_list
add_telemetry(@client_0)
@face = @client_0.face
@person = @client_0.person
@person_group = @client_0.person_group
@face_list = @client_0.face_list
@model_classes = ModelClasses.new
end
@ -99,6 +99,14 @@ module Azure::Face::Profiles::Latest
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

Просмотреть файл

@ -335,8 +335,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0
#
# @return [Images] operation results.
#
def search(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, aspect = nil, color = nil, country_code = nil, count = nil, freshness = nil, height = nil, id = nil, image_content = nil, image_type = nil, license = nil, market = nil, max_file_size = nil, max_height = nil, max_width = nil, min_file_size = nil, min_height = nil, min_width = nil, offset = nil, safe_search = nil, size = nil, set_lang = nil, width = nil, custom_headers = nil)
response = search_async(query, accept_language, user_agent, client_id, client_ip, location, aspect, color, country_code, count, freshness, height, id, image_content, image_type, license, market, max_file_size, max_height, max_width, min_file_size, min_height, min_width, offset, safe_search, size, set_lang, width, custom_headers).value!
def search(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, aspect:nil, color:nil, country_code:nil, count:nil, freshness:nil, height:nil, id:nil, image_content:nil, image_type:nil, license:nil, market:nil, max_file_size:nil, max_height:nil, max_width:nil, min_file_size:nil, min_height:nil, min_width:nil, offset:nil, safe_search:nil, size:nil, set_lang:nil, width:nil, custom_headers:nil)
response = search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, aspect:aspect, color:color, country_code:country_code, count:count, freshness:freshness, height:height, id:id, image_content:image_content, image_type:image_type, license:license, market:market, max_file_size:max_file_size, max_height:max_height, max_width:max_width, min_file_size:min_file_size, min_height:min_height, min_width:min_width, offset:offset, safe_search:safe_search, size:size, set_lang:set_lang, width:width, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -649,8 +649,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def search_with_http_info(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, aspect = nil, color = nil, country_code = nil, count = nil, freshness = nil, height = nil, id = nil, image_content = nil, image_type = nil, license = nil, market = nil, max_file_size = nil, max_height = nil, max_width = nil, min_file_size = nil, min_height = nil, min_width = nil, offset = nil, safe_search = nil, size = nil, set_lang = nil, width = nil, custom_headers = nil)
search_async(query, accept_language, user_agent, client_id, client_ip, location, aspect, color, country_code, count, freshness, height, id, image_content, image_type, license, market, max_file_size, max_height, max_width, min_file_size, min_height, min_width, offset, safe_search, size, set_lang, width, custom_headers).value!
def search_with_http_info(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, aspect:nil, color:nil, country_code:nil, count:nil, freshness:nil, height:nil, id:nil, image_content:nil, image_type:nil, license:nil, market:nil, max_file_size:nil, max_height:nil, max_width:nil, min_file_size:nil, min_height:nil, min_width:nil, offset:nil, safe_search:nil, size:nil, set_lang:nil, width:nil, custom_headers:nil)
search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, aspect:aspect, color:color, country_code:country_code, count:count, freshness:freshness, height:height, id:id, image_content:image_content, image_type:image_type, license:license, market:market, max_file_size:max_file_size, max_height:max_height, max_width:max_width, min_file_size:min_file_size, min_height:min_height, min_width:min_width, offset:offset, safe_search:safe_search, size:size, set_lang:set_lang, width:width, custom_headers:custom_headers).value!
end
#
@ -962,12 +962,13 @@ module Azure::CognitiveServices::ImageSearch::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def search_async(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, aspect = nil, color = nil, country_code = nil, count = nil, freshness = nil, height = nil, id = nil, image_content = nil, image_type = nil, license = nil, market = nil, max_file_size = nil, max_height = nil, max_width = nil, min_file_size = nil, min_height = nil, min_width = nil, offset = nil, safe_search = nil, size = nil, set_lang = nil, width = nil, custom_headers = nil)
def search_async(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, aspect:nil, color:nil, country_code:nil, count:nil, freshness:nil, height:nil, id:nil, image_content:nil, image_type:nil, license:nil, market:nil, max_file_size:nil, max_height:nil, max_width:nil, min_file_size:nil, min_height:nil, min_width:nil, offset:nil, safe_search:nil, size:nil, set_lang:nil, width:nil, custom_headers:nil)
x_bing_apis_sdk = 'true'
fail ArgumentError, 'query is nil' if query.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -1296,8 +1297,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0
#
# @return [ImageInsights] operation results.
#
def details(query, accept_language = nil, content_type = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, crop_bottom = nil, crop_left = nil, crop_right = nil, crop_top = nil, crop_type = nil, country_code = nil, id = nil, image_url = nil, insights_token = nil, modules = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil)
response = details_async(query, accept_language, content_type, user_agent, client_id, client_ip, location, crop_bottom, crop_left, crop_right, crop_top, crop_type, country_code, id, image_url, insights_token, modules, market, safe_search, set_lang, custom_headers).value!
def details(query, accept_language:nil, content_type:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, crop_bottom:nil, crop_left:nil, crop_right:nil, crop_top:nil, crop_type:nil, country_code:nil, id:nil, image_url:nil, insights_token:nil, modules:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil)
response = details_async(query, accept_language:accept_language, content_type:content_type, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, crop_bottom:crop_bottom, crop_left:crop_left, crop_right:crop_right, crop_top:crop_top, crop_type:crop_type, country_code:country_code, id:id, image_url:image_url, insights_token:insights_token, modules:modules, market:market, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1581,8 +1582,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def details_with_http_info(query, accept_language = nil, content_type = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, crop_bottom = nil, crop_left = nil, crop_right = nil, crop_top = nil, crop_type = nil, country_code = nil, id = nil, image_url = nil, insights_token = nil, modules = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil)
details_async(query, accept_language, content_type, user_agent, client_id, client_ip, location, crop_bottom, crop_left, crop_right, crop_top, crop_type, country_code, id, image_url, insights_token, modules, market, safe_search, set_lang, custom_headers).value!
def details_with_http_info(query, accept_language:nil, content_type:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, crop_bottom:nil, crop_left:nil, crop_right:nil, crop_top:nil, crop_type:nil, country_code:nil, id:nil, image_url:nil, insights_token:nil, modules:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil)
details_async(query, accept_language:accept_language, content_type:content_type, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, crop_bottom:crop_bottom, crop_left:crop_left, crop_right:crop_right, crop_top:crop_top, crop_type:crop_type, country_code:country_code, id:id, image_url:image_url, insights_token:insights_token, modules:modules, market:market, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value!
end
#
@ -1865,12 +1866,13 @@ module Azure::CognitiveServices::ImageSearch::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def details_async(query, accept_language = nil, content_type = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, crop_bottom = nil, crop_left = nil, crop_right = nil, crop_top = nil, crop_type = nil, country_code = nil, id = nil, image_url = nil, insights_token = nil, modules = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil)
def details_async(query, accept_language:nil, content_type:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, crop_bottom:nil, crop_left:nil, crop_right:nil, crop_top:nil, crop_type:nil, country_code:nil, id:nil, image_url:nil, insights_token:nil, modules:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil)
x_bing_apis_sdk = 'true'
fail ArgumentError, 'query is nil' if query.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -2099,8 +2101,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0
#
# @return [TrendingImages] operation results.
#
def trending(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil)
response = trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, market, safe_search, set_lang, custom_headers).value!
def trending(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil)
response = trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -2283,8 +2285,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def trending_with_http_info(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil)
trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, market, safe_search, set_lang, custom_headers).value!
def trending_with_http_info(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil)
trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value!
end
#
@ -2466,11 +2468,12 @@ module Azure::CognitiveServices::ImageSearch::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def trending_async(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil)
def trending_async(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil)
x_bing_apis_sdk = 'true'
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid

Просмотреть файл

@ -87,12 +87,12 @@ module Azure::ImageSearch::Profiles::Latest
@base_url = options[:base_url].nil? ? nil:options[:base_url]
@options = options[:options].nil? ? nil:options[:options]
client_0 = Azure::CognitiveServices::ImageSearch::V1_0::ImageSearchClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
@client_0 = Azure::CognitiveServices::ImageSearch::V1_0::ImageSearchClient.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)
@images_operations = client_0.images_operations
add_telemetry(@client_0)
@images_operations = @client_0.images_operations
@model_classes = ModelClasses.new
end
@ -102,6 +102,14 @@ module Azure::ImageSearch::Profiles::Latest
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

Просмотреть файл

@ -265,8 +265,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0
#
# @return [News] operation results.
#
def search(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, freshness = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
response = search_async(query, accept_language, user_agent, client_id, client_ip, location, country_code, count, freshness, market, offset, original_image, safe_search, set_lang, sort_by, text_decorations, text_format, custom_headers).value!
def search(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, freshness:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
response = search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, freshness:freshness, market:market, offset:offset, original_image:original_image, safe_search:safe_search, set_lang:set_lang, sort_by:sort_by, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -509,8 +509,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def search_with_http_info(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, freshness = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
search_async(query, accept_language, user_agent, client_id, client_ip, location, country_code, count, freshness, market, offset, original_image, safe_search, set_lang, sort_by, text_decorations, text_format, custom_headers).value!
def search_with_http_info(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, freshness:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, freshness:freshness, market:market, offset:offset, original_image:original_image, safe_search:safe_search, set_lang:set_lang, sort_by:sort_by, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value!
end
#
@ -752,12 +752,13 @@ module Azure::CognitiveServices::NewsSearch::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def search_async(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, freshness = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
def search_async(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, freshness:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
x_bing_apis_sdk = 'true'
fail ArgumentError, 'query is nil' if query.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -1047,8 +1048,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0
#
# @return [News] operation results.
#
def category(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, category = nil, count = nil, headline_count = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
response = category_async(accept_language, user_agent, client_id, client_ip, location, country_code, category, count, headline_count, market, offset, original_image, safe_search, set_lang, text_decorations, text_format, custom_headers).value!
def category(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, category:nil, count:nil, headline_count:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
response = category_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, category:category, count:count, headline_count:headline_count, market:market, offset:offset, original_image:original_image, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -1293,8 +1294,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def category_with_http_info(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, category = nil, count = nil, headline_count = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
category_async(accept_language, user_agent, client_id, client_ip, location, country_code, category, count, headline_count, market, offset, original_image, safe_search, set_lang, text_decorations, text_format, custom_headers).value!
def category_with_http_info(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, category:nil, count:nil, headline_count:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
category_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, category:category, count:count, headline_count:headline_count, market:market, offset:offset, original_image:original_image, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value!
end
#
@ -1538,11 +1539,12 @@ module Azure::CognitiveServices::NewsSearch::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def category_async(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, category = nil, count = nil, headline_count = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
def category_async(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, category:nil, count:nil, headline_count:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
x_bing_apis_sdk = 'true'
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@ -1813,8 +1815,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0
#
# @return [TrendingTopics] operation results.
#
def trending(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, market = nil, offset = nil, safe_search = nil, set_lang = nil, since = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
response = trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, count, market, offset, safe_search, set_lang, since, sort_by, text_decorations, text_format, custom_headers).value!
def trending(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, market:nil, offset:nil, safe_search:nil, set_lang:nil, since:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
response = trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, market:market, offset:offset, safe_search:safe_search, set_lang:set_lang, since:since, sort_by:sort_by, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value!
response.body unless response.nil?
end
@ -2040,8 +2042,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def trending_with_http_info(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, market = nil, offset = nil, safe_search = nil, set_lang = nil, since = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, count, market, offset, safe_search, set_lang, since, sort_by, text_decorations, text_format, custom_headers).value!
def trending_with_http_info(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, market:nil, offset:nil, safe_search:nil, set_lang:nil, since:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, market:market, offset:offset, safe_search:safe_search, set_lang:set_lang, since:since, sort_by:sort_by, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value!
end
#
@ -2266,11 +2268,12 @@ module Azure::CognitiveServices::NewsSearch::V1_0
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def trending_async(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, market = nil, offset = nil, safe_search = nil, set_lang = nil, since = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil)
def trending_async(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, market:nil, offset:nil, safe_search:nil, set_lang:nil, since:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil)
x_bing_apis_sdk = 'true'
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше