Class: Azure::MobileEngagement::Profiles::Latest::Mgmt::MobileEngagementManagementClass
- Inherits:
-
Object
- Object
- Azure::MobileEngagement::Profiles::Latest::Mgmt::MobileEngagementManagementClass
- Defined in:
- lib/profiles/latest/modules/mobileengagement_profile_module.rb
Overview
MobileEngagementManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#app_collections ⇒ Object
readonly
Returns the value of attribute app_collections.
-
#apps ⇒ Object
readonly
Returns the value of attribute apps.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#campaigns ⇒ Object
readonly
Returns the value of attribute campaigns.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#devices ⇒ Object
readonly
Returns the value of attribute devices.
-
#export_tasks ⇒ Object
readonly
Returns the value of attribute export_tasks.
-
#import_tasks ⇒ Object
readonly
Returns the value of attribute import_tasks.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#supported_platforms ⇒ Object
readonly
Returns the value of attribute supported_platforms.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ MobileEngagementManagementClass
constructor
A new instance of MobileEngagementManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ MobileEngagementManagementClass
Returns a new instance of MobileEngagementManagementClass.
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 115 def initialize( = {}) if .is_a?(Hash) && .length == 0 = else = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:options[:base_url] = [:options].nil? ? nil:options[:options] @client_0 = Azure::MobileEngagement::Mgmt::V2014_12_01::EngagementManagementClient.new(configurable.credentials, base_url, ) 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 @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
149 150 151 152 153 154 155 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 149 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#app_collections ⇒ Object (readonly)
Returns the value of attribute app_collections.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def app_collections @app_collections end |
#apps ⇒ Object (readonly)
Returns the value of attribute apps.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def apps @apps end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def base_url @base_url end |
#campaigns ⇒ Object (readonly)
Returns the value of attribute campaigns.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def campaigns @campaigns end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def configurable @configurable end |
#devices ⇒ Object (readonly)
Returns the value of attribute devices.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def devices @devices end |
#export_tasks ⇒ Object (readonly)
Returns the value of attribute export_tasks.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def export_tasks @export_tasks end |
#import_tasks ⇒ Object (readonly)
Returns the value of attribute import_tasks.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def import_tasks @import_tasks end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def model_classes @model_classes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def end |
#supported_platforms ⇒ Object (readonly)
Returns the value of attribute supported_platforms.
113 114 115 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 113 def supported_platforms @supported_platforms end |
Instance Method Details
#add_telemetry(client) ⇒ Object
144 145 146 147 |
# File 'lib/profiles/latest/modules/mobileengagement_profile_module.rb', line 144 def add_telemetry(client) profile_information = 'Profiles/Latest/MobileEngagement/Mgmt' client.add_user_agent_information(profile_information) end |