google-api-client 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +75 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
  10. data/generated/google/apis/admin_directory_v1/service.rb +71 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
  13. data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
  14. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  15. data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
  16. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  17. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
  18. data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
  19. data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
  20. data/generated/google/apis/appengine_v1.rb +1 -1
  21. data/generated/google/apis/appengine_v1/classes.rb +1 -46
  22. data/generated/google/apis/appengine_v1/representations.rb +0 -17
  23. data/generated/google/apis/appengine_v1/service.rb +5 -1
  24. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  25. data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
  26. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
  27. data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
  30. data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
  31. data/generated/google/apis/appengine_v1beta/service.rb +5 -1
  32. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
  34. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
  35. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  36. data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
  37. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +41 -24
  40. data/generated/google/apis/bigquery_v2/representations.rb +3 -0
  41. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  42. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
  43. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
  44. data/generated/google/apis/calendar_v3.rb +1 -1
  45. data/generated/google/apis/calendar_v3/service.rb +15 -3
  46. data/generated/google/apis/classroom_v1.rb +4 -1
  47. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
  51. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  52. data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
  53. data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
  54. data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
  55. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  56. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
  57. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
  58. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
  59. data/generated/google/apis/cloudiot_v1.rb +1 -1
  60. data/generated/google/apis/cloudiot_v1/service.rb +7 -3
  61. data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
  62. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  63. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
  64. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
  65. data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
  66. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  67. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
  68. data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
  69. data/generated/google/apis/compute_alpha.rb +1 -1
  70. data/generated/google/apis/compute_alpha/classes.rb +143 -83
  71. data/generated/google/apis/compute_alpha/representations.rb +50 -30
  72. data/generated/google/apis/compute_alpha/service.rb +171 -5
  73. data/generated/google/apis/compute_beta.rb +1 -1
  74. data/generated/google/apis/compute_beta/classes.rb +47 -43
  75. data/generated/google/apis/compute_beta/representations.rb +1 -2
  76. data/generated/google/apis/compute_beta/service.rb +60 -5
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +1326 -168
  79. data/generated/google/apis/compute_v1/representations.rb +402 -0
  80. data/generated/google/apis/compute_v1/service.rb +751 -5
  81. data/generated/google/apis/container_v1beta1.rb +1 -1
  82. data/generated/google/apis/content_v2.rb +1 -1
  83. data/generated/google/apis/content_v2/classes.rb +23 -16
  84. data/generated/google/apis/content_v2/service.rb +142 -162
  85. data/generated/google/apis/content_v2sandbox.rb +1 -1
  86. data/generated/google/apis/content_v2sandbox/service.rb +43 -43
  87. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  88. data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
  89. data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
  90. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  91. data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
  92. data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
  93. data/generated/google/apis/datastore_v1.rb +1 -1
  94. data/generated/google/apis/datastore_v1/classes.rb +39 -60
  95. data/generated/google/apis/datastore_v1/representations.rb +27 -0
  96. data/generated/google/apis/datastore_v1/service.rb +34 -0
  97. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  98. data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
  99. data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
  100. data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
  101. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
  103. data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
  104. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  105. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
  106. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
  107. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  108. data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
  109. data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
  110. data/generated/google/apis/dns_v1beta2.rb +43 -0
  111. data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
  112. data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
  113. data/generated/google/apis/dns_v1beta2/service.rb +769 -0
  114. data/generated/google/apis/drive_v2.rb +1 -1
  115. data/generated/google/apis/drive_v2/classes.rb +6 -0
  116. data/generated/google/apis/drive_v2/representations.rb +2 -0
  117. data/generated/google/apis/drive_v2/service.rb +51 -8
  118. data/generated/google/apis/drive_v3.rb +1 -1
  119. data/generated/google/apis/drive_v3/classes.rb +6 -0
  120. data/generated/google/apis/drive_v3/representations.rb +2 -0
  121. data/generated/google/apis/drive_v3/service.rb +45 -7
  122. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  123. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
  124. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
  125. data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
  126. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
  127. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
  128. data/generated/google/apis/firebaserules_v1.rb +1 -1
  129. data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
  130. data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
  131. data/generated/google/apis/firebaserules_v1/service.rb +37 -0
  132. data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
  133. data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
  134. data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
  135. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  136. data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
  137. data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
  138. data/generated/google/apis/iam_v1.rb +1 -1
  139. data/generated/google/apis/iam_v1/classes.rb +5 -7
  140. data/generated/google/apis/language_v1.rb +1 -1
  141. data/generated/google/apis/language_v1/classes.rb +78 -0
  142. data/generated/google/apis/language_v1/representations.rb +45 -0
  143. data/generated/google/apis/language_v1/service.rb +30 -0
  144. data/generated/google/apis/language_v1beta2.rb +1 -1
  145. data/generated/google/apis/language_v1beta2/classes.rb +3 -1
  146. data/generated/google/apis/logging_v2.rb +1 -1
  147. data/generated/google/apis/logging_v2/classes.rb +9 -0
  148. data/generated/google/apis/logging_v2/representations.rb +1 -0
  149. data/generated/google/apis/logging_v2/service.rb +517 -0
  150. data/generated/google/apis/logging_v2beta1.rb +1 -1
  151. data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
  152. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  153. data/generated/google/apis/manufacturers_v1.rb +1 -1
  154. data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
  155. data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
  156. data/generated/google/apis/ml_v1.rb +1 -1
  157. data/generated/google/apis/ml_v1/classes.rb +22 -6
  158. data/generated/google/apis/ml_v1/service.rb +8 -2
  159. data/generated/google/apis/monitoring_v3.rb +1 -1
  160. data/generated/google/apis/monitoring_v3/classes.rb +358 -0
  161. data/generated/google/apis/monitoring_v3/representations.rb +145 -0
  162. data/generated/google/apis/monitoring_v3/service.rb +229 -0
  163. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  164. data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
  165. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  166. data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
  167. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  168. data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
  169. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  170. data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
  171. data/generated/google/apis/partners_v2.rb +1 -1
  172. data/generated/google/apis/partners_v2/classes.rb +7 -60
  173. data/generated/google/apis/partners_v2/representations.rb +1 -0
  174. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  175. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  176. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
  177. data/generated/google/apis/script_v1.rb +2 -2
  178. data/generated/google/apis/script_v1/classes.rb +57 -51
  179. data/generated/google/apis/script_v1/representations.rb +0 -1
  180. data/generated/google/apis/script_v1/service.rb +2 -2
  181. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  182. data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
  183. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  184. data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
  185. data/generated/google/apis/serviceuser_v1.rb +1 -1
  186. data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
  187. data/generated/google/apis/sheets_v4.rb +1 -1
  188. data/generated/google/apis/sheets_v4/classes.rb +1 -2
  189. data/generated/google/apis/slides_v1.rb +1 -1
  190. data/generated/google/apis/slides_v1/classes.rb +505 -11
  191. data/generated/google/apis/slides_v1/representations.rb +220 -0
  192. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  193. data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
  194. data/generated/google/apis/speech_v1.rb +1 -1
  195. data/generated/google/apis/speech_v1/classes.rb +10 -1
  196. data/generated/google/apis/speech_v1/representations.rb +1 -0
  197. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  198. data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
  199. data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
  200. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  201. data/generated/google/apis/storage_v1.rb +1 -1
  202. data/generated/google/apis/storage_v1/service.rb +51 -72
  203. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  204. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
  205. data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
  206. data/generated/google/apis/testing_v1.rb +1 -1
  207. data/generated/google/apis/testing_v1/classes.rb +8 -3
  208. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  209. data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
  210. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  211. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  212. data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
  213. data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
  214. data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
  215. data/google-api-client.gemspec +1 -1
  216. data/lib/google/apis/generator/model.rb +9 -3
  217. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  218. data/lib/google/apis/version.rb +1 -1
  219. metadata +14 -12
  220. data/generated/google/apis/playmoviespartner_v1.rb +0 -34
  221. data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
  222. data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
  223. data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
  224. data/generated/google/apis/qpx_express_v1.rb +0 -31
  225. data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
  226. data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
  227. data/generated/google/apis/qpx_express_v1/service.rb +0 -101
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/compute/docs/oslogin/rest/
26
26
  module OsloginV1alpha
27
27
  VERSION = 'V1alpha'
28
- REVISION = '20170926'
28
+ REVISION = '20171031'
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'
@@ -45,8 +45,8 @@ module Google
45
45
  class ImportSshPublicKeyResponse
46
46
  include Google::Apis::Core::Hashable
47
47
 
48
- # The Directory API profile information used for logging in to a virtual
49
- # machine on Google Compute Engine.
48
+ # The user profile information used for logging in to a virtual machine on
49
+ # Google Compute Engine.
50
50
  # Corresponds to the JSON property `loginProfile`
51
51
  # @return [Google::Apis::OsloginV1alpha::LoginProfile]
52
52
  attr_accessor :login_profile
@@ -61,8 +61,8 @@ module Google
61
61
  end
62
62
  end
63
63
 
64
- # The Directory API profile information used for logging in to a virtual
65
- # machine on Google Compute Engine.
64
+ # The user profile information used for logging in to a virtual machine on
65
+ # Google Compute Engine.
66
66
  class LoginProfile
67
67
  include Google::Apis::Core::Hashable
68
68
 
@@ -100,10 +100,15 @@ module Google
100
100
  end
101
101
  end
102
102
 
103
- # The POSIX account information associated with a Directory API User.
103
+ # The POSIX account information associated with a Google account.
104
104
  class PosixAccount
105
105
  include Google::Apis::Core::Hashable
106
106
 
107
+ # Output only. A POSIX account identifier.
108
+ # Corresponds to the JSON property `accountId`
109
+ # @return [String]
110
+ attr_accessor :account_id
111
+
107
112
  # The GECOS (user information) entry for this account.
108
113
  # Corresponds to the JSON property `gecos`
109
114
  # @return [String]
@@ -152,6 +157,7 @@ module Google
152
157
 
153
158
  # Update properties of this object
154
159
  def update!(**args)
160
+ @account_id = args[:account_id] if args.key?(:account_id)
155
161
  @gecos = args[:gecos] if args.key?(:gecos)
156
162
  @gid = args[:gid] if args.key?(:gid)
157
163
  @home_directory = args[:home_directory] if args.key?(:home_directory)
@@ -163,7 +169,7 @@ module Google
163
169
  end
164
170
  end
165
171
 
166
- # The SSH public key information associated with a Directory API User.
172
+ # The SSH public key information associated with a Google account.
167
173
  class SshPublicKey
168
174
  include Google::Apis::Core::Hashable
169
175
 
@@ -172,8 +178,7 @@ module Google
172
178
  # @return [Fixnum]
173
179
  attr_accessor :expiration_time_usec
174
180
 
175
- # The SHA-256 fingerprint of the SSH public key.
176
- # Output only.
181
+ # Output only. The SHA-256 fingerprint of the SSH public key.
177
182
  # Corresponds to the JSON property `fingerprint`
178
183
  # @return [String]
179
184
  attr_accessor :fingerprint
@@ -81,6 +81,7 @@ module Google
81
81
  class PosixAccount
82
82
  # @private
83
83
  class Representation < Google::Apis::Core::JsonRepresentation
84
+ property :account_id, as: 'accountId'
84
85
  property :gecos, as: 'gecos'
85
86
  property :gid, :numeric_string => true, as: 'gid'
86
87
  property :home_directory, as: 'homeDirectory'
@@ -84,6 +84,8 @@ module Google
84
84
  # @param [String] parent
85
85
  # The unique ID for the user in format `users/`user``.
86
86
  # @param [Google::Apis::OsloginV1alpha::SshPublicKey] ssh_public_key_object
87
+ # @param [String] project_id
88
+ # The project ID of the Google Cloud Platform project.
87
89
  # @param [String] fields
88
90
  # Selector specifying which fields to include in a partial response.
89
91
  # @param [String] quota_user
@@ -101,13 +103,46 @@ module Google
101
103
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
104
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
105
  # @raise [Google::Apis::AuthorizationError] Authorization is required
104
- def import_user_ssh_public_key(parent, ssh_public_key_object = nil, fields: nil, quota_user: nil, options: nil, &block)
106
+ def import_user_ssh_public_key(parent, ssh_public_key_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
105
107
  command = make_simple_command(:post, 'v1alpha/{+parent}:importSshPublicKey', options)
106
108
  command.request_representation = Google::Apis::OsloginV1alpha::SshPublicKey::Representation
107
109
  command.request_object = ssh_public_key_object
108
110
  command.response_representation = Google::Apis::OsloginV1alpha::ImportSshPublicKeyResponse::Representation
109
111
  command.response_class = Google::Apis::OsloginV1alpha::ImportSshPublicKeyResponse
110
112
  command.params['parent'] = parent unless parent.nil?
113
+ command.query['projectId'] = project_id unless project_id.nil?
114
+ command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ execute_or_queue_command(command, &block)
117
+ end
118
+
119
+ # Deletes a POSIX account.
120
+ # @param [String] name
121
+ # A reference to the POSIX account to update. POSIX accounts are identified
122
+ # by the project ID they are associated with. A reference to the POSIX
123
+ # account is in format `users/`user`/projects/`project``.
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
126
+ # @param [String] quota_user
127
+ # Available to use for quota purposes for server-side applications. Can be any
128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
129
+ # @param [Google::Apis::RequestOptions] options
130
+ # Request-specific options
131
+ #
132
+ # @yield [result, err] Result & error if block supplied
133
+ # @yieldparam result [Google::Apis::OsloginV1alpha::Empty] parsed result object
134
+ # @yieldparam err [StandardError] error object if request failed
135
+ #
136
+ # @return [Google::Apis::OsloginV1alpha::Empty]
137
+ #
138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
141
+ def delete_user_project(name, fields: nil, quota_user: nil, options: nil, &block)
142
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
143
+ command.response_representation = Google::Apis::OsloginV1alpha::Empty::Representation
144
+ command.response_class = Google::Apis::OsloginV1alpha::Empty
145
+ command.params['name'] = name unless name.nil?
111
146
  command.query['fields'] = fields unless fields.nil?
112
147
  command.query['quotaUser'] = quota_user unless quota_user.nil?
113
148
  execute_or_queue_command(command, &block)
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/compute/docs/oslogin/rest/
26
26
  module OsloginV1beta
27
27
  VERSION = 'V1beta'
28
- REVISION = '20170926'
28
+ REVISION = '20171031'
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'
@@ -101,10 +101,15 @@ module Google
101
101
  end
102
102
  end
103
103
 
104
- # The POSIX account information associated with a Directory API User.
104
+ # The POSIX account information associated with a Google account.
105
105
  class PosixAccount
106
106
  include Google::Apis::Core::Hashable
107
107
 
108
+ # Output only. A POSIX account identifier.
109
+ # Corresponds to the JSON property `accountId`
110
+ # @return [String]
111
+ attr_accessor :account_id
112
+
108
113
  # The GECOS (user information) entry for this account.
109
114
  # Corresponds to the JSON property `gecos`
110
115
  # @return [String]
@@ -153,6 +158,7 @@ module Google
153
158
 
154
159
  # Update properties of this object
155
160
  def update!(**args)
161
+ @account_id = args[:account_id] if args.key?(:account_id)
156
162
  @gecos = args[:gecos] if args.key?(:gecos)
157
163
  @gid = args[:gid] if args.key?(:gid)
158
164
  @home_directory = args[:home_directory] if args.key?(:home_directory)
@@ -164,7 +170,7 @@ module Google
164
170
  end
165
171
  end
166
172
 
167
- # The SSH public key information associated with a Directory API User.
173
+ # The SSH public key information associated with a Google account.
168
174
  class SshPublicKey
169
175
  include Google::Apis::Core::Hashable
170
176
 
@@ -173,8 +179,7 @@ module Google
173
179
  # @return [Fixnum]
174
180
  attr_accessor :expiration_time_usec
175
181
 
176
- # The SHA-256 fingerprint of the SSH public key.
177
- # Output only.
182
+ # Output only. The SHA-256 fingerprint of the SSH public key.
178
183
  # Corresponds to the JSON property `fingerprint`
179
184
  # @return [String]
180
185
  attr_accessor :fingerprint
@@ -81,6 +81,7 @@ module Google
81
81
  class PosixAccount
82
82
  # @private
83
83
  class Representation < Google::Apis::Core::JsonRepresentation
84
+ property :account_id, as: 'accountId'
84
85
  property :gecos, as: 'gecos'
85
86
  property :gid, :numeric_string => true, as: 'gid'
86
87
  property :home_directory, as: 'homeDirectory'
@@ -84,6 +84,8 @@ module Google
84
84
  # @param [String] parent
85
85
  # The unique ID for the user in format `users/`user``.
86
86
  # @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object
87
+ # @param [String] project_id
88
+ # The project ID of the Google Cloud Platform project.
87
89
  # @param [String] fields
88
90
  # Selector specifying which fields to include in a partial response.
89
91
  # @param [String] quota_user
@@ -101,13 +103,46 @@ module Google
101
103
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
104
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
105
  # @raise [Google::Apis::AuthorizationError] Authorization is required
104
- def import_user_ssh_public_key(parent, ssh_public_key_object = nil, fields: nil, quota_user: nil, options: nil, &block)
106
+ def import_user_ssh_public_key(parent, ssh_public_key_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
105
107
  command = make_simple_command(:post, 'v1beta/{+parent}:importSshPublicKey', options)
106
108
  command.request_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation
107
109
  command.request_object = ssh_public_key_object
108
110
  command.response_representation = Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse::Representation
109
111
  command.response_class = Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse
110
112
  command.params['parent'] = parent unless parent.nil?
113
+ command.query['projectId'] = project_id unless project_id.nil?
114
+ command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ execute_or_queue_command(command, &block)
117
+ end
118
+
119
+ # Deletes a POSIX account.
120
+ # @param [String] name
121
+ # A reference to the POSIX account to update. POSIX accounts are identified
122
+ # by the project ID they are associated with. A reference to the POSIX
123
+ # account is in format `users/`user`/projects/`project``.
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
126
+ # @param [String] quota_user
127
+ # Available to use for quota purposes for server-side applications. Can be any
128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
129
+ # @param [Google::Apis::RequestOptions] options
130
+ # Request-specific options
131
+ #
132
+ # @yield [result, err] Result & error if block supplied
133
+ # @yieldparam result [Google::Apis::OsloginV1beta::Empty] parsed result object
134
+ # @yieldparam err [StandardError] error object if request failed
135
+ #
136
+ # @return [Google::Apis::OsloginV1beta::Empty]
137
+ #
138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
141
+ def delete_user_project(name, fields: nil, quota_user: nil, options: nil, &block)
142
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
143
+ command.response_representation = Google::Apis::OsloginV1beta::Empty::Representation
144
+ command.response_class = Google::Apis::OsloginV1beta::Empty
145
+ command.params['name'] = name unless name.nil?
111
146
  command.query['fields'] = fields unless fields.nil?
112
147
  command.query['quotaUser'] = quota_user unless quota_user.nil?
113
148
  execute_or_queue_command(command, &block)
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/partners/
27
27
  module PartnersV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170812'
29
+ REVISION = '20171031'
30
30
  end
31
31
  end
32
32
  end
@@ -1064,36 +1064,6 @@ module Google
1064
1064
  # specified otherwise, this must conform to the
1065
1065
  # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1066
1066
  # standard</a>. Values must be within normalized ranges.
1067
- # Example of normalization code in Python:
1068
- # def NormalizeLongitude(longitude):
1069
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
1070
- # q, r = divmod(longitude, 360.0)
1071
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
1072
- # return r - 360.0
1073
- # return r
1074
- # def NormalizeLatLng(latitude, longitude):
1075
- # """Wraps decimal degrees latitude and longitude to
1076
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1077
- # r = latitude % 360.0
1078
- # if r <= 90.0:
1079
- # return r, NormalizeLongitude(longitude)
1080
- # elif r >= 270.0:
1081
- # return r - 360, NormalizeLongitude(longitude)
1082
- # else:
1083
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
1084
- # assert 180.0 == NormalizeLongitude(180.0)
1085
- # assert -180.0 == NormalizeLongitude(-180.0)
1086
- # assert -179.0 == NormalizeLongitude(181.0)
1087
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
1088
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
1089
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
1090
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
1091
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
1092
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1093
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1094
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1095
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1096
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1097
1067
  class LatLng
1098
1068
  include Google::Apis::Core::Hashable
1099
1069
 
@@ -1530,36 +1500,6 @@ module Google
1530
1500
  # specified otherwise, this must conform to the
1531
1501
  # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1532
1502
  # standard</a>. Values must be within normalized ranges.
1533
- # Example of normalization code in Python:
1534
- # def NormalizeLongitude(longitude):
1535
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
1536
- # q, r = divmod(longitude, 360.0)
1537
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
1538
- # return r - 360.0
1539
- # return r
1540
- # def NormalizeLatLng(latitude, longitude):
1541
- # """Wraps decimal degrees latitude and longitude to
1542
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1543
- # r = latitude % 360.0
1544
- # if r <= 90.0:
1545
- # return r, NormalizeLongitude(longitude)
1546
- # elif r >= 270.0:
1547
- # return r - 360, NormalizeLongitude(longitude)
1548
- # else:
1549
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
1550
- # assert 180.0 == NormalizeLongitude(180.0)
1551
- # assert -180.0 == NormalizeLongitude(-180.0)
1552
- # assert -179.0 == NormalizeLongitude(181.0)
1553
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
1554
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
1555
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
1556
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
1557
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
1558
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1559
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1560
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1561
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1562
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1563
1503
  # Corresponds to the JSON property `latLng`
1564
1504
  # @return [Google::Apis::PartnersV2::LatLng]
1565
1505
  attr_accessor :lat_lng
@@ -2282,6 +2222,12 @@ module Google
2282
2222
  # @return [Array<String>]
2283
2223
  attr_accessor :markets
2284
2224
 
2225
+ # Whether or not to migrate the user's exam data to Academy for Ads.
2226
+ # Corresponds to the JSON property `migrateToAfa`
2227
+ # @return [Boolean]
2228
+ attr_accessor :migrate_to_afa
2229
+ alias_method :migrate_to_afa?, :migrate_to_afa
2230
+
2285
2231
  # The user's phone number.
2286
2232
  # Corresponds to the JSON property `phoneNumber`
2287
2233
  # @return [String]
@@ -2315,6 +2261,7 @@ module Google
2315
2261
  @job_functions = args[:job_functions] if args.key?(:job_functions)
2316
2262
  @languages = args[:languages] if args.key?(:languages)
2317
2263
  @markets = args[:markets] if args.key?(:markets)
2264
+ @migrate_to_afa = args[:migrate_to_afa] if args.key?(:migrate_to_afa)
2318
2265
  @phone_number = args[:phone_number] if args.key?(:phone_number)
2319
2266
  @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code)
2320
2267
  @profile_public = args[:profile_public] if args.key?(:profile_public)
@@ -907,6 +907,7 @@ module Google
907
907
  collection :job_functions, as: 'jobFunctions'
908
908
  collection :languages, as: 'languages'
909
909
  collection :markets, as: 'markets'
910
+ property :migrate_to_afa, as: 'migrateToAfa'
910
911
  property :phone_number, as: 'phoneNumber'
911
912
  property :primary_country_code, as: 'primaryCountryCode'
912
913
  property :profile_public, as: 'profilePublic'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/beacons/proximity/
26
26
  module ProximitybeaconV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20171003'
28
+ REVISION = '20171017'
29
29
 
30
30
  # View and modify your beacons
31
31
  AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
@@ -28,7 +28,7 @@ module Google
28
28
  # @see https://cloud.google.com/deployment-manager/runtime-configurator/
29
29
  module RuntimeconfigV1beta1
30
30
  VERSION = 'V1beta1'
31
- REVISION = '20170829'
31
+ REVISION = '20171030'
32
32
 
33
33
  # View and manage your data across Google Cloud Platform services
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -416,8 +416,9 @@ module Google
416
416
  # The resource name of a runtime config. The name must have the format:
417
417
  # projects/[PROJECT_ID]/configs/[CONFIG_NAME]
418
418
  # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
419
- # arbitrary name that matches RFC 1035 segment specification. The length of
420
- # `[CONFIG_NAME]` must be less than 64 bytes.
419
+ # arbitrary name that matches
420
+ # [0-9A-Za-z](?:[_.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])? regular expression.
421
+ # The length of `[CONFIG_NAME]` must be less than 64 characters.
421
422
  # You pick the RuntimeConfig resource name, but the server will validate that
422
423
  # the name adheres to this format. After you create the resource, you cannot
423
424
  # change the resource's name.
@@ -611,8 +612,9 @@ module Google
611
612
  # dashes. Slashes are used as path element separators and are not part of the
612
613
  # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
613
614
  # non-slash character. Multiple slashes are coalesced into single slash
614
- # character. Each path segment should follow RFC 1035 segment specification.
615
- # The length of a `[VARIABLE_NAME]` must be less than 256 bytes.
615
+ # character. Each path segment should match
616
+ # [0-9A-Za-z](?:[_.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])? regular expression.
617
+ # The length of a `[VARIABLE_NAME]` must be less than 256 characters.
616
618
  # Once you create a variable, you cannot change the variable name.
617
619
  # Corresponds to the JSON property `name`
618
620
  # @return [String]
@@ -18,14 +18,14 @@ require 'google/apis/script_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google Apps Script Execution API
21
+ # Google Apps Script API
22
22
  #
23
23
  # An API for managing and executing Google Apps Script projects.
24
24
  #
25
25
  # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
26
26
  module ScriptV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170927'
28
+ REVISION = '20171024'
29
29
 
30
30
  # Read, send, delete, and manage your email
31
31
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -22,12 +22,14 @@ module Google
22
22
  module Apis
23
23
  module ScriptV1
24
24
 
25
- # An object that provides information about the nature of an error in the Apps
26
- # Script Execution API. If an
27
- # `run` call succeeds but the
28
- # script function (or Apps Script itself) throws an exception, the response
29
- # body's `error` field contains a
30
- # `Status` object. The `Status` object's `details` field
25
+ # An object that provides information about the nature of an error resulting
26
+ # from an attempted execution of a script function using the Apps Script API.
27
+ # If a run or
28
+ # runAsync call
29
+ # succeeds but the script function (or Apps Script itself) throws an exception,
30
+ # the response body's error field
31
+ # contains a
32
+ # Status object. The `Status` object's `details` field
31
33
  # contains an array with a single one of these `ExecutionError` objects.
32
34
  class ExecutionError
33
35
  include Google::Apis::Core::Hashable
@@ -70,7 +72,7 @@ module Google
70
72
 
71
73
  # If `true` and the user is an owner of the script, the script runs at the
72
74
  # most recently saved version rather than the version deployed for use with
73
- # the Execution API. Optional; default is `false`.
75
+ # the Apps Script API. Optional; default is `false`.
74
76
  # Corresponds to the JSON property `devMode`
75
77
  # @return [Boolean]
76
78
  attr_accessor :dev_mode
@@ -93,12 +95,13 @@ module Google
93
95
 
94
96
  # For Android add-ons only. An ID that represents the user's current session
95
97
  # in the Android app for Google Docs or Sheets, included as extra data in the
96
- # [`Intent`](https://developer.android.com/guide/components/intents-filters.html)
98
+ # [Intent](https://developer.android.com/guide/components/intents-filters.html)
97
99
  # that launches the add-on. When an Android add-on is run with a session
98
100
  # state, it gains the privileges of a
99
- # [bound](https://developers.google.com/apps-script/guides/bound) script &mdash;
100
- # that is, it can access information like the user's current cursor position
101
- # (in Docs) or selected cell (in Sheets). To retrieve the state, call
101
+ # [bound](https://developers.google.com/apps-script/guides/bound)
102
+ # script&mdash;that is, it can access information like the user's current
103
+ # cursor position (in Docs) or selected cell (in Sheets). To retrieve the
104
+ # state, call
102
105
  # `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`.
103
106
  # Optional.
104
107
  # Corresponds to the JSON property `sessionState`
@@ -118,17 +121,15 @@ module Google
118
121
  end
119
122
  end
120
123
 
121
- # An object that provides the return value of a function executed through the
122
- # Apps Script Execution API. If a
123
- # `run` call succeeds and the
124
- # script function returns successfully, the response body's
125
- # `response` field contains this
124
+ # An object that provides the return value of a function executed using the
125
+ # Apps Script API. If the script function returns successfully, the response
126
+ # body's response field contains this
126
127
  # `ExecutionResponse` object.
127
128
  class ExecutionResponse
128
129
  include Google::Apis::Core::Hashable
129
130
 
130
131
  # The return value of the script function. The type matches the object type
131
- # returned in Apps Script. Functions called through the Execution API cannot
132
+ # returned in Apps Script. Functions called using the Apps Script API cannot
132
133
  # return Apps Script-specific objects (such as a `Document` or a `Calendar`);
133
134
  # they can only return primitive types such as a `string`, `number`, `array`,
134
135
  # `object`, or `boolean`.
@@ -146,47 +147,52 @@ module Google
146
147
  end
147
148
  end
148
149
 
149
- # The response will not arrive until the function finishes executing. The
150
- # maximum runtime is listed in the guide to [limitations in Apps Script](https://
151
- # developers.google.com/apps-script/guides/services/quotas#current_limitations).
152
- # <p>If the script function returns successfully, the `response` field will
153
- # contain an `ExecutionResponse` object with the function's return value in the
154
- # object's `result` field.</p>
155
- # <p>If the script function (or Apps Script itself) throws an exception, the `
156
- # error` field will contain a `Status` object. The `Status` object's `details`
157
- # field will contain an array with a single `ExecutionError` object that
158
- # provides information about the nature of the error.</p>
159
- # <p>If the `run` call itself fails (for example, because of a malformed request
160
- # or an authorization error), the method will return an HTTP response code in
161
- # the 4XX range with a different format for the response body. Client libraries
162
- # will automatically convert a 4XX response into an exception class.</p>
150
+ # A representation of a execution of an Apps Script function that is started
151
+ # using run or runAsync. The execution response does not arrive until the
152
+ # function finishes executing. The maximum execution runtime is listed in the [
153
+ # Apps Script quotas guide](/apps-script/guides/services/quotas#
154
+ # current_limitations).
155
+ # <p>After the execution is started, it can have one of four outcomes:</p>
156
+ # <ul> <li> If the script function returns successfully, the
157
+ # response field contains an
158
+ # ExecutionResponse object
159
+ # with the function's return value in the object's `result` field.</li>
160
+ # <li> If the script function (or Apps Script itself) throws an exception, the
161
+ # error field contains a
162
+ # Status object. The `Status` object's `details`
163
+ # field contains an array with a single
164
+ # ExecutionError object that
165
+ # provides information about the nature of the error.</li>
166
+ # <li> If the execution was asynchronous and has not yet completed,
167
+ # the done field is `false` and
168
+ # the neither the `response` nor `error` fields are present.</li>
169
+ # <li> If the `run` or `runAsync` call itself fails (for example, because of a
170
+ # malformed request or an authorization error), the method returns an HTTP
171
+ # response code in the 4XX range with a different format for the response
172
+ # body. Client libraries automatically convert a 4XX response into an
173
+ # exception class.</li>
174
+ # </ul>
163
175
  class Operation
164
176
  include Google::Apis::Core::Hashable
165
177
 
166
- # This field is only used with asynchronous executions and indicates whether or
167
- # not the script execution has completed. A completed execution has a populated
168
- # response field containing the `ExecutionResponse` from function that was
178
+ # This field is only used with asynchronous executions. It indicates whether the
179
+ # script execution has completed. A completed execution has a populated `
180
+ # response` field containing the ExecutionResponse from function that was
169
181
  # executed.
170
182
  # Corresponds to the JSON property `done`
171
183
  # @return [Boolean]
172
184
  attr_accessor :done
173
185
  alias_method :done?, :done
174
186
 
175
- # If a `run` call succeeds but the script function (or Apps Script itself)
176
- # throws an exception, the response body's `error` field will contain this `
187
+ # If a `run` or `runAsync` call succeeds but the script function (or Apps Script
188
+ # itself) throws an exception, the response body's error field contains this `
177
189
  # Status` object.
178
190
  # Corresponds to the JSON property `error`
179
191
  # @return [Google::Apis::ScriptV1::Status]
180
192
  attr_accessor :error
181
193
 
182
- # This field is not used.
183
- # Corresponds to the JSON property `metadata`
184
- # @return [Hash<String,Object>]
185
- attr_accessor :metadata
186
-
187
- # If the script function returns successfully, this field will contain an `
188
- # ExecutionResponse` object with the function's return value as the object's `
189
- # result` field.
194
+ # If the script function returns successfully, this field contains an
195
+ # ExecutionResponse object with the function's return value.
190
196
  # Corresponds to the JSON property `response`
191
197
  # @return [Hash<String,Object>]
192
198
  attr_accessor :response
@@ -199,7 +205,6 @@ module Google
199
205
  def update!(**args)
200
206
  @done = args[:done] if args.key?(:done)
201
207
  @error = args[:error] if args.key?(:error)
202
- @metadata = args[:metadata] if args.key?(:metadata)
203
208
  @response = args[:response] if args.key?(:response)
204
209
  end
205
210
  end
@@ -229,26 +234,27 @@ module Google
229
234
  end
230
235
  end
231
236
 
232
- # If a `run` call succeeds but the script function (or Apps Script itself)
233
- # throws an exception, the response body's `error` field will contain this `
237
+ # If a `run` or `runAsync` call succeeds but the script function (or Apps Script
238
+ # itself) throws an exception, the response body's error field contains this `
234
239
  # Status` object.
235
240
  class Status
236
241
  include Google::Apis::Core::Hashable
237
242
 
238
- # The status code. For this API, this value will always be 3, corresponding to
239
- # an <code>INVALID_ARGUMENT</code> error.
243
+ # The status code. For this API, this value either:
244
+ # <ul> <li> 3, indicating an `INVALID_ARGUMENT` error, or</li> <li> 1,
245
+ # indicating a `CANCELLED` asynchronous execution.</li> </ul>
240
246
  # Corresponds to the JSON property `code`
241
247
  # @return [Fixnum]
242
248
  attr_accessor :code
243
249
 
244
- # An array that contains a single `ExecutionError` object that provides
250
+ # An array that contains a single ExecutionError object that provides
245
251
  # information about the nature of the error.
246
252
  # Corresponds to the JSON property `details`
247
253
  # @return [Array<Hash<String,Object>>]
248
254
  attr_accessor :details
249
255
 
250
256
  # A developer-facing error message, which is in English. Any user-facing error
251
- # message is localized and sent in the [`google.rpc.Status.details`](google.rpc.
257
+ # message is localized and sent in the [google.rpc.Status.details](google.rpc.
252
258
  # Status.details) field, or localized by the client.
253
259
  # Corresponds to the JSON property `message`
254
260
  # @return [String]