azure_mgmt_cognitive_services 0.18.3 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
19
19
  # @return [String] The id of the created account
20
20
  attr_accessor :id
21
21
 
22
- # @return [String] Type of cognitive service account.
22
+ # @return [String] The Kind of the resource.
23
23
  attr_accessor :kind
24
24
 
25
25
  # @return [String] The location of the resource
@@ -28,24 +28,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
28
28
  # @return [String] The name of the created account
29
29
  attr_accessor :name
30
30
 
31
- # @return [ProvisioningState] Gets the status of the cognitive services
32
- # account at the time the operation was called. Possible values include:
33
- # 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', 'Succeeded', 'Failed'
34
- attr_accessor :provisioning_state
35
-
36
- # @return [String] Endpoint of the created account.
37
- attr_accessor :endpoint
38
-
39
- # @return [String] The internal identifier.
40
- attr_accessor :internal_id
41
-
42
- # @return [String] Optional subdomain name used for token-based
43
- # authentication.
44
- attr_accessor :custom_sub_domain_name
45
-
46
- # @return [NetworkRuleSet] A collection of rules governing the
47
- # accessibility from specific network locations.
48
- attr_accessor :network_acls
31
+ # @return [CognitiveServicesAccountProperties] Properties of Cognitive
32
+ # Services account.
33
+ attr_accessor :properties
49
34
 
50
35
  # @return [Sku] The SKU of Cognitive Services account.
51
36
  attr_accessor :sku
@@ -77,6 +62,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
77
62
  etag: {
78
63
  client_side_validation: true,
79
64
  required: false,
65
+ read_only: true,
80
66
  serialized_name: 'etag',
81
67
  type: {
82
68
  name: 'String'
@@ -116,46 +102,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
116
102
  name: 'String'
117
103
  }
118
104
  },
119
- provisioning_state: {
120
- client_side_validation: true,
121
- required: false,
122
- read_only: true,
123
- serialized_name: 'properties.provisioningState',
124
- type: {
125
- name: 'String'
126
- }
127
- },
128
- endpoint: {
129
- client_side_validation: true,
130
- required: false,
131
- serialized_name: 'properties.endpoint',
132
- type: {
133
- name: 'String'
134
- }
135
- },
136
- internal_id: {
137
- client_side_validation: true,
138
- required: false,
139
- serialized_name: 'properties.internalId',
140
- type: {
141
- name: 'String'
142
- }
143
- },
144
- custom_sub_domain_name: {
145
- client_side_validation: true,
146
- required: false,
147
- serialized_name: 'properties.customSubDomainName',
148
- type: {
149
- name: 'String'
150
- }
151
- },
152
- network_acls: {
105
+ properties: {
153
106
  client_side_validation: true,
154
107
  required: false,
155
- serialized_name: 'properties.networkAcls',
108
+ serialized_name: 'properties',
156
109
  type: {
157
110
  name: 'Composite',
158
- class_name: 'NetworkRuleSet'
111
+ class_name: 'CognitiveServicesAccountProperties'
159
112
  }
160
113
  },
161
114
  sku: {
@@ -0,0 +1,90 @@
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::CognitiveServices::Mgmt::V2017_04_18
7
+ module Models
8
+ #
9
+ # The api properties for special APIs.
10
+ #
11
+ class CognitiveServicesAccountApiProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] (QnAMaker Only) The runtime endpoint of QnAMaker.
16
+ attr_accessor :qna_runtime_endpoint
17
+
18
+ # @return [Boolean] (Bing Search Only) The flag to enable statistics of
19
+ # Bing Search.
20
+ attr_accessor :statistics_enabled
21
+
22
+ # @return [String] (Personalization Only) The flag to enable statistics
23
+ # of Bing Search.
24
+ attr_accessor :event_hub_connection_string
25
+
26
+ # @return [String] (Personalization Only) The storage account connection
27
+ # string.
28
+ attr_accessor :storage_account_connection_string
29
+
30
+
31
+ #
32
+ # Mapper for CognitiveServicesAccountApiProperties class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'CognitiveServicesAccountApiProperties',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'CognitiveServicesAccountApiProperties',
43
+ model_properties: {
44
+ qna_runtime_endpoint: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'qnaRuntimeEndpoint',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ statistics_enabled: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'statisticsEnabled',
56
+ type: {
57
+ name: 'Boolean'
58
+ }
59
+ },
60
+ event_hub_connection_string: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'eventHubConnectionString',
64
+ constraints: {
65
+ MaxLength: 1000,
66
+ Pattern: '^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$'
67
+ },
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ storage_account_connection_string: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'storageAccountConnectionString',
76
+ constraints: {
77
+ MaxLength: 1000,
78
+ Pattern: '^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$'
79
+ },
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,111 @@
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::CognitiveServices::Mgmt::V2017_04_18
7
+ module Models
8
+ #
9
+ # Properties of Cognitive Services account.
10
+ #
11
+ class CognitiveServicesAccountProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ProvisioningState] Gets the status of the cognitive services
16
+ # account at the time the operation was called. Possible values include:
17
+ # 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', 'Succeeded', 'Failed'
18
+ attr_accessor :provisioning_state
19
+
20
+ # @return [String] Endpoint of the created account.
21
+ attr_accessor :endpoint
22
+
23
+ # @return [String] The internal identifier.
24
+ attr_accessor :internal_id
25
+
26
+ # @return [String] Optional subdomain name used for token-based
27
+ # authentication.
28
+ attr_accessor :custom_sub_domain_name
29
+
30
+ # @return [NetworkRuleSet] A collection of rules governing the
31
+ # accessibility from specific network locations.
32
+ attr_accessor :network_acls
33
+
34
+ # @return [CognitiveServicesAccountApiProperties] The api properties for
35
+ # special APIs.
36
+ attr_accessor :api_properties
37
+
38
+
39
+ #
40
+ # Mapper for CognitiveServicesAccountProperties class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'CognitiveServicesAccountProperties',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'CognitiveServicesAccountProperties',
51
+ model_properties: {
52
+ provisioning_state: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'provisioningState',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ endpoint: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'endpoint',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ internal_id: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'internalId',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ custom_sub_domain_name: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'customSubDomainName',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ network_acls: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'networkAcls',
91
+ type: {
92
+ name: 'Composite',
93
+ class_name: 'NetworkRuleSet'
94
+ }
95
+ },
96
+ api_properties: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'apiProperties',
100
+ type: {
101
+ name: 'Composite',
102
+ class_name: 'CognitiveServicesAccountApiProperties'
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ end
109
+ end
110
+ end
111
+ end
@@ -12,12 +12,6 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [NetworkRuleBypassOptions] Tells what traffic can bypass
16
- # network rules. This can be 'AzureServices' or 'None'. If not specified
17
- # the default is 'AzureServices'. Possible values include:
18
- # 'AzureServices', 'None'
19
- attr_accessor :bypass
20
-
21
15
  # @return [NetworkRuleAction] The default action when no rule from
22
16
  # ipRules and from virtualNetworkRules match. This is only used after the
23
17
  # bypass property has been evaluated. Possible values include: 'Allow',
@@ -44,14 +38,6 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
44
38
  name: 'Composite',
45
39
  class_name: 'NetworkRuleSet',
46
40
  model_properties: {
47
- bypass: {
48
- client_side_validation: true,
49
- required: false,
50
- serialized_name: 'bypass',
51
- type: {
52
- name: 'String'
53
- }
54
- },
55
41
  default_action: {
56
42
  client_side_validation: true,
57
43
  required: false,
@@ -2,6 +2,6 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require '2016-02-01-preview/generated/azure_mgmt_cognitive_services'
6
5
  require '2017-04-18/generated/azure_mgmt_cognitive_services'
6
+ require '2016-02-01-preview/generated/azure_mgmt_cognitive_services'
7
7
  require 'profiles/latest/cognitiveservices_latest_profile_client'
@@ -9,16 +9,15 @@ module Azure::CognitiveServices::Profiles::Latest
9
9
  Accounts = Azure::CognitiveServices::Mgmt::V2017_04_18::Accounts
10
10
  ResourceSkus = Azure::CognitiveServices::Mgmt::V2017_04_18::ResourceSkus
11
11
  Operations = Azure::CognitiveServices::Mgmt::V2017_04_18::Operations
12
- CheckSkuAvailability = Azure::CognitiveServices::Mgmt::V2017_04_18::CheckSkuAvailability
13
12
 
14
13
  module Models
15
14
  UsagesResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UsagesResult
16
15
  ErrorBody = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody
17
- CognitiveServicesAccountCreateParameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountCreateParameters
18
- Error = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error
19
16
  IpRule = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::IpRule
20
- OperationDisplayInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationDisplayInfo
17
+ Error = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error
21
18
  NetworkRuleSet = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleSet
19
+ OperationDisplayInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationDisplayInfo
20
+ CognitiveServicesAccountProperties = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountProperties
22
21
  OperationEntity = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntity
23
22
  CognitiveServicesAccountListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountListResult
24
23
  OperationEntityListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntityListResult
@@ -28,7 +27,7 @@ module Azure::CognitiveServices::Profiles::Latest
28
27
  CheckSkuAvailabilityResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResult
29
28
  Usage = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage
30
29
  CheckSkuAvailabilityResultList = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResultList
31
- CognitiveServicesAccountUpdateParameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountUpdateParameters
30
+ VirtualNetworkRule = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::VirtualNetworkRule
32
31
  CheckDomainAvailabilityParameter = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckDomainAvailabilityParameter
33
32
  CognitiveServicesAccount = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount
34
33
  CheckDomainAvailabilityResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckDomainAvailabilityResult
@@ -38,12 +37,11 @@ module Azure::CognitiveServices::Profiles::Latest
38
37
  ResourceSkuRestrictions = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictions
39
38
  CognitiveServicesAccountKeys = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountKeys
40
39
  ResourceSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku
41
- VirtualNetworkRule = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::VirtualNetworkRule
40
+ CognitiveServicesAccountApiProperties = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountApiProperties
42
41
  ResourceSkusResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult
43
42
  MetricName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::MetricName
44
43
  SkuTier = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier
45
44
  ProvisioningState = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState
46
- NetworkRuleBypassOptions = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleBypassOptions
47
45
  NetworkRuleAction = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleAction
48
46
  KeyName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName
49
47
  UnitType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType
@@ -56,7 +54,7 @@ module Azure::CognitiveServices::Profiles::Latest
56
54
  # CognitiveServicesManagementClass
57
55
  #
58
56
  class CognitiveServicesManagementClass
59
- attr_reader :accounts, :resource_skus, :operations, :check_sku_availability, :configurable, :base_url, :options, :model_classes
57
+ attr_reader :accounts, :resource_skus, :operations, :configurable, :base_url, :options, :model_classes
60
58
 
61
59
  def initialize(options = {})
62
60
  if options.is_a?(Hash) && options.length == 0
@@ -79,7 +77,6 @@ module Azure::CognitiveServices::Profiles::Latest
79
77
  @accounts = @client_0.accounts
80
78
  @resource_skus = @client_0.resource_skus
81
79
  @operations = @client_0.operations
82
- @check_sku_availability = @client_0.check_sku_availability
83
80
 
84
81
  @model_classes = ModelClasses.new
85
82
  end
@@ -106,20 +103,20 @@ module Azure::CognitiveServices::Profiles::Latest
106
103
  def error_body
107
104
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody
108
105
  end
109
- def cognitive_services_account_create_parameters
110
- Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountCreateParameters
106
+ def ip_rule
107
+ Azure::CognitiveServices::Mgmt::V2017_04_18::Models::IpRule
111
108
  end
112
109
  def error
113
110
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error
114
111
  end
115
- def ip_rule
116
- Azure::CognitiveServices::Mgmt::V2017_04_18::Models::IpRule
112
+ def network_rule_set
113
+ Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleSet
117
114
  end
118
115
  def operation_display_info
119
116
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationDisplayInfo
120
117
  end
121
- def network_rule_set
122
- Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleSet
118
+ def cognitive_services_account_properties
119
+ Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountProperties
123
120
  end
124
121
  def operation_entity
125
122
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntity
@@ -148,8 +145,8 @@ module Azure::CognitiveServices::Profiles::Latest
148
145
  def check_sku_availability_result_list
149
146
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResultList
150
147
  end
151
- def cognitive_services_account_update_parameters
152
- Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountUpdateParameters
148
+ def virtual_network_rule
149
+ Azure::CognitiveServices::Mgmt::V2017_04_18::Models::VirtualNetworkRule
153
150
  end
154
151
  def check_domain_availability_parameter
155
152
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckDomainAvailabilityParameter
@@ -178,8 +175,8 @@ module Azure::CognitiveServices::Profiles::Latest
178
175
  def resource_sku
179
176
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku
180
177
  end
181
- def virtual_network_rule
182
- Azure::CognitiveServices::Mgmt::V2017_04_18::Models::VirtualNetworkRule
178
+ def cognitive_services_account_api_properties
179
+ Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountApiProperties
183
180
  end
184
181
  def resource_skus_result
185
182
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult
@@ -193,9 +190,6 @@ module Azure::CognitiveServices::Profiles::Latest
193
190
  def provisioning_state
194
191
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState
195
192
  end
196
- def network_rule_bypass_options
197
- Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleBypassOptions
198
- end
199
193
  def network_rule_action
200
194
  Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleAction
201
195
  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::CognitiveServices::Mgmt
6
- VERSION = '0.18.3'
6
+ VERSION = '0.19.0'
7
7
  end