azure_mgmt_search 0.15.2 → 0.17.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-08-19/generated/azure_mgmt_search.rb +9 -4
- data/lib/2015-08-19/generated/azure_mgmt_search/admin_keys.rb +12 -10
- data/lib/2015-08-19/generated/azure_mgmt_search/models/identity.rb +72 -0
- data/lib/2015-08-19/generated/azure_mgmt_search/models/operation.rb +61 -0
- data/lib/2015-08-19/generated/azure_mgmt_search/models/operation_display.rb +84 -0
- data/lib/2015-08-19/generated/azure_mgmt_search/models/operation_list_result.rb +71 -0
- data/lib/2015-08-19/generated/azure_mgmt_search/models/resource.rb +24 -2
- data/lib/2015-08-19/generated/azure_mgmt_search/models/search_service.rb +13 -3
- data/lib/2015-08-19/generated/azure_mgmt_search/operations.rb +110 -0
- data/lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb +18 -15
- data/lib/2015-08-19/generated/azure_mgmt_search/search_management_client.rb +14 -6
- data/lib/2015-08-19/generated/azure_mgmt_search/services.rb +160 -33
- data/lib/profiles/latest/modules/search_profile_module.rb +95 -58
- data/lib/profiles/latest/search_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/search_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +10 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ae93bbfc471d9f09f1a5a0dac7f026b38386847b3733fc418acce4fd0209b579
|
4
|
+
data.tar.gz: 27d8715ece1fb90c1a87e6f137ffd5a48e08350b4a51682e6ecb615596645540
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9d43aea0412a81d73b683d1ab0559956d56cb32db9de93ba38b880885428a398da6554016c8aff9d190f7515f7ecaa2a8382dc565e98bbb54bc73bf575ed3df
|
7
|
+
data.tar.gz: 2264463259972cddff819baeb83805ffc3f250b68cb97e6a948b823ac8a6b6d1ef336c31e06dadc4f3ad1bd6891ec39bfb17879d4b50ae934bb3757e7987426a
|
@@ -20,19 +20,24 @@ require '2015-08-19/generated/azure_mgmt_search/module_definition'
|
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
22
|
module Azure::Search::Mgmt::V2015_08_19
|
23
|
+
autoload :Operations, '2015-08-19/generated/azure_mgmt_search/operations.rb'
|
23
24
|
autoload :AdminKeys, '2015-08-19/generated/azure_mgmt_search/admin_keys.rb'
|
24
25
|
autoload :QueryKeys, '2015-08-19/generated/azure_mgmt_search/query_keys.rb'
|
25
26
|
autoload :Services, '2015-08-19/generated/azure_mgmt_search/services.rb'
|
26
27
|
autoload :SearchManagementClient, '2015-08-19/generated/azure_mgmt_search/search_management_client.rb'
|
27
28
|
|
28
29
|
module Models
|
30
|
+
autoload :Identity, '2015-08-19/generated/azure_mgmt_search/models/identity.rb'
|
31
|
+
autoload :CheckNameAvailabilityOutput, '2015-08-19/generated/azure_mgmt_search/models/check_name_availability_output.rb'
|
32
|
+
autoload :Resource, '2015-08-19/generated/azure_mgmt_search/models/resource.rb'
|
33
|
+
autoload :QueryKey, '2015-08-19/generated/azure_mgmt_search/models/query_key.rb'
|
29
34
|
autoload :Sku, '2015-08-19/generated/azure_mgmt_search/models/sku.rb'
|
30
35
|
autoload :CheckNameAvailabilityInput, '2015-08-19/generated/azure_mgmt_search/models/check_name_availability_input.rb'
|
31
|
-
autoload :
|
36
|
+
autoload :OperationDisplay, '2015-08-19/generated/azure_mgmt_search/models/operation_display.rb'
|
37
|
+
autoload :Operation, '2015-08-19/generated/azure_mgmt_search/models/operation.rb'
|
32
38
|
autoload :AdminKeyResult, '2015-08-19/generated/azure_mgmt_search/models/admin_key_result.rb'
|
33
|
-
autoload :
|
34
|
-
autoload :
|
35
|
-
autoload :CheckNameAvailabilityOutput, '2015-08-19/generated/azure_mgmt_search/models/check_name_availability_output.rb'
|
39
|
+
autoload :OperationListResult, '2015-08-19/generated/azure_mgmt_search/models/operation_list_result.rb'
|
40
|
+
autoload :SearchManagementRequestOptions, '2015-08-19/generated/azure_mgmt_search/models/search_management_request_options.rb'
|
36
41
|
autoload :SearchService, '2015-08-19/generated/azure_mgmt_search/models/search_service.rb'
|
37
42
|
autoload :UnavailableNameReason, '2015-08-19/generated/azure_mgmt_search/models/unavailable_name_reason.rb'
|
38
43
|
autoload :SkuName, '2015-08-19/generated/azure_mgmt_search/models/sku_name.rb'
|
@@ -37,8 +37,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
37
37
|
#
|
38
38
|
# @return [AdminKeyResult] operation results.
|
39
39
|
#
|
40
|
-
def get(resource_group_name, search_service_name, search_management_request_options
|
41
|
-
response = get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
|
40
|
+
def get(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
41
|
+
response = get_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
42
42
|
response.body unless response.nil?
|
43
43
|
end
|
44
44
|
|
@@ -58,8 +58,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
58
58
|
#
|
59
59
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
60
60
|
#
|
61
|
-
def get_with_http_info(resource_group_name, search_service_name, search_management_request_options
|
62
|
-
get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value!
|
61
|
+
def get_with_http_info(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
62
|
+
get_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
|
63
63
|
end
|
64
64
|
|
65
65
|
#
|
@@ -78,7 +78,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
78
78
|
#
|
79
79
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
80
80
|
#
|
81
|
-
def get_async(resource_group_name, search_service_name, search_management_request_options
|
81
|
+
def get_async(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil)
|
82
82
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
83
83
|
fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
|
84
84
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -90,6 +90,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
90
90
|
end
|
91
91
|
|
92
92
|
request_headers = {}
|
93
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
93
94
|
|
94
95
|
# Set Headers
|
95
96
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -154,8 +155,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
154
155
|
#
|
155
156
|
# @return [AdminKeyResult] operation results.
|
156
157
|
#
|
157
|
-
def regenerate(resource_group_name, search_service_name, key_kind, search_management_request_options
|
158
|
-
response = regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options, custom_headers).value!
|
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:search_management_request_options, custom_headers:custom_headers).value!
|
159
160
|
response.body unless response.nil?
|
160
161
|
end
|
161
162
|
|
@@ -178,8 +179,8 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
178
179
|
#
|
179
180
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
180
181
|
#
|
181
|
-
def regenerate_with_http_info(resource_group_name, search_service_name, key_kind, search_management_request_options
|
182
|
-
regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options, custom_headers).value!
|
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:search_management_request_options, custom_headers:custom_headers).value!
|
183
184
|
end
|
184
185
|
|
185
186
|
#
|
@@ -201,7 +202,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
201
202
|
#
|
202
203
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
203
204
|
#
|
204
|
-
def regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options
|
205
|
+
def regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options:nil, custom_headers:nil)
|
205
206
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
206
207
|
fail ArgumentError, 'search_service_name is nil' if search_service_name.nil?
|
207
208
|
fail ArgumentError, 'key_kind is nil' if key_kind.nil?
|
@@ -214,6 +215,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
214
215
|
end
|
215
216
|
|
216
217
|
request_headers = {}
|
218
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
217
219
|
|
218
220
|
# Set Headers
|
219
221
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -0,0 +1,72 @@
|
|
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::Search::Mgmt::V2015_08_19
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Identity for the resource.
|
10
|
+
#
|
11
|
+
class Identity
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The principal ID of resource identity.
|
16
|
+
attr_accessor :principal_id
|
17
|
+
|
18
|
+
# @return [String] The tenant ID of resource.
|
19
|
+
attr_accessor :tenant_id
|
20
|
+
|
21
|
+
# @return [String] The identity type. Default value: 'SystemAssigned' .
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for Identity class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'Identity',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'Identity',
|
37
|
+
model_properties: {
|
38
|
+
principal_id: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'principalId',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
tenant_id: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'tenantId',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
type: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: true,
|
59
|
+
is_constant: true,
|
60
|
+
serialized_name: 'type',
|
61
|
+
default_value: 'SystemAssigned',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,61 @@
|
|
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::Search::Mgmt::V2015_08_19
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes a REST API operation.
|
10
|
+
#
|
11
|
+
class Operation
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the operation. This name is of the form
|
16
|
+
# {provider}/{resource}/{operation}.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [OperationDisplay] The object that describes the operation.
|
20
|
+
attr_accessor :display
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for Operation class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'Operation',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'Operation',
|
35
|
+
model_properties: {
|
36
|
+
name: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
read_only: true,
|
40
|
+
serialized_name: 'name',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
display: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'display',
|
50
|
+
type: {
|
51
|
+
name: 'Composite',
|
52
|
+
class_name: 'OperationDisplay'
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,84 @@
|
|
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::Search::Mgmt::V2015_08_19
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The object that describes the operation.
|
10
|
+
#
|
11
|
+
class OperationDisplay
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The friendly name of the resource provider.
|
16
|
+
attr_accessor :provider
|
17
|
+
|
18
|
+
# @return [String] The operation type: read, write, delete,
|
19
|
+
# listKeys/action, etc.
|
20
|
+
attr_accessor :operation
|
21
|
+
|
22
|
+
# @return [String] The resource type on which the operation is performed.
|
23
|
+
attr_accessor :resource
|
24
|
+
|
25
|
+
# @return [String] The friendly name of the operation.
|
26
|
+
attr_accessor :description
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for OperationDisplay 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: 'Operation_display',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'OperationDisplay',
|
41
|
+
model_properties: {
|
42
|
+
provider: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
read_only: true,
|
46
|
+
serialized_name: 'provider',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
operation: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
read_only: true,
|
55
|
+
serialized_name: 'operation',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
resource: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'resource',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
description: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'description',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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::Search::Mgmt::V2015_08_19
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The result of the request to list REST API operations. It contains a list
|
10
|
+
# of operations and a URL to get the next set of results.
|
11
|
+
#
|
12
|
+
class OperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<Operation>] The list of operations supported by the
|
17
|
+
# resource provider.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] The URL to get the next set of operation list results,
|
21
|
+
# if any.
|
22
|
+
attr_accessor :next_link
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'OperationListResult',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'OperationListResult',
|
37
|
+
model_properties: {
|
38
|
+
value: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'value',
|
43
|
+
type: {
|
44
|
+
name: 'Sequence',
|
45
|
+
element: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'OperationElementType',
|
49
|
+
type: {
|
50
|
+
name: 'Composite',
|
51
|
+
class_name: 'Operation'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
},
|
56
|
+
next_link: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
read_only: true,
|
60
|
+
serialized_name: 'nextLink',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -24,13 +24,26 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
24
24
|
|
25
25
|
# @return [String] The geographic location of the resource. This must be
|
26
26
|
# one of the supported and registered Azure Geo Regions (for example,
|
27
|
-
# West US, East US, Southeast Asia, and so forth).
|
27
|
+
# West US, East US, Southeast Asia, and so forth). This property is
|
28
|
+
# required when creating a new resource.
|
28
29
|
attr_accessor :location
|
29
30
|
|
30
31
|
# @return [Hash{String => String}] Tags to help categorize the resource
|
31
32
|
# in the Azure portal.
|
32
33
|
attr_accessor :tags
|
33
34
|
|
35
|
+
# @return [Identity] The identity of the resource.
|
36
|
+
attr_accessor :identity
|
37
|
+
|
38
|
+
|
39
|
+
# @return [String] the name of the resource group of the resource.
|
40
|
+
def resource_group
|
41
|
+
unless self.id.nil?
|
42
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
43
|
+
groups.captures[0].strip if groups
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
34
47
|
|
35
48
|
#
|
36
49
|
# Mapper for Resource class as Ruby Hash.
|
@@ -74,7 +87,7 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
74
87
|
},
|
75
88
|
location: {
|
76
89
|
client_side_validation: true,
|
77
|
-
required:
|
90
|
+
required: false,
|
78
91
|
serialized_name: 'location',
|
79
92
|
type: {
|
80
93
|
name: 'String'
|
@@ -95,6 +108,15 @@ module Azure::Search::Mgmt::V2015_08_19
|
|
95
108
|
}
|
96
109
|
}
|
97
110
|
}
|
111
|
+
},
|
112
|
+
identity: {
|
113
|
+
client_side_validation: true,
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'identity',
|
116
|
+
type: {
|
117
|
+
name: 'Composite',
|
118
|
+
class_name: 'Identity'
|
119
|
+
}
|
98
120
|
}
|
99
121
|
}
|
100
122
|
}
|