diff --git a/lib/azure/armrest/model/base_model.rb b/lib/azure/armrest/model/base_model.rb index e9dbd4ba..3884b940 100644 --- a/lib/azure/armrest/model/base_model.rb +++ b/lib/azure/armrest/model/base_model.rb @@ -180,7 +180,6 @@ def add_accessor_methods(method, key) # Initial class definitions. Reopen these classes as needed. class AvailabilitySet < BaseModel; end - class DeploymentTemplate < BaseModel; end class Event < BaseModel; end class ImageVersion < BaseModel; end class Offer < BaseModel; end diff --git a/lib/azure/armrest/template_deployment_service.rb b/lib/azure/armrest/template_deployment_service.rb index 7cefd646..68286dbb 100644 --- a/lib/azure/armrest/template_deployment_service.rb +++ b/lib/azure/armrest/template_deployment_service.rb @@ -38,16 +38,13 @@ def get_deployment_operation(op_id, deploy_name, resource_group = configuration. TemplateDeploymentOperation.new(response) end - # Returns the json template as an object for the given deployment. - # - # If you want the plain JSON text then call .to_json on the returned object. + # Returns the raw json template for the given deployment as a string. # def get_template(deploy_name, resource_group = configuration.resource_group) validate_resource_group(resource_group) validate_resource(deploy_name) url = build_url(resource_group, deploy_name, 'exportTemplate') - response = JSON.parse(rest_post(url))['template'] - DeploymentTemplate.new(response) + JSON.parse(rest_post(url))['template'].to_json end # Delete a deployment and all associated resources that were generated by the