azure_mgmt_search 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_search.rb +10 -9
  3. data/lib/generated/azure_mgmt_search/admin_keys.rb +162 -24
  4. data/lib/generated/azure_mgmt_search/models/admin_key_kind.rb +16 -0
  5. data/lib/generated/azure_mgmt_search/models/admin_key_result.rb +5 -5
  6. data/lib/generated/azure_mgmt_search/models/check_name_availability_input.rb +61 -0
  7. data/lib/generated/azure_mgmt_search/models/check_name_availability_output.rb +74 -0
  8. data/lib/generated/azure_mgmt_search/models/hosting_mode.rb +16 -0
  9. data/lib/generated/azure_mgmt_search/models/provisioning_state.rb +1 -1
  10. data/lib/generated/azure_mgmt_search/models/query_key.rb +1 -1
  11. data/lib/generated/azure_mgmt_search/models/search_management_request_options.rb +44 -0
  12. data/lib/generated/azure_mgmt_search/models/search_service.rb +205 -0
  13. data/lib/generated/azure_mgmt_search/models/search_service_status.rb +1 -1
  14. data/lib/generated/azure_mgmt_search/models/sku.rb +11 -4
  15. data/lib/generated/azure_mgmt_search/models/{sku_type.rb → sku_name.rb} +5 -3
  16. data/lib/generated/azure_mgmt_search/models/unavailable_name_reason.rb +16 -0
  17. data/lib/generated/azure_mgmt_search/module_definition.rb +1 -1
  18. data/lib/generated/azure_mgmt_search/query_keys.rb +266 -21
  19. data/lib/generated/azure_mgmt_search/search_management_client.rb +20 -6
  20. data/lib/generated/azure_mgmt_search/services.rb +371 -74
  21. data/lib/generated/azure_mgmt_search/version.rb +2 -2
  22. metadata +12 -11
  23. data/lib/generated/azure_mgmt_search/models/list_query_keys_result.rb +0 -53
  24. data/lib/generated/azure_mgmt_search/models/search_service_create_or_update_parameters.rb +0 -73
  25. data/lib/generated/azure_mgmt_search/models/search_service_list_result.rb +0 -55
  26. data/lib/generated/azure_mgmt_search/models/search_service_properties.rb +0 -68
  27. data/lib/generated/azure_mgmt_search/models/search_service_readable_properties.rb +0 -107
  28. data/lib/generated/azure_mgmt_search/models/search_service_resource.rb +0 -96
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4689f6ccfc9f6a2c795abab169c76d59d8ece867
4
- data.tar.gz: 705bd5d1b682c7ce0c5a10a372ecd5a0198ed23b
3
+ metadata.gz: 8619831edcf6d6fa9bd7f38f9bed2fe36106fc29
4
+ data.tar.gz: 4c0277bb37069854894cfb90c5936ca7f8cf44e4
5
5
  SHA512:
6
- metadata.gz: 1d8358a659b8d88f0754b0dede860790817be9d25259e3eebb33c4d1d45b5dc08e84156a224709563b49580460910f66e06e88d2c88a608d80f32616334fb095
7
- data.tar.gz: c392099bae4d7bea0993891b8dc9f5bf55b1bd3a434c7b4ec9ab2ac75527bfd998e6c8afc45d8488a499783452ddfd3f2ff038b8368217b868a4b3200967040d
6
+ metadata.gz: d5da5a55c1fd73731d52be520f105551909e916a08995f94d82fe93b2a34be41ce15acb5e960ab9dc929c63ed3385fbc106e69cd4eea203e4202508110162803
7
+ data.tar.gz: 571f3290abf13d7e315f2959fac51df24b8833bb5ae37f36bad485d3a41c89cd7e9e8a5b569f19e694d94207798d3f153590805a74b7b90a0eaed53ee64ee810
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -26,17 +26,18 @@ module Azure::ARM::Search
26
26
  autoload :SearchManagementClient, 'generated/azure_mgmt_search/search_management_client.rb'
27
27
 
28
28
  module Models
29
+ autoload :Sku, 'generated/azure_mgmt_search/models/sku.rb'
30
+ autoload :CheckNameAvailabilityInput, 'generated/azure_mgmt_search/models/check_name_availability_input.rb'
31
+ autoload :SearchManagementRequestOptions, 'generated/azure_mgmt_search/models/search_management_request_options.rb'
29
32
  autoload :AdminKeyResult, 'generated/azure_mgmt_search/models/admin_key_result.rb'
30
33
  autoload :QueryKey, 'generated/azure_mgmt_search/models/query_key.rb'
31
- autoload :ListQueryKeysResult, 'generated/azure_mgmt_search/models/list_query_keys_result.rb'
32
- autoload :Sku, 'generated/azure_mgmt_search/models/sku.rb'
33
- autoload :SearchServiceProperties, 'generated/azure_mgmt_search/models/search_service_properties.rb'
34
- autoload :SearchServiceCreateOrUpdateParameters, 'generated/azure_mgmt_search/models/search_service_create_or_update_parameters.rb'
35
- autoload :SearchServiceReadableProperties, 'generated/azure_mgmt_search/models/search_service_readable_properties.rb'
36
- autoload :SearchServiceResource, 'generated/azure_mgmt_search/models/search_service_resource.rb'
37
- autoload :SearchServiceListResult, 'generated/azure_mgmt_search/models/search_service_list_result.rb'
38
- autoload :SkuType, 'generated/azure_mgmt_search/models/sku_type.rb'
34
+ autoload :CheckNameAvailabilityOutput, 'generated/azure_mgmt_search/models/check_name_availability_output.rb'
35
+ autoload :SearchService, 'generated/azure_mgmt_search/models/search_service.rb'
36
+ autoload :UnavailableNameReason, 'generated/azure_mgmt_search/models/unavailable_name_reason.rb'
37
+ autoload :SkuName, 'generated/azure_mgmt_search/models/sku_name.rb'
38
+ autoload :HostingMode, 'generated/azure_mgmt_search/models/hosting_mode.rb'
39
39
  autoload :SearchServiceStatus, 'generated/azure_mgmt_search/models/search_service_status.rb'
40
40
  autoload :ProvisioningState, 'generated/azure_mgmt_search/models/provisioning_state.rb'
41
+ autoload :AdminKeyKind, 'generated/azure_mgmt_search/models/admin_key_kind.rb'
41
42
  end
42
43
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -23,72 +23,210 @@ module Azure::ARM::Search
23
23
  attr_reader :client
24
24
 
25
25
  #
26
- # Returns the primary and secondary API keys for the given Azure Search
26
+ # Gets the primary and secondary admin API keys for the specified Azure Search
27
27
  # service.
28
28
  #
29
- # @param resource_group_name [String] The name of the resource group within
30
- # the current subscription.
31
- # @param service_name [String] The name of the Search service for which to
32
- # list admin keys.
29
+ # @param resource_group_name [String] The name of the resource group within the
30
+ # current subscription. You can obtain this value from the Azure Resource
31
+ # Manager API or the portal.
32
+ # @param search_service_name [String] The name of the Azure Search service
33
+ # associated with the specified resource group.
34
+ # @param search_management_request_options [SearchManagementRequestOptions]
35
+ # Additional parameters for the operation
33
36
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
37
  # will be added to the HTTP request.
35
38
  #
36
39
  # @return [AdminKeyResult] operation results.
37
40
  #
38
- def list(resource_group_name, service_name, custom_headers = nil)
39
- response = list_async(resource_group_name, service_name, custom_headers).value!
41
+ def get(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil)
42
+ response = get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
40
43
  response.body unless response.nil?
41
44
  end
42
45
 
43
46
  #
44
- # Returns the primary and secondary API keys for the given Azure Search
47
+ # Gets the primary and secondary admin API keys for the specified Azure Search
45
48
  # service.
46
49
  #
47
- # @param resource_group_name [String] The name of the resource group within
48
- # the current subscription.
49
- # @param service_name [String] The name of the Search service for which to
50
- # list admin keys.
50
+ # @param resource_group_name [String] The name of the resource group within the
51
+ # current subscription. You can obtain this value from the Azure Resource
52
+ # Manager API or the portal.
53
+ # @param search_service_name [String] The name of the Azure Search service
54
+ # associated with the specified resource group.
55
+ # @param search_management_request_options [SearchManagementRequestOptions]
56
+ # Additional parameters for the operation
51
57
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
52
58
  # will be added to the HTTP request.
53
59
  #
54
60
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
55
61
  #
56
- def list_with_http_info(resource_group_name, service_name, custom_headers = nil)
57
- list_async(resource_group_name, service_name, custom_headers).value!
62
+ def get_with_http_info(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil)
63
+ get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
58
64
  end
59
65
 
60
66
  #
61
- # Returns the primary and secondary API keys for the given Azure Search
67
+ # Gets the primary and secondary admin API keys for the specified Azure Search
62
68
  # service.
63
69
  #
64
- # @param resource_group_name [String] The name of the resource group within
65
- # the current subscription.
66
- # @param service_name [String] The name of the Search service for which to
67
- # list admin keys.
70
+ # @param resource_group_name [String] The name of the resource group within the
71
+ # current subscription. You can obtain this value from the Azure Resource
72
+ # Manager API or the portal.
73
+ # @param search_service_name [String] The name of the Azure Search service
74
+ # associated with the specified resource group.
75
+ # @param search_management_request_options [SearchManagementRequestOptions]
76
+ # Additional parameters for the operation
68
77
  # @param [Hash{String => String}] A hash of custom headers that will be added
69
78
  # to the HTTP request.
70
79
  #
71
80
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
72
81
  #
73
- def list_async(resource_group_name, service_name, custom_headers = nil)
82
+ def get_async(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil)
74
83
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
75
- fail ArgumentError, 'service_name is nil' if service_name.nil?
84
+ fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
76
85
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
86
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
78
87
 
88
+ client_request_id = nil
89
+ unless search_management_request_options.nil?
90
+ client_request_id = search_management_request_options.clientRequestId
91
+ end
92
+
93
+ request_headers = {}
94
+
95
+ # Set Headers
96
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
97
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
98
+ request_headers['x-ms-client-request-id'] = client_request_id.to_s unless client_request_id.to_s.nil?
99
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys'
100
+
101
+ request_url = @base_url || @client.base_url
102
+
103
+ options = {
104
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
105
+ path_params: {'resourceGroupName' => resource_group_name,'searchServiceName' => search_service_name,'subscriptionId' => @client.subscription_id},
106
+ query_params: {'api-version' => @client.api_version},
107
+ headers: request_headers.merge(custom_headers || {}),
108
+ base_url: request_url
109
+ }
110
+ promise = @client.make_request_async(:post, path_template, options)
111
+
112
+ promise = promise.then do |result|
113
+ http_response = result.response
114
+ status_code = http_response.status
115
+ response_content = http_response.body
116
+ unless status_code == 200
117
+ error_model = JSON.load(response_content)
118
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
119
+ end
120
+
121
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
122
+ # Deserialize Response
123
+ if status_code == 200
124
+ begin
125
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
126
+ result_mapper = AdminKeyResult.mapper()
127
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
128
+ rescue Exception => e
129
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
130
+ end
131
+ end
132
+
133
+ result
134
+ end
135
+
136
+ promise.execute
137
+ end
138
+
139
+ #
140
+ # Regenerates either the primary or secondary admin API key. You can only
141
+ # regenerate one key at a time.
142
+ #
143
+ # @param resource_group_name [String] The name of the resource group within the
144
+ # current subscription. You can obtain this value from the Azure Resource
145
+ # Manager API or the portal.
146
+ # @param search_service_name [String] The name of the Azure Search service
147
+ # associated with the specified resource group.
148
+ # @param key_kind [AdminKeyKind] Specifies which key to regenerate. Valid
149
+ # values include 'primary' and 'secondary'. Possible values include: 'primary',
150
+ # 'secondary'
151
+ # @param search_management_request_options [SearchManagementRequestOptions]
152
+ # Additional parameters for the operation
153
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
154
+ # will be added to the HTTP request.
155
+ #
156
+ # @return [AdminKeyResult] operation results.
157
+ #
158
+ def regenerate(resource_group_name, search_service_name, key_kind, search_management_request_options = nil, custom_headers = nil)
159
+ response = regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options, custom_headers).value!
160
+ response.body unless response.nil?
161
+ end
162
+
163
+ #
164
+ # Regenerates either the primary or secondary admin API key. You can only
165
+ # regenerate one key at a time.
166
+ #
167
+ # @param resource_group_name [String] The name of the resource group within the
168
+ # current subscription. You can obtain this value from the Azure Resource
169
+ # Manager API or the portal.
170
+ # @param search_service_name [String] The name of the Azure Search service
171
+ # associated with the specified resource group.
172
+ # @param key_kind [AdminKeyKind] Specifies which key to regenerate. Valid
173
+ # values include 'primary' and 'secondary'. Possible values include: 'primary',
174
+ # 'secondary'
175
+ # @param search_management_request_options [SearchManagementRequestOptions]
176
+ # Additional parameters for the operation
177
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
178
+ # will be added to the HTTP request.
179
+ #
180
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
181
+ #
182
+ def regenerate_with_http_info(resource_group_name, search_service_name, key_kind, search_management_request_options = nil, custom_headers = nil)
183
+ regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options, custom_headers).value!
184
+ end
185
+
186
+ #
187
+ # Regenerates either the primary or secondary admin API key. You can only
188
+ # regenerate one key at a time.
189
+ #
190
+ # @param resource_group_name [String] The name of the resource group within the
191
+ # current subscription. You can obtain this value from the Azure Resource
192
+ # Manager API or the portal.
193
+ # @param search_service_name [String] The name of the Azure Search service
194
+ # associated with the specified resource group.
195
+ # @param key_kind [AdminKeyKind] Specifies which key to regenerate. Valid
196
+ # values include 'primary' and 'secondary'. Possible values include: 'primary',
197
+ # 'secondary'
198
+ # @param search_management_request_options [SearchManagementRequestOptions]
199
+ # Additional parameters for the operation
200
+ # @param [Hash{String => String}] A hash of custom headers that will be added
201
+ # to the HTTP request.
202
+ #
203
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
204
+ #
205
+ def regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options = nil, custom_headers = nil)
206
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
207
+ fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
208
+ fail ArgumentError, 'key_kind is nil' if key_kind.nil?
209
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
210
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
211
+
212
+ client_request_id = nil
213
+ unless search_management_request_options.nil?
214
+ client_request_id = search_management_request_options.clientRequestId
215
+ end
79
216
 
80
217
  request_headers = {}
81
218
 
82
219
  # Set Headers
83
220
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
84
221
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
85
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}/listAdminKeys'
222
+ request_headers['x-ms-client-request-id'] = client_request_id.to_s unless client_request_id.to_s.nil?
223
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}'
86
224
 
87
225
  request_url = @base_url || @client.base_url
88
226
 
89
227
  options = {
90
228
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
91
- path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
229
+ path_params: {'resourceGroupName' => resource_group_name,'searchServiceName' => search_service_name,'keyKind' => key_kind,'subscriptionId' => @client.subscription_id},
92
230
  query_params: {'api-version' => @client.api_version},
93
231
  headers: request_headers.merge(custom_headers || {}),
94
232
  base_url: request_url
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Search
7
+ module Models
8
+ #
9
+ # Defines values for AdminKeyKind
10
+ #
11
+ module AdminKeyKind
12
+ Primary = "primary"
13
+ Secondary = "secondary"
14
+ end
15
+ end
16
+ end
@@ -1,22 +1,22 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Search
7
7
  module Models
8
8
  #
9
- # Response containing the primary and secondary API keys for a given Azure
10
- # Search service.
9
+ # Response containing the primary and secondary admin API keys for a given
10
+ # Azure Search service.
11
11
  #
12
12
  class AdminKeyResult
13
13
 
14
14
  include MsRestAzure
15
15
 
16
- # @return [String] The primary API key of the Search service.
16
+ # @return [String] The primary admin API key of the Search service.
17
17
  attr_accessor :primary_key
18
18
 
19
- # @return [String] The secondary API key of the Search service.
19
+ # @return [String] The secondary admin API key of the Search service.
20
20
  attr_accessor :secondary_key
21
21
 
22
22
 
@@ -0,0 +1,61 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Search
7
+ module Models
8
+ #
9
+ # Input of check name availability API.
10
+ #
11
+ class CheckNameAvailabilityInput
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The Search service name to validate. Search service
16
+ # names must only contain lowercase letters, digits or dashes, cannot use
17
+ # dash as the first two or last one characters, cannot contain
18
+ # consecutive dashes, and must be between 2 and 60 characters in length.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The type of the resource whose name is to be
22
+ # validated. This value must always be 'searchServices'. Default value:
23
+ # 'searchServices' .
24
+ attr_accessor :type
25
+
26
+
27
+ #
28
+ # Mapper for CheckNameAvailabilityInput class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'CheckNameAvailabilityInput',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'CheckNameAvailabilityInput',
38
+ model_properties: {
39
+ name: {
40
+ required: true,
41
+ serialized_name: 'name',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ type: {
47
+ required: true,
48
+ is_constant: true,
49
+ serialized_name: 'type',
50
+ default_value: 'searchServices',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,74 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Search
7
+ module Models
8
+ #
9
+ # Output of check name availability API.
10
+ #
11
+ class CheckNameAvailabilityOutput
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] A value indicating whether the name is available.
16
+ attr_accessor :is_name_available
17
+
18
+ # @return [UnavailableNameReason] The reason why the name is not
19
+ # available. 'Invalid' indicates the name provided does not match the
20
+ # naming requirements (incorrect length, unsupported characters, etc.).
21
+ # 'AlreadyExists' indicates that the name is already in use and is
22
+ # therefore unavailable. Possible values include: 'Invalid',
23
+ # 'AlreadyExists'
24
+ attr_accessor :reason
25
+
26
+ # @return [String] A message that explains why the name is invalid and
27
+ # provides resource naming requirements. Available only if 'Invalid' is
28
+ # returned in the 'reason' property.
29
+ attr_accessor :message
30
+
31
+
32
+ #
33
+ # Mapper for CheckNameAvailabilityOutput class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ required: false,
39
+ serialized_name: 'CheckNameAvailabilityOutput',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'CheckNameAvailabilityOutput',
43
+ model_properties: {
44
+ is_name_available: {
45
+ required: false,
46
+ read_only: true,
47
+ serialized_name: 'nameAvailable',
48
+ type: {
49
+ name: 'Boolean'
50
+ }
51
+ },
52
+ reason: {
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'reason',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ message: {
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'message',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ end
72
+ end
73
+ end
74
+ end