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

[AutoPR compute/resource-manager] Swagger change for listing virtual machines in a subscription by location #1689

Closed
Closed
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
62 changes: 31 additions & 31 deletions azure_sdk/lib/latest/modules/consumption_profile_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
module Azure::Profiles::Latest
module Consumption
module Mgmt
PriceSheet = Azure::Consumption::Mgmt::V2018_01_31::PriceSheet
UsageDetails = Azure::Consumption::Mgmt::V2018_01_31::UsageDetails
Operations = Azure::Consumption::Mgmt::V2018_01_31::Operations
Marketplaces = Azure::Consumption::Mgmt::V2018_01_31::Marketplaces
ReservationsSummaries = Azure::Consumption::Mgmt::V2018_01_31::ReservationsSummaries
ReservationsDetails = Azure::Consumption::Mgmt::V2018_01_31::ReservationsDetails
Budgets = Azure::Consumption::Mgmt::V2018_01_31::Budgets
PriceSheet = Azure::Consumption::Mgmt::V2018_01_31::PriceSheet
Operations = Azure::Consumption::Mgmt::V2018_01_31::Operations
UsageDetails = Azure::Consumption::Mgmt::V2018_01_31::UsageDetails
Marketplaces = Azure::Consumption::Mgmt::V2018_01_31::Marketplaces

module Models
Datagrain = Azure::Consumption::Mgmt::V2018_01_31::Models::Datagrain
Resource = Azure::Consumption::Mgmt::V2018_01_31::Models::Resource
MeterDetails = Azure::Consumption::Mgmt::V2018_01_31::Models::MeterDetails
Filters = Azure::Consumption::Mgmt::V2018_01_31::Models::Filters
Expand All @@ -26,28 +27,27 @@ module Models
ReservationDetailsListResult = Azure::Consumption::Mgmt::V2018_01_31::Models::ReservationDetailsListResult
BudgetsListResult = Azure::Consumption::Mgmt::V2018_01_31::Models::BudgetsListResult
PriceSheetProperties = Azure::Consumption::Mgmt::V2018_01_31::Models::PriceSheetProperties
OperationDisplay = Azure::Consumption::Mgmt::V2018_01_31::Models::OperationDisplay
BudgetTimePeriod = Azure::Consumption::Mgmt::V2018_01_31::Models::BudgetTimePeriod
OperationListResult = Azure::Consumption::Mgmt::V2018_01_31::Models::OperationListResult
ProxyResource = Azure::Consumption::Mgmt::V2018_01_31::Models::ProxyResource
UsageDetail = Azure::Consumption::Mgmt::V2018_01_31::Models::UsageDetail
Marketplace = Azure::Consumption::Mgmt::V2018_01_31::Models::Marketplace
ReservationSummaries = Azure::Consumption::Mgmt::V2018_01_31::Models::ReservationSummaries
OperationDisplay = Azure::Consumption::Mgmt::V2018_01_31::Models::OperationDisplay
ReservationDetails = Azure::Consumption::Mgmt::V2018_01_31::Models::ReservationDetails
OperationListResult = Azure::Consumption::Mgmt::V2018_01_31::Models::OperationListResult
ProxyResource = Azure::Consumption::Mgmt::V2018_01_31::Models::ProxyResource
Budget = Azure::Consumption::Mgmt::V2018_01_31::Models::Budget
PriceSheetResult = Azure::Consumption::Mgmt::V2018_01_31::Models::PriceSheetResult
CategoryType = Azure::Consumption::Mgmt::V2018_01_31::Models::CategoryType
ErrorResponse = Azure::Consumption::Mgmt::V2018_01_31::Models::ErrorResponse
TimeGrainType = Azure::Consumption::Mgmt::V2018_01_31::Models::TimeGrainType
OperatorType = Azure::Consumption::Mgmt::V2018_01_31::Models::OperatorType
Datagrain = Azure::Consumption::Mgmt::V2018_01_31::Models::Datagrain
ErrorResponse = Azure::Consumption::Mgmt::V2018_01_31::Models::ErrorResponse
CategoryType = Azure::Consumption::Mgmt::V2018_01_31::Models::CategoryType
Notification = Azure::Consumption::Mgmt::V2018_01_31::Models::Notification
ErrorDetails = Azure::Consumption::Mgmt::V2018_01_31::Models::ErrorDetails
Operation = Azure::Consumption::Mgmt::V2018_01_31::Models::Operation
end

class ConsumptionManagementClass
attr_reader :price_sheet, :usage_details, :operations, :marketplaces, :reservations_summaries, :reservations_details, :budgets, :configurable, :base_url, :options, :model_classes
attr_reader :reservations_summaries, :reservations_details, :budgets, :price_sheet, :operations, :usage_details, :marketplaces, :configurable, :base_url, :options, :model_classes

def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
Expand All @@ -57,13 +57,13 @@ def initialize(configurable, base_url=nil, options=nil)
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(@client_0)
@price_sheet = @client_0.price_sheet
@usage_details = @client_0.usage_details
@operations = @client_0.operations
@marketplaces = @client_0.marketplaces
@reservations_summaries = @client_0.reservations_summaries
@reservations_details = @client_0.reservations_details
@budgets = @client_0.budgets
@price_sheet = @client_0.price_sheet
@operations = @client_0.operations
@usage_details = @client_0.usage_details
@marketplaces = @client_0.marketplaces

@model_classes = ModelClasses.new
end
Expand All @@ -82,6 +82,9 @@ def method_missing(method, *args)
end

class ModelClasses
def datagrain
Azure::Consumption::Mgmt::V2018_01_31::Models::Datagrain
end
def resource
Azure::Consumption::Mgmt::V2018_01_31::Models::Resource
end
Expand Down Expand Up @@ -112,9 +115,18 @@ def budgets_list_result
def price_sheet_properties
Azure::Consumption::Mgmt::V2018_01_31::Models::PriceSheetProperties
end
def operation_display
Azure::Consumption::Mgmt::V2018_01_31::Models::OperationDisplay
end
def budget_time_period
Azure::Consumption::Mgmt::V2018_01_31::Models::BudgetTimePeriod
end
def operation_list_result
Azure::Consumption::Mgmt::V2018_01_31::Models::OperationListResult
end
def proxy_resource
Azure::Consumption::Mgmt::V2018_01_31::Models::ProxyResource
end
def usage_detail
Azure::Consumption::Mgmt::V2018_01_31::Models::UsageDetail
end
Expand All @@ -124,38 +136,26 @@ def marketplace
def reservation_summaries
Azure::Consumption::Mgmt::V2018_01_31::Models::ReservationSummaries
end
def operation_display
Azure::Consumption::Mgmt::V2018_01_31::Models::OperationDisplay
end
def reservation_details
Azure::Consumption::Mgmt::V2018_01_31::Models::ReservationDetails
end
def operation_list_result
Azure::Consumption::Mgmt::V2018_01_31::Models::OperationListResult
end
def proxy_resource
Azure::Consumption::Mgmt::V2018_01_31::Models::ProxyResource
end
def budget
Azure::Consumption::Mgmt::V2018_01_31::Models::Budget
end
def price_sheet_result
Azure::Consumption::Mgmt::V2018_01_31::Models::PriceSheetResult
end
def category_type
Azure::Consumption::Mgmt::V2018_01_31::Models::CategoryType
def error_response
Azure::Consumption::Mgmt::V2018_01_31::Models::ErrorResponse
end
def time_grain_type
Azure::Consumption::Mgmt::V2018_01_31::Models::TimeGrainType
end
def operator_type
Azure::Consumption::Mgmt::V2018_01_31::Models::OperatorType
end
def datagrain
Azure::Consumption::Mgmt::V2018_01_31::Models::Datagrain
end
def error_response
Azure::Consumption::Mgmt::V2018_01_31::Models::ErrorResponse
def category_type
Azure::Consumption::Mgmt::V2018_01_31::Models::CategoryType
end
def notification
Azure::Consumption::Mgmt::V2018_01_31::Models::Notification
Expand Down
84 changes: 42 additions & 42 deletions azure_sdk/lib/latest/modules/containerinstance_profile_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,35 @@
module Azure::Profiles::Latest
module ContainerInstance
module Mgmt
ContainerGroups = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerGroups
ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerGroupUsage
ContainerLogs = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerLogs
StartContainer = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::StartContainer
Operations = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Operations
ContainerGroups = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerGroups
ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerGroupUsage

module Models
EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable
ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits
ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupListResult
AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume
Logs = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Logs
Port = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port
ContainerExecRequestTerminalSize = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequestTerminalSize
ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits
VolumeMount = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount
GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume
ContainerExecRequest = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequest
ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView
ContainerExecResponse = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecResponse
Event = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event
Volume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume
ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup
ContainerExecResponse = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecResponse
ContainerNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerNetworkProtocol
Event = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event
ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup
ContainerGroupNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupNetworkProtocol
ContainerGroupRestartPolicy = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupRestartPolicy
ContainerInstanceOperationsOrigin = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerInstanceOperationsOrigin
OperatingSystemTypes = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperatingSystemTypes
UsageName = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageName
Usage = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Usage
ContainerInstanceOperationsOrigin = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerInstanceOperationsOrigin
UsageListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageListResult
Resource = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource
OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationDisplay
Expand All @@ -42,17 +46,13 @@ module Models
ContainerState = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState
ResourceRequests = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequests
ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements
Operation = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation
Container = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container
GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume
ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential
EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable
Operation = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation
ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupListResult
AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume
end

class ContainerInstanceManagementClass
attr_reader :container_logs, :start_container, :operations, :container_groups, :container_group_usage, :configurable, :base_url, :options, :model_classes
attr_reader :container_groups, :container_group_usage, :container_logs, :start_container, :operations, :configurable, :base_url, :options, :model_classes

def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
Expand All @@ -62,11 +62,11 @@ def initialize(configurable, base_url=nil, options=nil)
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(@client_0)
@container_groups = @client_0.container_groups
@container_group_usage = @client_0.container_group_usage
@container_logs = @client_0.container_logs
@start_container = @client_0.start_container
@operations = @client_0.operations
@container_groups = @client_0.container_groups
@container_group_usage = @client_0.container_group_usage

@model_classes = ModelClasses.new
end
Expand All @@ -85,6 +85,18 @@ def method_missing(method, *args)
end

class ModelClasses
def environment_variable
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable
end
def resource_limits
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits
end
def container_group_list_result
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupListResult
end
def azure_file_volume
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume
end
def logs
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Logs
end
Expand All @@ -94,42 +106,39 @@ def port
def container_exec_request_terminal_size
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequestTerminalSize
end
def resource_limits
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits
end
def volume_mount
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount
end
def git_repo_volume
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume
end
def container_exec_request
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequest
end
def container_properties_instance_view
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView
end
def container_exec_response
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecResponse
def event
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event
end
def volume
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume
end
def container_group
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup
def container_exec_response
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecResponse
end
def container_network_protocol
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerNetworkProtocol
end
def event
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event
def container_group
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup
end
def container_group_network_protocol
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupNetworkProtocol
end
def container_group_restart_policy
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupRestartPolicy
end
def container_instance_operations_origin
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerInstanceOperationsOrigin
end
def operating_system_types
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperatingSystemTypes
end
Expand All @@ -139,6 +148,9 @@ def usage_name
def usage
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Usage
end
def container_instance_operations_origin
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerInstanceOperationsOrigin
end
def usage_list_result
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageListResult
end
Expand Down Expand Up @@ -169,27 +181,15 @@ def resource_requests
def resource_requirements
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements
end
def operation
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation
end
def container
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container
end
def git_repo_volume
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume
end
def image_registry_credential
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential
end
def environment_variable
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable
end
def operation
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation
end
def container_group_list_result
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupListResult
end
def azure_file_volume
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume
end
end
end
end
Expand Down
Loading