Class: Azure::Profiles::Latest::DeploymentManager::Mgmt::DeploymentManagerManagementClass

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

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configurable, base_url = nil, options = nil) ⇒ DeploymentManagerManagementClass

Returns a new instance of DeploymentManagerManagementClass.



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 74

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  @client_0 = Azure::DeploymentManager::Mgmt::V2019_11_01_preview::AzureDeploymentManager.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)
  @service_topologies = @client_0.service_topologies
  @services = @client_0.services
  @service_units = @client_0.service_units
  @steps = @client_0.steps
  @rollouts = @client_0.rollouts
  @artifact_sources = @client_0.artifact_sources
  @operations = @client_0.operations

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



98
99
100
101
102
103
104
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 98

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#artifact_sourcesObject (readonly)

Returns the value of attribute artifact_sources.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def artifact_sources
  @artifact_sources
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def configurable
  @configurable
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def options
  @options
end

#rolloutsObject (readonly)

Returns the value of attribute rollouts.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def rollouts
  @rollouts
end

#service_topologiesObject (readonly)

Returns the value of attribute service_topologies.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def service_topologies
  @service_topologies
end

#service_unitsObject (readonly)

Returns the value of attribute service_units.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def service_units
  @service_units
end

#servicesObject (readonly)

Returns the value of attribute services.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def services
  @services
end

#stepsObject (readonly)

Returns the value of attribute steps.



72
73
74
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 72

def steps
  @steps
end

Instance Method Details

#add_telemetry(client) ⇒ Object



93
94
95
96
# File 'lib/latest/modules/deploymentmanager_profile_module.rb', line 93

def add_telemetry(client)
  profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/DeploymentManager/Mgmt"
  client.add_user_agent_information(profile_information)
end