azure_mgmt_search 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_search.gemspec +4 -5
  3. data/lib/azure_mgmt_search.rb +3 -40
  4. data/lib/generated/azure_mgmt_search.rb +42 -0
  5. data/lib/{azure_mgmt_search → generated/azure_mgmt_search}/admin_keys.rb +4 -4
  6. data/lib/generated/azure_mgmt_search/models/admin_key_result.rb +57 -0
  7. data/lib/generated/azure_mgmt_search/models/list_query_keys_result.rb +53 -0
  8. data/lib/{azure_mgmt_search → generated/azure_mgmt_search}/models/provisioning_state.rb +0 -0
  9. data/lib/generated/azure_mgmt_search/models/query_key.rb +57 -0
  10. data/lib/generated/azure_mgmt_search/models/search_service_create_or_update_parameters.rb +73 -0
  11. data/lib/generated/azure_mgmt_search/models/search_service_list_result.rb +55 -0
  12. data/lib/generated/azure_mgmt_search/models/search_service_properties.rb +68 -0
  13. data/lib/generated/azure_mgmt_search/models/search_service_readable_properties.rb +107 -0
  14. data/lib/generated/azure_mgmt_search/models/search_service_resource.rb +96 -0
  15. data/lib/{azure_mgmt_search → generated/azure_mgmt_search}/models/search_service_status.rb +0 -0
  16. data/lib/generated/azure_mgmt_search/models/sku.rb +47 -0
  17. data/lib/{azure_mgmt_search → generated/azure_mgmt_search}/models/sku_type.rb +0 -0
  18. data/lib/{azure_mgmt_search → generated/azure_mgmt_search}/module_definition.rb +0 -0
  19. data/lib/{azure_mgmt_search → generated/azure_mgmt_search}/query_keys.rb +4 -4
  20. data/lib/{azure_mgmt_search → generated/azure_mgmt_search}/search_management_client.rb +5 -5
  21. data/lib/{azure_mgmt_search → generated/azure_mgmt_search}/services.rb +18 -18
  22. data/lib/{azure_mgmt_search → generated/azure_mgmt_search}/version.rb +1 -1
  23. metadata +40 -60
  24. data/lib/azure_mgmt_search/models/admin_key_result.rb +0 -66
  25. data/lib/azure_mgmt_search/models/list_query_keys_result.rb +0 -77
  26. data/lib/azure_mgmt_search/models/query_key.rb +0 -66
  27. data/lib/azure_mgmt_search/models/search_service_create_or_update_parameters.rb +0 -84
  28. data/lib/azure_mgmt_search/models/search_service_list_result.rb +0 -78
  29. data/lib/azure_mgmt_search/models/search_service_properties.rb +0 -85
  30. data/lib/azure_mgmt_search/models/search_service_readable_properties.rb +0 -124
  31. data/lib/azure_mgmt_search/models/search_service_resource.rb +0 -102
  32. data/lib/azure_mgmt_search/models/sku.rb +0 -61
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YmM1NDRlNGYzNjE2YjA4ZWVjMjkxZTY2MGQzOWM0NDljZTM0MWMwYw==
5
- data.tar.gz: !binary |-
6
- NjM0ZTY0ZGQwOGJkMjA1ZDY2ZTBhNjdiZDFmNTBjN2VkMDI1M2IwZA==
2
+ SHA1:
3
+ metadata.gz: 3e58c6d9f4fa924085a30e7d0eb4838c1a9e8015
4
+ data.tar.gz: da1ec10f613bcb687cc0d7f4ec8b424011597e5b
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OWQ0MjFjZmI3ODBkMDYwZDM0NzU2NjI0ODJkNmRiZjY4NDU0Y2E3MjhhYzA3
10
- NzJkMDRmODM4ZmEzMzQ2ZTJiOGRmZTkzYzRlYmMzODE1OTczYWEwOWVjOGQy
11
- MDEzNGYzMzU1NTdiM2FhNzM2OGQ0MTIxNmMyNjBlYTdlNDI0MTc=
12
- data.tar.gz: !binary |-
13
- MTcxNDdiNDFhMmY2Y2U4YTFiNDNiMzdkZDNlNWQ5NzVkNjY4MGIyYWMxY2Yw
14
- MjI5MTkyNTNhZDM3NjVhYTE3YTlkNWM0ZTM3M2IzOTRhODNkZjVmY2JjZDQ4
15
- Y2Q1ZjE3YjU2MWJkNTExOTlmZThkNTkyZjFjY2QyYzIxMzJmZTk=
6
+ metadata.gz: 44ac625664ae613ff8e31d967fcdd8070739527f3d4c31217db86eb13451e6e978bee31cc46ebd8513aeebe246ed8252b79e8bd2da452dc419f690b8400ddc76
7
+ data.tar.gz: 0bce2f6ecd40e7b1eaa2d986d36c08a8d0c722693a5a63871af4cc539f4385050c830ba42b550a35b8d47fe850b50f6a5c3811112019eb8591adb45d904d9c55
@@ -5,8 +5,8 @@
5
5
  lib = File.expand_path('../lib', __FILE__)
6
6
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
7
 
8
- require 'azure_mgmt_search/module_definition'
9
- require 'azure_mgmt_search/version'
8
+ require 'generated/azure_mgmt_search/module_definition'
9
+ require 'generated/azure_mgmt_search/version'
10
10
 
11
11
  Gem::Specification.new do |spec|
12
12
  spec.name = 'azure_mgmt_search'
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.email = 'azrubyteam@microsoft.com'
16
16
  spec.description = 'Microsoft Azure Search Management Client Library for Ruby'
17
17
  spec.summary = 'Official Ruby client library to consume Microsoft Azure Search Management services.'
18
- spec.homepage = 'http://github.com/azure/azure-sdk-ruby'
18
+ spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
19
19
  spec.license = 'MIT'
20
20
 
21
21
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -29,7 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rake', '~> 10'
30
30
  spec.add_development_dependency 'rspec', '~> 3'
31
31
  spec.add_development_dependency 'dotenv', '~> 2'
32
- spec.add_development_dependency 'azure_mgmt_resources', '~> 0.3'
33
32
 
34
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.3'
33
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.3.0'
35
34
  end
@@ -1,42 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
5
4
 
6
- require 'uri'
7
- require 'cgi'
8
- require 'date'
9
- require 'json'
10
- require 'base64'
11
- require 'erb'
12
- require 'securerandom'
13
- require 'time'
14
- require 'timeliness'
15
- require 'faraday'
16
- require 'faraday-cookie_jar'
17
- require 'concurrent'
18
- require 'ms_rest'
19
- require 'azure_mgmt_search/module_definition'
20
- require 'ms_rest_azure'
21
-
22
- module Azure::ARM::Search
23
- autoload :AdminKeys, 'azure_mgmt_search/admin_keys.rb'
24
- autoload :QueryKeys, 'azure_mgmt_search/query_keys.rb'
25
- autoload :Services, 'azure_mgmt_search/services.rb'
26
- autoload :SearchManagementClient, 'azure_mgmt_search/search_management_client.rb'
27
-
28
- module Models
29
- autoload :AdminKeyResult, 'azure_mgmt_search/models/admin_key_result.rb'
30
- autoload :QueryKey, 'azure_mgmt_search/models/query_key.rb'
31
- autoload :ListQueryKeysResult, 'azure_mgmt_search/models/list_query_keys_result.rb'
32
- autoload :Sku, 'azure_mgmt_search/models/sku.rb'
33
- autoload :SearchServiceProperties, 'azure_mgmt_search/models/search_service_properties.rb'
34
- autoload :SearchServiceCreateOrUpdateParameters, 'azure_mgmt_search/models/search_service_create_or_update_parameters.rb'
35
- autoload :SearchServiceReadableProperties, 'azure_mgmt_search/models/search_service_readable_properties.rb'
36
- autoload :SearchServiceResource, 'azure_mgmt_search/models/search_service_resource.rb'
37
- autoload :SearchServiceListResult, 'azure_mgmt_search/models/search_service_list_result.rb'
38
- autoload :SkuType, 'azure_mgmt_search/models/sku_type.rb'
39
- autoload :SearchServiceStatus, 'azure_mgmt_search/models/search_service_status.rb'
40
- autoload :ProvisioningState, 'azure_mgmt_search/models/provisioning_state.rb'
41
- end
42
- end
5
+ require 'generated/azure_mgmt_search'
@@ -0,0 +1,42 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require 'generated/azure_mgmt_search/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ARM::Search
23
+ autoload :AdminKeys, 'generated/azure_mgmt_search/admin_keys.rb'
24
+ autoload :QueryKeys, 'generated/azure_mgmt_search/query_keys.rb'
25
+ autoload :Services, 'generated/azure_mgmt_search/services.rb'
26
+ autoload :SearchManagementClient, 'generated/azure_mgmt_search/search_management_client.rb'
27
+
28
+ module Models
29
+ autoload :AdminKeyResult, 'generated/azure_mgmt_search/models/admin_key_result.rb'
30
+ 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'
39
+ autoload :SearchServiceStatus, 'generated/azure_mgmt_search/models/search_service_status.rb'
40
+ autoload :ProvisioningState, 'generated/azure_mgmt_search/models/provisioning_state.rb'
41
+ end
42
+ end
@@ -75,6 +75,8 @@ module Azure::ARM::Search
75
75
  fail ArgumentError, 'service_name is nil' if service_name.nil?
76
76
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
77
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
78
+
79
+
78
80
  request_headers = {}
79
81
 
80
82
  # Set Headers
@@ -110,10 +112,8 @@ module Azure::ARM::Search
110
112
  if status_code == 200
111
113
  begin
112
114
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
113
- unless parsed_response.nil?
114
- parsed_response = AdminKeyResult.deserialize_object(parsed_response)
115
- end
116
- result.body = parsed_response
115
+ result_mapper = AdminKeyResult.mapper()
116
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
117
117
  rescue Exception => e
118
118
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
119
119
  end
@@ -0,0 +1,57 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
+ # Response containing the primary and secondary API keys for a given Azure
10
+ # Search service.
11
+ #
12
+ class AdminKeyResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The primary API key of the Search service.
17
+ attr_accessor :primary_key
18
+
19
+ # @return [String] The secondary API key of the Search service.
20
+ attr_accessor :secondary_key
21
+
22
+
23
+ #
24
+ # Mapper for AdminKeyResult class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'AdminKeyResult',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'AdminKeyResult',
34
+ model_properties: {
35
+ primary_key: {
36
+ required: false,
37
+ read_only: true,
38
+ serialized_name: 'primaryKey',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ secondary_key: {
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'secondaryKey',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
+ # Response containing the query API keys for a given Azure Search service.
10
+ #
11
+ class ListQueryKeysResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<QueryKey>] The query keys for the Azure Search service.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for ListQueryKeysResult class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'ListQueryKeysResult',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'ListQueryKeysResult',
30
+ model_properties: {
31
+ value: {
32
+ required: false,
33
+ read_only: true,
34
+ serialized_name: 'value',
35
+ type: {
36
+ name: 'Sequence',
37
+ element: {
38
+ required: false,
39
+ serialized_name: 'QueryKeyElementType',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'QueryKey'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,57 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
+ # Describes an API key for a given Azure Search service that has
10
+ # permissions for query operations only.
11
+ #
12
+ class QueryKey
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The name of the query API key; may be empty.
17
+ attr_accessor :name
18
+
19
+ # @return [String] The value of the query API key.
20
+ attr_accessor :key
21
+
22
+
23
+ #
24
+ # Mapper for QueryKey class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'QueryKey',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'QueryKey',
34
+ model_properties: {
35
+ name: {
36
+ required: false,
37
+ read_only: true,
38
+ serialized_name: 'name',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ key: {
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'key',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,73 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
+ # Properties that describe an Azure Search service.
10
+ #
11
+ class SearchServiceCreateOrUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The geographic location of the Search service.
16
+ attr_accessor :location
17
+
18
+ # @return [Hash{String => String}] Tags to help categorize the Search
19
+ # service in the Azure Portal.
20
+ attr_accessor :tags
21
+
22
+ # @return [SearchServiceProperties] Properties of the Search service.
23
+ attr_accessor :properties
24
+
25
+
26
+ #
27
+ # Mapper for SearchServiceCreateOrUpdateParameters class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'SearchServiceCreateOrUpdateParameters',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'SearchServiceCreateOrUpdateParameters',
37
+ model_properties: {
38
+ location: {
39
+ required: false,
40
+ serialized_name: 'location',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ tags: {
46
+ required: false,
47
+ serialized_name: 'tags',
48
+ type: {
49
+ name: 'Dictionary',
50
+ value: {
51
+ required: false,
52
+ serialized_name: 'StringElementType',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ }
57
+ }
58
+ },
59
+ properties: {
60
+ required: false,
61
+ serialized_name: 'properties',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'SearchServiceProperties'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
+ # Response containing a list of Azure Search services for a given resource
10
+ # group.
11
+ #
12
+ class SearchServiceListResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<SearchServiceResource>] The Search services in the
17
+ # resource group.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for SearchServiceListResult class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'SearchServiceListResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'SearchServiceListResult',
32
+ model_properties: {
33
+ value: {
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ required: false,
41
+ serialized_name: 'SearchServiceResourceElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'SearchServiceResource'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end