azure_mgmt_cognitive_services 0.18.1 → 0.19.2

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 +4 -4
  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 +40 -12
  5. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +178 -103
  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 -31
  11. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_api_properties.rb +90 -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_properties.rb +80 -0
  24. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_service_connection_status.rb +18 -0
  25. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource.rb +74 -0
  26. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_list_result.rb +55 -0
  27. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_properties.rb +100 -0
  28. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_service_connection_state.rb +73 -0
  29. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/proxy_resource.rb +63 -0
  30. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/public_network_access.rb +16 -0
  31. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource.rb +83 -0
  32. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_capability.rb +57 -0
  33. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/tracked_resource.rb +92 -0
  34. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/user_assigned_identity.rb +58 -0
  35. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/user_owned_storage.rb +46 -0
  36. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb +69 -0
  37. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb +5 -0
  38. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_endpoint_connections.rb +373 -0
  39. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_link_resources.rb +133 -0
  40. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/resource_skus.rb +6 -0
  41. data/lib/azure_mgmt_cognitive_services.rb +1 -1
  42. data/lib/profiles/latest/modules/cognitiveservices_profile_module.rb +146 -36
  43. data/lib/version.rb +1 -1
  44. metadata +36 -8
  45. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb +0 -138
  46. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +0 -108
  47. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb +0 -70
@@ -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,16 +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
31
+ # @return [CognitiveServicesAccountProperties] Properties of Cognitive
32
+ # Services account.
33
+ attr_accessor :properties
41
34
 
42
35
  # @return [Sku] The SKU of Cognitive Services account.
43
36
  attr_accessor :sku
@@ -52,6 +45,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
52
45
  # @return [String] Resource type
53
46
  attr_accessor :type
54
47
 
48
+ # @return [Identity] The identity of Cognitive Services account.
49
+ attr_accessor :identity
50
+
55
51
 
56
52
  #
57
53
  # Mapper for CognitiveServicesAccount class as Ruby Hash.
@@ -69,6 +65,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
69
65
  etag: {
70
66
  client_side_validation: true,
71
67
  required: false,
68
+ read_only: true,
72
69
  serialized_name: 'etag',
73
70
  type: {
74
71
  name: 'String'
@@ -108,29 +105,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
108
105
  name: 'String'
109
106
  }
110
107
  },
111
- provisioning_state: {
108
+ properties: {
112
109
  client_side_validation: true,
113
110
  required: false,
114
- read_only: true,
115
- serialized_name: 'properties.provisioningState',
111
+ serialized_name: 'properties',
116
112
  type: {
117
- name: 'String'
118
- }
119
- },
120
- endpoint: {
121
- client_side_validation: true,
122
- required: false,
123
- serialized_name: 'properties.endpoint',
124
- type: {
125
- name: 'String'
126
- }
127
- },
128
- internal_id: {
129
- client_side_validation: true,
130
- required: false,
131
- serialized_name: 'properties.internalId',
132
- type: {
133
- name: 'String'
113
+ name: 'Composite',
114
+ class_name: 'CognitiveServicesAccountProperties'
134
115
  }
135
116
  },
136
117
  sku: {
@@ -166,6 +147,15 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
166
147
  type: {
167
148
  name: 'String'
168
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
+ }
169
159
  }
170
160
  }
171
161
  }
@@ -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,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
@@ -0,0 +1,61 @@
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 to configure Encryption
10
+ #
11
+ class Encryption
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [KeyVaultProperties] Properties of KeyVault
16
+ attr_accessor :key_vault_properties
17
+
18
+ # @return [KeySource] Enumerates the possible value of keySource for
19
+ # Encryption. Possible values include: 'Microsoft.CognitiveServices',
20
+ # 'Microsoft.KeyVault'. Default value: 'Microsoft.KeyVault' .
21
+ attr_accessor :key_source
22
+
23
+
24
+ #
25
+ # Mapper for Encryption class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'Encryption',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'Encryption',
36
+ model_properties: {
37
+ key_vault_properties: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'keyVaultProperties',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'KeyVaultProperties'
44
+ }
45
+ },
46
+ key_source: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'keySource',
50
+ default_value: 'Microsoft.KeyVault',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,95 @@
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
+ # Managed service identity.
10
+ #
11
+ class Identity
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [IdentityType] Type of managed service identity. Possible
16
+ # values include: 'None', 'SystemAssigned', 'UserAssigned'
17
+ attr_accessor :type
18
+
19
+ # @return [String] Tenant of managed service identity.
20
+ attr_accessor :tenant_id
21
+
22
+ # @return [String] Principal Id of managed service identity.
23
+ attr_accessor :principal_id
24
+
25
+ # @return [Hash{String => UserAssignedIdentity}] The list of user
26
+ # assigned identities associated with the resource. The user identity
27
+ # dictionary key references will be ARM resource ids in the form:
28
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
29
+ attr_accessor :user_assigned_identities
30
+
31
+
32
+ #
33
+ # Mapper for Identity class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'Identity',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'Identity',
44
+ model_properties: {
45
+ type: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'type',
49
+ type: {
50
+ name: 'Enum',
51
+ module: 'IdentityType'
52
+ }
53
+ },
54
+ tenant_id: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'tenantId',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ principal_id: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'principalId',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ user_assigned_identities: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'userAssignedIdentities',
76
+ type: {
77
+ name: 'Dictionary',
78
+ value: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'UserAssignedIdentityElementType',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'UserAssignedIdentity'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end