azure_mgmt_signalr 0.17.4 → 0.17.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/signal_r.rb +11 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/signal_rmanagement_client.rb +1 -1
- data/lib/2018-10-01/generated/azure_mgmt_signalr.rb +13 -9
- 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/log_specification.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/service_specification.rb +21 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr/models/signal_rfeature.rb +12 -6
- data/lib/2018-10-01/generated/azure_mgmt_signalr/operations.rb +2 -2
- data/lib/2018-10-01/generated/azure_mgmt_signalr/signal_r.rb +23 -13
- data/lib/2018-10-01/generated/azure_mgmt_signalr/signal_rmanagement_client.rb +1 -1
- data/lib/2018-10-01/generated/azure_mgmt_signalr/usages.rb +2 -2
- 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 +1 -0
- data/lib/profiles/latest/modules/signalr_profile_module.rb +143 -71
- data/lib/version.rb +1 -1
- metadata +60 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7768f3742ab21e890ea72bbc0290f796b0a499738006bf915a3a128b0b158473
|
4
|
+
data.tar.gz: e63436445d8b290c3d4fa741cbdf7594ab50c3472b16120c8cb222d3ca50aa36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbcca8645610b9f22c47a1deb9d0d39ff57d8a75e30d9a501a5328d432b5e5303bf946c601d23ee5a262b345cdbb3b722f2a1fd0a870d89f4f43f629734cf00f
|
7
|
+
data.tar.gz: f1ec787e9208b913f3da683e5f523e59f094bc02fc9a7dd4948af31fa3ed05492445f76795ed119976580be76060e8341f37cdbc567c606381dfb96d9eaa243f
|
@@ -903,7 +903,7 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
903
903
|
http_response = result.response
|
904
904
|
status_code = http_response.status
|
905
905
|
response_content = http_response.body
|
906
|
-
unless status_code == 201 || status_code == 202
|
906
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
907
907
|
error_model = JSON.load(response_content)
|
908
908
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
909
909
|
end
|
@@ -912,6 +912,16 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
912
912
|
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
913
913
|
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
914
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
|
924
|
+
# Deserialize Response
|
915
925
|
if status_code == 201
|
916
926
|
begin
|
917
927
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
@@ -134,7 +134,7 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
|
|
134
134
|
#
|
135
135
|
def add_telemetry
|
136
136
|
sdk_information = 'azure_mgmt_signalr'
|
137
|
-
sdk_information = "#{sdk_information}/0.17.
|
137
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
138
138
|
add_user_agent_information(sdk_information)
|
139
139
|
end
|
140
140
|
end
|
@@ -26,32 +26,36 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
26
26
|
autoload :SignalRManagementClient, '2018-10-01/generated/azure_mgmt_signalr/signal_rmanagement_client.rb'
|
27
27
|
|
28
28
|
module Models
|
29
|
-
autoload :
|
29
|
+
autoload :ResourceSku, '2018-10-01/generated/azure_mgmt_signalr/models/resource_sku.rb'
|
30
30
|
autoload :Dimension, '2018-10-01/generated/azure_mgmt_signalr/models/dimension.rb'
|
31
|
-
autoload :
|
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'
|
32
33
|
autoload :ServiceSpecification, '2018-10-01/generated/azure_mgmt_signalr/models/service_specification.rb'
|
33
|
-
autoload :
|
34
|
+
autoload :SignalRUsage, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rusage.rb'
|
34
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'
|
35
38
|
autoload :SignalRFeature, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rfeature.rb'
|
36
39
|
autoload :NameAvailabilityParameters, '2018-10-01/generated/azure_mgmt_signalr/models/name_availability_parameters.rb'
|
37
40
|
autoload :SignalRCorsSettings, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rcors_settings.rb'
|
38
|
-
autoload :
|
41
|
+
autoload :OperationDisplay, '2018-10-01/generated/azure_mgmt_signalr/models/operation_display.rb'
|
39
42
|
autoload :SignalRCreateOrUpdateProperties, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rcreate_or_update_properties.rb'
|
40
|
-
autoload :
|
43
|
+
autoload :OperationProperties, '2018-10-01/generated/azure_mgmt_signalr/models/operation_properties.rb'
|
41
44
|
autoload :SignalRKeys, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rkeys.rb'
|
42
|
-
autoload :
|
45
|
+
autoload :ErrorResponse, '2018-10-01/generated/azure_mgmt_signalr/models/error_response.rb'
|
43
46
|
autoload :RegenerateKeyParameters, '2018-10-01/generated/azure_mgmt_signalr/models/regenerate_key_parameters.rb'
|
44
|
-
autoload :
|
45
|
-
autoload :
|
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'
|
46
49
|
autoload :NameAvailability, '2018-10-01/generated/azure_mgmt_signalr/models/name_availability.rb'
|
47
50
|
autoload :SignalRUpdateParameters, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rupdate_parameters.rb'
|
48
|
-
autoload :
|
51
|
+
autoload :OperationList, '2018-10-01/generated/azure_mgmt_signalr/models/operation_list.rb'
|
49
52
|
autoload :SignalRUsageName, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rusage_name.rb'
|
50
53
|
autoload :TrackedResource, '2018-10-01/generated/azure_mgmt_signalr/models/tracked_resource.rb'
|
51
54
|
autoload :SignalRResource, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rresource.rb'
|
52
55
|
autoload :SignalRCreateParameters, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rcreate_parameters.rb'
|
53
56
|
autoload :SignalRSkuTier, '2018-10-01/generated/azure_mgmt_signalr/models/signal_rsku_tier.rb'
|
54
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'
|
55
59
|
autoload :KeyType, '2018-10-01/generated/azure_mgmt_signalr/models/key_type.rb'
|
56
60
|
end
|
57
61
|
end
|
@@ -0,0 +1,48 @@
|
|
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_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Contains information about an API error.
|
10
|
+
#
|
11
|
+
class ErrorResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ErrorResponseBody] Describes a particular API error with an
|
16
|
+
# error code and a message.
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for ErrorResponse class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'ErrorResponse',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'ErrorResponse',
|
32
|
+
model_properties: {
|
33
|
+
error: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'error',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'ErrorResponseBody'
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,93 @@
|
|
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_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes a particular API error with an error code and a message.
|
10
|
+
#
|
11
|
+
class ErrorResponseBody
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] An error code that describes the error condition more
|
16
|
+
# precisely than an HTTP status code.
|
17
|
+
# Can be used to programmatically handle specific error cases.
|
18
|
+
attr_accessor :code
|
19
|
+
|
20
|
+
# @return [String] A message that describes the error in detail and
|
21
|
+
# provides debugging information.
|
22
|
+
attr_accessor :message
|
23
|
+
|
24
|
+
# @return [String] The target of the particular error (for example, the
|
25
|
+
# name of the property in error).
|
26
|
+
attr_accessor :target
|
27
|
+
|
28
|
+
# @return [Array<ErrorResponseBody>] Contains nested errors that are
|
29
|
+
# related to this error.
|
30
|
+
attr_accessor :details
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for ErrorResponseBody class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'ErrorResponseBody',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'ErrorResponseBody',
|
45
|
+
model_properties: {
|
46
|
+
code: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: true,
|
49
|
+
serialized_name: 'code',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
message: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: true,
|
57
|
+
serialized_name: 'message',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
target: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'target',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
details: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'details',
|
74
|
+
type: {
|
75
|
+
name: 'Sequence',
|
76
|
+
element: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'ErrorResponseBodyElementType',
|
80
|
+
type: {
|
81
|
+
name: 'Composite',
|
82
|
+
class_name: 'ErrorResponseBody'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for FeatureFlags
|
10
|
+
#
|
11
|
+
module FeatureFlags
|
12
|
+
ServiceMode = "ServiceMode"
|
13
|
+
EnableConnectivityLogs = "EnableConnectivityLogs"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -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_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Specifications of the Logs for Azure Monitoring.
|
10
|
+
#
|
11
|
+
class LogSpecification
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Name of the log.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Localized friendly display name of the log.
|
19
|
+
attr_accessor :display_name
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for LogSpecification 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: 'LogSpecification',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'LogSpecification',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'name',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
display_name: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'displayName',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -16,6 +16,10 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
16
16
|
# Azure Monitoring.
|
17
17
|
attr_accessor :metric_specifications
|
18
18
|
|
19
|
+
# @return [Array<LogSpecification>] Specifications of the Logs for Azure
|
20
|
+
# Monitoring.
|
21
|
+
attr_accessor :log_specifications
|
22
|
+
|
19
23
|
|
20
24
|
#
|
21
25
|
# Mapper for ServiceSpecification class as Ruby Hash.
|
@@ -46,6 +50,23 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
46
50
|
}
|
47
51
|
}
|
48
52
|
}
|
53
|
+
},
|
54
|
+
log_specifications: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'logSpecifications',
|
58
|
+
type: {
|
59
|
+
name: 'Sequence',
|
60
|
+
element: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'LogSpecificationElementType',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'LogSpecification'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
49
70
|
}
|
50
71
|
}
|
51
72
|
}
|
@@ -13,13 +13,21 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
-
# @return [
|
17
|
-
#
|
16
|
+
# @return [FeatureFlags] FeatureFlags is the supported features of Azure
|
17
|
+
# SignalR service.
|
18
|
+
# - ServiceMode: Flag for backend server for SignalR service. Values
|
19
|
+
# allowed: "Default": have your own backend server; "Serverless": your
|
20
|
+
# application doesn't have a backend server; "Classic": for backward
|
21
|
+
# compatibility. Support both Default and Serverless mode but not
|
22
|
+
# recommended; "PredefinedOnly": for future use.
|
23
|
+
# - EnableConnectivityLogs: "true"/"false", to enable/disable the
|
24
|
+
# connectivity log category respectively. Possible values include:
|
25
|
+
# 'ServiceMode', 'EnableConnectivityLogs'
|
18
26
|
attr_accessor :flag
|
19
27
|
|
20
28
|
# @return [String] Value of the feature flag. See Azure SignalR service
|
21
|
-
# document https://docs.microsoft.com/
|
22
|
-
#
|
29
|
+
# document https://docs.microsoft.com/azure/azure-signalr/ for allowed
|
30
|
+
# values.
|
23
31
|
attr_accessor :value
|
24
32
|
|
25
33
|
# @return [Hash{String => String}] Optional properties related to this
|
@@ -43,9 +51,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
43
51
|
flag: {
|
44
52
|
client_side_validation: true,
|
45
53
|
required: true,
|
46
|
-
is_constant: true,
|
47
54
|
serialized_name: 'flag',
|
48
|
-
default_value: 'ServiceMode',
|
49
55
|
type: {
|
50
56
|
name: 'String'
|
51
57
|
}
|
@@ -85,7 +85,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
85
85
|
response_content = http_response.body
|
86
86
|
unless status_code == 200
|
87
87
|
error_model = JSON.load(response_content)
|
88
|
-
fail
|
88
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
89
89
|
end
|
90
90
|
|
91
91
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -178,7 +178,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
178
178
|
response_content = http_response.body
|
179
179
|
unless status_code == 200
|
180
180
|
error_model = JSON.load(response_content)
|
181
|
-
fail
|
181
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
182
182
|
end
|
183
183
|
|
184
184
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -101,7 +101,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
101
101
|
response_content = http_response.body
|
102
102
|
unless status_code == 200
|
103
103
|
error_model = JSON.load(response_content)
|
104
|
-
fail
|
104
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
105
105
|
end
|
106
106
|
|
107
107
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -187,7 +187,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
187
187
|
response_content = http_response.body
|
188
188
|
unless status_code == 200
|
189
189
|
error_model = JSON.load(response_content)
|
190
|
-
fail
|
190
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
191
191
|
end
|
192
192
|
|
193
193
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -283,7 +283,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
283
283
|
response_content = http_response.body
|
284
284
|
unless status_code == 200
|
285
285
|
error_model = JSON.load(response_content)
|
286
|
-
fail
|
286
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
287
287
|
end
|
288
288
|
|
289
289
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -383,7 +383,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
383
383
|
response_content = http_response.body
|
384
384
|
unless status_code == 200
|
385
385
|
error_model = JSON.load(response_content)
|
386
|
-
fail
|
386
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
387
387
|
end
|
388
388
|
|
389
389
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -534,7 +534,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
534
534
|
response_content = http_response.body
|
535
535
|
unless status_code == 200
|
536
536
|
error_model = JSON.load(response_content)
|
537
|
-
fail
|
537
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
538
538
|
end
|
539
539
|
|
540
540
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -834,7 +834,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
834
834
|
response_content = http_response.body
|
835
835
|
unless status_code == 201
|
836
836
|
error_model = JSON.load(response_content)
|
837
|
-
fail
|
837
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
838
838
|
end
|
839
839
|
|
840
840
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -945,15 +945,25 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
945
945
|
http_response = result.response
|
946
946
|
status_code = http_response.status
|
947
947
|
response_content = http_response.body
|
948
|
-
unless status_code == 201 || status_code == 202
|
948
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
949
949
|
error_model = JSON.load(response_content)
|
950
|
-
fail
|
950
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
951
951
|
end
|
952
952
|
|
953
953
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
954
954
|
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
955
955
|
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
956
956
|
# Deserialize Response
|
957
|
+
if status_code == 200
|
958
|
+
begin
|
959
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
960
|
+
result_mapper = Azure::Signalr::Mgmt::V2018_10_01::Models::SignalRResource.mapper()
|
961
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
962
|
+
rescue Exception => e
|
963
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
964
|
+
end
|
965
|
+
end
|
966
|
+
# Deserialize Response
|
957
967
|
if status_code == 201
|
958
968
|
begin
|
959
969
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
@@ -1046,7 +1056,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
1046
1056
|
response_content = http_response.body
|
1047
1057
|
unless status_code == 202 || status_code == 204
|
1048
1058
|
error_model = JSON.load(response_content)
|
1049
|
-
fail
|
1059
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1050
1060
|
end
|
1051
1061
|
|
1052
1062
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1149,7 +1159,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
1149
1159
|
response_content = http_response.body
|
1150
1160
|
unless status_code == 200 || status_code == 202
|
1151
1161
|
error_model = JSON.load(response_content)
|
1152
|
-
fail
|
1162
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1153
1163
|
end
|
1154
1164
|
|
1155
1165
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1248,7 +1258,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
1248
1258
|
response_content = http_response.body
|
1249
1259
|
unless status_code == 202 || status_code == 204
|
1250
1260
|
error_model = JSON.load(response_content)
|
1251
|
-
fail
|
1261
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1252
1262
|
end
|
1253
1263
|
|
1254
1264
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1328,7 +1338,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
1328
1338
|
response_content = http_response.body
|
1329
1339
|
unless status_code == 200
|
1330
1340
|
error_model = JSON.load(response_content)
|
1331
|
-
fail
|
1341
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1332
1342
|
end
|
1333
1343
|
|
1334
1344
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1418,7 +1428,7 @@ module Azure::Signalr::Mgmt::V2018_10_01
|
|
1418
1428
|
response_content = http_response.body
|
1419
1429
|
unless status_code == 200
|
1420
1430
|
error_model = JSON.load(response_content)
|
1421
|
-
fail
|
1431
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1422
1432
|
end
|
1423
1433
|
|
1424
1434
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|