Class: Azure::MediaServices::Profiles::Latest::Mgmt::MediaServicesManagementClass

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

Overview

MediaServicesManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ MediaServicesManagementClass

Returns a new instance of MediaServicesManagementClass.



282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 282

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::MediaServices::Mgmt::V2020_05_01::AzureMediaServices.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)
  @account_filters = @client_0.
  @operations = @client_0.operations
  @mediaservices = @client_0.mediaservices
  @private_link_resources = @client_0.private_link_resources
  @private_endpoint_connections = @client_0.private_endpoint_connections
  @locations = @client_0.locations
  @assets = @client_0.assets
  @asset_filters = @client_0.asset_filters
  @content_key_policies = @client_0.content_key_policies
  @transforms = @client_0.transforms
  @jobs = @client_0.jobs
  @streaming_policies = @client_0.streaming_policies
  @streaming_locators = @client_0.streaming_locators
  @live_events = @client_0.live_events
  @live_outputs = @client_0.live_outputs
  @streaming_endpoints = @client_0.streaming_endpoints

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



325
326
327
328
329
330
331
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 325

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

Instance Attribute Details

#account_filtersObject (readonly)

Returns the value of attribute account_filters.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def 
  @account_filters
end

#asset_filtersObject (readonly)

Returns the value of attribute asset_filters.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def asset_filters
  @asset_filters
end

#assetsObject (readonly)

Returns the value of attribute assets.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def assets
  @assets
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def configurable
  @configurable
end

#content_key_policiesObject (readonly)

Returns the value of attribute content_key_policies.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def content_key_policies
  @content_key_policies
end

#jobsObject (readonly)

Returns the value of attribute jobs.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def jobs
  @jobs
end

#live_eventsObject (readonly)

Returns the value of attribute live_events.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def live_events
  @live_events
end

#live_outputsObject (readonly)

Returns the value of attribute live_outputs.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def live_outputs
  @live_outputs
end

#locationsObject (readonly)

Returns the value of attribute locations.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def locations
  @locations
end

#mediaservicesObject (readonly)

Returns the value of attribute mediaservices.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def mediaservices
  @mediaservices
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def options
  @options
end

#private_endpoint_connectionsObject (readonly)

Returns the value of attribute private_endpoint_connections.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def private_endpoint_connections
  @private_endpoint_connections
end

Returns the value of attribute private_link_resources.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def private_link_resources
  @private_link_resources
end

#streaming_endpointsObject (readonly)

Returns the value of attribute streaming_endpoints.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def streaming_endpoints
  @streaming_endpoints
end

#streaming_locatorsObject (readonly)

Returns the value of attribute streaming_locators.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def streaming_locators
  @streaming_locators
end

#streaming_policiesObject (readonly)

Returns the value of attribute streaming_policies.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def streaming_policies
  @streaming_policies
end

#transformsObject (readonly)

Returns the value of attribute transforms.



280
281
282
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 280

def transforms
  @transforms
end

Instance Method Details

#add_telemetry(client) ⇒ Object



320
321
322
323
# File 'lib/profiles/latest/modules/mediaservices_profile_module.rb', line 320

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