azure_mgmt_search 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87f27d394b608b01d2c9850d4f9eb8c2d31c6a3d
4
- data.tar.gz: ab9fe8b8287ac6216fc1f1ab3debc2f05d6a2b03
3
+ metadata.gz: 0fb3bfd696da3f4fd4bf5f6d5fd86d3605f52907
4
+ data.tar.gz: c7bff0c23cff1e77d5527069c3d7611985b1561f
5
5
  SHA512:
6
- metadata.gz: 72b4af6471c173f479706227118fc7bb37eec79d9d818b25e51d307a623fd198905ad92fdfceca7face3d2945428faf08198f177e40f9fd534ddffff9899d972
7
- data.tar.gz: c041206ad26a860275c5824fb27f6706e5ff7897f61b9b354fd862ef5f4c931ba843be2b6621b0b8d8e6fbe15b87b0e07ed43c5a2361e138d46ee775630f164f
6
+ metadata.gz: a89e278811da514fb440621691855cf007e2eee41c45135ceeb9e8ee613d4df37a2d141888981fc1f351819fc35bd020fccb716b8bf776ee4f991fbada4cbcff
7
+ data.tar.gz: e2e70525fee3e11ac326e890243b066ac20a2cd1569c8f79b98737eb394cdedc3238f769a624558529f4fd9e11e9a4be8127d99aae75ea13036cda6bfe01e2ad
@@ -26,6 +26,7 @@ module Azure::Search::Mgmt::V2015_08_19
26
26
  #
27
27
  def self.mapper()
28
28
  {
29
+ client_side_validation: true,
29
30
  required: false,
30
31
  serialized_name: 'AdminKeyResult',
31
32
  type: {
@@ -33,6 +34,7 @@ module Azure::Search::Mgmt::V2015_08_19
33
34
  class_name: 'AdminKeyResult',
34
35
  model_properties: {
35
36
  primary_key: {
37
+ client_side_validation: true,
36
38
  required: false,
37
39
  read_only: true,
38
40
  serialized_name: 'primaryKey',
@@ -41,6 +43,7 @@ module Azure::Search::Mgmt::V2015_08_19
41
43
  }
42
44
  },
43
45
  secondary_key: {
46
+ client_side_validation: true,
44
47
  required: false,
45
48
  read_only: true,
46
49
  serialized_name: 'secondaryKey',
@@ -30,6 +30,7 @@ module Azure::Search::Mgmt::V2015_08_19
30
30
  #
31
31
  def self.mapper()
32
32
  {
33
+ client_side_validation: true,
33
34
  required: false,
34
35
  serialized_name: 'CheckNameAvailabilityInput',
35
36
  type: {
@@ -37,6 +38,7 @@ module Azure::Search::Mgmt::V2015_08_19
37
38
  class_name: 'CheckNameAvailabilityInput',
38
39
  model_properties: {
39
40
  name: {
41
+ client_side_validation: true,
40
42
  required: true,
41
43
  serialized_name: 'name',
42
44
  type: {
@@ -44,6 +46,7 @@ module Azure::Search::Mgmt::V2015_08_19
44
46
  }
45
47
  },
46
48
  type: {
49
+ client_side_validation: true,
47
50
  required: true,
48
51
  is_constant: true,
49
52
  serialized_name: 'type',
@@ -35,6 +35,7 @@ module Azure::Search::Mgmt::V2015_08_19
35
35
  #
36
36
  def self.mapper()
37
37
  {
38
+ client_side_validation: true,
38
39
  required: false,
39
40
  serialized_name: 'CheckNameAvailabilityOutput',
40
41
  type: {
@@ -42,6 +43,7 @@ module Azure::Search::Mgmt::V2015_08_19
42
43
  class_name: 'CheckNameAvailabilityOutput',
43
44
  model_properties: {
44
45
  is_name_available: {
46
+ client_side_validation: true,
45
47
  required: false,
46
48
  read_only: true,
47
49
  serialized_name: 'nameAvailable',
@@ -50,6 +52,7 @@ module Azure::Search::Mgmt::V2015_08_19
50
52
  }
51
53
  },
52
54
  reason: {
55
+ client_side_validation: true,
53
56
  required: false,
54
57
  read_only: true,
55
58
  serialized_name: 'reason',
@@ -58,6 +61,7 @@ module Azure::Search::Mgmt::V2015_08_19
58
61
  }
59
62
  },
60
63
  message: {
64
+ client_side_validation: true,
61
65
  required: false,
62
66
  read_only: true,
63
67
  serialized_name: 'message',
@@ -26,6 +26,7 @@ module Azure::Search::Mgmt::V2015_08_19
26
26
  #
27
27
  def self.mapper()
28
28
  {
29
+ client_side_validation: true,
29
30
  required: false,
30
31
  serialized_name: 'QueryKey',
31
32
  type: {
@@ -33,6 +34,7 @@ module Azure::Search::Mgmt::V2015_08_19
33
34
  class_name: 'QueryKey',
34
35
  model_properties: {
35
36
  name: {
37
+ client_side_validation: true,
36
38
  required: false,
37
39
  read_only: true,
38
40
  serialized_name: 'name',
@@ -41,6 +43,7 @@ module Azure::Search::Mgmt::V2015_08_19
41
43
  }
42
44
  },
43
45
  key: {
46
+ client_side_validation: true,
44
47
  required: false,
45
48
  read_only: true,
46
49
  serialized_name: 'key',
@@ -38,6 +38,7 @@ module Azure::Search::Mgmt::V2015_08_19
38
38
  #
39
39
  def self.mapper()
40
40
  {
41
+ client_side_validation: true,
41
42
  required: false,
42
43
  serialized_name: 'Resource',
43
44
  type: {
@@ -45,6 +46,7 @@ module Azure::Search::Mgmt::V2015_08_19
45
46
  class_name: 'Resource',
46
47
  model_properties: {
47
48
  id: {
49
+ client_side_validation: true,
48
50
  required: false,
49
51
  read_only: true,
50
52
  serialized_name: 'id',
@@ -53,6 +55,7 @@ module Azure::Search::Mgmt::V2015_08_19
53
55
  }
54
56
  },
55
57
  name: {
58
+ client_side_validation: true,
56
59
  required: false,
57
60
  read_only: true,
58
61
  serialized_name: 'name',
@@ -61,6 +64,7 @@ module Azure::Search::Mgmt::V2015_08_19
61
64
  }
62
65
  },
63
66
  type: {
67
+ client_side_validation: true,
64
68
  required: false,
65
69
  read_only: true,
66
70
  serialized_name: 'type',
@@ -69,6 +73,7 @@ module Azure::Search::Mgmt::V2015_08_19
69
73
  }
70
74
  },
71
75
  location: {
76
+ client_side_validation: true,
72
77
  required: true,
73
78
  serialized_name: 'location',
74
79
  type: {
@@ -76,11 +81,13 @@ module Azure::Search::Mgmt::V2015_08_19
76
81
  }
77
82
  },
78
83
  tags: {
84
+ client_side_validation: true,
79
85
  required: false,
80
86
  serialized_name: 'tags',
81
87
  type: {
82
88
  name: 'Dictionary',
83
89
  value: {
90
+ client_side_validation: true,
84
91
  required: false,
85
92
  serialized_name: 'StringElementType',
86
93
  type: {
@@ -24,12 +24,14 @@ module Azure::Search::Mgmt::V2015_08_19
24
24
  #
25
25
  def self.mapper()
26
26
  {
27
+ client_side_validation: true,
27
28
  required: false,
28
29
  type: {
29
30
  name: 'Composite',
30
31
  class_name: 'SearchManagementRequestOptions',
31
32
  model_properties: {
32
33
  client_request_id: {
34
+ client_side_validation: true,
33
35
  required: false,
34
36
  type: {
35
37
  name: 'String'
@@ -78,6 +78,7 @@ module Azure::Search::Mgmt::V2015_08_19
78
78
  #
79
79
  def self.mapper()
80
80
  {
81
+ client_side_validation: true,
81
82
  required: false,
82
83
  serialized_name: 'SearchService',
83
84
  type: {
@@ -85,6 +86,7 @@ module Azure::Search::Mgmt::V2015_08_19
85
86
  class_name: 'SearchService',
86
87
  model_properties: {
87
88
  id: {
89
+ client_side_validation: true,
88
90
  required: false,
89
91
  read_only: true,
90
92
  serialized_name: 'id',
@@ -93,6 +95,7 @@ module Azure::Search::Mgmt::V2015_08_19
93
95
  }
94
96
  },
95
97
  name: {
98
+ client_side_validation: true,
96
99
  required: false,
97
100
  read_only: true,
98
101
  serialized_name: 'name',
@@ -101,6 +104,7 @@ module Azure::Search::Mgmt::V2015_08_19
101
104
  }
102
105
  },
103
106
  type: {
107
+ client_side_validation: true,
104
108
  required: false,
105
109
  read_only: true,
106
110
  serialized_name: 'type',
@@ -109,6 +113,7 @@ module Azure::Search::Mgmt::V2015_08_19
109
113
  }
110
114
  },
111
115
  location: {
116
+ client_side_validation: true,
112
117
  required: true,
113
118
  serialized_name: 'location',
114
119
  type: {
@@ -116,11 +121,13 @@ module Azure::Search::Mgmt::V2015_08_19
116
121
  }
117
122
  },
118
123
  tags: {
124
+ client_side_validation: true,
119
125
  required: false,
120
126
  serialized_name: 'tags',
121
127
  type: {
122
128
  name: 'Dictionary',
123
129
  value: {
130
+ client_side_validation: true,
124
131
  required: false,
125
132
  serialized_name: 'StringElementType',
126
133
  type: {
@@ -130,6 +137,7 @@ module Azure::Search::Mgmt::V2015_08_19
130
137
  }
131
138
  },
132
139
  replica_count: {
140
+ client_side_validation: true,
133
141
  required: false,
134
142
  serialized_name: 'properties.replicaCount',
135
143
  default_value: 1,
@@ -142,6 +150,7 @@ module Azure::Search::Mgmt::V2015_08_19
142
150
  }
143
151
  },
144
152
  partition_count: {
153
+ client_side_validation: true,
145
154
  required: false,
146
155
  serialized_name: 'properties.partitionCount',
147
156
  default_value: 1,
@@ -154,6 +163,7 @@ module Azure::Search::Mgmt::V2015_08_19
154
163
  }
155
164
  },
156
165
  hosting_mode: {
166
+ client_side_validation: true,
157
167
  required: false,
158
168
  serialized_name: 'properties.hostingMode',
159
169
  default_value: 'default',
@@ -163,6 +173,7 @@ module Azure::Search::Mgmt::V2015_08_19
163
173
  }
164
174
  },
165
175
  status: {
176
+ client_side_validation: true,
166
177
  required: false,
167
178
  read_only: true,
168
179
  serialized_name: 'properties.status',
@@ -172,6 +183,7 @@ module Azure::Search::Mgmt::V2015_08_19
172
183
  }
173
184
  },
174
185
  status_details: {
186
+ client_side_validation: true,
175
187
  required: false,
176
188
  read_only: true,
177
189
  serialized_name: 'properties.statusDetails',
@@ -180,6 +192,7 @@ module Azure::Search::Mgmt::V2015_08_19
180
192
  }
181
193
  },
182
194
  provisioning_state: {
195
+ client_side_validation: true,
183
196
  required: false,
184
197
  read_only: true,
185
198
  serialized_name: 'properties.provisioningState',
@@ -189,6 +202,7 @@ module Azure::Search::Mgmt::V2015_08_19
189
202
  }
190
203
  },
191
204
  sku: {
205
+ client_side_validation: true,
192
206
  required: true,
193
207
  serialized_name: 'sku',
194
208
  type: {
@@ -31,6 +31,7 @@ module Azure::Search::Mgmt::V2015_08_19
31
31
  #
32
32
  def self.mapper()
33
33
  {
34
+ client_side_validation: true,
34
35
  required: false,
35
36
  serialized_name: 'Sku',
36
37
  type: {
@@ -38,6 +39,7 @@ module Azure::Search::Mgmt::V2015_08_19
38
39
  class_name: 'Sku',
39
40
  model_properties: {
40
41
  name: {
42
+ client_side_validation: true,
41
43
  required: false,
42
44
  serialized_name: 'name',
43
45
  type: {
@@ -131,9 +131,7 @@ module Azure::Search::Mgmt::V2015_08_19
131
131
  #
132
132
  def add_telemetry
133
133
  sdk_information = 'azure_mgmt_search'
134
- if defined? Azure::Search::Mgmt::V2015_08_19::VERSION
135
- sdk_information = "#{sdk_information}/#{Azure::Search::Mgmt::V2015_08_19::VERSION}"
136
- end
134
+ sdk_information = "#{sdk_information}/0.15.2"
137
135
  add_user_agent_information(sdk_information)
138
136
  end
139
137
  end
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/latest/search_module_definition'
6
6
  require 'profiles/latest/modules/search_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::Search::Profiles::Latest::Mgmt
11
9
  #
12
10
  # Client class for the Latest profile SDK.
13
11
  #
14
12
  class Client < SearchClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
@@ -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.1'
6
+ VERSION = '0.15.2'
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.1
4
+ version: 0.15.2
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-10-30 00:00:00.000000000 Z
11
+ date: 2017-12-19 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.9.0
75
+ version: 0.10.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.9.0
82
+ version: 0.10.0
83
83
  description: Microsoft Azure Search Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -107,11 +107,8 @@ files:
107
107
  - lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb
108
108
  - lib/2015-08-19/generated/azure_mgmt_search/search_management_client.rb
109
109
  - lib/2015-08-19/generated/azure_mgmt_search/services.rb
110
- - lib/2015-08-19/generated/azure_mgmt_search/version.rb
111
110
  - lib/azure_mgmt_search.rb
112
111
  - lib/module_definition.rb
113
- - lib/profiles/common/configurable.rb
114
- - lib/profiles/common/default.rb
115
112
  - lib/profiles/latest/modules/search_profile_module.rb
116
113
  - lib/profiles/latest/search_latest_profile_client.rb
117
114
  - lib/profiles/latest/search_module_definition.rb
@@ -119,7 +116,12 @@ files:
119
116
  homepage: https://aka.ms/azure-sdk-for-ruby
120
117
  licenses:
121
118
  - MIT
122
- metadata: {}
119
+ metadata:
120
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
121
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
122
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
123
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
124
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_search
123
125
  post_install_message:
124
126
  rdoc_options: []
125
127
  require_paths:
@@ -1,8 +0,0 @@
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
- VERSION = '0.15.1'
8
- end
@@ -1,86 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure::Common
6
- # The Azure::Common::Configurable module provides basic configuration for Azure activities.
7
- module Configurable
8
- # @return [String] Azure tenant id (also known as domain).
9
- attr_accessor :tenant_id
10
-
11
- # @return [String] Azure client id.
12
- attr_accessor :client_id
13
-
14
- # @return [String] Azure secret key.
15
- attr_accessor :client_secret
16
-
17
- # @return [String] Azure subscription id.
18
- attr_accessor :subscription_id
19
-
20
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
- attr_accessor :active_directory_settings
22
-
23
- # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
- attr_accessor :credentials
25
-
26
- class << self
27
- #
28
- # List of configurable keys for {Azure::Common::Client}.
29
- # @return [Array] of option keys.
30
- #
31
- def keys
32
- @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
33
- end
34
- end
35
-
36
- #
37
- # Set configuration options using a block.
38
- #
39
- def configure
40
- yield self
41
- end
42
-
43
- #
44
- # Resets the configurable options to provided options or defaults.
45
- # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
- #
47
- def reset!(options = {})
48
- Azure::Common::Configurable.keys.each do |key|
49
- default_value = Azure::Common::Default.options[key]
50
- instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
- end
52
-
53
- fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
54
- fail ArgumentError, 'client_id is nil' if self.client_id.nil?
55
- fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
56
- fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
57
- fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
58
-
59
- default_value = MsRest::TokenCredentials.new(
60
- MsRestAzure::ApplicationTokenProvider.new(
61
- self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
62
-
63
- instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
64
-
65
- self
66
- end
67
-
68
- def config
69
- self
70
- end
71
-
72
- private
73
-
74
- #
75
- # configures configurable options to default values
76
- #
77
- def setup_default_options
78
- opts = {}
79
- Azure::Common::Configurable.keys.map do |key|
80
- opts[key] = Azure::Common::Default.options[key]
81
- end
82
-
83
- opts
84
- end
85
- end
86
- end
@@ -1,57 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure::Common
6
- module Default
7
- class << self
8
- #
9
- # Default Azure Tenant Id.
10
- # @return [String] Azure Tenant Id.
11
- #
12
- def tenant_id
13
- ENV['AZURE_TENANT_ID']
14
- end
15
-
16
- #
17
- # Default Azure Client Id.
18
- # @return [String] Azure Client Id.
19
- #
20
- def client_id
21
- ENV['AZURE_CLIENT_ID']
22
- end
23
-
24
- #
25
- # Default Azure Client Secret.
26
- # @return [String] Azure Client Secret.
27
- #
28
- def client_secret
29
- ENV['AZURE_CLIENT_SECRET']
30
- end
31
-
32
- #
33
- # Default Azure Subscription Id.
34
- # @return [String] Azure Subscription Id.
35
- #
36
- def subscription_id
37
- ENV['AZURE_SUBSCRIPTION_ID']
38
- end
39
-
40
- #
41
- # Default Azure Active Directory Service Settings.
42
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
43
- #
44
- def active_directory_settings
45
- MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
46
- end
47
-
48
- #
49
- # Configuration options.
50
- # @return [Hash] Configuration options.
51
- #
52
- def options
53
- Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
54
- end
55
- end
56
- end
57
- end