Class: Azure::StorageSync::Profiles::Latest::Mgmt::StorageSyncManagementClass

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

Overview

StorageSyncManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ StorageSyncManagementClass

Returns a new instance of StorageSyncManagementClass.



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# 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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



115
116
117
118
119
120
121
# 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

Instance Attribute Details

#base_urlObject (readonly)

Returns the value of attribute base_url.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def base_url
  @base_url
end

#cloud_endpointsObject (readonly)

Returns the value of attribute cloud_endpoints.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def cloud_endpoints
  @cloud_endpoints
end

#configurableObject (readonly)

Returns the value of attribute configurable.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def configurable
  @configurable
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def model_classes
  @model_classes
end

#operation_status_operationsObject (readonly)

Returns the value of attribute operation_status_operations.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def operation_status_operations
  @operation_status_operations
end

#operationsObject (readonly)

Returns the value of attribute operations.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def options
  @options
end

#registered_serversObject (readonly)

Returns the value of attribute registered_servers.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def registered_servers
  @registered_servers
end

#server_endpointsObject (readonly)

Returns the value of attribute server_endpoints.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def server_endpoints
  @server_endpoints
end

#storage_sync_servicesObject (readonly)

Returns the value of attribute storage_sync_services.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def storage_sync_services
  @storage_sync_services
end

#sync_groupsObject (readonly)

Returns the value of attribute sync_groups.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def sync_groups
  @sync_groups
end

#workflowsObject (readonly)

Returns the value of attribute workflows.



78
79
80
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78

def workflows
  @workflows
end

Instance Method Details

#add_telemetry(client) ⇒ Object



110
111
112
113
# 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