google-api-client 0.10.0 → 0.10.1

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 (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -32,16 +32,16 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/knowledge-graph/
34
34
  class KgsearchService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # Available to use for quota purposes for server-side applications. Can be any
37
- # arbitrary string assigned to a user, but should not exceed 40 characters.
38
- attr_accessor :quota_user
39
-
40
35
  # @return [String]
41
36
  # API key. Your API key identifies your project and provides you with API access,
42
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
38
  attr_accessor :key
44
39
 
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
45
  def initialize
46
46
  super('https://kgsearch.googleapis.com/', '')
47
47
  end
@@ -49,8 +49,6 @@ module Google
49
49
  # Searches Knowledge Graph for entities that match the constraints.
50
50
  # A list of matched entities will be returned in response, which will be in
51
51
  # JSON-LD format and compatible with http://schema.org
52
- # @param [Boolean] indent
53
- # Enables indenting of json results.
54
52
  # @param [Array<String>, String] languages
55
53
  # The list of language codes (defined in ISO 693) to run the query with,
56
54
  # e.g. 'en'.
@@ -68,11 +66,13 @@ module Google
68
66
  # Restricts returned entities with these types, e.g. Person
69
67
  # (as defined in http://schema.org/Person). If multiple types are specified,
70
68
  # returned entities will contain one or more of these types.
69
+ # @param [Boolean] indent
70
+ # Enables indenting of json results.
71
+ # @param [String] fields
72
+ # Selector specifying which fields to include in a partial response.
71
73
  # @param [String] quota_user
72
74
  # Available to use for quota purposes for server-side applications. Can be any
73
75
  # arbitrary string assigned to a user, but should not exceed 40 characters.
74
- # @param [String] fields
75
- # Selector specifying which fields to include in a partial response.
76
76
  # @param [Google::Apis::RequestOptions] options
77
77
  # Request-specific options
78
78
  #
@@ -85,27 +85,27 @@ module Google
85
85
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
86
86
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
87
87
  # @raise [Google::Apis::AuthorizationError] Authorization is required
88
- def search_entities(indent: nil, languages: nil, ids: nil, limit: nil, prefix: nil, query: nil, types: nil, quota_user: nil, fields: nil, options: nil, &block)
88
+ def search_entities(languages: nil, ids: nil, limit: nil, prefix: nil, query: nil, types: nil, indent: nil, fields: nil, quota_user: nil, options: nil, &block)
89
89
  command = make_simple_command(:get, 'v1/entities:search', options)
90
90
  command.response_representation = Google::Apis::KgsearchV1::SearchResponse::Representation
91
91
  command.response_class = Google::Apis::KgsearchV1::SearchResponse
92
- command.query['indent'] = indent unless indent.nil?
93
92
  command.query['languages'] = languages unless languages.nil?
94
93
  command.query['ids'] = ids unless ids.nil?
95
94
  command.query['limit'] = limit unless limit.nil?
96
95
  command.query['prefix'] = prefix unless prefix.nil?
97
96
  command.query['query'] = query unless query.nil?
98
97
  command.query['types'] = types unless types.nil?
99
- command.query['quotaUser'] = quota_user unless quota_user.nil?
98
+ command.query['indent'] = indent unless indent.nil?
100
99
  command.query['fields'] = fields unless fields.nil?
100
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
101
101
  execute_or_queue_command(command, &block)
102
102
  end
103
103
 
104
104
  protected
105
105
 
106
106
  def apply_command_defaults(command)
107
- command.query['quotaUser'] = quota_user unless quota_user.nil?
108
107
  command.query['key'] = key unless key.nil?
108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
109
109
  end
110
110
  end
111
111
  end
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/natural-language/
28
28
  module LanguageV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20170206'
30
+ REVISION = '20170301'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,150 +22,6 @@ module Google
22
22
  module Apis
23
23
  module LanguageV1beta1
24
24
 
25
- # Represents part of speech information for a token.
26
- class PartOfSpeech
27
- include Google::Apis::Core::Hashable
28
-
29
- # The grammatical reciprocity.
30
- # Corresponds to the JSON property `reciprocity`
31
- # @return [String]
32
- attr_accessor :reciprocity
33
-
34
- # The grammatical form.
35
- # Corresponds to the JSON property `form`
36
- # @return [String]
37
- attr_accessor :form
38
-
39
- # The grammatical number.
40
- # Corresponds to the JSON property `number`
41
- # @return [String]
42
- attr_accessor :number
43
-
44
- # The grammatical voice.
45
- # Corresponds to the JSON property `voice`
46
- # @return [String]
47
- attr_accessor :voice
48
-
49
- # The grammatical aspect.
50
- # Corresponds to the JSON property `aspect`
51
- # @return [String]
52
- attr_accessor :aspect
53
-
54
- # The grammatical mood.
55
- # Corresponds to the JSON property `mood`
56
- # @return [String]
57
- attr_accessor :mood
58
-
59
- # The part of speech tag.
60
- # Corresponds to the JSON property `tag`
61
- # @return [String]
62
- attr_accessor :tag
63
-
64
- # The grammatical gender.
65
- # Corresponds to the JSON property `gender`
66
- # @return [String]
67
- attr_accessor :gender
68
-
69
- # The grammatical person.
70
- # Corresponds to the JSON property `person`
71
- # @return [String]
72
- attr_accessor :person
73
-
74
- # The grammatical properness.
75
- # Corresponds to the JSON property `proper`
76
- # @return [String]
77
- attr_accessor :proper
78
-
79
- # The grammatical case.
80
- # Corresponds to the JSON property `case`
81
- # @return [String]
82
- attr_accessor :case
83
-
84
- # The grammatical tense.
85
- # Corresponds to the JSON property `tense`
86
- # @return [String]
87
- attr_accessor :tense
88
-
89
- def initialize(**args)
90
- update!(**args)
91
- end
92
-
93
- # Update properties of this object
94
- def update!(**args)
95
- @reciprocity = args[:reciprocity] if args.key?(:reciprocity)
96
- @form = args[:form] if args.key?(:form)
97
- @number = args[:number] if args.key?(:number)
98
- @voice = args[:voice] if args.key?(:voice)
99
- @aspect = args[:aspect] if args.key?(:aspect)
100
- @mood = args[:mood] if args.key?(:mood)
101
- @tag = args[:tag] if args.key?(:tag)
102
- @gender = args[:gender] if args.key?(:gender)
103
- @person = args[:person] if args.key?(:person)
104
- @proper = args[:proper] if args.key?(:proper)
105
- @case = args[:case] if args.key?(:case)
106
- @tense = args[:tense] if args.key?(:tense)
107
- end
108
- end
109
-
110
- # The syntax analysis request message.
111
- class AnalyzeSyntaxRequest
112
- include Google::Apis::Core::Hashable
113
-
114
- # The encoding type used by the API to calculate offsets.
115
- # Corresponds to the JSON property `encodingType`
116
- # @return [String]
117
- attr_accessor :encoding_type
118
-
119
- # ################################################################ #
120
- # Represents the input to API methods.
121
- # Corresponds to the JSON property `document`
122
- # @return [Google::Apis::LanguageV1beta1::Document]
123
- attr_accessor :document
124
-
125
- def initialize(**args)
126
- update!(**args)
127
- end
128
-
129
- # Update properties of this object
130
- def update!(**args)
131
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
132
- @document = args[:document] if args.key?(:document)
133
- end
134
- end
135
-
136
- # The sentiment analysis response message.
137
- class AnalyzeSentimentResponse
138
- include Google::Apis::Core::Hashable
139
-
140
- # Represents the feeling associated with the entire text or entities in
141
- # the text.
142
- # Corresponds to the JSON property `documentSentiment`
143
- # @return [Google::Apis::LanguageV1beta1::Sentiment]
144
- attr_accessor :document_sentiment
145
-
146
- # The language of the text, which will be the same as the language specified
147
- # in the request or, if not specified, the automatically-detected language.
148
- # Corresponds to the JSON property `language`
149
- # @return [String]
150
- attr_accessor :language
151
-
152
- # The sentiment for all the sentences in the document.
153
- # Corresponds to the JSON property `sentences`
154
- # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
155
- attr_accessor :sentences
156
-
157
- def initialize(**args)
158
- update!(**args)
159
- end
160
-
161
- # Update properties of this object
162
- def update!(**args)
163
- @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
164
- @language = args[:language] if args.key?(:language)
165
- @sentences = args[:sentences] if args.key?(:sentences)
166
- end
167
- end
168
-
169
25
  # The entity analysis response message.
170
26
  class AnalyzeEntitiesResponse
171
27
  include Google::Apis::Core::Hashable
@@ -249,6 +105,11 @@ module Google
249
105
  class AnalyzeSyntaxResponse
250
106
  include Google::Apis::Core::Hashable
251
107
 
108
+ # Sentences in the input document.
109
+ # Corresponds to the JSON property `sentences`
110
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
111
+ attr_accessor :sentences
112
+
252
113
  # Tokens, along with their syntactic information, in the input document.
253
114
  # Corresponds to the JSON property `tokens`
254
115
  # @return [Array<Google::Apis::LanguageV1beta1::Token>]
@@ -261,20 +122,15 @@ module Google
261
122
  # @return [String]
262
123
  attr_accessor :language
263
124
 
264
- # Sentences in the input document.
265
- # Corresponds to the JSON property `sentences`
266
- # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
267
- attr_accessor :sentences
268
-
269
125
  def initialize(**args)
270
126
  update!(**args)
271
127
  end
272
128
 
273
129
  # Update properties of this object
274
130
  def update!(**args)
131
+ @sentences = args[:sentences] if args.key?(:sentences)
275
132
  @tokens = args[:tokens] if args.key?(:tokens)
276
133
  @language = args[:language] if args.key?(:language)
277
- @sentences = args[:sentences] if args.key?(:sentences)
278
134
  end
279
135
  end
280
136
 
@@ -312,6 +168,33 @@ module Google
312
168
  end
313
169
  end
314
170
 
171
+ # The sentiment analysis request message.
172
+ class AnalyzeSentimentRequest
173
+ include Google::Apis::Core::Hashable
174
+
175
+ # The encoding type used by the API to calculate sentence offsets for the
176
+ # sentence sentiment.
177
+ # Corresponds to the JSON property `encodingType`
178
+ # @return [String]
179
+ attr_accessor :encoding_type
180
+
181
+ # ################################################################ #
182
+ # Represents the input to API methods.
183
+ # Corresponds to the JSON property `document`
184
+ # @return [Google::Apis::LanguageV1beta1::Document]
185
+ attr_accessor :document
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
194
+ @document = args[:document] if args.key?(:document)
195
+ end
196
+ end
197
+
315
198
  # The text annotations response message.
316
199
  class AnnotateTextResponse
317
200
  include Google::Apis::Core::Hashable
@@ -363,33 +246,6 @@ module Google
363
246
  end
364
247
  end
365
248
 
366
- # The sentiment analysis request message.
367
- class AnalyzeSentimentRequest
368
- include Google::Apis::Core::Hashable
369
-
370
- # The encoding type used by the API to calculate sentence offsets for the
371
- # sentence sentiment.
372
- # Corresponds to the JSON property `encodingType`
373
- # @return [String]
374
- attr_accessor :encoding_type
375
-
376
- # ################################################################ #
377
- # Represents the input to API methods.
378
- # Corresponds to the JSON property `document`
379
- # @return [Google::Apis::LanguageV1beta1::Document]
380
- attr_accessor :document
381
-
382
- def initialize(**args)
383
- update!(**args)
384
- end
385
-
386
- # Update properties of this object
387
- def update!(**args)
388
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
389
- @document = args[:document] if args.key?(:document)
390
- end
391
- end
392
-
393
249
  # Represents dependency parse tree information for a token.
394
250
  class DependencyEdge
395
251
  include Google::Apis::Core::Hashable
@@ -419,15 +275,36 @@ module Google
419
275
  end
420
276
  end
421
277
 
278
+ # Represents an output piece of text.
279
+ class TextSpan
280
+ include Google::Apis::Core::Hashable
281
+
282
+ # The API calculates the beginning offset of the content in the original
283
+ # document according to the EncodingType specified in the API request.
284
+ # Corresponds to the JSON property `beginOffset`
285
+ # @return [Fixnum]
286
+ attr_accessor :begin_offset
287
+
288
+ # The content of the output text.
289
+ # Corresponds to the JSON property `content`
290
+ # @return [String]
291
+ attr_accessor :content
292
+
293
+ def initialize(**args)
294
+ update!(**args)
295
+ end
296
+
297
+ # Update properties of this object
298
+ def update!(**args)
299
+ @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
300
+ @content = args[:content] if args.key?(:content)
301
+ end
302
+ end
303
+
422
304
  # Represents the smallest syntactic building block of the text.
423
305
  class Token
424
306
  include Google::Apis::Core::Hashable
425
307
 
426
- # Represents part of speech information for a token.
427
- # Corresponds to the JSON property `partOfSpeech`
428
- # @return [Google::Apis::LanguageV1beta1::PartOfSpeech]
429
- attr_accessor :part_of_speech
430
-
431
308
  # Represents an output piece of text.
432
309
  # Corresponds to the JSON property `text`
433
310
  # @return [Google::Apis::LanguageV1beta1::TextSpan]
@@ -443,42 +320,21 @@ module Google
443
320
  # @return [String]
444
321
  attr_accessor :lemma
445
322
 
323
+ # Represents part of speech information for a token.
324
+ # Corresponds to the JSON property `partOfSpeech`
325
+ # @return [Google::Apis::LanguageV1beta1::PartOfSpeech]
326
+ attr_accessor :part_of_speech
327
+
446
328
  def initialize(**args)
447
329
  update!(**args)
448
330
  end
449
331
 
450
332
  # Update properties of this object
451
333
  def update!(**args)
452
- @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
453
334
  @text = args[:text] if args.key?(:text)
454
335
  @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge)
455
336
  @lemma = args[:lemma] if args.key?(:lemma)
456
- end
457
- end
458
-
459
- # Represents an output piece of text.
460
- class TextSpan
461
- include Google::Apis::Core::Hashable
462
-
463
- # The API calculates the beginning offset of the content in the original
464
- # document according to the EncodingType specified in the API request.
465
- # Corresponds to the JSON property `beginOffset`
466
- # @return [Fixnum]
467
- attr_accessor :begin_offset
468
-
469
- # The content of the output text.
470
- # Corresponds to the JSON property `content`
471
- # @return [String]
472
- attr_accessor :content
473
-
474
- def initialize(**args)
475
- update!(**args)
476
- end
477
-
478
- # Update properties of this object
479
- def update!(**args)
480
- @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
481
- @content = args[:content] if args.key?(:content)
337
+ @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
482
338
  end
483
339
  end
484
340
 
@@ -524,12 +380,6 @@ module Google
524
380
  class Status
525
381
  include Google::Apis::Core::Hashable
526
382
 
527
- # A list of messages that carry the error details. There will be a
528
- # common set of message types for APIs to use.
529
- # Corresponds to the JSON property `details`
530
- # @return [Array<Hash<String,Object>>]
531
- attr_accessor :details
532
-
533
383
  # The status code, which should be an enum value of google.rpc.Code.
534
384
  # Corresponds to the JSON property `code`
535
385
  # @return [Fixnum]
@@ -542,15 +392,21 @@ module Google
542
392
  # @return [String]
543
393
  attr_accessor :message
544
394
 
395
+ # A list of messages that carry the error details. There will be a
396
+ # common set of message types for APIs to use.
397
+ # Corresponds to the JSON property `details`
398
+ # @return [Array<Hash<String,Object>>]
399
+ attr_accessor :details
400
+
545
401
  def initialize(**args)
546
402
  update!(**args)
547
403
  end
548
404
 
549
405
  # Update properties of this object
550
406
  def update!(**args)
551
- @details = args[:details] if args.key?(:details)
552
407
  @code = args[:code] if args.key?(:code)
553
408
  @message = args[:message] if args.key?(:message)
409
+ @details = args[:details] if args.key?(:details)
554
410
  end
555
411
  end
556
412
 
@@ -620,18 +476,6 @@ module Google
620
476
  class Document
621
477
  include Google::Apis::Core::Hashable
622
478
 
623
- # The language of the document (if not specified, the language is
624
- # automatically detected). Both ISO and BCP-47 language codes are
625
- # accepted.<br>
626
- # **Current Language Restrictions:**
627
- # * Only English, Spanish, and Japanese textual content are supported.
628
- # If the language (either specified by the caller or automatically detected)
629
- # is not supported by the called API method, an `INVALID_ARGUMENT` error
630
- # is returned.
631
- # Corresponds to the JSON property `language`
632
- # @return [String]
633
- attr_accessor :language
634
-
635
479
  # Required. If the type is not set or is `TYPE_UNSPECIFIED`,
636
480
  # returns an `INVALID_ARGUMENT` error.
637
481
  # Corresponds to the JSON property `type`
@@ -651,16 +495,28 @@ module Google
651
495
  # @return [String]
652
496
  attr_accessor :gcs_content_uri
653
497
 
498
+ # The language of the document (if not specified, the language is
499
+ # automatically detected). Both ISO and BCP-47 language codes are
500
+ # accepted.<br>
501
+ # **Current Language Restrictions:**
502
+ # * Only English, Spanish, and Japanese textual content are supported.
503
+ # If the language (either specified by the caller or automatically detected)
504
+ # is not supported by the called API method, an `INVALID_ARGUMENT` error
505
+ # is returned.
506
+ # Corresponds to the JSON property `language`
507
+ # @return [String]
508
+ attr_accessor :language
509
+
654
510
  def initialize(**args)
655
511
  update!(**args)
656
512
  end
657
513
 
658
514
  # Update properties of this object
659
515
  def update!(**args)
660
- @language = args[:language] if args.key?(:language)
661
516
  @type = args[:type] if args.key?(:type)
662
517
  @content = args[:content] if args.key?(:content)
663
518
  @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
519
+ @language = args[:language] if args.key?(:language)
664
520
  end
665
521
  end
666
522
 
@@ -690,6 +546,32 @@ module Google
690
546
  end
691
547
  end
692
548
 
549
+ # The entity analysis request message.
550
+ class AnalyzeEntitiesRequest
551
+ include Google::Apis::Core::Hashable
552
+
553
+ # ################################################################ #
554
+ # Represents the input to API methods.
555
+ # Corresponds to the JSON property `document`
556
+ # @return [Google::Apis::LanguageV1beta1::Document]
557
+ attr_accessor :document
558
+
559
+ # The encoding type used by the API to calculate offsets.
560
+ # Corresponds to the JSON property `encodingType`
561
+ # @return [String]
562
+ attr_accessor :encoding_type
563
+
564
+ def initialize(**args)
565
+ update!(**args)
566
+ end
567
+
568
+ # Update properties of this object
569
+ def update!(**args)
570
+ @document = args[:document] if args.key?(:document)
571
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
572
+ end
573
+ end
574
+
693
575
  # Represents the feeling associated with the entire text or entities in
694
576
  # the text.
695
577
  class Sentiment
@@ -727,14 +609,94 @@ module Google
727
609
  end
728
610
  end
729
611
 
730
- # The entity analysis request message.
731
- class AnalyzeEntitiesRequest
612
+ # Represents part of speech information for a token.
613
+ class PartOfSpeech
732
614
  include Google::Apis::Core::Hashable
733
615
 
734
- # The encoding type used by the API to calculate offsets.
735
- # Corresponds to the JSON property `encodingType`
616
+ # The grammatical voice.
617
+ # Corresponds to the JSON property `voice`
736
618
  # @return [String]
737
- attr_accessor :encoding_type
619
+ attr_accessor :voice
620
+
621
+ # The grammatical aspect.
622
+ # Corresponds to the JSON property `aspect`
623
+ # @return [String]
624
+ attr_accessor :aspect
625
+
626
+ # The grammatical mood.
627
+ # Corresponds to the JSON property `mood`
628
+ # @return [String]
629
+ attr_accessor :mood
630
+
631
+ # The part of speech tag.
632
+ # Corresponds to the JSON property `tag`
633
+ # @return [String]
634
+ attr_accessor :tag
635
+
636
+ # The grammatical gender.
637
+ # Corresponds to the JSON property `gender`
638
+ # @return [String]
639
+ attr_accessor :gender
640
+
641
+ # The grammatical person.
642
+ # Corresponds to the JSON property `person`
643
+ # @return [String]
644
+ attr_accessor :person
645
+
646
+ # The grammatical properness.
647
+ # Corresponds to the JSON property `proper`
648
+ # @return [String]
649
+ attr_accessor :proper
650
+
651
+ # The grammatical case.
652
+ # Corresponds to the JSON property `case`
653
+ # @return [String]
654
+ attr_accessor :case
655
+
656
+ # The grammatical tense.
657
+ # Corresponds to the JSON property `tense`
658
+ # @return [String]
659
+ attr_accessor :tense
660
+
661
+ # The grammatical reciprocity.
662
+ # Corresponds to the JSON property `reciprocity`
663
+ # @return [String]
664
+ attr_accessor :reciprocity
665
+
666
+ # The grammatical form.
667
+ # Corresponds to the JSON property `form`
668
+ # @return [String]
669
+ attr_accessor :form
670
+
671
+ # The grammatical number.
672
+ # Corresponds to the JSON property `number`
673
+ # @return [String]
674
+ attr_accessor :number
675
+
676
+ def initialize(**args)
677
+ update!(**args)
678
+ end
679
+
680
+ # Update properties of this object
681
+ def update!(**args)
682
+ @voice = args[:voice] if args.key?(:voice)
683
+ @aspect = args[:aspect] if args.key?(:aspect)
684
+ @mood = args[:mood] if args.key?(:mood)
685
+ @tag = args[:tag] if args.key?(:tag)
686
+ @gender = args[:gender] if args.key?(:gender)
687
+ @person = args[:person] if args.key?(:person)
688
+ @proper = args[:proper] if args.key?(:proper)
689
+ @case = args[:case] if args.key?(:case)
690
+ @tense = args[:tense] if args.key?(:tense)
691
+ @reciprocity = args[:reciprocity] if args.key?(:reciprocity)
692
+ @form = args[:form] if args.key?(:form)
693
+ @number = args[:number] if args.key?(:number)
694
+ end
695
+ end
696
+
697
+ # The syntax analysis request message.
698
+ class AnalyzeSyntaxRequest
699
+ include Google::Apis::Core::Hashable
738
700
 
739
701
  # ################################################################ #
740
702
  # Represents the input to API methods.
@@ -742,14 +704,52 @@ module Google
742
704
  # @return [Google::Apis::LanguageV1beta1::Document]
743
705
  attr_accessor :document
744
706
 
707
+ # The encoding type used by the API to calculate offsets.
708
+ # Corresponds to the JSON property `encodingType`
709
+ # @return [String]
710
+ attr_accessor :encoding_type
711
+
745
712
  def initialize(**args)
746
713
  update!(**args)
747
714
  end
748
715
 
749
716
  # Update properties of this object
750
717
  def update!(**args)
751
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
752
718
  @document = args[:document] if args.key?(:document)
719
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
720
+ end
721
+ end
722
+
723
+ # The sentiment analysis response message.
724
+ class AnalyzeSentimentResponse
725
+ include Google::Apis::Core::Hashable
726
+
727
+ # Represents the feeling associated with the entire text or entities in
728
+ # the text.
729
+ # Corresponds to the JSON property `documentSentiment`
730
+ # @return [Google::Apis::LanguageV1beta1::Sentiment]
731
+ attr_accessor :document_sentiment
732
+
733
+ # The language of the text, which will be the same as the language specified
734
+ # in the request or, if not specified, the automatically-detected language.
735
+ # Corresponds to the JSON property `language`
736
+ # @return [String]
737
+ attr_accessor :language
738
+
739
+ # The sentiment for all the sentences in the document.
740
+ # Corresponds to the JSON property `sentences`
741
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
742
+ attr_accessor :sentences
743
+
744
+ def initialize(**args)
745
+ update!(**args)
746
+ end
747
+
748
+ # Update properties of this object
749
+ def update!(**args)
750
+ @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
751
+ @language = args[:language] if args.key?(:language)
752
+ @sentences = args[:sentences] if args.key?(:sentences)
753
753
  end
754
754
  end
755
755
  end