azure_mgmt_cognitive_services 0.10.0 → 0.11.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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_cognitive_services.rb +17 -8
  3. data/lib/generated/azure_mgmt_cognitive_services/accounts.rb +414 -0
  4. data/lib/generated/azure_mgmt_cognitive_services/check_sku_availability.rb +148 -0
  5. data/lib/generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb +61 -297
  6. data/lib/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +18 -3
  7. data/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb +77 -0
  8. data/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb +102 -0
  9. data/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result_list.rb +54 -0
  10. data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb +14 -3
  11. data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +9 -7
  12. data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb +2 -1
  13. data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb +2 -1
  14. data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb +43 -1
  15. data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb +3 -2
  16. data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb +4 -4
  17. data/lib/generated/azure_mgmt_cognitive_services/models/error.rb +4 -4
  18. data/lib/generated/azure_mgmt_cognitive_services/models/error_body.rb +3 -3
  19. data/lib/generated/azure_mgmt_cognitive_services/models/key_name.rb +1 -1
  20. data/lib/generated/azure_mgmt_cognitive_services/models/kind.rb +2 -1
  21. data/lib/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb +76 -0
  22. data/lib/generated/azure_mgmt_cognitive_services/models/operation_entity.rb +77 -0
  23. data/lib/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb +94 -0
  24. data/lib/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb +1 -1
  25. data/lib/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb +3 -2
  26. data/lib/generated/azure_mgmt_cognitive_services/models/sku.rb +2 -1
  27. data/lib/generated/azure_mgmt_cognitive_services/models/sku_name.rb +1 -1
  28. data/lib/generated/azure_mgmt_cognitive_services/models/sku_tier.rb +1 -1
  29. data/lib/generated/azure_mgmt_cognitive_services/module_definition.rb +1 -1
  30. data/lib/generated/azure_mgmt_cognitive_services/operations.rb +213 -0
  31. data/lib/generated/azure_mgmt_cognitive_services/version.rb +2 -2
  32. metadata +13 -4
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -21,9 +21,12 @@ module Azure::ARM::CognitiveServices
21
21
  attr_accessor :subscription_id
22
22
 
23
23
  # @return [String] Version of the API to be used with the client request.
24
- # Current version is 2016-02-01-preview
24
+ # Current version is 2017-04-18
25
25
  attr_reader :api_version
26
26
 
27
+ # @return [String] Resource location.
28
+ attr_accessor :location
29
+
27
30
  # @return [String] Gets or sets the preferred language for the response.
28
31
  attr_accessor :accept_language
29
32
 
@@ -38,6 +41,15 @@ module Azure::ARM::CognitiveServices
38
41
  # @return [CognitiveServicesAccounts] cognitive_services_accounts
39
42
  attr_reader :cognitive_services_accounts
40
43
 
44
+ # @return [Accounts] accounts
45
+ attr_reader :accounts
46
+
47
+ # @return [Operations] operations
48
+ attr_reader :operations
49
+
50
+ # @return [CheckSkuAvailability] check_sku_availability
51
+ attr_reader :check_sku_availability
52
+
41
53
  #
42
54
  # Creates initializes a new instance of the CognitiveServicesManagementClient class.
43
55
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@@ -52,7 +64,10 @@ module Azure::ARM::CognitiveServices
52
64
  @credentials = credentials
53
65
 
54
66
  @cognitive_services_accounts = CognitiveServicesAccounts.new(self)
55
- @api_version = '2016-02-01-preview'
67
+ @accounts = Accounts.new(self)
68
+ @operations = Operations.new(self)
69
+ @check_sku_availability = CheckSkuAvailability.new(self)
70
+ @api_version = '2017-04-18'
56
71
  @accept_language = 'en-US'
57
72
  @long_running_operation_retry_timeout = 30
58
73
  @generate_client_request_id = true
@@ -0,0 +1,77 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::CognitiveServices
7
+ module Models
8
+ #
9
+ # Check SKU availability parameter.
10
+ #
11
+ class CheckSkuAvailabilityParameter
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<SkuName>] The SKU of the resource.
17
+ attr_accessor :skus
18
+
19
+ # @return [Kind] The Kind of the resource. Possible values include:
20
+ # 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
21
+ # 'Bing.SpellCheck', 'ComputerVision', 'ContentModerator',
22
+ # 'CustomSpeech', 'Emotion', 'Face', 'LUIS', 'Recommendations',
23
+ # 'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics',
24
+ # 'TextTranslation', 'WebLM'
25
+ attr_accessor :kind
26
+
27
+ # @return [String] The Type of the resource.
28
+ attr_accessor :type
29
+
30
+
31
+ #
32
+ # Mapper for CheckSkuAvailabilityParameter class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'CheckSkuAvailabilityParameter',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'CheckSkuAvailabilityParameter',
42
+ model_properties: {
43
+ skus: {
44
+ required: true,
45
+ serialized_name: 'skus',
46
+ type: {
47
+ name: 'Sequence',
48
+ element: {
49
+ required: false,
50
+ serialized_name: 'SkuNameElementType',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ }
55
+ }
56
+ },
57
+ kind: {
58
+ required: true,
59
+ serialized_name: 'kind',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ type: {
65
+ required: true,
66
+ serialized_name: 'type',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,102 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::CognitiveServices
7
+ module Models
8
+ #
9
+ # Check SKU availability result.
10
+ #
11
+ class CheckSkuAvailabilityResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Kind] The Kind of the resource. Possible values include:
17
+ # 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
18
+ # 'Bing.SpellCheck', 'ComputerVision', 'ContentModerator',
19
+ # 'CustomSpeech', 'Emotion', 'Face', 'LUIS', 'Recommendations',
20
+ # 'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics',
21
+ # 'TextTranslation', 'WebLM'
22
+ attr_accessor :kind
23
+
24
+ # @return [String] The Type of the resource.
25
+ attr_accessor :type
26
+
27
+ # @return [SkuName] The SKU of Cognitive Services account. Possible
28
+ # values include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4',
29
+ # 'S5', 'S6'
30
+ attr_accessor :sku_name
31
+
32
+ # @return [Boolean] Indicates the given SKU is available or not.
33
+ attr_accessor :sku_available
34
+
35
+ # @return [String] Reason why the SKU is not available.
36
+ attr_accessor :reason
37
+
38
+ # @return [String] Additional error message.
39
+ attr_accessor :message
40
+
41
+
42
+ #
43
+ # Mapper for CheckSkuAvailabilityResult class as Ruby Hash.
44
+ # This will be used for serialization/deserialization.
45
+ #
46
+ def self.mapper()
47
+ {
48
+ required: false,
49
+ serialized_name: 'CheckSkuAvailabilityResult',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'CheckSkuAvailabilityResult',
53
+ model_properties: {
54
+ kind: {
55
+ required: false,
56
+ serialized_name: 'kind',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ type: {
62
+ required: false,
63
+ serialized_name: 'type',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ sku_name: {
69
+ required: false,
70
+ serialized_name: 'skuName',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ sku_available: {
76
+ required: false,
77
+ serialized_name: 'skuAvailable',
78
+ type: {
79
+ name: 'Boolean'
80
+ }
81
+ },
82
+ reason: {
83
+ required: false,
84
+ serialized_name: 'reason',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ message: {
90
+ required: false,
91
+ serialized_name: 'message',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::CognitiveServices
7
+ module Models
8
+ #
9
+ # Check SKU availability result list.
10
+ #
11
+ class CheckSkuAvailabilityResultList
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<CheckSkuAvailabilityResult>] Check SKU availability
17
+ # result list.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for CheckSkuAvailabilityResultList class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'CheckSkuAvailabilityResultList',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'CheckSkuAvailabilityResultList',
32
+ model_properties: {
33
+ value: {
34
+ required: false,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ required: false,
40
+ serialized_name: 'CheckSkuAvailabilityResultElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'CheckSkuAvailabilityResult'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -13,6 +13,7 @@ module Azure::ARM::CognitiveServices
13
13
 
14
14
  include MsRestAzure
15
15
 
16
+ include MsRest::JSONable
16
17
  # @return [String] Entity Tag
17
18
  attr_accessor :etag
18
19
 
@@ -33,10 +34,13 @@ module Azure::ARM::CognitiveServices
33
34
  # 'Creating', 'ResolvingDNS', 'Succeeded', 'Failed'
34
35
  attr_accessor :provisioning_state
35
36
 
36
- # @return [String] Endpoint of the created account
37
+ # @return [String] Endpoint of the created account.
37
38
  attr_accessor :endpoint
38
39
 
39
- # @return [Sku]
40
+ # @return [String] The internal identifier.
41
+ attr_accessor :internal_id
42
+
43
+ # @return [Sku] The SKU of Cognitive Services account.
40
44
  attr_accessor :sku
41
45
 
42
46
  # @return [Hash{String => String}] Gets or sets a list of key value pairs
@@ -113,6 +117,13 @@ module Azure::ARM::CognitiveServices
113
117
  name: 'String'
114
118
  }
115
119
  },
120
+ internal_id: {
121
+ required: false,
122
+ serialized_name: 'properties.internalId',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ },
116
127
  sku: {
117
128
  required: false,
118
129
  serialized_name: 'sku',
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,13 +12,14 @@ module Azure::ARM::CognitiveServices
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Sku]
15
+ include MsRest::JSONable
16
+ # @return [Sku] Required. Gets or sets the SKU of the resource.
16
17
  attr_accessor :sku
17
18
 
18
- # @return [Kind] Required. Indicates the type of cognitive service
19
- # account. Possible values include: 'Academic', 'Bing.Autosuggest',
20
- # 'Bing.Search', 'Bing.Speech', 'Bing.SpellCheck', 'ComputerVision',
21
- # 'ContentModerator', 'Emotion', 'Face', 'LUIS', 'Recommendations',
19
+ # @return [Kind] Required. Gets or sets the Kind of the resource.
20
+ # Possible values include: 'Academic', 'Bing.Autosuggest', 'Bing.Search',
21
+ # 'Bing.Speech', 'Bing.SpellCheck', 'ComputerVision', 'ContentModerator',
22
+ # 'CustomSpeech', 'Emotion', 'Face', 'LUIS', 'Recommendations',
22
23
  # 'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics',
23
24
  # 'TextTranslation', 'WebLM'
24
25
  attr_accessor :kind
@@ -37,7 +38,8 @@ module Azure::ARM::CognitiveServices
37
38
  # than 128 characters and value no greater than 256 characters.
38
39
  attr_accessor :tags
39
40
 
40
- # @return Must exist in the request. Must not be null.
41
+ # @return Must exist in the request. Must be an empty object. Must not be
42
+ # null.
41
43
  attr_accessor :properties
42
44
 
43
45
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::CognitiveServices
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<CognitiveServicesResourceAndSku>] Gets the list of
16
17
  # Cognitive Services accounts and their properties.
17
18
  attr_accessor :value
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::CognitiveServices
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] Gets the value of key 1.
16
17
  attr_accessor :key1
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,10 +12,45 @@ module Azure::ARM::CognitiveServices
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
16
+ # @return [String] The link used to get the next page of accounts.
17
+ attr_accessor :next_link
18
+
15
19
  # @return [Array<CognitiveServicesAccount>] Gets the list of Cognitive
16
20
  # Services accounts and their properties.
17
21
  attr_accessor :value
18
22
 
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<CognitiveServicesAccount>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [CognitiveServicesAccountListResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
19
54
 
20
55
  #
21
56
  # Mapper for CognitiveServicesAccountListResult class as Ruby Hash.
@@ -29,6 +64,13 @@ module Azure::ARM::CognitiveServices
29
64
  name: 'Composite',
30
65
  class_name: 'CognitiveServicesAccountListResult',
31
66
  model_properties: {
67
+ next_link: {
68
+ required: false,
69
+ serialized_name: 'nextLink',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
32
74
  value: {
33
75
  required: false,
34
76
  read_only: true,