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

[AutoPR consumption/resource-manager] Adding swagger for new api-version consumption 2018-05-31, introducing new Forecast api swagger #1310

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure_sdk/lib/azure_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

require 'latest/latest_profile_client'
require 'v2017_03_09/v2017_03_09_profile_client'
require 'latest/latest_profile_client'
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