azure_mgmt_signalr 0.17.0 → 0.17.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr.rb +13 -8
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/dimension.rb +80 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/metric_specification.rb +20 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_list.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/resource.rb +10 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rkeys.rb +24 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rresource.rb +12 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rresource_list.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage.rb +95 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage_list.rb +101 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage_name.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/operations.rb +4 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/signal_r.rb +33 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/signal_rmanagement_client.rb +5 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/usages.rb +226 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/dimension.rb +80 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/error_response.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/error_response_body.rb +93 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/feature_flags.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/key_type.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/log_specification.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/metric_specification.rb +139 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/name_availability.rb +70 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/name_availability_parameters.rb +59 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/operation.rb +84 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/operation_display.rb +79 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/operation_list.rb +102 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/operation_properties.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/provisioning_state.rb +23 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/regenerate_key_parameters.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/resource.rb +81 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/resource_sku.rb +101 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/service_specification.rb +77 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rcors_settings.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rcreate_or_update_properties.rb +92 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rcreate_parameters.rb +85 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rfeature.rb +93 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rkeys.rb +81 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rresource.rb +232 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rresource_list.rb +101 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rsku_tier.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rupdate_parameters.rb +81 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rusage.rb +95 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rusage_list.rb +101 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rusage_name.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/tracked_resource.rb +94 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/module_definition.rb +9 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/operations.rb +225 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/signal_r.rb +1498 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/signal_rmanagement_client.rb +141 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/usages.rb +226 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr.rb +76 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/aclaction.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/dimension.rb +80 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/error_response.rb +48 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/error_response_body.rb +93 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/feature_flags.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/key_type.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/log_specification.rb +57 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/metric_specification.rb +139 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/name_availability.rb +70 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/name_availability_parameters.rb +59 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/network_acl.rb +75 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/operation.rb +96 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/operation_display.rb +79 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/operation_list.rb +102 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/operation_properties.rb +47 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/private_endpoint.rb +46 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/private_endpoint_acl.rb +78 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/private_endpoint_connection.rb +101 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/private_link_resource.rb +111 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/private_link_resource_list.rb +102 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/private_link_service_connection_state.rb +72 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/private_link_service_connection_status.rb +18 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/provisioning_state.rb +23 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/proxy_resource.rb +63 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/regenerate_key_parameters.rb +48 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/resource.rb +81 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/resource_sku.rb +101 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/serverless_upstream_settings.rb +58 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/service_kind.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/service_specification.rb +77 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rcors_settings.rb +57 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rcreate_or_update_properties.rb +117 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rfeature.rb +93 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rkeys.rb +81 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rnetwork_acls.rb +80 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rrequest_type.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rresource.rb +294 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rresource_list.rb +101 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rsku_tier.rb +18 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rusage.rb +95 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rusage_list.rb +101 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/signal_rusage_name.rb +57 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/tracked_resource.rb +94 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/models/upstream_template.rb +109 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/module_definition.rb +9 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/operations.rb +225 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/signal_r.rb +1493 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/signal_rmanagement_client.rb +150 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/signal_rprivate_endpoint_connections.rb +404 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/signal_rprivate_link_resources.rb +246 -0
- data/lib/2020-05-01/generated/azure_mgmt_signalr/usages.rb +226 -0
- data/lib/azure_mgmt_signalr.rb +2 -0
- data/lib/profiles/latest/modules/signalr_profile_module.rb +153 -55
- data/lib/version.rb +1 -1
- metadata +99 -5
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Signalr::Mgmt::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Localizable String object containing the name and a localized value.
|
10
|
+
#
|
11
|
+
class SignalRUsageName
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The identifier of the usage.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Localized name of the usage.
|
19
|
+
attr_accessor :localized_value
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for SignalRUsageName class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'SignalRUsageName',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'SignalRUsageName',
|
34
|
+
model_properties: {
|
35
|
+
value: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'value',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
localized_value: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'localizedValue',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -89,6 +89,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
89
89
|
end
|
90
90
|
|
91
91
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
92
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
93
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
92
94
|
# Deserialize Response
|
93
95
|
if status_code == 200
|
94
96
|
begin
|
@@ -180,6 +182,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
180
182
|
end
|
181
183
|
|
182
184
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
185
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
186
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
183
187
|
# Deserialize Response
|
184
188
|
if status_code == 200
|
185
189
|
begin
|
@@ -105,6 +105,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
105
105
|
end
|
106
106
|
|
107
107
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
109
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
108
110
|
# Deserialize Response
|
109
111
|
if status_code == 200
|
110
112
|
begin
|
@@ -189,6 +191,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
189
191
|
end
|
190
192
|
|
191
193
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
194
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
195
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
192
196
|
# Deserialize Response
|
193
197
|
if status_code == 200
|
194
198
|
begin
|
@@ -283,6 +287,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
283
287
|
end
|
284
288
|
|
285
289
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
290
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
291
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
286
292
|
# Deserialize Response
|
287
293
|
if status_code == 200
|
288
294
|
begin
|
@@ -381,6 +387,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
381
387
|
end
|
382
388
|
|
383
389
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
390
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
391
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
384
392
|
# Deserialize Response
|
385
393
|
if status_code == 200
|
386
394
|
begin
|
@@ -530,6 +538,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
530
538
|
end
|
531
539
|
|
532
540
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
541
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
542
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
533
543
|
# Deserialize Response
|
534
544
|
if status_code == 200
|
535
545
|
begin
|
@@ -786,6 +796,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
786
796
|
end
|
787
797
|
|
788
798
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
799
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
800
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
789
801
|
# Deserialize Response
|
790
802
|
if status_code == 201
|
791
803
|
begin
|
@@ -891,12 +903,24 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
891
903
|
http_response = result.response
|
892
904
|
status_code = http_response.status
|
893
905
|
response_content = http_response.body
|
894
|
-
unless status_code == 201 || status_code == 202
|
906
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
895
907
|
error_model = JSON.load(response_content)
|
896
908
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
897
909
|
end
|
898
910
|
|
899
911
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
912
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
913
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
914
|
+
# Deserialize Response
|
915
|
+
if status_code == 200
|
916
|
+
begin
|
917
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
918
|
+
result_mapper = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource.mapper()
|
919
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
920
|
+
rescue Exception => e
|
921
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
922
|
+
end
|
923
|
+
end
|
900
924
|
# Deserialize Response
|
901
925
|
if status_code == 201
|
902
926
|
begin
|
@@ -994,6 +1018,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
994
1018
|
end
|
995
1019
|
|
996
1020
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1021
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1022
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
997
1023
|
|
998
1024
|
result
|
999
1025
|
end
|
@@ -1095,6 +1121,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
1095
1121
|
end
|
1096
1122
|
|
1097
1123
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1124
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1125
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1098
1126
|
# Deserialize Response
|
1099
1127
|
if status_code == 200
|
1100
1128
|
begin
|
@@ -1183,6 +1211,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
1183
1211
|
end
|
1184
1212
|
|
1185
1213
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1214
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1215
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1186
1216
|
# Deserialize Response
|
1187
1217
|
if status_code == 200
|
1188
1218
|
begin
|
@@ -1271,6 +1301,8 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
1271
1301
|
end
|
1272
1302
|
|
1273
1303
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1304
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1305
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1274
1306
|
# Deserialize Response
|
1275
1307
|
if status_code == 200
|
1276
1308
|
begin
|
@@ -43,6 +43,9 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
43
43
|
# @return [SignalR] signal_r
|
44
44
|
attr_reader :signal_r
|
45
45
|
|
46
|
+
# @return [Usages] usages
|
47
|
+
attr_reader :usages
|
48
|
+
|
46
49
|
#
|
47
50
|
# Creates initializes a new instance of the SignalRManagementClient class.
|
48
51
|
# @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
|
|
58
61
|
|
59
62
|
@operations = Operations.new(self)
|
60
63
|
@signal_r = SignalR.new(self)
|
64
|
+
@usages = Usages.new(self)
|
61
65
|
@api_version = '2018-03-01-preview'
|
62
66
|
@accept_language = 'en-US'
|
63
67
|
@long_running_operation_retry_timeout = 30
|
@@ -130,7 +134,7 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
130
134
|
#
|
131
135
|
def add_telemetry
|
132
136
|
sdk_information = 'azure_mgmt_signalr'
|
133
|
-
sdk_information = "#{sdk_information}/0.17.
|
137
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
134
138
|
add_user_agent_information(sdk_information)
|
135
139
|
end
|
136
140
|
end
|
@@ -0,0 +1,226 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Signalr::Mgmt::V2018_03_01_preview
|
7
|
+
#
|
8
|
+
# REST API for Azure SignalR Service
|
9
|
+
#
|
10
|
+
class Usages
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Usages class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [SignalRManagementClient] reference to the SignalRManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# List usage quotas for Azure SignalR service by location.
|
26
|
+
#
|
27
|
+
# @param location [String] the location like "eastus"
|
28
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
+
# will be added to the HTTP request.
|
30
|
+
#
|
31
|
+
# @return [Array<SignalRUsage>] operation results.
|
32
|
+
#
|
33
|
+
def list(location, custom_headers:nil)
|
34
|
+
first_page = list_as_lazy(location, custom_headers:custom_headers)
|
35
|
+
first_page.get_all_items
|
36
|
+
end
|
37
|
+
|
38
|
+
#
|
39
|
+
# List usage quotas for Azure SignalR service by location.
|
40
|
+
#
|
41
|
+
# @param location [String] the location like "eastus"
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
+
# will be added to the HTTP request.
|
44
|
+
#
|
45
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
46
|
+
#
|
47
|
+
def list_with_http_info(location, custom_headers:nil)
|
48
|
+
list_async(location, custom_headers:custom_headers).value!
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# List usage quotas for Azure SignalR service by location.
|
53
|
+
#
|
54
|
+
# @param location [String] the location like "eastus"
|
55
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
56
|
+
# to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
|
+
#
|
60
|
+
def list_async(location, custom_headers:nil)
|
61
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
62
|
+
@client.api_version = '2018-03-01-preview'
|
63
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
64
|
+
|
65
|
+
|
66
|
+
request_headers = {}
|
67
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
68
|
+
|
69
|
+
# Set Headers
|
70
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
71
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
72
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages'
|
73
|
+
|
74
|
+
request_url = @base_url || @client.base_url
|
75
|
+
|
76
|
+
options = {
|
77
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
78
|
+
path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
|
79
|
+
query_params: {'api-version' => @client.api_version},
|
80
|
+
headers: request_headers.merge(custom_headers || {}),
|
81
|
+
base_url: request_url
|
82
|
+
}
|
83
|
+
promise = @client.make_request_async(:get, path_template, options)
|
84
|
+
|
85
|
+
promise = promise.then do |result|
|
86
|
+
http_response = result.response
|
87
|
+
status_code = http_response.status
|
88
|
+
response_content = http_response.body
|
89
|
+
unless status_code == 200
|
90
|
+
error_model = JSON.load(response_content)
|
91
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
92
|
+
end
|
93
|
+
|
94
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
95
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
96
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
97
|
+
# Deserialize Response
|
98
|
+
if status_code == 200
|
99
|
+
begin
|
100
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
101
|
+
result_mapper = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList.mapper()
|
102
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
103
|
+
rescue Exception => e
|
104
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
result
|
109
|
+
end
|
110
|
+
|
111
|
+
promise.execute
|
112
|
+
end
|
113
|
+
|
114
|
+
#
|
115
|
+
# List usage quotas for Azure SignalR service by location.
|
116
|
+
#
|
117
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
118
|
+
# to List operation.
|
119
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
120
|
+
# will be added to the HTTP request.
|
121
|
+
#
|
122
|
+
# @return [SignalRUsageList] operation results.
|
123
|
+
#
|
124
|
+
def list_next(next_page_link, custom_headers:nil)
|
125
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
126
|
+
response.body unless response.nil?
|
127
|
+
end
|
128
|
+
|
129
|
+
#
|
130
|
+
# List usage quotas for Azure SignalR service by location.
|
131
|
+
#
|
132
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
133
|
+
# to List operation.
|
134
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
135
|
+
# will be added to the HTTP request.
|
136
|
+
#
|
137
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
138
|
+
#
|
139
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
140
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
141
|
+
end
|
142
|
+
|
143
|
+
#
|
144
|
+
# List usage quotas for Azure SignalR service by location.
|
145
|
+
#
|
146
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
147
|
+
# to List operation.
|
148
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
149
|
+
# to the HTTP request.
|
150
|
+
#
|
151
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
152
|
+
#
|
153
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
154
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
155
|
+
|
156
|
+
|
157
|
+
request_headers = {}
|
158
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
159
|
+
|
160
|
+
# Set Headers
|
161
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
162
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
163
|
+
path_template = '{nextLink}'
|
164
|
+
|
165
|
+
request_url = @base_url || @client.base_url
|
166
|
+
|
167
|
+
options = {
|
168
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
169
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
170
|
+
headers: request_headers.merge(custom_headers || {}),
|
171
|
+
base_url: request_url
|
172
|
+
}
|
173
|
+
promise = @client.make_request_async(:get, path_template, options)
|
174
|
+
|
175
|
+
promise = promise.then do |result|
|
176
|
+
http_response = result.response
|
177
|
+
status_code = http_response.status
|
178
|
+
response_content = http_response.body
|
179
|
+
unless status_code == 200
|
180
|
+
error_model = JSON.load(response_content)
|
181
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
182
|
+
end
|
183
|
+
|
184
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
185
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
186
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
187
|
+
# Deserialize Response
|
188
|
+
if status_code == 200
|
189
|
+
begin
|
190
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
191
|
+
result_mapper = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList.mapper()
|
192
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
193
|
+
rescue Exception => e
|
194
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
result
|
199
|
+
end
|
200
|
+
|
201
|
+
promise.execute
|
202
|
+
end
|
203
|
+
|
204
|
+
#
|
205
|
+
# List usage quotas for Azure SignalR service by location.
|
206
|
+
#
|
207
|
+
# @param location [String] the location like "eastus"
|
208
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
209
|
+
# will be added to the HTTP request.
|
210
|
+
#
|
211
|
+
# @return [SignalRUsageList] which provide lazy access to pages of the
|
212
|
+
# response.
|
213
|
+
#
|
214
|
+
def list_as_lazy(location, custom_headers:nil)
|
215
|
+
response = list_async(location, custom_headers:custom_headers).value!
|
216
|
+
unless response.nil?
|
217
|
+
page = response.body
|
218
|
+
page.next_method = Proc.new do |next_page_link|
|
219
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
220
|
+
end
|
221
|
+
page
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
end
|
226
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2018-10-01/generated/azure_mgmt_signalr/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Signalr::Mgmt::V2018_10_01
|
23
|
+
autoload :Operations, '2018-10-01/generated/azure_mgmt_signalr/operations.rb'
|
24
|
+
autoload :SignalR, '2018-10-01/generated/azure_mgmt_signalr/signal_r.rb'
|
25
|
+
autoload :Usages, '2018-10-01/generated/azure_mgmt_signalr/usages.rb'
|
26
|
+
autoload :SignalRManagementClient, '2018-10-01/generated/azure_mgmt_signalr/signal_rmanagement_client.rb'
|
27
|
+
|
28
|
+
module Models
|
29
|
+
autoload :ResourceSku, '2018-10-01/generated/azure_mgmt_signalr/models/resource_sku.rb'
|
30
|
+
autoload :Dimension, '2018-10-01/generated/azure_mgmt_signalr/models/dimension.rb'
|
31
|
+
autoload :SignalRResourceList, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rresource_list.rb'
|
32
|
+
autoload :LogSpecification, '2018-10-01/generated/azure_mgmt_signalr/models/log_specification.rb'
|
33
|
+
autoload :ServiceSpecification, '2018-10-01/generated/azure_mgmt_signalr/models/service_specification.rb'
|
34
|
+
autoload :SignalRUsage, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rusage.rb'
|
35
|
+
autoload :Operation, '2018-10-01/generated/azure_mgmt_signalr/models/operation.rb'
|
36
|
+
autoload :Resource, '2018-10-01/generated/azure_mgmt_signalr/models/resource.rb'
|
37
|
+
autoload :ErrorResponseBody, '2018-10-01/generated/azure_mgmt_signalr/models/error_response_body.rb'
|
38
|
+
autoload :SignalRFeature, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rfeature.rb'
|
39
|
+
autoload :NameAvailabilityParameters, '2018-10-01/generated/azure_mgmt_signalr/models/name_availability_parameters.rb'
|
40
|
+
autoload :SignalRCorsSettings, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rcors_settings.rb'
|
41
|
+
autoload :OperationDisplay, '2018-10-01/generated/azure_mgmt_signalr/models/operation_display.rb'
|
42
|
+
autoload :SignalRCreateOrUpdateProperties, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rcreate_or_update_properties.rb'
|
43
|
+
autoload :OperationProperties, '2018-10-01/generated/azure_mgmt_signalr/models/operation_properties.rb'
|
44
|
+
autoload :SignalRKeys, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rkeys.rb'
|
45
|
+
autoload :ErrorResponse, '2018-10-01/generated/azure_mgmt_signalr/models/error_response.rb'
|
46
|
+
autoload :RegenerateKeyParameters, '2018-10-01/generated/azure_mgmt_signalr/models/regenerate_key_parameters.rb'
|
47
|
+
autoload :MetricSpecification, '2018-10-01/generated/azure_mgmt_signalr/models/metric_specification.rb'
|
48
|
+
autoload :SignalRUsageList, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rusage_list.rb'
|
49
|
+
autoload :NameAvailability, '2018-10-01/generated/azure_mgmt_signalr/models/name_availability.rb'
|
50
|
+
autoload :SignalRUpdateParameters, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rupdate_parameters.rb'
|
51
|
+
autoload :OperationList, '2018-10-01/generated/azure_mgmt_signalr/models/operation_list.rb'
|
52
|
+
autoload :SignalRUsageName, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rusage_name.rb'
|
53
|
+
autoload :TrackedResource, '2018-10-01/generated/azure_mgmt_signalr/models/tracked_resource.rb'
|
54
|
+
autoload :SignalRResource, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rresource.rb'
|
55
|
+
autoload :SignalRCreateParameters, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rcreate_parameters.rb'
|
56
|
+
autoload :SignalRSkuTier, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rsku_tier.rb'
|
57
|
+
autoload :ProvisioningState, '2018-10-01/generated/azure_mgmt_signalr/models/provisioning_state.rb'
|
58
|
+
autoload :FeatureFlags, '2018-10-01/generated/azure_mgmt_signalr/models/feature_flags.rb'
|
59
|
+
autoload :KeyType, '2018-10-01/generated/azure_mgmt_signalr/models/key_type.rb'
|
60
|
+
end
|
61
|
+
end
|