google-api-client 0.9.28 → 0.10.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 (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/identity-toolkit/v3/
26
26
  module IdentitytoolkitV3
27
27
  VERSION = 'V3'
28
- REVISION = '20161206'
28
+ REVISION = '20170203'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -105,7 +105,7 @@ module Google
105
105
  end
106
106
  end
107
107
 
108
- # Respone of downloading accounts in batch.
108
+ # Response of downloading accounts in batch.
109
109
  class DownloadAccountResponse
110
110
  include Google::Apis::Core::Hashable
111
111
 
@@ -950,6 +950,11 @@ module Google
950
950
  # @return [String]
951
951
  attr_accessor :instance_id
952
952
 
953
+ # Privileged caller can create user with specified user id.
954
+ # Corresponds to the JSON property `localId`
955
+ # @return [String]
956
+ attr_accessor :local_id
957
+
953
958
  # The new password of the user.
954
959
  # Corresponds to the JSON property `password`
955
960
  # @return [String]
@@ -974,6 +979,7 @@ module Google
974
979
  @email_verified = args[:email_verified] if args.key?(:email_verified)
975
980
  @id_token = args[:id_token] if args.key?(:id_token)
976
981
  @instance_id = args[:instance_id] if args.key?(:instance_id)
982
+ @local_id = args[:local_id] if args.key?(:local_id)
977
983
  @password = args[:password] if args.key?(:password)
978
984
  @photo_url = args[:photo_url] if args.key?(:photo_url)
979
985
  end
@@ -1408,6 +1414,12 @@ module Google
1408
1414
  # @return [String]
1409
1415
  attr_accessor :email
1410
1416
 
1417
+ # If email has been verified.
1418
+ # Corresponds to the JSON property `emailVerified`
1419
+ # @return [Boolean]
1420
+ attr_accessor :email_verified
1421
+ alias_method :email_verified?, :email_verified
1422
+
1411
1423
  # If idToken is STS id token, then this field will be expiration time of STS id
1412
1424
  # token in seconds.
1413
1425
  # Corresponds to the JSON property `expiresIn`
@@ -1462,6 +1474,7 @@ module Google
1462
1474
  def update!(**args)
1463
1475
  @display_name = args[:display_name] if args.key?(:display_name)
1464
1476
  @email = args[:email] if args.key?(:email)
1477
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
1465
1478
  @expires_in = args[:expires_in] if args.key?(:expires_in)
1466
1479
  @id_token = args[:id_token] if args.key?(:id_token)
1467
1480
  @kind = args[:kind] if args.key?(:kind)
@@ -1885,6 +1898,12 @@ module Google
1885
1898
  # @return [String]
1886
1899
  attr_accessor :input_email
1887
1900
 
1901
+ # True if it's a new user sign-in, false if it's a returning user.
1902
+ # Corresponds to the JSON property `isNewUser`
1903
+ # @return [Boolean]
1904
+ attr_accessor :is_new_user
1905
+ alias_method :is_new_user?, :is_new_user
1906
+
1888
1907
  # The fixed string "identitytoolkit#VerifyAssertionResponse".
1889
1908
  # Corresponds to the JSON property `kind`
1890
1909
  # @return [String]
@@ -2026,6 +2045,7 @@ module Google
2026
2045
  @full_name = args[:full_name] if args.key?(:full_name)
2027
2046
  @id_token = args[:id_token] if args.key?(:id_token)
2028
2047
  @input_email = args[:input_email] if args.key?(:input_email)
2048
+ @is_new_user = args[:is_new_user] if args.key?(:is_new_user)
2029
2049
  @kind = args[:kind] if args.key?(:kind)
2030
2050
  @language = args[:language] if args.key?(:language)
2031
2051
  @last_name = args[:last_name] if args.key?(:last_name)
@@ -472,6 +472,7 @@ module Google
472
472
  property :email_verified, as: 'emailVerified'
473
473
  property :id_token, as: 'idToken'
474
474
  property :instance_id, as: 'instanceId'
475
+ property :local_id, as: 'localId'
475
476
  property :password, as: 'password'
476
477
  property :photo_url, as: 'photoUrl'
477
478
  end
@@ -576,6 +577,7 @@ module Google
576
577
  class Representation < Google::Apis::Core::JsonRepresentation
577
578
  property :display_name, as: 'displayName'
578
579
  property :email, as: 'email'
580
+ property :email_verified, as: 'emailVerified'
579
581
  property :expires_in, as: 'expiresIn'
580
582
  property :id_token, as: 'idToken'
581
583
  property :kind, as: 'kind'
@@ -685,6 +687,7 @@ module Google
685
687
  property :full_name, as: 'fullName'
686
688
  property :id_token, as: 'idToken'
687
689
  property :input_email, as: 'inputEmail'
690
+ property :is_new_user, as: 'isNewUser'
688
691
  property :kind, as: 'kind'
689
692
  property :language, as: 'language'
690
693
  property :last_name, as: 'lastName'
@@ -27,11 +27,6 @@ module Google
27
27
  class SearchResponse
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # The schema type of top-level JSON-LD object, e.g. ItemList.
31
- # Corresponds to the JSON property `@type`
32
- # @return [Object]
33
- attr_accessor :_type
34
-
35
30
  # The local context applicable for the response. See more details at
36
31
  # http://www.w3.org/TR/json-ld/#context-definitions.
37
32
  # Corresponds to the JSON property `@context`
@@ -43,15 +38,20 @@ module Google
43
38
  # @return [Array<Object>]
44
39
  attr_accessor :item_list_element
45
40
 
41
+ # The schema type of top-level JSON-LD object, e.g. ItemList.
42
+ # Corresponds to the JSON property `@type`
43
+ # @return [Object]
44
+ attr_accessor :_type
45
+
46
46
  def initialize(**args)
47
47
  update!(**args)
48
48
  end
49
49
 
50
50
  # Update properties of this object
51
51
  def update!(**args)
52
- @_type = args[:_type] if args.key?(:_type)
53
52
  @_context = args[:_context] if args.key?(:_context)
54
53
  @item_list_element = args[:item_list_element] if args.key?(:item_list_element)
54
+ @_type = args[:_type] if args.key?(:_type)
55
55
  end
56
56
  end
57
57
  end
@@ -31,9 +31,9 @@ module Google
31
31
  class SearchResponse
32
32
  # @private
33
33
  class Representation < Google::Apis::Core::JsonRepresentation
34
- property :_type, as: '@type'
35
34
  property :_context, as: '@context'
36
35
  collection :item_list_element, as: 'itemListElement'
36
+ property :_type, as: '@type'
37
37
  end
38
38
  end
39
39
  end
@@ -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
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
35
  # @return [String]
41
36
  # Available to use for quota purposes for server-side applications. Can be any
42
37
  # arbitrary string assigned to a user, but should not exceed 40 characters.
43
38
  attr_accessor :quota_user
44
39
 
40
+ # @return [String]
41
+ # API key. Your API key identifies your project and provides you with API access,
42
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
+ attr_accessor :key
44
+
45
45
  def initialize
46
46
  super('https://kgsearch.googleapis.com/', '')
47
47
  end
@@ -49,14 +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] prefix
53
- # Enables prefix match against names and aliases of entities
54
- # @param [String] query
55
- # The literal query string for search.
56
- # @param [Array<String>, String] types
57
- # Restricts returned entities with these types, e.g. Person
58
- # (as defined in http://schema.org/Person). If multiple types are specified,
59
- # returned entities will contain one or more of these types.
60
52
  # @param [Boolean] indent
61
53
  # Enables indenting of json results.
62
54
  # @param [Array<String>, String] languages
@@ -68,11 +60,19 @@ module Google
68
60
  # URL as in ...?ids=A&ids=B
69
61
  # @param [Fixnum] limit
70
62
  # Limits the number of entities to be returned.
71
- # @param [String] fields
72
- # Selector specifying which fields to include in a partial response.
63
+ # @param [Boolean] prefix
64
+ # Enables prefix match against names and aliases of entities
65
+ # @param [String] query
66
+ # The literal query string for search.
67
+ # @param [Array<String>, String] types
68
+ # Restricts returned entities with these types, e.g. Person
69
+ # (as defined in http://schema.org/Person). If multiple types are specified,
70
+ # returned entities will contain one or more of these types.
73
71
  # @param [String] quota_user
74
72
  # Available to use for quota purposes for server-side applications. Can be any
75
73
  # 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(prefix: nil, query: nil, types: nil, indent: nil, languages: nil, ids: nil, limit: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
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['prefix'] = prefix unless prefix.nil?
93
- command.query['query'] = query unless query.nil?
94
- command.query['types'] = types unless types.nil?
95
92
  command.query['indent'] = indent unless indent.nil?
96
93
  command.query['languages'] = languages unless languages.nil?
97
94
  command.query['ids'] = ids unless ids.nil?
98
95
  command.query['limit'] = limit unless limit.nil?
99
- command.query['fields'] = fields unless fields.nil?
96
+ command.query['prefix'] = prefix unless prefix.nil?
97
+ command.query['query'] = query unless query.nil?
98
+ command.query['types'] = types unless types.nil?
100
99
  command.query['quotaUser'] = quota_user unless quota_user.nil?
100
+ command.query['fields'] = fields unless fields.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['key'] = key unless key.nil?
108
107
  command.query['quotaUser'] = quota_user unless quota_user.nil?
108
+ command.query['key'] = key unless key.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 = '20170123'
30
+ REVISION = '20170206'
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,26 +22,69 @@ module Google
22
22
  module Apis
23
23
  module LanguageV1beta1
24
24
 
25
- # The sentiment analysis response message.
26
- class AnalyzeSentimentResponse
25
+ # Represents part of speech information for a token.
26
+ class PartOfSpeech
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The language of the text, which will be the same as the language specified
30
- # in the request or, if not specified, the automatically-detected language.
31
- # Corresponds to the JSON property `language`
29
+ # The grammatical reciprocity.
30
+ # Corresponds to the JSON property `reciprocity`
32
31
  # @return [String]
33
- attr_accessor :language
32
+ attr_accessor :reciprocity
34
33
 
35
- # The sentiment for all the sentences in the document.
36
- # Corresponds to the JSON property `sentences`
37
- # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
38
- attr_accessor :sentences
34
+ # The grammatical form.
35
+ # Corresponds to the JSON property `form`
36
+ # @return [String]
37
+ attr_accessor :form
39
38
 
40
- # Represents the feeling associated with the entire text or entities in
41
- # the text.
42
- # Corresponds to the JSON property `documentSentiment`
43
- # @return [Google::Apis::LanguageV1beta1::Sentiment]
44
- attr_accessor :document_sentiment
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
45
88
 
46
89
  def initialize(**args)
47
90
  update!(**args)
@@ -49,27 +92,67 @@ module Google
49
92
 
50
93
  # Update properties of this object
51
94
  def update!(**args)
52
- @language = args[:language] if args.key?(:language)
53
- @sentences = args[:sentences] if args.key?(:sentences)
54
- @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
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)
55
107
  end
56
108
  end
57
109
 
58
- # The entity analysis response message.
59
- class AnalyzeEntitiesResponse
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
60
138
  include Google::Apis::Core::Hashable
61
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
+
62
146
  # The language of the text, which will be the same as the language specified
63
147
  # in the request or, if not specified, the automatically-detected language.
64
- # See Document.language field for more details.
65
148
  # Corresponds to the JSON property `language`
66
149
  # @return [String]
67
150
  attr_accessor :language
68
151
 
69
- # The recognized entities in the input document.
70
- # Corresponds to the JSON property `entities`
71
- # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
72
- attr_accessor :entities
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
73
156
 
74
157
  def initialize(**args)
75
158
  update!(**args)
@@ -77,13 +160,14 @@ module Google
77
160
 
78
161
  # Update properties of this object
79
162
  def update!(**args)
163
+ @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
80
164
  @language = args[:language] if args.key?(:language)
81
- @entities = args[:entities] if args.key?(:entities)
165
+ @sentences = args[:sentences] if args.key?(:sentences)
82
166
  end
83
167
  end
84
168
 
85
- # The syntax analysis response message.
86
- class AnalyzeSyntaxResponse
169
+ # The entity analysis response message.
170
+ class AnalyzeEntitiesResponse
87
171
  include Google::Apis::Core::Hashable
88
172
 
89
173
  # The language of the text, which will be the same as the language specified
@@ -93,15 +177,10 @@ module Google
93
177
  # @return [String]
94
178
  attr_accessor :language
95
179
 
96
- # Sentences in the input document.
97
- # Corresponds to the JSON property `sentences`
98
- # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
99
- attr_accessor :sentences
100
-
101
- # Tokens, along with their syntactic information, in the input document.
102
- # Corresponds to the JSON property `tokens`
103
- # @return [Array<Google::Apis::LanguageV1beta1::Token>]
104
- attr_accessor :tokens
180
+ # The recognized entities in the input document.
181
+ # Corresponds to the JSON property `entities`
182
+ # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
183
+ attr_accessor :entities
105
184
 
106
185
  def initialize(**args)
107
186
  update!(**args)
@@ -110,8 +189,7 @@ module Google
110
189
  # Update properties of this object
111
190
  def update!(**args)
112
191
  @language = args[:language] if args.key?(:language)
113
- @sentences = args[:sentences] if args.key?(:sentences)
114
- @tokens = args[:tokens] if args.key?(:tokens)
192
+ @entities = args[:entities] if args.key?(:entities)
115
193
  end
116
194
  end
117
195
 
@@ -167,6 +245,39 @@ module Google
167
245
  end
168
246
  end
169
247
 
248
+ # The syntax analysis response message.
249
+ class AnalyzeSyntaxResponse
250
+ include Google::Apis::Core::Hashable
251
+
252
+ # Tokens, along with their syntactic information, in the input document.
253
+ # Corresponds to the JSON property `tokens`
254
+ # @return [Array<Google::Apis::LanguageV1beta1::Token>]
255
+ attr_accessor :tokens
256
+
257
+ # The language of the text, which will be the same as the language specified
258
+ # in the request or, if not specified, the automatically-detected language.
259
+ # See Document.language field for more details.
260
+ # Corresponds to the JSON property `language`
261
+ # @return [String]
262
+ attr_accessor :language
263
+
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
+ def initialize(**args)
270
+ update!(**args)
271
+ end
272
+
273
+ # Update properties of this object
274
+ def update!(**args)
275
+ @tokens = args[:tokens] if args.key?(:tokens)
276
+ @language = args[:language] if args.key?(:language)
277
+ @sentences = args[:sentences] if args.key?(:sentences)
278
+ end
279
+ end
280
+
170
281
  # The request message for the text annotation API, which can perform multiple
171
282
  # analysis types (sentiment, entities, and syntax) in one call.
172
283
  class AnnotateTextRequest
@@ -205,6 +316,12 @@ module Google
205
316
  class AnnotateTextResponse
206
317
  include Google::Apis::Core::Hashable
207
318
 
319
+ # Represents the feeling associated with the entire text or entities in
320
+ # the text.
321
+ # Corresponds to the JSON property `documentSentiment`
322
+ # @return [Google::Apis::LanguageV1beta1::Sentiment]
323
+ attr_accessor :document_sentiment
324
+
208
325
  # The language of the text, which will be the same as the language specified
209
326
  # in the request or, if not specified, the automatically-detected language.
210
327
  # See Document.language field for more details.
@@ -232,23 +349,17 @@ module Google
232
349
  # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
233
350
  attr_accessor :entities
234
351
 
235
- # Represents the feeling associated with the entire text or entities in
236
- # the text.
237
- # Corresponds to the JSON property `documentSentiment`
238
- # @return [Google::Apis::LanguageV1beta1::Sentiment]
239
- attr_accessor :document_sentiment
240
-
241
352
  def initialize(**args)
242
353
  update!(**args)
243
354
  end
244
355
 
245
356
  # Update properties of this object
246
357
  def update!(**args)
358
+ @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
247
359
  @language = args[:language] if args.key?(:language)
248
360
  @sentences = args[:sentences] if args.key?(:sentences)
249
361
  @tokens = args[:tokens] if args.key?(:tokens)
250
362
  @entities = args[:entities] if args.key?(:entities)
251
- @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
252
363
  end
253
364
  end
254
365
 
@@ -283,6 +394,11 @@ module Google
283
394
  class DependencyEdge
284
395
  include Google::Apis::Core::Hashable
285
396
 
397
+ # The parse label for the token.
398
+ # Corresponds to the JSON property `label`
399
+ # @return [String]
400
+ attr_accessor :label
401
+
286
402
  # Represents the head of this token in the dependency tree.
287
403
  # This is the index of the token which has an arc going to this token.
288
404
  # The index is the position of the token in the array of tokens returned
@@ -292,45 +408,14 @@ module Google
292
408
  # @return [Fixnum]
293
409
  attr_accessor :head_token_index
294
410
 
295
- # The parse label for the token.
296
- # Corresponds to the JSON property `label`
297
- # @return [String]
298
- attr_accessor :label
299
-
300
411
  def initialize(**args)
301
412
  update!(**args)
302
413
  end
303
414
 
304
415
  # Update properties of this object
305
416
  def update!(**args)
306
- @head_token_index = args[:head_token_index] if args.key?(:head_token_index)
307
417
  @label = args[:label] if args.key?(:label)
308
- end
309
- end
310
-
311
- # Represents an output piece of text.
312
- class TextSpan
313
- include Google::Apis::Core::Hashable
314
-
315
- # The API calculates the beginning offset of the content in the original
316
- # document according to the EncodingType specified in the API request.
317
- # Corresponds to the JSON property `beginOffset`
318
- # @return [Fixnum]
319
- attr_accessor :begin_offset
320
-
321
- # The content of the output text.
322
- # Corresponds to the JSON property `content`
323
- # @return [String]
324
- attr_accessor :content
325
-
326
- def initialize(**args)
327
- update!(**args)
328
- end
329
-
330
- # Update properties of this object
331
- def update!(**args)
332
- @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
333
- @content = args[:content] if args.key?(:content)
418
+ @head_token_index = args[:head_token_index] if args.key?(:head_token_index)
334
419
  end
335
420
  end
336
421
 
@@ -338,11 +423,6 @@ module Google
338
423
  class Token
339
424
  include Google::Apis::Core::Hashable
340
425
 
341
- # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
342
- # Corresponds to the JSON property `lemma`
343
- # @return [String]
344
- attr_accessor :lemma
345
-
346
426
  # Represents part of speech information for a token.
347
427
  # Corresponds to the JSON property `partOfSpeech`
348
428
  # @return [Google::Apis::LanguageV1beta1::PartOfSpeech]
@@ -358,16 +438,47 @@ module Google
358
438
  # @return [Google::Apis::LanguageV1beta1::DependencyEdge]
359
439
  attr_accessor :dependency_edge
360
440
 
441
+ # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
442
+ # Corresponds to the JSON property `lemma`
443
+ # @return [String]
444
+ attr_accessor :lemma
445
+
361
446
  def initialize(**args)
362
447
  update!(**args)
363
448
  end
364
449
 
365
450
  # Update properties of this object
366
451
  def update!(**args)
367
- @lemma = args[:lemma] if args.key?(:lemma)
368
452
  @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
369
453
  @text = args[:text] if args.key?(:text)
370
454
  @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge)
455
+ @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)
371
482
  end
372
483
  end
373
484
 
@@ -443,32 +554,6 @@ module Google
443
554
  end
444
555
  end
445
556
 
446
- # Represents a mention for an entity in the text. Currently, proper noun
447
- # mentions are supported.
448
- class EntityMention
449
- include Google::Apis::Core::Hashable
450
-
451
- # Represents an output piece of text.
452
- # Corresponds to the JSON property `text`
453
- # @return [Google::Apis::LanguageV1beta1::TextSpan]
454
- attr_accessor :text
455
-
456
- # The type of the entity mention.
457
- # Corresponds to the JSON property `type`
458
- # @return [String]
459
- attr_accessor :type
460
-
461
- def initialize(**args)
462
- update!(**args)
463
- end
464
-
465
- # Update properties of this object
466
- def update!(**args)
467
- @text = args[:text] if args.key?(:text)
468
- @type = args[:type] if args.key?(:type)
469
- end
470
- end
471
-
472
557
  # All available features for sentiment, syntax, and semantic analysis.
473
558
  # Setting each one to true will enable that specific analysis for the input.
474
559
  class Features
@@ -504,19 +589,37 @@ module Google
504
589
  end
505
590
  end
506
591
 
592
+ # Represents a mention for an entity in the text. Currently, proper noun
593
+ # mentions are supported.
594
+ class EntityMention
595
+ include Google::Apis::Core::Hashable
596
+
597
+ # Represents an output piece of text.
598
+ # Corresponds to the JSON property `text`
599
+ # @return [Google::Apis::LanguageV1beta1::TextSpan]
600
+ attr_accessor :text
601
+
602
+ # The type of the entity mention.
603
+ # Corresponds to the JSON property `type`
604
+ # @return [String]
605
+ attr_accessor :type
606
+
607
+ def initialize(**args)
608
+ update!(**args)
609
+ end
610
+
611
+ # Update properties of this object
612
+ def update!(**args)
613
+ @text = args[:text] if args.key?(:text)
614
+ @type = args[:type] if args.key?(:type)
615
+ end
616
+ end
617
+
507
618
  # ################################################################ #
508
619
  # Represents the input to API methods.
509
620
  class Document
510
621
  include Google::Apis::Core::Hashable
511
622
 
512
- # The Google Cloud Storage URI where the file content is located.
513
- # This URI must be of the form: gs://bucket_name/object_name. For more
514
- # details, see https://cloud.google.com/storage/docs/reference-uris.
515
- # NOTE: Cloud Storage object versioning is not supported.
516
- # Corresponds to the JSON property `gcsContentUri`
517
- # @return [String]
518
- attr_accessor :gcs_content_uri
519
-
520
623
  # The language of the document (if not specified, the language is
521
624
  # automatically detected). Both ISO and BCP-47 language codes are
522
625
  # accepted.<br>
@@ -540,16 +643,24 @@ module Google
540
643
  # @return [String]
541
644
  attr_accessor :content
542
645
 
646
+ # The Google Cloud Storage URI where the file content is located.
647
+ # This URI must be of the form: gs://bucket_name/object_name. For more
648
+ # details, see https://cloud.google.com/storage/docs/reference-uris.
649
+ # NOTE: Cloud Storage object versioning is not supported.
650
+ # Corresponds to the JSON property `gcsContentUri`
651
+ # @return [String]
652
+ attr_accessor :gcs_content_uri
653
+
543
654
  def initialize(**args)
544
655
  update!(**args)
545
656
  end
546
657
 
547
658
  # Update properties of this object
548
659
  def update!(**args)
549
- @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
550
660
  @language = args[:language] if args.key?(:language)
551
661
  @type = args[:type] if args.key?(:type)
552
662
  @content = args[:content] if args.key?(:content)
663
+ @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
553
664
  end
554
665
  end
555
666
 
@@ -579,32 +690,6 @@ module Google
579
690
  end
580
691
  end
581
692
 
582
- # The entity analysis request message.
583
- class AnalyzeEntitiesRequest
584
- include Google::Apis::Core::Hashable
585
-
586
- # The encoding type used by the API to calculate offsets.
587
- # Corresponds to the JSON property `encodingType`
588
- # @return [String]
589
- attr_accessor :encoding_type
590
-
591
- # ################################################################ #
592
- # Represents the input to API methods.
593
- # Corresponds to the JSON property `document`
594
- # @return [Google::Apis::LanguageV1beta1::Document]
595
- attr_accessor :document
596
-
597
- def initialize(**args)
598
- update!(**args)
599
- end
600
-
601
- # Update properties of this object
602
- def update!(**args)
603
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
604
- @document = args[:document] if args.key?(:document)
605
- end
606
- end
607
-
608
693
  # Represents the feeling associated with the entire text or entities in
609
694
  # the text.
610
695
  class Sentiment
@@ -642,93 +727,8 @@ module Google
642
727
  end
643
728
  end
644
729
 
645
- # Represents part of speech information for a token.
646
- class PartOfSpeech
647
- include Google::Apis::Core::Hashable
648
-
649
- # The grammatical case.
650
- # Corresponds to the JSON property `case`
651
- # @return [String]
652
- attr_accessor :case
653
-
654
- # The grammatical tense.
655
- # Corresponds to the JSON property `tense`
656
- # @return [String]
657
- attr_accessor :tense
658
-
659
- # The grammatical reciprocity.
660
- # Corresponds to the JSON property `reciprocity`
661
- # @return [String]
662
- attr_accessor :reciprocity
663
-
664
- # The grammatical form.
665
- # Corresponds to the JSON property `form`
666
- # @return [String]
667
- attr_accessor :form
668
-
669
- # The grammatical number.
670
- # Corresponds to the JSON property `number`
671
- # @return [String]
672
- attr_accessor :number
673
-
674
- # The grammatical voice.
675
- # Corresponds to the JSON property `voice`
676
- # @return [String]
677
- attr_accessor :voice
678
-
679
- # The grammatical aspect.
680
- # Corresponds to the JSON property `aspect`
681
- # @return [String]
682
- attr_accessor :aspect
683
-
684
- # The grammatical mood.
685
- # Corresponds to the JSON property `mood`
686
- # @return [String]
687
- attr_accessor :mood
688
-
689
- # The part of speech tag.
690
- # Corresponds to the JSON property `tag`
691
- # @return [String]
692
- attr_accessor :tag
693
-
694
- # The grammatical gender.
695
- # Corresponds to the JSON property `gender`
696
- # @return [String]
697
- attr_accessor :gender
698
-
699
- # The grammatical person.
700
- # Corresponds to the JSON property `person`
701
- # @return [String]
702
- attr_accessor :person
703
-
704
- # The grammatical properness.
705
- # Corresponds to the JSON property `proper`
706
- # @return [String]
707
- attr_accessor :proper
708
-
709
- def initialize(**args)
710
- update!(**args)
711
- end
712
-
713
- # Update properties of this object
714
- def update!(**args)
715
- @case = args[:case] if args.key?(:case)
716
- @tense = args[:tense] if args.key?(:tense)
717
- @reciprocity = args[:reciprocity] if args.key?(:reciprocity)
718
- @form = args[:form] if args.key?(:form)
719
- @number = args[:number] if args.key?(:number)
720
- @voice = args[:voice] if args.key?(:voice)
721
- @aspect = args[:aspect] if args.key?(:aspect)
722
- @mood = args[:mood] if args.key?(:mood)
723
- @tag = args[:tag] if args.key?(:tag)
724
- @gender = args[:gender] if args.key?(:gender)
725
- @person = args[:person] if args.key?(:person)
726
- @proper = args[:proper] if args.key?(:proper)
727
- end
728
- end
729
-
730
- # The syntax analysis request message.
731
- class AnalyzeSyntaxRequest
730
+ # The entity analysis request message.
731
+ class AnalyzeEntitiesRequest
732
732
  include Google::Apis::Core::Hashable
733
733
 
734
734
  # The encoding type used by the API to calculate offsets.