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.
@@ -4,19 +4,25 @@
4
4
 
5
5
  require 'azure_mgmt_search'
6
6
 
7
- module Azure::Search::Profiles::Latest::Mgmt
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
15
+ Identity = Azure::Search::Mgmt::V2015_08_19::Models::Identity
16
+ CheckNameAvailabilityOutput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput
17
+ Resource = Azure::Search::Mgmt::V2015_08_19::Models::Resource
18
+ QueryKey = Azure::Search::Mgmt::V2015_08_19::Models::QueryKey
13
19
  Sku = Azure::Search::Mgmt::V2015_08_19::Models::Sku
14
20
  CheckNameAvailabilityInput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput
15
- SearchManagementRequestOptions = Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions
21
+ OperationDisplay = Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay
22
+ Operation = Azure::Search::Mgmt::V2015_08_19::Models::Operation
16
23
  AdminKeyResult = Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult
17
- Resource = Azure::Search::Mgmt::V2015_08_19::Models::Resource
18
- QueryKey = Azure::Search::Mgmt::V2015_08_19::Models::QueryKey
19
- CheckNameAvailabilityOutput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput
24
+ OperationListResult = Azure::Search::Mgmt::V2015_08_19::Models::OperationListResult
25
+ SearchManagementRequestOptions = Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions
20
26
  SearchService = Azure::Search::Mgmt::V2015_08_19::Models::SearchService
21
27
  UnavailableNameReason = Azure::Search::Mgmt::V2015_08_19::Models::UnavailableNameReason
22
28
  SkuName = Azure::Search::Mgmt::V2015_08_19::Models::SkuName
@@ -27,10 +33,10 @@ module Azure::Search::Profiles::Latest::Mgmt
27
33
  end
28
34
 
29
35
  #
30
- # Search
36
+ # SearchManagementClass
31
37
  #
32
- class SearchClass
33
- attr_reader :admin_keys, :query_keys, :services, :configurable, :base_url, :options, :model_classes
38
+ class SearchManagementClass
39
+ attr_reader :operations, :admin_keys, :query_keys, :services, :configurable, :base_url, :options, :model_classes
34
40
 
35
41
  def initialize(options = {})
36
42
  if options.is_a?(Hash) && options.length == 0
@@ -41,62 +47,93 @@ module Azure::Search::Profiles::Latest::Mgmt
41
47
 
42
48
  reset!(options)
43
49
 
44
- @configurable, @base_url, @options = self, nil, nil
50
+ @configurable = self
51
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
52
+ @options = options[:options].nil? ? nil:options[:options]
45
53
 
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
- @admin_keys = client_0.admin_keys
51
- @query_keys = client_0.query_keys
52
- @services = client_0.services
54
+ @client_0 = Azure::Search::Mgmt::V2015_08_19::SearchManagementClient.new(configurable.credentials, base_url, options)
55
+ if(@client_0.respond_to?(:subscription_id))
56
+ @client_0.subscription_id = configurable.subscription_id
57
+ end
58
+ add_telemetry(@client_0)
59
+ @operations = @client_0.operations
60
+ @admin_keys = @client_0.admin_keys
61
+ @query_keys = @client_0.query_keys
62
+ @services = @client_0.services
53
63
 
54
64
  @model_classes = ModelClasses.new
55
65
  end
56
66
 
57
- class ModelClasses
58
- def sku
59
- Azure::Search::Mgmt::V2015_08_19::Models::Sku
60
- end
61
- def check_name_availability_input
62
- Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput
63
- end
64
- def search_management_request_options
65
- Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions
66
- end
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
67
+ def add_telemetry(client)
68
+ profile_information = 'Profiles/Latest/Search/Mgmt'
69
+ client.add_user_agent_information(profile_information)
70
+ end
71
+
72
+ def method_missing(method, *args)
73
+ if @client_0.respond_to?method
74
+ @client_0.send(method, *args)
75
+ else
76
+ super
99
77
  end
100
78
  end
79
+
80
+ end
81
+
82
+ class ModelClasses
83
+ def identity
84
+ Azure::Search::Mgmt::V2015_08_19::Models::Identity
85
+ end
86
+ def check_name_availability_output
87
+ Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput
88
+ end
89
+ def resource
90
+ Azure::Search::Mgmt::V2015_08_19::Models::Resource
91
+ end
92
+ def query_key
93
+ Azure::Search::Mgmt::V2015_08_19::Models::QueryKey
94
+ end
95
+ def sku
96
+ Azure::Search::Mgmt::V2015_08_19::Models::Sku
97
+ end
98
+ def check_name_availability_input
99
+ Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput
100
+ end
101
+ def operation_display
102
+ Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay
103
+ end
104
+ def operation
105
+ Azure::Search::Mgmt::V2015_08_19::Models::Operation
106
+ end
107
+ def admin_key_result
108
+ Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult
109
+ end
110
+ def operation_list_result
111
+ Azure::Search::Mgmt::V2015_08_19::Models::OperationListResult
112
+ end
113
+ def search_management_request_options
114
+ Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions
115
+ end
116
+ def search_service
117
+ Azure::Search::Mgmt::V2015_08_19::Models::SearchService
118
+ end
119
+ def unavailable_name_reason
120
+ Azure::Search::Mgmt::V2015_08_19::Models::UnavailableNameReason
121
+ end
122
+ def sku_name
123
+ Azure::Search::Mgmt::V2015_08_19::Models::SkuName
124
+ end
125
+ def hosting_mode
126
+ Azure::Search::Mgmt::V2015_08_19::Models::HostingMode
127
+ end
128
+ def search_service_status
129
+ Azure::Search::Mgmt::V2015_08_19::Models::SearchServiceStatus
130
+ end
131
+ def provisioning_state
132
+ Azure::Search::Mgmt::V2015_08_19::Models::ProvisioningState
133
+ end
134
+ def admin_key_kind
135
+ Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyKind
136
+ end
101
137
  end
138
+ end
102
139
  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::Mgmt
9
- #
10
- # Client class for the Latest profile SDK.
11
- #
12
- class Client < SearchClass
13
- include MsRestAzure::Common::Configurable
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
@@ -6,4 +6,3 @@ module Azure end
6
6
  module Azure::Search end
7
7
  module Azure::Search::Profiles end
8
8
  module Azure::Search::Profiles::Latest end
9
- module Azure::Search::Profiles::Latest::Mgmt end
@@ -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::Search::Mgmt
6
- VERSION = '0.15.2'
6
+ VERSION = '0.17.3'
7
7
  end
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.15.2
4
+ version: 0.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-19 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.10.0
75
+ version: 0.12.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.10.0
82
+ version: 0.12.0
83
83
  description: Microsoft Azure Search Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -94,6 +94,10 @@ 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/identity.rb
98
+ - lib/2015-08-19/generated/azure_mgmt_search/models/operation.rb
99
+ - lib/2015-08-19/generated/azure_mgmt_search/models/operation_display.rb
100
+ - lib/2015-08-19/generated/azure_mgmt_search/models/operation_list_result.rb
97
101
  - lib/2015-08-19/generated/azure_mgmt_search/models/provisioning_state.rb
98
102
  - lib/2015-08-19/generated/azure_mgmt_search/models/query_key.rb
99
103
  - lib/2015-08-19/generated/azure_mgmt_search/models/resource.rb
@@ -104,6 +108,7 @@ files:
104
108
  - lib/2015-08-19/generated/azure_mgmt_search/models/sku_name.rb
105
109
  - lib/2015-08-19/generated/azure_mgmt_search/models/unavailable_name_reason.rb
106
110
  - lib/2015-08-19/generated/azure_mgmt_search/module_definition.rb
111
+ - lib/2015-08-19/generated/azure_mgmt_search/operations.rb
107
112
  - lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb
108
113
  - lib/2015-08-19/generated/azure_mgmt_search/search_management_client.rb
109
114
  - lib/2015-08-19/generated/azure_mgmt_search/services.rb
@@ -138,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
143
  version: '0'
139
144
  requirements: []
140
145
  rubyforge_project:
141
- rubygems_version: 2.5.1
146
+ rubygems_version: 2.7.8
142
147
  signing_key:
143
148
  specification_version: 4
144
149
  summary: Official Ruby client library to consume Microsoft Azure Search Management