Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Generated from a40766016116112dbd0d8c66b60a117c3e20fc9d (#1310) (#1332)
Browse files Browse the repository at this point in the history
fixing build error
  • Loading branch information
AutorestCI authored and sarangan12 committed Jun 13, 2018
1 parent a94a49b commit 1e91368
Show file tree
Hide file tree
Showing 81 changed files with 330 additions and 758 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ def make_request_async(method, path, options = {})
fail ArgumentError, 'path is nil' if path.nil?

request_url = options[:base_url] || @base_url
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
@request_headers['Content-Type'] = options[:headers]['Content-Type']
end

request_headers = @request_headers
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
Expand All @@ -128,7 +125,9 @@ def make_request_async(method, path, options = {})
#
def add_telemetry
sdk_information = 'azure_mgmt_consumption'
sdk_information = "#{sdk_information}/0.16.0"
if defined? Azure::Consumption::Mgmt::V2017_04_24_preview::VERSION
sdk_information = "#{sdk_information}/#{Azure::Consumption::Mgmt::V2017_04_24_preview::VERSION}"
end
add_user_agent_information(sdk_information)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ class ErrorDetails
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'ErrorDetails',
type: {
name: 'Composite',
class_name: 'ErrorDetails',
model_properties: {
code: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'code',
Expand All @@ -45,7 +43,6 @@ def self.mapper()
}
},
message: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'message',
Expand All @@ -54,7 +51,6 @@ def self.mapper()
}
},
target: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'target',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ class ErrorResponse
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'ErrorResponse',
type: {
name: 'Composite',
class_name: 'ErrorResponse',
model_properties: {
error: {
client_side_validation: true,
required: false,
serialized_name: 'error',
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ class MeterDetails
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'MeterDetails',
type: {
name: 'Composite',
class_name: 'MeterDetails',
model_properties: {
meter_name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'meterName',
Expand All @@ -60,7 +58,6 @@ def self.mapper()
}
},
meter_category: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'meterCategory',
Expand All @@ -69,7 +66,6 @@ def self.mapper()
}
},
meter_sub_category: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'meterSubCategory',
Expand All @@ -78,7 +74,6 @@ def self.mapper()
}
},
unit: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'unit',
Expand All @@ -87,7 +82,6 @@ def self.mapper()
}
},
meter_location: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'meterLocation',
Expand All @@ -96,7 +90,6 @@ def self.mapper()
}
},
total_included_quantity: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'totalIncludedQuantity',
Expand All @@ -105,7 +98,6 @@ def self.mapper()
}
},
pretax_standard_rate: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'pretaxStandardRate',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ class Operation
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'Operation',
type: {
name: 'Composite',
class_name: 'Operation',
model_properties: {
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
Expand All @@ -42,7 +40,6 @@ def self.mapper()
}
},
display: {
client_side_validation: true,
required: false,
serialized_name: 'display',
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ class OperationDisplay
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'Operation_display',
type: {
name: 'Composite',
class_name: 'OperationDisplay',
model_properties: {
provider: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'provider',
Expand All @@ -46,7 +44,6 @@ def self.mapper()
}
},
resource: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'resource',
Expand All @@ -55,7 +52,6 @@ def self.mapper()
}
},
operation: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'operation',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,19 @@ def get_next_page
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'OperationListResult',
type: {
name: 'Composite',
class_name: 'OperationListResult',
model_properties: {
value: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'OperationElementType',
type: {
Expand All @@ -86,7 +83,6 @@ def self.mapper()
}
},
next_link: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'nextLink',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ class Resource
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'Resource',
type: {
name: 'Composite',
class_name: 'Resource',
model_properties: {
id: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'id',
Expand All @@ -48,7 +46,6 @@ def self.mapper()
}
},
name: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'name',
Expand All @@ -57,7 +54,6 @@ def self.mapper()
}
},
type: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'type',
Expand All @@ -66,14 +62,12 @@ def self.mapper()
}
},
tags: {
client_side_validation: true,
required: false,
read_only: true,
serialized_name: 'tags',
type: {
name: 'Dictionary',
value: {
client_side_validation: true,
required: false,
serialized_name: 'StringElementType',
type: {
Expand Down
Loading

0 comments on commit 1e91368

Please sign in to comment.