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

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

Overview

DeploymentManagerManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ DeploymentManagerManagementClass

Returns a new instance of DeploymentManagerManagementClass.



76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 76

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::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



110
111
112
113
114
115
116
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 110

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.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def artifact_sources
  @artifact_sources
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def configurable
  @configurable
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def options
  @options
end

#rolloutsObject (readonly)

Returns the value of attribute rollouts.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def rollouts
  @rollouts
end

#service_topologiesObject (readonly)

Returns the value of attribute service_topologies.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def service_topologies
  @service_topologies
end

#service_unitsObject (readonly)

Returns the value of attribute service_units.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def service_units
  @service_units
end

#servicesObject (readonly)

Returns the value of attribute services.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def services
  @services
end

#stepsObject (readonly)

Returns the value of attribute steps.



74
75
76
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 74

def steps
  @steps
end

Instance Method Details

#add_telemetry(client) ⇒ Object



105
106
107
108
# File 'lib/profiles/latest/modules/deploymentmanager_profile_module.rb', line 105

def add_telemetry(client)
  profile_information = 'Profiles/Latest/DeploymentManager/Mgmt'
  client.add_user_agent_information(profile_information)
end