azure_mgmt_search 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-08-19/generated/azure_mgmt_search.rb +8 -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/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 +3 -2
- data/lib/2015-08-19/generated/azure_mgmt_search/models/search_service.rb +4 -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 +8 -1
- data/lib/2015-08-19/generated/azure_mgmt_search/services.rb +160 -33
- data/lib/profiles/latest/modules/search_profile_module.rb +91 -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 +7 -3
@@ -4,19 +4,24 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_search'
|
6
6
|
|
7
|
-
module Azure::Search::Profiles::Latest
|
7
|
+
module Azure::Search::Profiles::Latest
|
8
|
+
module Mgmt
|
9
|
+
Operations = Azure::Search::Mgmt::V2015_08_19::Operations
|
8
10
|
AdminKeys = Azure::Search::Mgmt::V2015_08_19::AdminKeys
|
9
11
|
QueryKeys = Azure::Search::Mgmt::V2015_08_19::QueryKeys
|
10
12
|
Services = Azure::Search::Mgmt::V2015_08_19::Services
|
11
13
|
|
12
14
|
module Models
|
13
|
-
Sku = Azure::Search::Mgmt::V2015_08_19::Models::Sku
|
14
15
|
CheckNameAvailabilityInput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput
|
15
|
-
SearchManagementRequestOptions = Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions
|
16
|
-
AdminKeyResult = Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult
|
17
16
|
Resource = Azure::Search::Mgmt::V2015_08_19::Models::Resource
|
18
|
-
|
17
|
+
AdminKeyResult = Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult
|
18
|
+
SearchManagementRequestOptions = Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions
|
19
19
|
CheckNameAvailabilityOutput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput
|
20
|
+
OperationDisplay = Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay
|
21
|
+
Sku = Azure::Search::Mgmt::V2015_08_19::Models::Sku
|
22
|
+
Operation = Azure::Search::Mgmt::V2015_08_19::Models::Operation
|
23
|
+
QueryKey = Azure::Search::Mgmt::V2015_08_19::Models::QueryKey
|
24
|
+
OperationListResult = Azure::Search::Mgmt::V2015_08_19::Models::OperationListResult
|
20
25
|
SearchService = Azure::Search::Mgmt::V2015_08_19::Models::SearchService
|
21
26
|
UnavailableNameReason = Azure::Search::Mgmt::V2015_08_19::Models::UnavailableNameReason
|
22
27
|
SkuName = Azure::Search::Mgmt::V2015_08_19::Models::SkuName
|
@@ -27,10 +32,10 @@ module Azure::Search::Profiles::Latest::Mgmt
|
|
27
32
|
end
|
28
33
|
|
29
34
|
#
|
30
|
-
#
|
35
|
+
# SearchManagementClass
|
31
36
|
#
|
32
|
-
class
|
33
|
-
attr_reader :admin_keys, :query_keys, :services, :configurable, :base_url, :options, :model_classes
|
37
|
+
class SearchManagementClass
|
38
|
+
attr_reader :operations, :admin_keys, :query_keys, :services, :configurable, :base_url, :options, :model_classes
|
34
39
|
|
35
40
|
def initialize(options = {})
|
36
41
|
if options.is_a?(Hash) && options.length == 0
|
@@ -41,62 +46,90 @@ module Azure::Search::Profiles::Latest::Mgmt
|
|
41
46
|
|
42
47
|
reset!(options)
|
43
48
|
|
44
|
-
@configurable
|
49
|
+
@configurable = self
|
50
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
51
|
+
@options = options[:options].nil? ? nil:options[:options]
|
45
52
|
|
46
|
-
client_0 = Azure::Search::Mgmt::V2015_08_19::SearchManagementClient.new(configurable.credentials, base_url, options)
|
47
|
-
if(client_0.respond_to?(:subscription_id))
|
48
|
-
client_0.subscription_id = configurable.subscription_id
|
49
|
-
end
|
50
|
-
@
|
51
|
-
@
|
52
|
-
@
|
53
|
+
@client_0 = Azure::Search::Mgmt::V2015_08_19::SearchManagementClient.new(configurable.credentials, base_url, options)
|
54
|
+
if(@client_0.respond_to?(:subscription_id))
|
55
|
+
@client_0.subscription_id = configurable.subscription_id
|
56
|
+
end
|
57
|
+
add_telemetry(@client_0)
|
58
|
+
@operations = @client_0.operations
|
59
|
+
@admin_keys = @client_0.admin_keys
|
60
|
+
@query_keys = @client_0.query_keys
|
61
|
+
@services = @client_0.services
|
53
62
|
|
54
63
|
@model_classes = ModelClasses.new
|
55
64
|
end
|
56
65
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
def admin_key_result
|
68
|
-
Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult
|
69
|
-
end
|
70
|
-
def resource
|
71
|
-
Azure::Search::Mgmt::V2015_08_19::Models::Resource
|
72
|
-
end
|
73
|
-
def query_key
|
74
|
-
Azure::Search::Mgmt::V2015_08_19::Models::QueryKey
|
75
|
-
end
|
76
|
-
def check_name_availability_output
|
77
|
-
Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput
|
78
|
-
end
|
79
|
-
def search_service
|
80
|
-
Azure::Search::Mgmt::V2015_08_19::Models::SearchService
|
81
|
-
end
|
82
|
-
def unavailable_name_reason
|
83
|
-
Azure::Search::Mgmt::V2015_08_19::Models::UnavailableNameReason
|
84
|
-
end
|
85
|
-
def sku_name
|
86
|
-
Azure::Search::Mgmt::V2015_08_19::Models::SkuName
|
87
|
-
end
|
88
|
-
def hosting_mode
|
89
|
-
Azure::Search::Mgmt::V2015_08_19::Models::HostingMode
|
90
|
-
end
|
91
|
-
def search_service_status
|
92
|
-
Azure::Search::Mgmt::V2015_08_19::Models::SearchServiceStatus
|
93
|
-
end
|
94
|
-
def provisioning_state
|
95
|
-
Azure::Search::Mgmt::V2015_08_19::Models::ProvisioningState
|
96
|
-
end
|
97
|
-
def admin_key_kind
|
98
|
-
Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyKind
|
66
|
+
def add_telemetry(client)
|
67
|
+
profile_information = 'Profiles/Latest/Search/Mgmt'
|
68
|
+
client.add_user_agent_information(profile_information)
|
69
|
+
end
|
70
|
+
|
71
|
+
def method_missing(method, *args)
|
72
|
+
if @client_0.respond_to?method
|
73
|
+
@client_0.send(method, *args)
|
74
|
+
else
|
75
|
+
super
|
99
76
|
end
|
100
77
|
end
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
class ModelClasses
|
82
|
+
def check_name_availability_input
|
83
|
+
Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput
|
84
|
+
end
|
85
|
+
def resource
|
86
|
+
Azure::Search::Mgmt::V2015_08_19::Models::Resource
|
87
|
+
end
|
88
|
+
def admin_key_result
|
89
|
+
Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult
|
90
|
+
end
|
91
|
+
def search_management_request_options
|
92
|
+
Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions
|
93
|
+
end
|
94
|
+
def check_name_availability_output
|
95
|
+
Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput
|
96
|
+
end
|
97
|
+
def operation_display
|
98
|
+
Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay
|
99
|
+
end
|
100
|
+
def sku
|
101
|
+
Azure::Search::Mgmt::V2015_08_19::Models::Sku
|
102
|
+
end
|
103
|
+
def operation
|
104
|
+
Azure::Search::Mgmt::V2015_08_19::Models::Operation
|
105
|
+
end
|
106
|
+
def query_key
|
107
|
+
Azure::Search::Mgmt::V2015_08_19::Models::QueryKey
|
108
|
+
end
|
109
|
+
def operation_list_result
|
110
|
+
Azure::Search::Mgmt::V2015_08_19::Models::OperationListResult
|
111
|
+
end
|
112
|
+
def search_service
|
113
|
+
Azure::Search::Mgmt::V2015_08_19::Models::SearchService
|
114
|
+
end
|
115
|
+
def unavailable_name_reason
|
116
|
+
Azure::Search::Mgmt::V2015_08_19::Models::UnavailableNameReason
|
117
|
+
end
|
118
|
+
def sku_name
|
119
|
+
Azure::Search::Mgmt::V2015_08_19::Models::SkuName
|
120
|
+
end
|
121
|
+
def hosting_mode
|
122
|
+
Azure::Search::Mgmt::V2015_08_19::Models::HostingMode
|
123
|
+
end
|
124
|
+
def search_service_status
|
125
|
+
Azure::Search::Mgmt::V2015_08_19::Models::SearchServiceStatus
|
126
|
+
end
|
127
|
+
def provisioning_state
|
128
|
+
Azure::Search::Mgmt::V2015_08_19::Models::ProvisioningState
|
129
|
+
end
|
130
|
+
def admin_key_kind
|
131
|
+
Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyKind
|
132
|
+
end
|
101
133
|
end
|
134
|
+
end
|
102
135
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/search_module_definition'
|
6
6
|
require 'profiles/latest/modules/search_profile_module'
|
7
7
|
|
8
|
-
module Azure::Search::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Search::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < SearchManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,6 +94,9 @@ files:
|
|
94
94
|
- lib/2015-08-19/generated/azure_mgmt_search/models/check_name_availability_input.rb
|
95
95
|
- lib/2015-08-19/generated/azure_mgmt_search/models/check_name_availability_output.rb
|
96
96
|
- lib/2015-08-19/generated/azure_mgmt_search/models/hosting_mode.rb
|
97
|
+
- lib/2015-08-19/generated/azure_mgmt_search/models/operation.rb
|
98
|
+
- lib/2015-08-19/generated/azure_mgmt_search/models/operation_display.rb
|
99
|
+
- lib/2015-08-19/generated/azure_mgmt_search/models/operation_list_result.rb
|
97
100
|
- lib/2015-08-19/generated/azure_mgmt_search/models/provisioning_state.rb
|
98
101
|
- lib/2015-08-19/generated/azure_mgmt_search/models/query_key.rb
|
99
102
|
- lib/2015-08-19/generated/azure_mgmt_search/models/resource.rb
|
@@ -104,6 +107,7 @@ files:
|
|
104
107
|
- lib/2015-08-19/generated/azure_mgmt_search/models/sku_name.rb
|
105
108
|
- lib/2015-08-19/generated/azure_mgmt_search/models/unavailable_name_reason.rb
|
106
109
|
- lib/2015-08-19/generated/azure_mgmt_search/module_definition.rb
|
110
|
+
- lib/2015-08-19/generated/azure_mgmt_search/operations.rb
|
107
111
|
- lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb
|
108
112
|
- lib/2015-08-19/generated/azure_mgmt_search/search_management_client.rb
|
109
113
|
- lib/2015-08-19/generated/azure_mgmt_search/services.rb
|
@@ -138,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
142
|
version: '0'
|
139
143
|
requirements: []
|
140
144
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.6.10
|
142
146
|
signing_key:
|
143
147
|
specification_version: 4
|
144
148
|
summary: Official Ruby client library to consume Microsoft Azure Search Management
|