azure_mgmt_cognitive_services 0.18.2 → 0.19.3

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.
Files changed (47) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb +18 -0
  3. data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +1 -1
  4. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services.rb +42 -13
  5. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +178 -110
  6. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +235 -7
  7. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/azure_entity_resource.rb +75 -0
  8. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_parameter.rb +57 -0
  9. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_result.rb +79 -0
  10. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb +21 -43
  11. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_api_properties.rb +149 -0
  12. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_properties.rb +201 -0
  13. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/encryption.rb +61 -0
  14. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/identity.rb +95 -0
  15. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/identity_type.rb +17 -0
  16. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/ip_rule.rb +49 -0
  17. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/key_source.rb +16 -0
  18. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/key_vault_properties.rb +68 -0
  19. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_action.rb +16 -0
  20. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_set.rb +89 -0
  21. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint.rb +47 -0
  22. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection.rb +74 -0
  23. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection_list_result.rb +56 -0
  24. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection_properties.rb +80 -0
  25. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_service_connection_status.rb +18 -0
  26. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource.rb +74 -0
  27. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_list_result.rb +55 -0
  28. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_properties.rb +100 -0
  29. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_service_connection_state.rb +73 -0
  30. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/proxy_resource.rb +63 -0
  31. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/public_network_access.rb +16 -0
  32. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource.rb +83 -0
  33. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_capability.rb +57 -0
  34. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/{cognitive_services_account_update_parameters.rb → tracked_resource.rb} +34 -24
  35. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/user_assigned_identity.rb +58 -0
  36. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/user_owned_storage.rb +46 -0
  37. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb +69 -0
  38. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb +5 -0
  39. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_endpoint_connections.rb +481 -0
  40. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_link_resources.rb +133 -0
  41. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/resource_skus.rb +6 -0
  42. data/lib/azure_mgmt_cognitive_services.rb +1 -1
  43. data/lib/profiles/latest/modules/cognitiveservices_profile_module.rb +153 -39
  44. data/lib/version.rb +1 -1
  45. metadata +37 -8
  46. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb +0 -138
  47. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +0 -108
@@ -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,20 +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
31
+ # @return [CognitiveServicesAccountProperties] Properties of Cognitive
32
+ # Services account.
33
+ attr_accessor :properties
45
34
 
46
35
  # @return [Sku] The SKU of Cognitive Services account.
47
36
  attr_accessor :sku
@@ -56,6 +45,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
56
45
  # @return [String] Resource type
57
46
  attr_accessor :type
58
47
 
48
+ # @return [Identity] The identity of Cognitive Services account.
49
+ attr_accessor :identity
50
+
59
51
 
60
52
  #
61
53
  # Mapper for CognitiveServicesAccount class as Ruby Hash.
@@ -73,6 +65,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
73
65
  etag: {
74
66
  client_side_validation: true,
75
67
  required: false,
68
+ read_only: true,
76
69
  serialized_name: 'etag',
77
70
  type: {
78
71
  name: 'String'
@@ -112,37 +105,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
112
105
  name: 'String'
113
106
  }
114
107
  },
115
- provisioning_state: {
116
- client_side_validation: true,
117
- required: false,
118
- read_only: true,
119
- serialized_name: 'properties.provisioningState',
120
- type: {
121
- name: 'String'
122
- }
123
- },
124
- endpoint: {
125
- client_side_validation: true,
126
- required: false,
127
- serialized_name: 'properties.endpoint',
128
- type: {
129
- name: 'String'
130
- }
131
- },
132
- internal_id: {
133
- client_side_validation: true,
134
- required: false,
135
- serialized_name: 'properties.internalId',
136
- type: {
137
- name: 'String'
138
- }
139
- },
140
- custom_sub_domain_name: {
108
+ properties: {
141
109
  client_side_validation: true,
142
110
  required: false,
143
- serialized_name: 'properties.customSubDomainName',
111
+ serialized_name: 'properties',
144
112
  type: {
145
- name: 'String'
113
+ name: 'Composite',
114
+ class_name: 'CognitiveServicesAccountProperties'
146
115
  }
147
116
  },
148
117
  sku: {
@@ -178,6 +147,15 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
178
147
  type: {
179
148
  name: 'String'
180
149
  }
150
+ },
151
+ identity: {
152
+ client_side_validation: true,
153
+ required: false,
154
+ serialized_name: 'identity',
155
+ type: {
156
+ name: 'Composite',
157
+ class_name: 'Identity'
158
+ }
181
159
  }
182
160
  }
183
161
  }
@@ -0,0 +1,149 @@
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
+ # @return [String] (Metrics Advisor Only) The Azure AD Client Id
31
+ # (Application Id).
32
+ attr_accessor :aad_client_id
33
+
34
+ # @return [String] (Metrics Advisor Only) The Azure AD Tenant Id.
35
+ attr_accessor :aad_tenant_id
36
+
37
+ # @return [String] (Metrics Advisor Only) The super user of Metrics
38
+ # Advisor.
39
+ attr_accessor :super_user
40
+
41
+ # @return [String] (Metrics Advisor Only) The website name of Metrics
42
+ # Advisor.
43
+ attr_accessor :website_name
44
+
45
+
46
+ #
47
+ # Mapper for CognitiveServicesAccountApiProperties class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'CognitiveServicesAccountApiProperties',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'CognitiveServicesAccountApiProperties',
58
+ model_properties: {
59
+ qna_runtime_endpoint: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'qnaRuntimeEndpoint',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ statistics_enabled: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'statisticsEnabled',
71
+ type: {
72
+ name: 'Boolean'
73
+ }
74
+ },
75
+ event_hub_connection_string: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'eventHubConnectionString',
79
+ constraints: {
80
+ MaxLength: 1000,
81
+ Pattern: '^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$'
82
+ },
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ storage_account_connection_string: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'storageAccountConnectionString',
91
+ constraints: {
92
+ MaxLength: 1000,
93
+ Pattern: '^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$'
94
+ },
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ aad_client_id: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ serialized_name: 'aadClientId',
103
+ constraints: {
104
+ MaxLength: 500
105
+ },
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ aad_tenant_id: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'aadTenantId',
114
+ constraints: {
115
+ MaxLength: 500
116
+ },
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ },
121
+ super_user: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ serialized_name: 'superUser',
125
+ constraints: {
126
+ MaxLength: 500
127
+ },
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ website_name: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ serialized_name: 'websiteName',
136
+ constraints: {
137
+ MaxLength: 500
138
+ },
139
+ type: {
140
+ name: 'String'
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ end
147
+ end
148
+ end
149
+ end
@@ -0,0 +1,201 @@
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 [Array<SkuCapability>] Gets the capabilities of the cognitive
27
+ # services account. Each item indicates the capability of a specific
28
+ # feature. The values are read-only and for reference only.
29
+ attr_accessor :capabilities
30
+
31
+ # @return [String] Optional subdomain name used for token-based
32
+ # authentication.
33
+ attr_accessor :custom_sub_domain_name
34
+
35
+ # @return [NetworkRuleSet] A collection of rules governing the
36
+ # accessibility from specific network locations.
37
+ attr_accessor :network_acls
38
+
39
+ # @return [Encryption] The encryption properties for this resource.
40
+ attr_accessor :encryption
41
+
42
+ # @return [Array<UserOwnedStorage>] The storage accounts for this
43
+ # resource.
44
+ attr_accessor :user_owned_storage
45
+
46
+ # @return [Array<PrivateEndpointConnection>] The private endpoint
47
+ # connection associated with the Cognitive Services account.
48
+ attr_accessor :private_endpoint_connections
49
+
50
+ # @return [PublicNetworkAccess] Whether or not public endpoint access is
51
+ # allowed for this account. Value is optional but if passed in, must be
52
+ # 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'
53
+ attr_accessor :public_network_access
54
+
55
+ # @return [CognitiveServicesAccountApiProperties] The api properties for
56
+ # special APIs.
57
+ attr_accessor :api_properties
58
+
59
+
60
+ #
61
+ # Mapper for CognitiveServicesAccountProperties class as Ruby Hash.
62
+ # This will be used for serialization/deserialization.
63
+ #
64
+ def self.mapper()
65
+ {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'CognitiveServicesAccountProperties',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'CognitiveServicesAccountProperties',
72
+ model_properties: {
73
+ provisioning_state: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'provisioningState',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ endpoint: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ read_only: true,
86
+ serialized_name: 'endpoint',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ internal_id: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ read_only: true,
95
+ serialized_name: 'internalId',
96
+ type: {
97
+ name: 'String'
98
+ }
99
+ },
100
+ capabilities: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'capabilities',
105
+ type: {
106
+ name: 'Sequence',
107
+ element: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'SkuCapabilityElementType',
111
+ type: {
112
+ name: 'Composite',
113
+ class_name: 'SkuCapability'
114
+ }
115
+ }
116
+ }
117
+ },
118
+ custom_sub_domain_name: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'customSubDomainName',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ network_acls: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ serialized_name: 'networkAcls',
130
+ type: {
131
+ name: 'Composite',
132
+ class_name: 'NetworkRuleSet'
133
+ }
134
+ },
135
+ encryption: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ serialized_name: 'encryption',
139
+ type: {
140
+ name: 'Composite',
141
+ class_name: 'Encryption'
142
+ }
143
+ },
144
+ user_owned_storage: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ serialized_name: 'userOwnedStorage',
148
+ type: {
149
+ name: 'Sequence',
150
+ element: {
151
+ client_side_validation: true,
152
+ required: false,
153
+ serialized_name: 'UserOwnedStorageElementType',
154
+ type: {
155
+ name: 'Composite',
156
+ class_name: 'UserOwnedStorage'
157
+ }
158
+ }
159
+ }
160
+ },
161
+ private_endpoint_connections: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ serialized_name: 'privateEndpointConnections',
165
+ type: {
166
+ name: 'Sequence',
167
+ element: {
168
+ client_side_validation: true,
169
+ required: false,
170
+ serialized_name: 'PrivateEndpointConnectionElementType',
171
+ type: {
172
+ name: 'Composite',
173
+ class_name: 'PrivateEndpointConnection'
174
+ }
175
+ }
176
+ }
177
+ },
178
+ public_network_access: {
179
+ client_side_validation: true,
180
+ required: false,
181
+ serialized_name: 'publicNetworkAccess',
182
+ type: {
183
+ name: 'String'
184
+ }
185
+ },
186
+ api_properties: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ serialized_name: 'apiProperties',
190
+ type: {
191
+ name: 'Composite',
192
+ class_name: 'CognitiveServicesAccountApiProperties'
193
+ }
194
+ }
195
+ }
196
+ }
197
+ }
198
+ end
199
+ end
200
+ end
201
+ end