Class: Azure::CDN::Profiles::Latest::Mgmt::CDNManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/profiles/latest/modules/cdn_profile_module.rb

Overview

CDNManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ CDNManagementClass

Returns a new instance of CDNManagementClass.



296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 296

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::CDN::Mgmt::V2020_09_01::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
  @origin_groups = @client_0.origin_groups
  @custom_domains = @client_0.custom_domains
  @resource_usage_operations = @client_0.resource_usage_operations
  @operations = @client_0.operations
  @edge_nodes = @client_0.edge_nodes
  @afdprofiles = @client_0.afdprofiles
  @afdcustom_domains = @client_0.afdcustom_domains
  @afdendpoints = @client_0.afdendpoints
  @afdorigin_groups = @client_0.afdorigin_groups
  @afdorigins = @client_0.afdorigins
  @routes = @client_0.routes
  @rule_sets = @client_0.rule_sets
  @rules = @client_0.rules
  @security_policies = @client_0.security_policies
  @secrets = @client_0.secrets
  @validate = @client_0.validate
  @log_analytics = @client_0.log_analytics
  @policies = @client_0.policies
  @managed_rule_sets = @client_0.managed_rule_sets

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



345
346
347
348
349
350
351
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 345

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#afdcustom_domainsObject (readonly)

Returns the value of attribute afdcustom_domains.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def afdcustom_domains
  @afdcustom_domains
end

#afdendpointsObject (readonly)

Returns the value of attribute afdendpoints.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def afdendpoints
  @afdendpoints
end

#afdorigin_groupsObject (readonly)

Returns the value of attribute afdorigin_groups.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def afdorigin_groups
  @afdorigin_groups
end

#afdoriginsObject (readonly)

Returns the value of attribute afdorigins.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def afdorigins
  @afdorigins
end

#afdprofilesObject (readonly)

Returns the value of attribute afdprofiles.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def afdprofiles
  @afdprofiles
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def configurable
  @configurable
end

#custom_domainsObject (readonly)

Returns the value of attribute custom_domains.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def custom_domains
  @custom_domains
end

#edge_nodesObject (readonly)

Returns the value of attribute edge_nodes.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def edge_nodes
  @edge_nodes
end

#endpointsObject (readonly)

Returns the value of attribute endpoints.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def endpoints
  @endpoints
end

#log_analyticsObject (readonly)

Returns the value of attribute log_analytics.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def log_analytics
  @log_analytics
end

#managed_rule_setsObject (readonly)

Returns the value of attribute managed_rule_sets.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def managed_rule_sets
  @managed_rule_sets
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def options
  @options
end

#origin_groupsObject (readonly)

Returns the value of attribute origin_groups.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def origin_groups
  @origin_groups
end

#originsObject (readonly)

Returns the value of attribute origins.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def origins
  @origins
end

#policiesObject (readonly)

Returns the value of attribute policies.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def policies
  @policies
end

#profilesObject (readonly)

Returns the value of attribute profiles.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def profiles
  @profiles
end

#resource_usage_operationsObject (readonly)

Returns the value of attribute resource_usage_operations.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def resource_usage_operations
  @resource_usage_operations
end

#routesObject (readonly)

Returns the value of attribute routes.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def routes
  @routes
end

#rule_setsObject (readonly)

Returns the value of attribute rule_sets.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def rule_sets
  @rule_sets
end

#rulesObject (readonly)

Returns the value of attribute rules.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def rules
  @rules
end

#secretsObject (readonly)

Returns the value of attribute secrets.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def secrets
  @secrets
end

#security_policiesObject (readonly)

Returns the value of attribute security_policies.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def security_policies
  @security_policies
end

#validateObject (readonly)

Returns the value of attribute validate.



294
295
296
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 294

def validate
  @validate
end

Instance Method Details

#add_telemetry(client) ⇒ Object



340
341
342
343
# File 'lib/profiles/latest/modules/cdn_profile_module.rb', line 340

def add_telemetry(client)
  profile_information = 'Profiles/Latest/CDN/Mgmt'
  client.add_user_agent_information(profile_information)
end