class Azure::StorageSync::Profiles::Latest::Mgmt::StorageSyncManagementClass

StorageSyncManagementClass

Attributes

base_url[R]
cloud_endpoints[R]
configurable[R]
model_classes[R]
operation_status_operations[R]
operations[R]
options[R]
registered_servers[R]
server_endpoints[R]
storage_sync_services[R]
sync_groups[R]
workflows[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/profiles/latest/modules/storagesync_profile_module.rb, line 80
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::StorageSync::Mgmt::V2019_06_01::StorageSyncManagementClient.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
  @storage_sync_services = @client_0.storage_sync_services
  @sync_groups = @client_0.sync_groups
  @cloud_endpoints = @client_0.cloud_endpoints
  @server_endpoints = @client_0.server_endpoints
  @registered_servers = @client_0.registered_servers
  @workflows = @client_0.workflows
  @operation_status_operations = @client_0.operation_status_operations

  @model_classes = ModelClasses.new
end

Public Instance Methods

add_telemetry(client) click to toggle source
# File lib/profiles/latest/modules/storagesync_profile_module.rb, line 110
def add_telemetry(client)
  profile_information = 'Profiles/Latest/StorageSync/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/storagesync_profile_module.rb, line 115
def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end