Class: Azure::Web::Profiles::V2019_03_01_Hybrid::Mgmt::WebManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb

Overview

WebManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ WebManagementClass

Returns a new instance of WebManagementClass.



373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 373

def initialize(options = {})
  if options.is_a?(Hash) && options.length == 0
    @options = setup_default_options
  else
    @options = options
  end

  reset!(options)

  @configurable = self
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
  @options = options[:options].nil? ? nil:options[:options]

  @client_0 = Azure::Web::Mgmt::V2016_03_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)
  @billing_meters = @client_0.billing_meters

  @client_1 = Azure::Web::Mgmt::V2016_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)

  @client_2 = Azure::Web::Mgmt::V2016_09_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)

  @client_3 = Azure::Web::Mgmt::V2018_02_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)
  @app_service_certificate_orders = @client_3.app_service_certificate_orders
  @certificate_registration_provider = @client_3.certificate_registration_provider
  @domains = @client_3.domains
  @top_level_domains = @client_3.top_level_domains
  @domain_registration_provider = @client_3.domain_registration_provider
  @certificates = @client_3.certificates
  @deleted_web_apps = @client_3.deleted_web_apps
  @diagnostics = @client_3.diagnostics
  @provider = @client_3.provider
  @recommendations = @client_3.recommendations
  @web_apps = @client_3.web_apps
  @app_service_environments = @client_3.app_service_environments
  @app_service_plans = @client_3.app_service_plans
  @resource_health_metadata_operations = @client_3.

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



433
434
435
436
437
438
439
440
441
442
443
444
445
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 433

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

Instance Attribute Details

#app_service_certificate_ordersObject (readonly)

Returns the value of attribute app_service_certificate_orders.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def app_service_certificate_orders
  @app_service_certificate_orders
end

#app_service_environmentsObject (readonly)

Returns the value of attribute app_service_environments.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def app_service_environments
  @app_service_environments
end

#app_service_plansObject (readonly)

Returns the value of attribute app_service_plans.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def app_service_plans
  @app_service_plans
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def base_url
  @base_url
end

#billing_metersObject (readonly)

Returns the value of attribute billing_meters.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def billing_meters
  @billing_meters
end

#certificate_registration_providerObject (readonly)

Returns the value of attribute certificate_registration_provider.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def certificate_registration_provider
  @certificate_registration_provider
end

#certificatesObject (readonly)

Returns the value of attribute certificates.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def certificates
  @certificates
end

#configurableObject (readonly)

Returns the value of attribute configurable.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def configurable
  @configurable
end

#deleted_web_appsObject (readonly)

Returns the value of attribute deleted_web_apps.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def deleted_web_apps
  @deleted_web_apps
end

#diagnosticsObject (readonly)

Returns the value of attribute diagnostics.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def diagnostics
  @diagnostics
end

#domain_registration_providerObject (readonly)

Returns the value of attribute domain_registration_provider.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def domain_registration_provider
  @domain_registration_provider
end

#domainsObject (readonly)

Returns the value of attribute domains.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def domains
  @domains
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def model_classes
  @model_classes
end

#optionsObject (readonly)

Returns the value of attribute options.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def options
  @options
end

#providerObject (readonly)

Returns the value of attribute provider.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def provider
  @provider
end

#recommendationsObject (readonly)

Returns the value of attribute recommendations.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def recommendations
  @recommendations
end

#resource_health_metadata_operationsObject (readonly)

Returns the value of attribute resource_health_metadata_operations.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def 
  @resource_health_metadata_operations
end

#top_level_domainsObject (readonly)

Returns the value of attribute top_level_domains.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def top_level_domains
  @top_level_domains
end

#web_appsObject (readonly)

Returns the value of attribute web_apps.



371
372
373
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 371

def web_apps
  @web_apps
end

Instance Method Details

#add_telemetry(client) ⇒ Object



428
429
430
431
# File 'lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb', line 428

def add_telemetry(client)
  profile_information = 'Profiles/V2019_03_01_Hybrid/Web/Mgmt'
  client.add_user_agent_information(profile_information)
end