Class: Azure::StorageSync::Profiles::Latest::Mgmt::StorageSyncManagementClass
- Inherits:
-
Object
- Object
- Azure::StorageSync::Profiles::Latest::Mgmt::StorageSyncManagementClass
- Defined in:
- lib/profiles/latest/modules/storagesync_profile_module.rb
Overview
StorageSyncManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#cloud_endpoints ⇒ Object
readonly
Returns the value of attribute cloud_endpoints.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#operation_status_operations ⇒ Object
readonly
Returns the value of attribute operation_status_operations.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#registered_servers ⇒ Object
readonly
Returns the value of attribute registered_servers.
-
#server_endpoints ⇒ Object
readonly
Returns the value of attribute server_endpoints.
-
#storage_sync_services ⇒ Object
readonly
Returns the value of attribute storage_sync_services.
-
#sync_groups ⇒ Object
readonly
Returns the value of attribute sync_groups.
-
#workflows ⇒ Object
readonly
Returns the value of attribute workflows.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ StorageSyncManagementClass
constructor
A new instance of StorageSyncManagementClass.
- #method_missing(method, *args) ⇒ Object
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( = {}) if .is_a?(Hash) && .length == 0 @options = else @options = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:[:base_url] @options = [:options].nil? ? nil:[:options] @client_0 = Azure::StorageSync::Mgmt::V2019_06_01::StorageSyncManagementClient.new(configurable.credentials, base_url, ) 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_url ⇒ Object (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_endpoints ⇒ Object (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 |
#configurable ⇒ Object (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_classes ⇒ Object (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_operations ⇒ Object (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 |
#operations ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
78 79 80 |
# File 'lib/profiles/latest/modules/storagesync_profile_module.rb', line 78 def @options end |
#registered_servers ⇒ Object (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_endpoints ⇒ Object (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_services ⇒ Object (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_groups ⇒ Object (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 |
#workflows ⇒ Object (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 |