зеркало из
1
0
Форкнуть 0
* Release related changes for azure_mgmt_signalr

* Regen all SDKs & Profiles
This commit is contained in:
Sarangan Rajamanickam 2018-09-21 12:05:35 -07:00 коммит произвёл GitHub
Родитель 8fb678ddaa
Коммит 8e40b3d118
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
18 изменённых файлов: 747 добавлений и 87 удалений

Просмотреть файл

@ -1,3 +1,7 @@
## 2018.09.21 - Azure Ruby SDK Release
* Released 0.17.2 version of azure_mgmt_signalr to include the latest changes to 2018-03-01-preview version.
* Released 0.18.5 version of azure_sdk to include the latest changes in azure_mgmt_signalr.
## 2018.09.18 - Azure Ruby SDK Release
* Released 0.17.3 version of azure_mgmt_network to include the latest version of 2018-08-01.
* Released 0.18.4 version of azure_sdk to include the latest version changes in azure_mgmt_network.

Просмотреть файл

@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
module Azure
VERSION = '0.18.4'
VERSION = '0.18.5'
end

Просмотреть файл

@ -9,23 +9,28 @@ module Azure::Profiles::Latest
module Mgmt
Operations = Azure::Signalr::Mgmt::V2018_03_01_preview::Operations
SignalR = Azure::Signalr::Mgmt::V2018_03_01_preview::SignalR
Usages = Azure::Signalr::Mgmt::V2018_03_01_preview::Usages
module Models
ResourceSku = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
OperationDisplay = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay
ServiceSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
SignalRResourceList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
OperationDisplay = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay
Dimension = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Dimension
ServiceSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
SignalRUsageList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList
Operation = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation
Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
NameAvailabilityParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
SignalRCreateOrUpdateProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
ResourceSku = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
SignalRKeys = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
RegenerateKeyParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
NameAvailability = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
SignalRUsage = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage
OperationList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList
SignalRUpdateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters
NameAvailability = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
SignalRCreateOrUpdateProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
MetricSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification
SignalRKeys = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
NameAvailabilityParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
RegenerateKeyParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
SignalRUsageName = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName
TrackedResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource
SignalRResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource
SignalRCreateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateParameters
@ -35,7 +40,7 @@ module Azure::Profiles::Latest
end
class SignalrManagementClass
attr_reader :operations, :signal_r, :configurable, :base_url, :options, :model_classes
attr_reader :operations, :signal_r, :usages, :configurable, :base_url, :options, :model_classes
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
@ -47,6 +52,7 @@ module Azure::Profiles::Latest
add_telemetry(@client_0)
@operations = @client_0.operations
@signal_r = @client_0.signal_r
@usages = @client_0.usages
@model_classes = ModelClasses.new
end
@ -65,50 +71,62 @@ module Azure::Profiles::Latest
end
class ModelClasses
def resource_sku
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
def signal_rresource_list
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
end
def operation_display
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay
end
def dimension
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Dimension
end
def service_specification
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
end
def signal_rresource_list
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
def signal_rusage_list
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList
end
def operation
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation
end
def resource
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
end
def name_availability_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
end
def signal_rcreate_or_update_properties
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
end
def resource_sku
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
end
def signal_rkeys
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
end
def operation_properties
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
end
def regenerate_key_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
end
def name_availability
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
end
def signal_rusage
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage
end
def operation_list
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList
end
def signal_rupdate_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters
end
def name_availability
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
end
def resource
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
end
def operation_properties
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
end
def signal_rcreate_or_update_properties
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
end
def metric_specification
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification
end
def signal_rkeys
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
end
def name_availability_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
end
def regenerate_key_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
def signal_rusage_name
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName
end
def tracked_resource
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource

Просмотреть файл

@ -1,6 +1,6 @@
{
"management": [
"azure_mgmt_network"
"azure_mgmt_signalr"
],
"rollup": [
"azure_sdk"

Просмотреть файл

@ -1,7 +1,7 @@
{
"rollup": {
"azure_sdk": "0.18.4"
"azure_sdk": "0.18.5"
},
"data": {
"azure_cognitiveservices_computervision": "0.17.0",
@ -73,7 +73,7 @@
"azure_mgmt_security": "0.17.1",
"azure_mgmt_service_bus": "0.17.1",
"azure_mgmt_service_fabric": "0.17.1",
"azure_mgmt_signalr": "0.17.1",
"azure_mgmt_signalr": "0.17.2",
"azure_mgmt_sql": "0.17.1",
"azure_mgmt_stor_simple8000_series": "0.17.1",
"azure_mgmt_storage": "0.17.1",

Просмотреть файл

@ -1170,7 +1170,7 @@
},
"azure_mgmt_signalr": {
"azure_mgmt_signalr_2018_03_01_preview": {
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0840eaa81abaf0a42c88d8e2705dff1c89c4f149/specification/signalr/resource-manager/readme.md",
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/57cc3b1c16e4d747ac1163c2da6e73c06f28fdcb/specification/signalr/resource-manager/readme.md",
"namespace": "Azure::Signalr::Mgmt::V2018_03_01_preview",
"tag": "package-2018-03-01-preview"
}

Просмотреть файл

@ -22,24 +22,29 @@ require 'ms_rest_azure'
module Azure::Signalr::Mgmt::V2018_03_01_preview
autoload :Operations, '2018-03-01-preview/generated/azure_mgmt_signalr/operations.rb'
autoload :SignalR, '2018-03-01-preview/generated/azure_mgmt_signalr/signal_r.rb'
autoload :Usages, '2018-03-01-preview/generated/azure_mgmt_signalr/usages.rb'
autoload :SignalRManagementClient, '2018-03-01-preview/generated/azure_mgmt_signalr/signal_rmanagement_client.rb'
module Models
autoload :ResourceSku, '2018-03-01-preview/generated/azure_mgmt_signalr/models/resource_sku.rb'
autoload :OperationDisplay, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_display.rb'
autoload :ServiceSpecification, '2018-03-01-preview/generated/azure_mgmt_signalr/models/service_specification.rb'
autoload :SignalRResourceList, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rresource_list.rb'
autoload :OperationDisplay, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_display.rb'
autoload :Dimension, '2018-03-01-preview/generated/azure_mgmt_signalr/models/dimension.rb'
autoload :ServiceSpecification, '2018-03-01-preview/generated/azure_mgmt_signalr/models/service_specification.rb'
autoload :SignalRUsageList, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage_list.rb'
autoload :Operation, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation.rb'
autoload :Resource, '2018-03-01-preview/generated/azure_mgmt_signalr/models/resource.rb'
autoload :NameAvailabilityParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/name_availability_parameters.rb'
autoload :SignalRCreateOrUpdateProperties, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rcreate_or_update_properties.rb'
autoload :ResourceSku, '2018-03-01-preview/generated/azure_mgmt_signalr/models/resource_sku.rb'
autoload :SignalRKeys, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rkeys.rb'
autoload :OperationProperties, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_properties.rb'
autoload :RegenerateKeyParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/regenerate_key_parameters.rb'
autoload :NameAvailability, '2018-03-01-preview/generated/azure_mgmt_signalr/models/name_availability.rb'
autoload :SignalRUsage, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage.rb'
autoload :OperationList, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_list.rb'
autoload :SignalRUpdateParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rupdate_parameters.rb'
autoload :NameAvailability, '2018-03-01-preview/generated/azure_mgmt_signalr/models/name_availability.rb'
autoload :Resource, '2018-03-01-preview/generated/azure_mgmt_signalr/models/resource.rb'
autoload :OperationProperties, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_properties.rb'
autoload :SignalRCreateOrUpdateProperties, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rcreate_or_update_properties.rb'
autoload :MetricSpecification, '2018-03-01-preview/generated/azure_mgmt_signalr/models/metric_specification.rb'
autoload :SignalRKeys, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rkeys.rb'
autoload :NameAvailabilityParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/name_availability_parameters.rb'
autoload :RegenerateKeyParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/regenerate_key_parameters.rb'
autoload :SignalRUsageName, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage_name.rb'
autoload :TrackedResource, '2018-03-01-preview/generated/azure_mgmt_signalr/models/tracked_resource.rb'
autoload :SignalRResource, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rresource.rb'
autoload :SignalRCreateParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rcreate_parameters.rb'

Просмотреть файл

@ -0,0 +1,80 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Signalr::Mgmt::V2018_03_01_preview
module Models
#
# Specifications of the Dimension of metrics.
#
class Dimension
include MsRestAzure
# @return [String] The public facing name of the dimension.
attr_accessor :name
# @return [String] Localized friendly display name of the dimension.
attr_accessor :display_name
# @return [String] Name of the dimension as it appears in MDM.
attr_accessor :internal_name
# @return [Boolean] A Boolean flag indicating whether this dimension
# should be included for the shoebox export scenario.
attr_accessor :to_be_exported_for_shoebox
#
# Mapper for Dimension class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'Dimension',
type: {
name: 'Composite',
class_name: 'Dimension',
model_properties: {
name: {
client_side_validation: true,
required: false,
serialized_name: 'name',
type: {
name: 'String'
}
},
display_name: {
client_side_validation: true,
required: false,
serialized_name: 'displayName',
type: {
name: 'String'
}
},
internal_name: {
client_side_validation: true,
required: false,
serialized_name: 'internalName',
type: {
name: 'String'
}
},
to_be_exported_for_shoebox: {
client_side_validation: true,
required: false,
serialized_name: 'toBeExportedForShoebox',
type: {
name: 'Boolean'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -40,6 +40,9 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
# belongs to. A metric can only belong to a single category.
attr_accessor :category
# @return [Array<Dimension>] The dimensions of the metrics.
attr_accessor :dimensions
#
# Mapper for MetricSpecification class as Ruby Hash.
@ -109,6 +112,23 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
type: {
name: 'String'
}
},
dimensions: {
client_side_validation: true,
required: false,
serialized_name: 'dimensions',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'DimensionElementType',
type: {
name: 'Composite',
class_name: 'Dimension'
}
}
}
}
}
}

Просмотреть файл

@ -18,6 +18,14 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
# @return [String] The secondary access key.
attr_accessor :secondary_key
# @return [String] SignalR connection string constructed via the
# primaryKey
attr_accessor :primary_connection_string
# @return [String] SignalR connection string constructed via the
# secondaryKey
attr_accessor :secondary_connection_string
#
# Mapper for SignalRKeys class as Ruby Hash.
@ -47,6 +55,22 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
type: {
name: 'String'
}
},
primary_connection_string: {
client_side_validation: true,
required: false,
serialized_name: 'primaryConnectionString',
type: {
name: 'String'
}
},
secondary_connection_string: {
client_side_validation: true,
required: false,
serialized_name: 'secondaryConnectionString',
type: {
name: 'String'
}
}
}
}

Просмотреть файл

@ -41,6 +41,10 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
# which is designed for customer server side usage.
attr_accessor :server_port
# @return [String] Version of the SignalR resource. Probably you need the
# same or higher version of client SDKs.
attr_accessor :version
#
# Mapper for SignalRResource class as Ruby Hash.
@ -167,6 +171,14 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
type: {
name: 'Number'
}
},
version: {
client_side_validation: true,
required: false,
serialized_name: 'properties.version',
type: {
name: 'String'
}
}
}
}

Просмотреть файл

@ -0,0 +1,95 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Signalr::Mgmt::V2018_03_01_preview
module Models
#
# Object that describes a specific usage of SignalR resources.
#
class SignalRUsage
include MsRestAzure
# @return [String] Fully qualified ARM resource id
attr_accessor :id
# @return [Integer] Current value for the usage quota.
attr_accessor :current_value
# @return [Integer] The maximum permitted value for the usage quota. If
# there is no limit, this value will be -1.
attr_accessor :limit
# @return [SignalRUsageName] Localizable String object containing the
# name and a localized value.
attr_accessor :name
# @return [String] Representing the units of the usage quota. Possible
# values are: Count, Bytes, Seconds, Percent, CountPerSecond,
# BytesPerSecond.
attr_accessor :unit
#
# Mapper for SignalRUsage class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'SignalRUsage',
type: {
name: 'Composite',
class_name: 'SignalRUsage',
model_properties: {
id: {
client_side_validation: true,
required: false,
serialized_name: 'id',
type: {
name: 'String'
}
},
current_value: {
client_side_validation: true,
required: false,
serialized_name: 'currentValue',
type: {
name: 'Number'
}
},
limit: {
client_side_validation: true,
required: false,
serialized_name: 'limit',
type: {
name: 'Number'
}
},
name: {
client_side_validation: true,
required: false,
serialized_name: 'name',
type: {
name: 'Composite',
class_name: 'SignalRUsageName'
}
},
unit: {
client_side_validation: true,
required: false,
serialized_name: 'unit',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,101 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Signalr::Mgmt::V2018_03_01_preview
module Models
#
# Object that includes an array of SignalR resource usages and a possible
# link for next set.
#
class SignalRUsageList
include MsRestAzure
include MsRest::JSONable
# @return [Array<SignalRUsage>] List of SignalR usages
attr_accessor :value
# @return [String] The URL the client should use to fetch the next page
# (per server side paging).
# It's null for now, added for future use.
attr_accessor :next_link
# return [Proc] with next page method call.
attr_accessor :next_method
#
# Gets the rest of the items for the request, enabling auto-pagination.
#
# @return [Array<SignalRUsage>] operation results.
#
def get_all_items
items = @value
page = self
while page.next_link != nil do
page = page.get_next_page
items.concat(page.value)
end
items
end
#
# Gets the next page of results.
#
# @return [SignalRUsageList] with next page content.
#
def get_next_page
response = @next_method.call(@next_link).value! unless @next_method.nil?
unless response.nil?
@next_link = response.body.next_link
@value = response.body.value
self
end
end
#
# Mapper for SignalRUsageList class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'SignalRUsageList',
type: {
name: 'Composite',
class_name: 'SignalRUsageList',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'SignalRUsageElementType',
type: {
name: 'Composite',
class_name: 'SignalRUsage'
}
}
}
},
next_link: {
client_side_validation: true,
required: false,
serialized_name: 'nextLink',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -0,0 +1,57 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Signalr::Mgmt::V2018_03_01_preview
module Models
#
# Localizable String object containing the name and a localized value.
#
class SignalRUsageName
include MsRestAzure
# @return [String] The indentifier of the usage.
attr_accessor :value
# @return [String] Localized name of the usage.
attr_accessor :localized_value
#
# Mapper for SignalRUsageName class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'SignalRUsageName',
type: {
name: 'Composite',
class_name: 'SignalRUsageName',
model_properties: {
value: {
client_side_validation: true,
required: false,
serialized_name: 'value',
type: {
name: 'String'
}
},
localized_value: {
client_side_validation: true,
required: false,
serialized_name: 'localizedValue',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end

Просмотреть файл

@ -43,6 +43,9 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
# @return [SignalR] signal_r
attr_reader :signal_r
# @return [Usages] usages
attr_reader :usages
#
# Creates initializes a new instance of the SignalRManagementClient class.
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@ -58,6 +61,7 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
@operations = Operations.new(self)
@signal_r = SignalR.new(self)
@usages = Usages.new(self)
@api_version = '2018-03-01-preview'
@accept_language = 'en-US'
@long_running_operation_retry_timeout = 30
@ -130,7 +134,7 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
#
def add_telemetry
sdk_information = 'azure_mgmt_signalr'
sdk_information = "#{sdk_information}/0.17.1"
sdk_information = "#{sdk_information}/0.17.2"
add_user_agent_information(sdk_information)
end
end

Просмотреть файл

@ -0,0 +1,222 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Signalr::Mgmt::V2018_03_01_preview
#
# REST API for Azure SignalR Service
#
class Usages
include MsRestAzure
#
# Creates and initializes a new instance of the Usages class.
# @param client service class for accessing basic functionality.
#
def initialize(client)
@client = client
end
# @return [SignalRManagementClient] reference to the SignalRManagementClient
attr_reader :client
#
# List usage quotas for Azure SignalR service by location.
#
# @param location [String] the location like "eastus"
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Array<SignalRUsage>] operation results.
#
def list(location, custom_headers:nil)
first_page = list_as_lazy(location, custom_headers:custom_headers)
first_page.get_all_items
end
#
# List usage quotas for Azure SignalR service by location.
#
# @param location [String] the location like "eastus"
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_with_http_info(location, custom_headers:nil)
list_async(location, custom_headers:custom_headers).value!
end
#
# List usage quotas for Azure SignalR service by location.
#
# @param location [String] the location like "eastus"
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_async(location, custom_headers:nil)
fail ArgumentError, 'location is nil' if location.nil?
@client.api_version = '2018-03-01-preview'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# List usage quotas for Azure SignalR service by location.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [SignalRUsageList] operation results.
#
def list_next(next_page_link, custom_headers:nil)
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
response.body unless response.nil?
end
#
# List usage quotas for Azure SignalR service by location.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def list_next_with_http_info(next_page_link, custom_headers:nil)
list_next_async(next_page_link, custom_headers:custom_headers).value!
end
#
# List usage quotas for Azure SignalR service by location.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_next_async(next_page_link, custom_headers:nil)
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
path_template = '{nextLink}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
skip_encoding_path_params: {'nextLink' => next_page_link},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
# Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
result
end
promise.execute
end
#
# List usage quotas for Azure SignalR service by location.
#
# @param location [String] the location like "eastus"
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [SignalRUsageList] which provide lazy access to pages of the
# response.
#
def list_as_lazy(location, custom_headers:nil)
response = list_async(location, custom_headers:custom_headers).value!
unless response.nil?
page = response.body
page.next_method = Proc.new do |next_page_link|
list_next_async(next_page_link, custom_headers:custom_headers)
end
page
end
end
end
end

Просмотреть файл

@ -8,23 +8,28 @@ module Azure::Signalr::Profiles::Latest
module Mgmt
Operations = Azure::Signalr::Mgmt::V2018_03_01_preview::Operations
SignalR = Azure::Signalr::Mgmt::V2018_03_01_preview::SignalR
Usages = Azure::Signalr::Mgmt::V2018_03_01_preview::Usages
module Models
ResourceSku = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
OperationDisplay = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay
ServiceSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
SignalRResourceList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
OperationDisplay = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay
Dimension = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Dimension
ServiceSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
SignalRUsageList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList
Operation = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation
Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
NameAvailabilityParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
SignalRCreateOrUpdateProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
ResourceSku = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
SignalRKeys = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
RegenerateKeyParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
NameAvailability = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
SignalRUsage = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage
OperationList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList
SignalRUpdateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters
NameAvailability = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
SignalRCreateOrUpdateProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
MetricSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification
SignalRKeys = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
NameAvailabilityParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
RegenerateKeyParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
SignalRUsageName = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName
TrackedResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource
SignalRResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource
SignalRCreateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateParameters
@ -37,7 +42,7 @@ module Azure::Signalr::Profiles::Latest
# SignalrManagementClass
#
class SignalrManagementClass
attr_reader :operations, :signal_r, :configurable, :base_url, :options, :model_classes
attr_reader :operations, :signal_r, :usages, :configurable, :base_url, :options, :model_classes
def initialize(options = {})
if options.is_a?(Hash) && options.length == 0
@ -59,6 +64,7 @@ module Azure::Signalr::Profiles::Latest
add_telemetry(@client_0)
@operations = @client_0.operations
@signal_r = @client_0.signal_r
@usages = @client_0.usages
@model_classes = ModelClasses.new
end
@ -79,50 +85,62 @@ module Azure::Signalr::Profiles::Latest
end
class ModelClasses
def resource_sku
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
def signal_rresource_list
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
end
def operation_display
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay
end
def dimension
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Dimension
end
def service_specification
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
end
def signal_rresource_list
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
def signal_rusage_list
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList
end
def operation
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation
end
def resource
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
end
def name_availability_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
end
def signal_rcreate_or_update_properties
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
end
def resource_sku
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
end
def signal_rkeys
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
end
def operation_properties
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
end
def regenerate_key_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
end
def name_availability
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
end
def signal_rusage
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage
end
def operation_list
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList
end
def signal_rupdate_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters
end
def name_availability
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
end
def resource
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
end
def operation_properties
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
end
def signal_rcreate_or_update_properties
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
end
def metric_specification
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification
end
def signal_rkeys
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
end
def name_availability_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
end
def regenerate_key_parameters
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
def signal_rusage_name
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName
end
def tracked_resource
Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource

Просмотреть файл

@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
module Azure::Signalr::Mgmt
VERSION = '0.17.1'
VERSION = '0.17.2'
end