Class: Azure::DataShare::Profiles::Latest::Mgmt::DataShareManagementClass

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

Overview

DataShareManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

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(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::DataShare::Mgmt::V2019_11_01::DataShareManagementClient.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)
  @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

#accountsObject (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_urlObject (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

#configurableObject (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_invitationsObject (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_setsObject (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_mappingsObject (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_setsObject (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

#invitationsObject (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_classesObject (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

#operationsObject (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

#optionsObject (readonly)

Returns the value of attribute options.



111
112
113
# File 'lib/profiles/latest/modules/datashare_profile_module.rb', line 111

def options
  @options
end

#provider_share_subscriptionsObject (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_subscriptionsObject (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

#sharesObject (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_settingsObject (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

#triggersObject (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