azure_cognitiveservices_entitysearch 0.16.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 (59) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_entitysearch.rb +74 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/entities_operations.rb +573 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/entity_search_client.rb +127 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/airport.rb +188 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/answer.rb +89 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/answer_type.rb +16 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/civic_structure.rb +164 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_attribution.rb +76 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_contractual_rule.rb +63 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_license_attribution.rb +93 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_link_attribution.rb +104 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_media_attribution.rb +82 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/contractual_rules_text_attribution.rb +96 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/creative_work.rb +190 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entertainment_business.rb +209 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entities.rb +142 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entities_entity_presentation_info.rb +85 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entity_query_scenario.rb +19 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entity_scenario.rb +17 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/entity_type.rb +63 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error.rb +116 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error_code.rb +20 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error_response.rb +109 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/error_sub_code.rb +25 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/food_establishment.rb +209 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/hotel.rb +241 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/identifiable.rb +62 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/image_object.rb +229 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/intangible.rb +145 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/license.rb +180 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/local_business.rb +221 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/lodging_business.rb +209 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/media_object.rb +230 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/movie_theater.rb +221 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/organization.rb +144 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/place.rb +170 -0
  39. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/places.rb +119 -0
  40. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/postal_address.rb +285 -0
  41. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/query_context.rb +114 -0
  42. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/response.rb +96 -0
  43. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/response_base.rb +74 -0
  44. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/response_format.rb +16 -0
  45. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/restaurant.rb +265 -0
  46. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/safe_search.rb +17 -0
  47. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/search_response.rb +134 -0
  48. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/search_results_answer.rb +102 -0
  49. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/structured_value.rb +145 -0
  50. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/thing.rb +167 -0
  51. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/models/tourist_attraction.rb +164 -0
  52. data/lib/1.0/generated/azure_cognitiveservices_entitysearch/module_definition.rb +9 -0
  53. data/lib/azure_cognitiveservices_entitysearch.rb +6 -0
  54. data/lib/module_definition.rb +7 -0
  55. data/lib/profiles/latest/entitysearch_latest_profile_client.rb +38 -0
  56. data/lib/profiles/latest/entitysearch_module_definition.rb +8 -0
  57. data/lib/profiles/latest/modules/entitysearch_profile_module.rb +243 -0
  58. data/lib/version.rb +7 -0
  59. metadata +176 -0
@@ -0,0 +1,76 @@
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::EntitySearch::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class ContractualRulesAttribution < ContractualRulesContractualRule
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "ContractualRules/Attribution"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [Boolean] A Boolean value that determines whether the contents
24
+ # of the rule must be placed in close proximity to the field that the
25
+ # rule applies to. If true, the contents must be placed in close
26
+ # proximity. If false, or this field does not exist, the contents may be
27
+ # placed at the caller's discretion.
28
+ attr_accessor :must_be_close_to_content
29
+
30
+
31
+ #
32
+ # Mapper for ContractualRulesAttribution 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: 'ContractualRules/Attribution',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'ContractualRulesAttribution',
43
+ model_properties: {
44
+ target_property_name: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'targetPropertyName',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ _type: {
54
+ client_side_validation: true,
55
+ required: true,
56
+ serialized_name: '_type',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ must_be_close_to_content: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'mustBeCloseToContent',
66
+ type: {
67
+ name: 'Boolean'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,63 @@
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::EntitySearch::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class ContractualRulesContractualRule
13
+
14
+ include MsRestAzure
15
+
16
+ @@discriminatorMap = Hash.new
17
+ @@discriminatorMap["ContractualRules/Attribution"] = "ContractualRulesAttribution"
18
+ @@discriminatorMap["ContractualRules/LicenseAttribution"] = "ContractualRulesLicenseAttribution"
19
+ @@discriminatorMap["ContractualRules/LinkAttribution"] = "ContractualRulesLinkAttribution"
20
+ @@discriminatorMap["ContractualRules/MediaAttribution"] = "ContractualRulesMediaAttribution"
21
+ @@discriminatorMap["ContractualRules/TextAttribution"] = "ContractualRulesTextAttribution"
22
+
23
+ def initialize
24
+ @_type = "ContractualRules/ContractualRule"
25
+ end
26
+
27
+ attr_accessor :_type
28
+
29
+ # @return [String] The name of the field that the rule applies to.
30
+ attr_accessor :target_property_name
31
+
32
+
33
+ #
34
+ # Mapper for ContractualRulesContractualRule class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'ContractualRules/ContractualRule',
42
+ type: {
43
+ name: 'Composite',
44
+ polymorphic_discriminator: '_type',
45
+ uber_parent: 'ContractualRulesContractualRule',
46
+ class_name: 'ContractualRulesContractualRule',
47
+ model_properties: {
48
+ target_property_name: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'targetPropertyName',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,93 @@
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::EntitySearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a contractual rule for license attribution.
10
+ #
11
+ class ContractualRulesLicenseAttribution < ContractualRulesAttribution
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ContractualRules/LicenseAttribution"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [License] The license under which the content may be used.
23
+ attr_accessor :license
24
+
25
+ # @return [String] The license to display next to the targeted field.
26
+ attr_accessor :license_notice
27
+
28
+
29
+ #
30
+ # Mapper for ContractualRulesLicenseAttribution class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'ContractualRules/LicenseAttribution',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'ContractualRulesLicenseAttribution',
41
+ model_properties: {
42
+ target_property_name: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'targetPropertyName',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ _type: {
52
+ client_side_validation: true,
53
+ required: true,
54
+ serialized_name: '_type',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ must_be_close_to_content: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'mustBeCloseToContent',
64
+ type: {
65
+ name: 'Boolean'
66
+ }
67
+ },
68
+ license: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'license',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'License'
76
+ }
77
+ },
78
+ license_notice: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ read_only: true,
82
+ serialized_name: 'licenseNotice',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,104 @@
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::EntitySearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a contractual rule for link attribution.
10
+ #
11
+ class ContractualRulesLinkAttribution < ContractualRulesAttribution
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ContractualRules/LinkAttribution"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] The attribution text.
23
+ attr_accessor :text
24
+
25
+ # @return [String] The URL to the provider's website. Use text and URL to
26
+ # create the hyperlink.
27
+ attr_accessor :url
28
+
29
+ # @return [Boolean] Indicates whether this provider's attribution is
30
+ # optional.
31
+ attr_accessor :optional_for_list_display
32
+
33
+
34
+ #
35
+ # Mapper for ContractualRulesLinkAttribution class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'ContractualRules/LinkAttribution',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'ContractualRulesLinkAttribution',
46
+ model_properties: {
47
+ target_property_name: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'targetPropertyName',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ _type: {
57
+ client_side_validation: true,
58
+ required: true,
59
+ serialized_name: '_type',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ must_be_close_to_content: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'mustBeCloseToContent',
69
+ type: {
70
+ name: 'Boolean'
71
+ }
72
+ },
73
+ text: {
74
+ client_side_validation: true,
75
+ required: true,
76
+ serialized_name: 'text',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ url: {
82
+ client_side_validation: true,
83
+ required: true,
84
+ serialized_name: 'url',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ optional_for_list_display: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'optionalForListDisplay',
94
+ type: {
95
+ name: 'Boolean'
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,82 @@
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::EntitySearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a contractual rule for media attribution.
10
+ #
11
+ class ContractualRulesMediaAttribution < ContractualRulesAttribution
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ContractualRules/MediaAttribution"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] The URL that you use to create of hyperlink of the
23
+ # media content. For example, if the target is an image, you would use
24
+ # the URL to make the image clickable.
25
+ attr_accessor :url
26
+
27
+
28
+ #
29
+ # Mapper for ContractualRulesMediaAttribution class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'ContractualRules/MediaAttribution',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ContractualRulesMediaAttribution',
40
+ model_properties: {
41
+ target_property_name: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'targetPropertyName',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ _type: {
51
+ client_side_validation: true,
52
+ required: true,
53
+ serialized_name: '_type',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ must_be_close_to_content: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'mustBeCloseToContent',
63
+ type: {
64
+ name: 'Boolean'
65
+ }
66
+ },
67
+ url: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'url',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,96 @@
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::EntitySearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a contractual rule for text attribution.
10
+ #
11
+ class ContractualRulesTextAttribution < ContractualRulesAttribution
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ContractualRules/TextAttribution"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] The attribution text. Text attribution applies to the
23
+ # entity as a whole and should be displayed immediately following the
24
+ # entity presentation. If there are multiple text or link attribution
25
+ # rules that do not specify a target, you should concatenate them and
26
+ # display them using a "Data from:" label.
27
+ attr_accessor :text
28
+
29
+ # @return [Boolean] Indicates whether this provider's attribution is
30
+ # optional.
31
+ attr_accessor :optional_for_list_display
32
+
33
+
34
+ #
35
+ # Mapper for ContractualRulesTextAttribution class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'ContractualRules/TextAttribution',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'ContractualRulesTextAttribution',
46
+ model_properties: {
47
+ target_property_name: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'targetPropertyName',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ _type: {
57
+ client_side_validation: true,
58
+ required: true,
59
+ serialized_name: '_type',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ must_be_close_to_content: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'mustBeCloseToContent',
69
+ type: {
70
+ name: 'Boolean'
71
+ }
72
+ },
73
+ text: {
74
+ client_side_validation: true,
75
+ required: true,
76
+ serialized_name: 'text',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ optional_for_list_display: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'optionalForListDisplay',
86
+ type: {
87
+ name: 'Boolean'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ end
94
+ end
95
+ end
96
+ end