azure_mgmt_signalr 0.17.3 → 0.17.4
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/models/resource.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage_name.rb +1 -1
- 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 +22 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/signal_rmanagement_client.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_signalr/usages.rb +4 -0
- data/lib/2018-10-01/generated/azure_mgmt_signalr.rb +57 -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/key_type.rb +16 -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 +56 -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 +87 -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 +1488 -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/azure_mgmt_signalr.rb +1 -0
- data/lib/profiles/latest/modules/signalr_profile_module.rb +71 -63
- data/lib/version.rb +1 -1
- metadata +38 -5
@@ -0,0 +1,87 @@
|
|
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
|
+
# Feature of a SignalR resource, which controls the SignalR runtime
|
10
|
+
# behavior.
|
11
|
+
#
|
12
|
+
class SignalRFeature
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Kind of feature. Required. Default value:
|
17
|
+
# 'ServiceMode' .
|
18
|
+
attr_accessor :flag
|
19
|
+
|
20
|
+
# @return [String] Value of the feature flag. See Azure SignalR service
|
21
|
+
# document https://docs.microsoft.com/en-us/azure/azure-signalr/ for
|
22
|
+
# allowed values.
|
23
|
+
attr_accessor :value
|
24
|
+
|
25
|
+
# @return [Hash{String => String}] Optional properties related to this
|
26
|
+
# feature.
|
27
|
+
attr_accessor :properties
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for SignalRFeature class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'SignalRFeature',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'SignalRFeature',
|
42
|
+
model_properties: {
|
43
|
+
flag: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: true,
|
46
|
+
is_constant: true,
|
47
|
+
serialized_name: 'flag',
|
48
|
+
default_value: 'ServiceMode',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
value: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: true,
|
56
|
+
serialized_name: 'value',
|
57
|
+
constraints: {
|
58
|
+
MaxLength: 128,
|
59
|
+
MinLength: 1
|
60
|
+
},
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
properties: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'properties',
|
69
|
+
type: {
|
70
|
+
name: 'Dictionary',
|
71
|
+
value: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'StringElementType',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,81 @@
|
|
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
|
+
# A class represents the access keys of SignalR service.
|
10
|
+
#
|
11
|
+
class SignalRKeys
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The primary access key.
|
16
|
+
attr_accessor :primary_key
|
17
|
+
|
18
|
+
# @return [String] The secondary access key.
|
19
|
+
attr_accessor :secondary_key
|
20
|
+
|
21
|
+
# @return [String] SignalR connection string constructed via the
|
22
|
+
# primaryKey
|
23
|
+
attr_accessor :primary_connection_string
|
24
|
+
|
25
|
+
# @return [String] SignalR connection string constructed via the
|
26
|
+
# secondaryKey
|
27
|
+
attr_accessor :secondary_connection_string
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for SignalRKeys class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'SignalRKeys',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'SignalRKeys',
|
42
|
+
model_properties: {
|
43
|
+
primary_key: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'primaryKey',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
secondary_key: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'secondaryKey',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
primary_connection_string: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'primaryConnectionString',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
secondary_connection_string: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'secondaryConnectionString',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,232 @@
|
|
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
|
+
# A class represent a SignalR service resource.
|
10
|
+
#
|
11
|
+
class SignalRResource < TrackedResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ResourceSku] SKU of the service.
|
16
|
+
attr_accessor :sku
|
17
|
+
|
18
|
+
# @return [String] Prefix for the hostName of the SignalR service.
|
19
|
+
# Retained for future use.
|
20
|
+
# The hostname will be of format:
|
21
|
+
# <hostNamePrefix>.service.signalr.net.
|
22
|
+
attr_accessor :host_name_prefix
|
23
|
+
|
24
|
+
# @return [Array<SignalRFeature>] List of SignalR featureFlags. e.g.
|
25
|
+
# ServiceMode.
|
26
|
+
#
|
27
|
+
# FeatureFlags that are not included in the parameters for the update
|
28
|
+
# operation will not be modified.
|
29
|
+
# And the response will only include featureFlags that are explicitly
|
30
|
+
# set.
|
31
|
+
# When a featureFlag is not explicitly set, SignalR service will use its
|
32
|
+
# globally default value.
|
33
|
+
# But keep in mind, the default value doesn't mean "false". It varies in
|
34
|
+
# terms of different FeatureFlags.
|
35
|
+
attr_accessor :features
|
36
|
+
|
37
|
+
# @return [SignalRCorsSettings] Cross-Origin Resource Sharing (CORS)
|
38
|
+
# settings.
|
39
|
+
attr_accessor :cors
|
40
|
+
|
41
|
+
# @return [ProvisioningState] Provisioning state of the resource.
|
42
|
+
# Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled',
|
43
|
+
# 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
|
44
|
+
attr_accessor :provisioning_state
|
45
|
+
|
46
|
+
# @return [String] The publicly accessible IP of the SignalR service.
|
47
|
+
attr_accessor :external_ip
|
48
|
+
|
49
|
+
# @return [String] FQDN of the SignalR service instance. Format:
|
50
|
+
# xxx.service.signalr.net
|
51
|
+
attr_accessor :host_name
|
52
|
+
|
53
|
+
# @return [Integer] The publicly accessible port of the SignalR service
|
54
|
+
# which is designed for browser/client side usage.
|
55
|
+
attr_accessor :public_port
|
56
|
+
|
57
|
+
# @return [Integer] The publicly accessible port of the SignalR service
|
58
|
+
# which is designed for customer server side usage.
|
59
|
+
attr_accessor :server_port
|
60
|
+
|
61
|
+
# @return [String] Version of the SignalR resource. Probably you need the
|
62
|
+
# same or higher version of client SDKs.
|
63
|
+
attr_accessor :version
|
64
|
+
|
65
|
+
|
66
|
+
#
|
67
|
+
# Mapper for SignalRResource class as Ruby Hash.
|
68
|
+
# This will be used for serialization/deserialization.
|
69
|
+
#
|
70
|
+
def self.mapper()
|
71
|
+
{
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'SignalRResource',
|
75
|
+
type: {
|
76
|
+
name: 'Composite',
|
77
|
+
class_name: 'SignalRResource',
|
78
|
+
model_properties: {
|
79
|
+
id: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
read_only: true,
|
83
|
+
serialized_name: 'id',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
name: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'name',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
},
|
97
|
+
type: {
|
98
|
+
client_side_validation: true,
|
99
|
+
required: false,
|
100
|
+
read_only: true,
|
101
|
+
serialized_name: 'type',
|
102
|
+
type: {
|
103
|
+
name: 'String'
|
104
|
+
}
|
105
|
+
},
|
106
|
+
location: {
|
107
|
+
client_side_validation: true,
|
108
|
+
required: false,
|
109
|
+
serialized_name: 'location',
|
110
|
+
type: {
|
111
|
+
name: 'String'
|
112
|
+
}
|
113
|
+
},
|
114
|
+
tags: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'tags',
|
118
|
+
type: {
|
119
|
+
name: 'Dictionary',
|
120
|
+
value: {
|
121
|
+
client_side_validation: true,
|
122
|
+
required: false,
|
123
|
+
serialized_name: 'StringElementType',
|
124
|
+
type: {
|
125
|
+
name: 'String'
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
},
|
130
|
+
sku: {
|
131
|
+
client_side_validation: true,
|
132
|
+
required: false,
|
133
|
+
serialized_name: 'sku',
|
134
|
+
type: {
|
135
|
+
name: 'Composite',
|
136
|
+
class_name: 'ResourceSku'
|
137
|
+
}
|
138
|
+
},
|
139
|
+
host_name_prefix: {
|
140
|
+
client_side_validation: true,
|
141
|
+
required: false,
|
142
|
+
serialized_name: 'properties.hostNamePrefix',
|
143
|
+
type: {
|
144
|
+
name: 'String'
|
145
|
+
}
|
146
|
+
},
|
147
|
+
features: {
|
148
|
+
client_side_validation: true,
|
149
|
+
required: false,
|
150
|
+
serialized_name: 'properties.features',
|
151
|
+
type: {
|
152
|
+
name: 'Sequence',
|
153
|
+
element: {
|
154
|
+
client_side_validation: true,
|
155
|
+
required: false,
|
156
|
+
serialized_name: 'SignalRFeatureElementType',
|
157
|
+
type: {
|
158
|
+
name: 'Composite',
|
159
|
+
class_name: 'SignalRFeature'
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
},
|
164
|
+
cors: {
|
165
|
+
client_side_validation: true,
|
166
|
+
required: false,
|
167
|
+
serialized_name: 'properties.cors',
|
168
|
+
type: {
|
169
|
+
name: 'Composite',
|
170
|
+
class_name: 'SignalRCorsSettings'
|
171
|
+
}
|
172
|
+
},
|
173
|
+
provisioning_state: {
|
174
|
+
client_side_validation: true,
|
175
|
+
required: false,
|
176
|
+
read_only: true,
|
177
|
+
serialized_name: 'properties.provisioningState',
|
178
|
+
type: {
|
179
|
+
name: 'String'
|
180
|
+
}
|
181
|
+
},
|
182
|
+
external_ip: {
|
183
|
+
client_side_validation: true,
|
184
|
+
required: false,
|
185
|
+
read_only: true,
|
186
|
+
serialized_name: 'properties.externalIP',
|
187
|
+
type: {
|
188
|
+
name: 'String'
|
189
|
+
}
|
190
|
+
},
|
191
|
+
host_name: {
|
192
|
+
client_side_validation: true,
|
193
|
+
required: false,
|
194
|
+
read_only: true,
|
195
|
+
serialized_name: 'properties.hostName',
|
196
|
+
type: {
|
197
|
+
name: 'String'
|
198
|
+
}
|
199
|
+
},
|
200
|
+
public_port: {
|
201
|
+
client_side_validation: true,
|
202
|
+
required: false,
|
203
|
+
read_only: true,
|
204
|
+
serialized_name: 'properties.publicPort',
|
205
|
+
type: {
|
206
|
+
name: 'Number'
|
207
|
+
}
|
208
|
+
},
|
209
|
+
server_port: {
|
210
|
+
client_side_validation: true,
|
211
|
+
required: false,
|
212
|
+
read_only: true,
|
213
|
+
serialized_name: 'properties.serverPort',
|
214
|
+
type: {
|
215
|
+
name: 'Number'
|
216
|
+
}
|
217
|
+
},
|
218
|
+
version: {
|
219
|
+
client_side_validation: true,
|
220
|
+
required: false,
|
221
|
+
serialized_name: 'properties.version',
|
222
|
+
type: {
|
223
|
+
name: 'String'
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
@@ -0,0 +1,101 @@
|
|
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
|
+
# Object that includes an array of SignalR services and a possible link for
|
10
|
+
# next set.
|
11
|
+
#
|
12
|
+
class SignalRResourceList
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<SignalRResource>] List of SignalR services
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] The URL the client should use to fetch the next page
|
21
|
+
# (per server side paging).
|
22
|
+
# It's null for now, added for future use.
|
23
|
+
attr_accessor :next_link
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<SignalRResource>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [SignalRResourceList] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for SignalRResourceList class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'SignalRResourceList',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'SignalRResourceList',
|
69
|
+
model_properties: {
|
70
|
+
value: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'value',
|
74
|
+
type: {
|
75
|
+
name: 'Sequence',
|
76
|
+
element: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'SignalRResourceElementType',
|
80
|
+
type: {
|
81
|
+
name: 'Composite',
|
82
|
+
class_name: 'SignalRResource'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
next_link: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'nextLink',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|