azure_mgmt_signalr 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: fd2c5b56ce0dee77f92085a00b97ae10ea187f46c20073d7cb90f7d158c2932d
4
- data.tar.gz: 31e6397bb193006582e610bb7aadefd141e43089ccf591b96809e73c0757ea85
2
+ SHA1:
3
+ metadata.gz: 0bd79377c4f4d652023242d25b737d4aa58b07ae
4
+ data.tar.gz: 89cd92b3412d7ad47ae88e9064132e02de6b373f
5
5
  SHA512:
6
- metadata.gz: 67c5ed956e1ff048e6f27c8edc08b4da74a87bcb12e5775fb9a8f1ee4cf88b24ac6aaa071f39da6bb5a3bcce951487e1a166f598d3f68cc5fc179bdf96d6e900
7
- data.tar.gz: e1b88f344f39857e9fe97e4f898eaf9e41c616fa8b7ee6012a13807894e320c59af1a96d661c5f80eeaac484e7f923099467af8ee57f0b32c0881c42510019a7
6
+ metadata.gz: b5994338f189fdfe07c4d38cf95693e59200f996c194469274fbd9a4ad4ed95107197f363044065ecde5a9c579b2018adb0d4d3190961ac480f34c2e1c43d638
7
+ data.tar.gz: 57288ebbd97bff71eb4bb9e748725cf49be394ac88563e2bf758e84b15ed16c424bc0b188c9b80780b42b23aeee377e9e9d33776fd39f749afad675c0a406b41
@@ -0,0 +1,80 @@
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
+ # Specifications of the Dimension of metrics.
10
+ #
11
+ class Dimension
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The public facing name of the dimension.
16
+ attr_accessor :name
17
+
18
+ # @return [String] Localized friendly display name of the dimension.
19
+ attr_accessor :display_name
20
+
21
+ # @return [String] Name of the dimension as it appears in MDM.
22
+ attr_accessor :internal_name
23
+
24
+ # @return [Boolean] A Boolean flag indicating whether this dimension
25
+ # should be included for the shoebox export scenario.
26
+ attr_accessor :to_be_exported_for_shoebox
27
+
28
+
29
+ #
30
+ # Mapper for Dimension class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'Dimension',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'Dimension',
41
+ model_properties: {
42
+ name: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ display_name: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'displayName',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ internal_name: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'internalName',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ to_be_exported_for_shoebox: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'toBeExportedForShoebox',
70
+ type: {
71
+ name: 'Boolean'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -40,6 +40,9 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
40
40
  # belongs to. A metric can only belong to a single category.
41
41
  attr_accessor :category
42
42
 
43
+ # @return [Array<Dimension>] The dimensions of the metrics.
44
+ attr_accessor :dimensions
45
+
43
46
 
44
47
  #
45
48
  # Mapper for MetricSpecification class as Ruby Hash.
@@ -109,6 +112,23 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
109
112
  type: {
110
113
  name: 'String'
111
114
  }
115
+ },
116
+ dimensions: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ serialized_name: 'dimensions',
120
+ type: {
121
+ name: 'Sequence',
122
+ element: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ serialized_name: 'DimensionElementType',
126
+ type: {
127
+ name: 'Composite',
128
+ class_name: 'Dimension'
129
+ }
130
+ }
131
+ }
112
132
  }
113
133
  }
114
134
  }
@@ -18,6 +18,14 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
18
18
  # @return [String] The secondary access key.
19
19
  attr_accessor :secondary_key
20
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
+
21
29
 
22
30
  #
23
31
  # Mapper for SignalRKeys class as Ruby Hash.
@@ -47,6 +55,22 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
47
55
  type: {
48
56
  name: 'String'
49
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
+ }
50
74
  }
51
75
  }
52
76
  }
@@ -41,6 +41,10 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
41
41
  # which is designed for customer server side usage.
42
42
  attr_accessor :server_port
43
43
 
44
+ # @return [String] Version of the SignalR resource. Probably you need the
45
+ # same or higher version of client SDKs.
46
+ attr_accessor :version
47
+
44
48
 
45
49
  #
46
50
  # Mapper for SignalRResource class as Ruby Hash.
@@ -167,6 +171,14 @@ module Azure::Signalr::Mgmt::V2018_03_01_preview
167
171
  type: {
168
172
  name: 'Number'
169
173
  }
174
+ },
175
+ version: {
176
+ client_side_validation: true,
177
+ required: false,
178
+ serialized_name: 'properties.version',
179
+ type: {
180
+ name: 'String'
181
+ }
170
182
  }
171
183
  }
172
184
  }
@@ -0,0 +1,95 @@
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
+ # Object that describes a specific usage of SignalR resources.
10
+ #
11
+ class SignalRUsage
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Fully qualified ARM resource id
16
+ attr_accessor :id
17
+
18
+ # @return [Integer] Current value for the usage quota.
19
+ attr_accessor :current_value
20
+
21
+ # @return [Integer] The maximum permitted value for the usage quota. If
22
+ # there is no limit, this value will be -1.
23
+ attr_accessor :limit
24
+
25
+ # @return [SignalRUsageName] Localizable String object containing the
26
+ # name and a localized value.
27
+ attr_accessor :name
28
+
29
+ # @return [String] Representing the units of the usage quota. Possible
30
+ # values are: Count, Bytes, Seconds, Percent, CountPerSecond,
31
+ # BytesPerSecond.
32
+ attr_accessor :unit
33
+
34
+
35
+ #
36
+ # Mapper for SignalRUsage class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'SignalRUsage',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'SignalRUsage',
47
+ model_properties: {
48
+ id: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ current_value: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'currentValue',
60
+ type: {
61
+ name: 'Number'
62
+ }
63
+ },
64
+ limit: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'limit',
68
+ type: {
69
+ name: 'Number'
70
+ }
71
+ },
72
+ name: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'name',
76
+ type: {
77
+ name: 'Composite',
78
+ class_name: 'SignalRUsageName'
79
+ }
80
+ },
81
+ unit: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'unit',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ 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_03_01_preview
7
+ module Models
8
+ #
9
+ # Object that includes an array of SignalR resource usages and a possible
10
+ # link for next set.
11
+ #
12
+ class SignalRUsageList
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<SignalRUsage>] List of SignalR usages
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<SignalRUsage>] operation results.
32
+ #
33
+ def get_all_items
34
+ items = @value
35
+ page = self
36
+ while page.next_link != nil 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 [SignalRUsageList] 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 SignalRUsageList 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: 'SignalRUsageList',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'SignalRUsageList',
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: 'SignalRUsageElementType',
80
+ type: {
81
+ name: 'Composite',
82
+ class_name: 'SignalRUsage'
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
@@ -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 indentifier 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
@@ -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.1"
137
+ sdk_information = "#{sdk_information}/0.17.2"
134
138
  add_user_agent_information(sdk_information)
135
139
  end
136
140
  end
@@ -0,0 +1,222 @@
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
+ # Deserialize Response
96
+ if status_code == 200
97
+ begin
98
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
99
+ result_mapper = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList.mapper()
100
+ result.body = @client.deserialize(result_mapper, parsed_response)
101
+ rescue Exception => e
102
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
103
+ end
104
+ end
105
+
106
+ result
107
+ end
108
+
109
+ promise.execute
110
+ end
111
+
112
+ #
113
+ # List usage quotas for Azure SignalR service by location.
114
+ #
115
+ # @param next_page_link [String] The NextLink from the previous successful call
116
+ # to List operation.
117
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
118
+ # will be added to the HTTP request.
119
+ #
120
+ # @return [SignalRUsageList] operation results.
121
+ #
122
+ def list_next(next_page_link, custom_headers:nil)
123
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
124
+ response.body unless response.nil?
125
+ end
126
+
127
+ #
128
+ # List usage quotas for Azure SignalR service by location.
129
+ #
130
+ # @param next_page_link [String] The NextLink from the previous successful call
131
+ # to List operation.
132
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
133
+ # will be added to the HTTP request.
134
+ #
135
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
136
+ #
137
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
138
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
139
+ end
140
+
141
+ #
142
+ # List usage quotas for Azure SignalR service by location.
143
+ #
144
+ # @param next_page_link [String] The NextLink from the previous successful call
145
+ # to List operation.
146
+ # @param [Hash{String => String}] A hash of custom headers that will be added
147
+ # to the HTTP request.
148
+ #
149
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
150
+ #
151
+ def list_next_async(next_page_link, custom_headers:nil)
152
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
153
+
154
+
155
+ request_headers = {}
156
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
157
+
158
+ # Set Headers
159
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
160
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
161
+ path_template = '{nextLink}'
162
+
163
+ request_url = @base_url || @client.base_url
164
+
165
+ options = {
166
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
167
+ skip_encoding_path_params: {'nextLink' => next_page_link},
168
+ headers: request_headers.merge(custom_headers || {}),
169
+ base_url: request_url
170
+ }
171
+ promise = @client.make_request_async(:get, path_template, options)
172
+
173
+ promise = promise.then do |result|
174
+ http_response = result.response
175
+ status_code = http_response.status
176
+ response_content = http_response.body
177
+ unless status_code == 200
178
+ error_model = JSON.load(response_content)
179
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
180
+ end
181
+
182
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
183
+ # Deserialize Response
184
+ if status_code == 200
185
+ begin
186
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
187
+ result_mapper = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList.mapper()
188
+ result.body = @client.deserialize(result_mapper, parsed_response)
189
+ rescue Exception => e
190
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
191
+ end
192
+ end
193
+
194
+ result
195
+ end
196
+
197
+ promise.execute
198
+ end
199
+
200
+ #
201
+ # List usage quotas for Azure SignalR service by location.
202
+ #
203
+ # @param location [String] the location like "eastus"
204
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
205
+ # will be added to the HTTP request.
206
+ #
207
+ # @return [SignalRUsageList] which provide lazy access to pages of the
208
+ # response.
209
+ #
210
+ def list_as_lazy(location, custom_headers:nil)
211
+ response = list_async(location, custom_headers:custom_headers).value!
212
+ unless response.nil?
213
+ page = response.body
214
+ page.next_method = Proc.new do |next_page_link|
215
+ list_next_async(next_page_link, custom_headers:custom_headers)
216
+ end
217
+ page
218
+ end
219
+ end
220
+
221
+ end
222
+ end
@@ -22,24 +22,29 @@ require 'ms_rest_azure'
22
22
  module Azure::Signalr::Mgmt::V2018_03_01_preview
23
23
  autoload :Operations, '2018-03-01-preview/generated/azure_mgmt_signalr/operations.rb'
24
24
  autoload :SignalR, '2018-03-01-preview/generated/azure_mgmt_signalr/signal_r.rb'
25
+ autoload :Usages, '2018-03-01-preview/generated/azure_mgmt_signalr/usages.rb'
25
26
  autoload :SignalRManagementClient, '2018-03-01-preview/generated/azure_mgmt_signalr/signal_rmanagement_client.rb'
26
27
 
27
28
  module Models
28
- autoload :ResourceSku, '2018-03-01-preview/generated/azure_mgmt_signalr/models/resource_sku.rb'
29
+ autoload :SignalRResourceList, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rresource_list.rb'
29
30
  autoload :OperationDisplay, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_display.rb'
31
+ autoload :Dimension, '2018-03-01-preview/generated/azure_mgmt_signalr/models/dimension.rb'
30
32
  autoload :ServiceSpecification, '2018-03-01-preview/generated/azure_mgmt_signalr/models/service_specification.rb'
31
- autoload :SignalRResourceList, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rresource_list.rb'
33
+ autoload :SignalRUsageList, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage_list.rb'
32
34
  autoload :Operation, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation.rb'
33
- autoload :OperationList, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_list.rb'
34
- autoload :SignalRUpdateParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rupdate_parameters.rb'
35
- autoload :NameAvailability, '2018-03-01-preview/generated/azure_mgmt_signalr/models/name_availability.rb'
36
35
  autoload :Resource, '2018-03-01-preview/generated/azure_mgmt_signalr/models/resource.rb'
37
- autoload :OperationProperties, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_properties.rb'
36
+ autoload :NameAvailabilityParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/name_availability_parameters.rb'
38
37
  autoload :SignalRCreateOrUpdateProperties, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rcreate_or_update_properties.rb'
39
- autoload :MetricSpecification, '2018-03-01-preview/generated/azure_mgmt_signalr/models/metric_specification.rb'
38
+ autoload :ResourceSku, '2018-03-01-preview/generated/azure_mgmt_signalr/models/resource_sku.rb'
40
39
  autoload :SignalRKeys, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rkeys.rb'
41
- autoload :NameAvailabilityParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/name_availability_parameters.rb'
40
+ autoload :OperationProperties, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_properties.rb'
42
41
  autoload :RegenerateKeyParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/regenerate_key_parameters.rb'
42
+ autoload :NameAvailability, '2018-03-01-preview/generated/azure_mgmt_signalr/models/name_availability.rb'
43
+ autoload :SignalRUsage, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage.rb'
44
+ autoload :OperationList, '2018-03-01-preview/generated/azure_mgmt_signalr/models/operation_list.rb'
45
+ autoload :SignalRUpdateParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rupdate_parameters.rb'
46
+ autoload :MetricSpecification, '2018-03-01-preview/generated/azure_mgmt_signalr/models/metric_specification.rb'
47
+ autoload :SignalRUsageName, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage_name.rb'
43
48
  autoload :TrackedResource, '2018-03-01-preview/generated/azure_mgmt_signalr/models/tracked_resource.rb'
44
49
  autoload :SignalRResource, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rresource.rb'
45
50
  autoload :SignalRCreateParameters, '2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rcreate_parameters.rb'
@@ -8,23 +8,28 @@ module Azure::Signalr::Profiles::Latest
8
8
  module Mgmt
9
9
  Operations = Azure::Signalr::Mgmt::V2018_03_01_preview::Operations
10
10
  SignalR = Azure::Signalr::Mgmt::V2018_03_01_preview::SignalR
11
+ Usages = Azure::Signalr::Mgmt::V2018_03_01_preview::Usages
11
12
 
12
13
  module Models
13
- ResourceSku = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
14
+ SignalRResourceList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
14
15
  OperationDisplay = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay
16
+ Dimension = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Dimension
15
17
  ServiceSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
16
- SignalRResourceList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
18
+ SignalRUsageList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList
17
19
  Operation = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation
18
- OperationList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList
19
- SignalRUpdateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters
20
- NameAvailability = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
21
20
  Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
22
- OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
21
+ NameAvailabilityParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
23
22
  SignalRCreateOrUpdateProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
24
- MetricSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification
23
+ ResourceSku = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
25
24
  SignalRKeys = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
26
- NameAvailabilityParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
25
+ OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
27
26
  RegenerateKeyParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
27
+ NameAvailability = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
28
+ SignalRUsage = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage
29
+ OperationList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList
30
+ SignalRUpdateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters
31
+ MetricSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification
32
+ SignalRUsageName = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName
28
33
  TrackedResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource
29
34
  SignalRResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource
30
35
  SignalRCreateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateParameters
@@ -37,7 +42,7 @@ module Azure::Signalr::Profiles::Latest
37
42
  # SignalrManagementClass
38
43
  #
39
44
  class SignalrManagementClass
40
- attr_reader :operations, :signal_r, :configurable, :base_url, :options, :model_classes
45
+ attr_reader :operations, :signal_r, :usages, :configurable, :base_url, :options, :model_classes
41
46
 
42
47
  def initialize(options = {})
43
48
  if options.is_a?(Hash) && options.length == 0
@@ -59,6 +64,7 @@ module Azure::Signalr::Profiles::Latest
59
64
  add_telemetry(@client_0)
60
65
  @operations = @client_0.operations
61
66
  @signal_r = @client_0.signal_r
67
+ @usages = @client_0.usages
62
68
 
63
69
  @model_classes = ModelClasses.new
64
70
  end
@@ -79,51 +85,63 @@ module Azure::Signalr::Profiles::Latest
79
85
  end
80
86
 
81
87
  class ModelClasses
82
- def resource_sku
83
- Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
88
+ def signal_rresource_list
89
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
84
90
  end
85
91
  def operation_display
86
92
  Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay
87
93
  end
94
+ def dimension
95
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Dimension
96
+ end
88
97
  def service_specification
89
98
  Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
90
99
  end
91
- def signal_rresource_list
92
- Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList
100
+ def signal_rusage_list
101
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList
93
102
  end
94
103
  def operation
95
104
  Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation
96
105
  end
97
- def operation_list
98
- Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList
99
- end
100
- def signal_rupdate_parameters
101
- Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters
102
- end
103
- def name_availability
104
- Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
105
- end
106
106
  def resource
107
107
  Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource
108
108
  end
109
- def operation_properties
110
- Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
109
+ def name_availability_parameters
110
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
111
111
  end
112
112
  def signal_rcreate_or_update_properties
113
113
  Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties
114
114
  end
115
- def metric_specification
116
- Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification
115
+ def resource_sku
116
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku
117
117
  end
118
118
  def signal_rkeys
119
119
  Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys
120
120
  end
121
- def name_availability_parameters
122
- Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters
121
+ def operation_properties
122
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties
123
123
  end
124
124
  def regenerate_key_parameters
125
125
  Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters
126
126
  end
127
+ def name_availability
128
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability
129
+ end
130
+ def signal_rusage
131
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage
132
+ end
133
+ def operation_list
134
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList
135
+ end
136
+ def signal_rupdate_parameters
137
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters
138
+ end
139
+ def metric_specification
140
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification
141
+ end
142
+ def signal_rusage_name
143
+ Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName
144
+ end
127
145
  def tracked_resource
128
146
  Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource
129
147
  end
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Signalr::Mgmt
6
- VERSION = '0.17.1'
6
+ VERSION = '0.17.2'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_signalr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-14 00:00:00.000000000 Z
11
+ date: 2018-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,6 +88,7 @@ extra_rdoc_files: []
88
88
  files:
89
89
  - LICENSE.txt
90
90
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr.rb
91
+ - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/dimension.rb
91
92
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/key_type.rb
92
93
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/metric_specification.rb
93
94
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/name_availability.rb
@@ -108,11 +109,15 @@ files:
108
109
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rresource_list.rb
109
110
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rsku_tier.rb
110
111
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rupdate_parameters.rb
112
+ - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage.rb
113
+ - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage_list.rb
114
+ - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/signal_rusage_name.rb
111
115
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/models/tracked_resource.rb
112
116
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/module_definition.rb
113
117
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/operations.rb
114
118
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/signal_r.rb
115
119
  - lib/2018-03-01-preview/generated/azure_mgmt_signalr/signal_rmanagement_client.rb
120
+ - lib/2018-03-01-preview/generated/azure_mgmt_signalr/usages.rb
116
121
  - lib/azure_mgmt_signalr.rb
117
122
  - lib/module_definition.rb
118
123
  - lib/profiles/latest/modules/signalr_profile_module.rb
@@ -144,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
149
  version: '0'
145
150
  requirements: []
146
151
  rubyforge_project:
147
- rubygems_version: 2.7.6
152
+ rubygems_version: 2.5.1
148
153
  signing_key:
149
154
  specification_version: 4
150
155
  summary: Official Ruby client library to consume Microsoft Azure Signalr.