class Azure::Relay::Profiles::Latest::Mgmt::RelayManagementClass

RelayManagementClass

Attributes

base_url[R]
configurable[R]
hybrid_connections[R]
model_classes[R]
namespaces[R]
operations[R]
options[R]
wcfrelays[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/profiles/latest/modules/relay_profile_module.rb, line 50
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::Relay::Mgmt::V2017_04_01::RelayManagementClient.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)
  @operations = @client_0.operations
  @namespaces = @client_0.namespaces
  @hybrid_connections = @client_0.hybrid_connections
  @wcfrelays = @client_0.wcfrelays

  @model_classes = ModelClasses.new
end

Public Instance Methods

add_telemetry(client) click to toggle source
# File lib/profiles/latest/modules/relay_profile_module.rb, line 76
def add_telemetry(client)
  profile_information = 'Profiles/Latest/Relay/Mgmt'
  client.add_user_agent_information(profile_information)
end
method_missing(method, *args) click to toggle source
Calls superclass method
# File lib/profiles/latest/modules/relay_profile_module.rb, line 81
def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end