google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -48,80 +48,6 @@ module Google
48
48
  super('https://iam.googleapis.com/', '')
49
49
  end
50
50
 
51
- # Queries roles that can be granted on a particular resource.
52
- # A role is grantable if it can be used as the role in a binding for a policy
53
- # for that resource.
54
- # @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
55
- # @param [String] fields
56
- # Selector specifying which fields to include in a partial response.
57
- # @param [String] quota_user
58
- # Available to use for quota purposes for server-side applications. Can be any
59
- # arbitrary string assigned to a user, but should not exceed 40 characters.
60
- # @param [Google::Apis::RequestOptions] options
61
- # Request-specific options
62
- #
63
- # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
65
- # @yieldparam err [StandardError] error object if request failed
66
- #
67
- # @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
68
- #
69
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
- # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def query_grantable_roles(query_grantable_roles_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
- command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
74
- command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
75
- command.request_object = query_grantable_roles_request_object
76
- command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
77
- command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
78
- command.query['fields'] = fields unless fields.nil?
79
- command.query['quotaUser'] = quota_user unless quota_user.nil?
80
- execute_or_queue_command(command, &block)
81
- end
82
-
83
- # Updates a ServiceAccount.
84
- # Currently, only the following fields are updatable:
85
- # `display_name` .
86
- # The `etag` is mandatory.
87
- # @param [String] name
88
- # The resource name of the service account in the following format:
89
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
90
- # Requests using `-` as a wildcard for the project will infer the project
91
- # from the `account` and the `account` value can be the `email` address or
92
- # the `unique_id` of the service account.
93
- # In responses the resource name will always be in the format
94
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
95
- # @param [Google::Apis::IamV1::ServiceAccount] service_account_object
96
- # @param [String] fields
97
- # Selector specifying which fields to include in a partial response.
98
- # @param [String] quota_user
99
- # Available to use for quota purposes for server-side applications. Can be any
100
- # arbitrary string assigned to a user, but should not exceed 40 characters.
101
- # @param [Google::Apis::RequestOptions] options
102
- # Request-specific options
103
- #
104
- # @yield [result, err] Result & error if block supplied
105
- # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
106
- # @yieldparam err [StandardError] error object if request failed
107
- #
108
- # @return [Google::Apis::IamV1::ServiceAccount]
109
- #
110
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
- # @raise [Google::Apis::AuthorizationError] Authorization is required
113
- def update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
114
- command = make_simple_command(:put, 'v1/{+name}', options)
115
- command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation
116
- command.request_object = service_account_object
117
- command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
118
- command.response_class = Google::Apis::IamV1::ServiceAccount
119
- command.params['name'] = name unless name.nil?
120
- command.query['fields'] = fields unless fields.nil?
121
- command.query['quotaUser'] = quota_user unless quota_user.nil?
122
- execute_or_queue_command(command, &block)
123
- end
124
-
125
51
  # Tests the specified permissions against the IAM access control policy
126
52
  # for a ServiceAccount.
127
53
  # @param [String] resource
@@ -232,14 +158,14 @@ module Google
232
158
  # @param [String] name
233
159
  # Required. The resource name of the project associated with the service
234
160
  # accounts, such as `projects/my-project-123`.
235
- # @param [String] page_token
236
- # Optional pagination token returned in an earlier
237
- # ListServiceAccountsResponse.next_page_token.
238
161
  # @param [Fixnum] page_size
239
162
  # Optional limit on the number of service accounts to include in the
240
163
  # response. Further accounts can subsequently be obtained by including the
241
164
  # ListServiceAccountsResponse.next_page_token
242
165
  # in a subsequent request.
166
+ # @param [String] page_token
167
+ # Optional pagination token returned in an earlier
168
+ # ListServiceAccountsResponse.next_page_token.
243
169
  # @param [String] fields
244
170
  # Selector specifying which fields to include in a partial response.
245
171
  # @param [String] quota_user
@@ -257,24 +183,24 @@ module Google
257
183
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
258
184
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
259
185
  # @raise [Google::Apis::AuthorizationError] Authorization is required
260
- def list_project_service_accounts(name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
186
+ def list_project_service_accounts(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
261
187
  command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options)
262
188
  command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation
263
189
  command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse
264
190
  command.params['name'] = name unless name.nil?
265
- command.query['pageToken'] = page_token unless page_token.nil?
266
191
  command.query['pageSize'] = page_size unless page_size.nil?
192
+ command.query['pageToken'] = page_token unless page_token.nil?
267
193
  command.query['fields'] = fields unless fields.nil?
268
194
  command.query['quotaUser'] = quota_user unless quota_user.nil?
269
195
  execute_or_queue_command(command, &block)
270
196
  end
271
197
 
272
- # Creates a ServiceAccount
273
- # and returns it.
274
- # @param [String] name
275
- # Required. The resource name of the project associated with the service
276
- # accounts, such as `projects/my-project-123`.
277
- # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
198
+ # Sets the IAM access control policy for a
199
+ # ServiceAccount.
200
+ # @param [String] resource
201
+ # REQUIRED: The resource for which the policy is being specified.
202
+ # See the operation documentation for the appropriate value for this field.
203
+ # @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
278
204
  # @param [String] fields
279
205
  # Selector specifying which fields to include in a partial response.
280
206
  # @param [String] quota_user
@@ -284,21 +210,21 @@ module Google
284
210
  # Request-specific options
285
211
  #
286
212
  # @yield [result, err] Result & error if block supplied
287
- # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
213
+ # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
288
214
  # @yieldparam err [StandardError] error object if request failed
289
215
  #
290
- # @return [Google::Apis::IamV1::ServiceAccount]
216
+ # @return [Google::Apis::IamV1::Policy]
291
217
  #
292
218
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
293
219
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
294
220
  # @raise [Google::Apis::AuthorizationError] Authorization is required
295
- def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
296
- command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
297
- command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
298
- command.request_object = create_service_account_request_object
299
- command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
300
- command.response_class = Google::Apis::IamV1::ServiceAccount
301
- command.params['name'] = name unless name.nil?
221
+ def set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
222
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
223
+ command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
224
+ command.request_object = set_iam_policy_request_object
225
+ command.response_representation = Google::Apis::IamV1::Policy::Representation
226
+ command.response_class = Google::Apis::IamV1::Policy
227
+ command.params['resource'] = resource unless resource.nil?
302
228
  command.query['fields'] = fields unless fields.nil?
303
229
  command.query['quotaUser'] = quota_user unless quota_user.nil?
304
230
  execute_or_queue_command(command, &block)
@@ -344,12 +270,12 @@ module Google
344
270
  execute_or_queue_command(command, &block)
345
271
  end
346
272
 
347
- # Sets the IAM access control policy for a
348
- # ServiceAccount.
349
- # @param [String] resource
350
- # REQUIRED: The resource for which the policy is being specified.
351
- # See the operation documentation for the appropriate value for this field.
352
- # @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
273
+ # Creates a ServiceAccount
274
+ # and returns it.
275
+ # @param [String] name
276
+ # Required. The resource name of the project associated with the service
277
+ # accounts, such as `projects/my-project-123`.
278
+ # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
353
279
  # @param [String] fields
354
280
  # Selector specifying which fields to include in a partial response.
355
281
  # @param [String] quota_user
@@ -359,21 +285,21 @@ module Google
359
285
  # Request-specific options
360
286
  #
361
287
  # @yield [result, err] Result & error if block supplied
362
- # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
288
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
363
289
  # @yieldparam err [StandardError] error object if request failed
364
290
  #
365
- # @return [Google::Apis::IamV1::Policy]
291
+ # @return [Google::Apis::IamV1::ServiceAccount]
366
292
  #
367
293
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
368
294
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
369
295
  # @raise [Google::Apis::AuthorizationError] Authorization is required
370
- def set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
371
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
372
- command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
373
- command.request_object = set_iam_policy_request_object
374
- command.response_representation = Google::Apis::IamV1::Policy::Representation
375
- command.response_class = Google::Apis::IamV1::Policy
376
- command.params['resource'] = resource unless resource.nil?
296
+ def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
297
+ command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
298
+ command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
299
+ command.request_object = create_service_account_request_object
300
+ command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
301
+ command.response_class = Google::Apis::IamV1::ServiceAccount
302
+ command.params['name'] = name unless name.nil?
377
303
  command.query['fields'] = fields unless fields.nil?
378
304
  command.query['quotaUser'] = quota_user unless quota_user.nil?
379
305
  execute_or_queue_command(command, &block)
@@ -445,6 +371,48 @@ module Google
445
371
  execute_or_queue_command(command, &block)
446
372
  end
447
373
 
374
+ # Updates a ServiceAccount.
375
+ # Currently, only the following fields are updatable:
376
+ # `display_name` .
377
+ # The `etag` is mandatory.
378
+ # @param [String] name
379
+ # The resource name of the service account in the following format:
380
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
381
+ # Requests using `-` as a wildcard for the project will infer the project
382
+ # from the `account` and the `account` value can be the `email` address or
383
+ # the `unique_id` of the service account.
384
+ # In responses the resource name will always be in the format
385
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
386
+ # @param [Google::Apis::IamV1::ServiceAccount] service_account_object
387
+ # @param [String] fields
388
+ # Selector specifying which fields to include in a partial response.
389
+ # @param [String] quota_user
390
+ # Available to use for quota purposes for server-side applications. Can be any
391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
392
+ # @param [Google::Apis::RequestOptions] options
393
+ # Request-specific options
394
+ #
395
+ # @yield [result, err] Result & error if block supplied
396
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
397
+ # @yieldparam err [StandardError] error object if request failed
398
+ #
399
+ # @return [Google::Apis::IamV1::ServiceAccount]
400
+ #
401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
404
+ def update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
405
+ command = make_simple_command(:put, 'v1/{+name}', options)
406
+ command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation
407
+ command.request_object = service_account_object
408
+ command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
409
+ command.response_class = Google::Apis::IamV1::ServiceAccount
410
+ command.params['name'] = name unless name.nil?
411
+ command.query['fields'] = fields unless fields.nil?
412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
413
+ execute_or_queue_command(command, &block)
414
+ end
415
+
448
416
  # Deletes a ServiceAccountKey.
449
417
  # @param [String] name
450
418
  # The resource name of the service account key in the following format:
@@ -594,6 +562,38 @@ module Google
594
562
  command.query['quotaUser'] = quota_user unless quota_user.nil?
595
563
  execute_or_queue_command(command, &block)
596
564
  end
565
+
566
+ # Queries roles that can be granted on a particular resource.
567
+ # A role is grantable if it can be used as the role in a binding for a policy
568
+ # for that resource.
569
+ # @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def query_grantable_roles(query_grantable_roles_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
589
+ command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
590
+ command.request_object = query_grantable_roles_request_object
591
+ command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
592
+ command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
593
+ command.query['fields'] = fields unless fields.nil?
594
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
595
+ execute_or_queue_command(command, &block)
596
+ end
597
597
 
598
598
  protected
599
599
 
@@ -1018,6 +1018,7 @@ module Google
1018
1018
 
1019
1019
  # The salt separator.
1020
1020
  # Corresponds to the JSON property `saltSeparator`
1021
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1021
1022
  # @return [String]
1022
1023
  attr_accessor :salt_separator
1023
1024
 
@@ -1030,6 +1031,7 @@ module Google
1030
1031
 
1031
1032
  # The key for to hash the password.
1032
1033
  # Corresponds to the JSON property `signerKey`
1034
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1033
1035
  # @return [String]
1034
1036
  attr_accessor :signer_key
1035
1037
 
@@ -1503,6 +1505,7 @@ module Google
1503
1505
 
1504
1506
  # The user's hashed password.
1505
1507
  # Corresponds to the JSON property `passwordHash`
1508
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1506
1509
  # @return [String]
1507
1510
  attr_accessor :password_hash
1508
1511
 
@@ -1736,6 +1739,7 @@ module Google
1736
1739
 
1737
1740
  # The user's hashed password.
1738
1741
  # Corresponds to the JSON property `passwordHash`
1742
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1739
1743
  # @return [String]
1740
1744
  attr_accessor :password_hash
1741
1745
 
@@ -1761,6 +1765,7 @@ module Google
1761
1765
 
1762
1766
  # The user's password salt.
1763
1767
  # Corresponds to the JSON property `salt`
1768
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1764
1769
  # @return [String]
1765
1770
  attr_accessor :salt
1766
1771
 
@@ -27,6 +27,11 @@ 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
+
30
35
  # The local context applicable for the response. See more details at
31
36
  # http://www.w3.org/TR/json-ld/#context-definitions.
32
37
  # Corresponds to the JSON property `@context`
@@ -38,20 +43,15 @@ module Google
38
43
  # @return [Array<Object>]
39
44
  attr_accessor :item_list_element
40
45
 
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)
52
53
  @_context = args[:_context] if args.key?(:_context)
53
54
  @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'
34
35
  property :_context, as: '@context'
35
36
  collection :item_list_element, as: 'itemListElement'
36
- property :_type, as: '@type'
37
37
  end
38
38
  end
39
39
  end
@@ -49,6 +49,8 @@ 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.
52
54
  # @param [Array<String>, String] languages
53
55
  # The list of language codes (defined in ISO 693) to run the query with,
54
56
  # e.g. 'en'.
@@ -66,8 +68,6 @@ module Google
66
68
  # Restricts returned entities with these types, e.g. Person
67
69
  # (as defined in http://schema.org/Person). If multiple types are specified,
68
70
  # returned entities will contain one or more of these types.
69
- # @param [Boolean] indent
70
- # Enables indenting of json results.
71
71
  # @param [String] quota_user
72
72
  # Available to use for quota purposes for server-side applications. Can be any
73
73
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -85,17 +85,17 @@ 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(languages: nil, ids: nil, limit: nil, prefix: nil, query: nil, types: nil, indent: nil, quota_user: nil, fields: 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['indent'] = indent unless indent.nil?
92
93
  command.query['languages'] = languages unless languages.nil?
93
94
  command.query['ids'] = ids unless ids.nil?
94
95
  command.query['limit'] = limit unless limit.nil?
95
96
  command.query['prefix'] = prefix unless prefix.nil?
96
97
  command.query['query'] = query unless query.nil?
97
98
  command.query['types'] = types unless types.nil?
98
- command.query['indent'] = indent unless indent.nil?
99
99
  command.query['quotaUser'] = quota_user unless quota_user.nil?
100
100
  command.query['fields'] = fields unless fields.nil?
101
101
  execute_or_queue_command(command, &block)
@@ -0,0 +1,36 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/language_v1/service.rb'
16
+ require 'google/apis/language_v1/classes.rb'
17
+ require 'google/apis/language_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Natural Language API
22
+ #
23
+ # Google Cloud Natural Language API provides natural language understanding
24
+ # technologies to developers. Examples include sentiment analysis, entity
25
+ # recognition, and text annotations.
26
+ #
27
+ # @see https://cloud.google.com/natural-language/
28
+ module LanguageV1
29
+ VERSION = 'V1'
30
+ REVISION = '20170320'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end