Class: Azure::DataShare::Profiles::Latest::Mgmt::DataShareManagementClass
- Inherits:
-
Object
- Object
- Azure::DataShare::Profiles::Latest::Mgmt::DataShareManagementClass
- Defined in:
- lib/profiles/latest/modules/datashare_profile_module.rb
Overview
DataShareManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#accounts ⇒ Object
readonly
Returns the value of attribute accounts.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#consumer_invitations ⇒ Object
readonly
Returns the value of attribute consumer_invitations.
-
#consumer_source_data_sets ⇒ Object
readonly
Returns the value of attribute consumer_source_data_sets.
-
#data_set_mappings ⇒ Object
readonly
Returns the value of attribute data_set_mappings.
-
#data_sets ⇒ Object
readonly
Returns the value of attribute data_sets.
-
#invitations ⇒ Object
readonly
Returns the value of attribute invitations.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#provider_share_subscriptions ⇒ Object
readonly
Returns the value of attribute provider_share_subscriptions.
-
#share_subscriptions ⇒ Object
readonly
Returns the value of attribute share_subscriptions.
-
#shares ⇒ Object
readonly
Returns the value of attribute shares.
-
#synchronization_settings ⇒ Object
readonly
Returns the value of attribute synchronization_settings.
-
#triggers ⇒ Object
readonly
Returns the value of attribute triggers.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ DataShareManagementClass
constructor
A new instance of DataShareManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ DataShareManagementClass
Returns a new instance of DataShareManagementClass.
113 114 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 143 144 145 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 113 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::DataShare::Mgmt::V2019_11_01::DataShareManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @accounts = @client_0.accounts @consumer_invitations = @client_0.consumer_invitations @data_sets = @client_0.data_sets @data_set_mappings = @client_0.data_set_mappings @invitations = @client_0.invitations @operations = @client_0.operations @shares = @client_0.shares @provider_share_subscriptions = @client_0.provider_share_subscriptions @share_subscriptions = @client_0.share_subscriptions @consumer_source_data_sets = @client_0.consumer_source_data_sets @synchronization_settings = @client_0.synchronization_settings @triggers = @client_0.triggers @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
152 153 154 155 156 157 158 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 152 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#accounts ⇒ Object (readonly)
Returns the value of attribute accounts.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def accounts @accounts end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def configurable @configurable end |
#consumer_invitations ⇒ Object (readonly)
Returns the value of attribute consumer_invitations.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def consumer_invitations @consumer_invitations end |
#consumer_source_data_sets ⇒ Object (readonly)
Returns the value of attribute consumer_source_data_sets.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def consumer_source_data_sets @consumer_source_data_sets end |
#data_set_mappings ⇒ Object (readonly)
Returns the value of attribute data_set_mappings.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def data_set_mappings @data_set_mappings end |
#data_sets ⇒ Object (readonly)
Returns the value of attribute data_sets.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def data_sets @data_sets end |
#invitations ⇒ Object (readonly)
Returns the value of attribute invitations.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def invitations @invitations end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def end |
#provider_share_subscriptions ⇒ Object (readonly)
Returns the value of attribute provider_share_subscriptions.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def provider_share_subscriptions @provider_share_subscriptions end |
#share_subscriptions ⇒ Object (readonly)
Returns the value of attribute share_subscriptions.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def share_subscriptions @share_subscriptions end |
#shares ⇒ Object (readonly)
Returns the value of attribute shares.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def shares @shares end |
#synchronization_settings ⇒ Object (readonly)
Returns the value of attribute synchronization_settings.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def synchronization_settings @synchronization_settings end |
#triggers ⇒ Object (readonly)
Returns the value of attribute triggers.
111 112 113 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111 def triggers @triggers end |
Instance Method Details
#add_telemetry(client) ⇒ Object
147 148 149 150 |
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 147 def add_telemetry(client) profile_information = 'Profiles/Latest/DataShare/Mgmt' client.add_user_agent_information(profile_information) end |