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
@@ -812,6 +812,7 @@ module Google
812
812
  # Returned in messages.get and drafts.get responses when the format=RAW
813
813
  # parameter is supplied.
814
814
  # Corresponds to the JSON property `raw`
815
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
815
816
  # @return [String]
816
817
  attr_accessor :raw
817
818
 
@@ -925,6 +926,7 @@ module Google
925
926
  # is sent as a separate attachment. An attachment ID is present if the body data
926
927
  # is contained in a separate attachment.
927
928
  # Corresponds to the JSON property `data`
929
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
928
930
  # @return [String]
929
931
  attr_accessor :data
930
932
 
@@ -1215,6 +1217,7 @@ module Google
1215
1217
  # PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set
1216
1218
  # appropriately.
1217
1219
  # Corresponds to the JSON property `pkcs12`
1220
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1218
1221
  # @return [String]
1219
1222
  attr_accessor :pkcs12
1220
1223
 
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/iam/
28
28
  module IamV1
29
29
  VERSION = 'V1'
30
- REVISION = '20170317'
30
+ REVISION = '20170324'
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,74 +22,6 @@ module Google
22
22
  module Apis
23
23
  module IamV1
24
24
 
25
- # The service account create request.
26
- class CreateServiceAccountRequest
27
- include Google::Apis::Core::Hashable
28
-
29
- # A service account in the Identity and Access Management API.
30
- # To create a service account, specify the `project_id` and the `account_id`
31
- # for the account. The `account_id` is unique within the project, and is used
32
- # to generate the service account email address and a stable
33
- # `unique_id`.
34
- # If the account already exists, the account's resource name is returned
35
- # in util::Status's ResourceInfo.resource_name in the format of
36
- # projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
37
- # use the name in other methods to access the account.
38
- # All other methods can identify the service account using the format
39
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
40
- # Using `-` as a wildcard for the project will infer the project from
41
- # the account. The `account` value can be the `email` address or the
42
- # `unique_id` of the service account.
43
- # Corresponds to the JSON property `serviceAccount`
44
- # @return [Google::Apis::IamV1::ServiceAccount]
45
- attr_accessor :service_account
46
-
47
- # Required. The account id that is used to generate the service account
48
- # email address and a stable unique id. It is unique within a project,
49
- # must be 6-30 characters long, and match the regular expression
50
- # `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
51
- # Corresponds to the JSON property `accountId`
52
- # @return [String]
53
- attr_accessor :account_id
54
-
55
- def initialize(**args)
56
- update!(**args)
57
- end
58
-
59
- # Update properties of this object
60
- def update!(**args)
61
- @service_account = args[:service_account] if args.key?(:service_account)
62
- @account_id = args[:account_id] if args.key?(:account_id)
63
- end
64
- end
65
-
66
- # The service account list response.
67
- class ListServiceAccountsResponse
68
- include Google::Apis::Core::Hashable
69
-
70
- # To retrieve the next page of results, set
71
- # ListServiceAccountsRequest.page_token
72
- # to this value.
73
- # Corresponds to the JSON property `nextPageToken`
74
- # @return [String]
75
- attr_accessor :next_page_token
76
-
77
- # The list of matching service accounts.
78
- # Corresponds to the JSON property `accounts`
79
- # @return [Array<Google::Apis::IamV1::ServiceAccount>]
80
- attr_accessor :accounts
81
-
82
- def initialize(**args)
83
- update!(**args)
84
- end
85
-
86
- # Update properties of this object
87
- def update!(**args)
88
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
89
- @accounts = args[:accounts] if args.key?(:accounts)
90
- end
91
- end
92
-
93
25
  # The grantable role query response.
94
26
  class QueryGrantableRolesResponse
95
27
  include Google::Apis::Core::Hashable
@@ -115,6 +47,7 @@ module Google
115
47
 
116
48
  # The bytes to sign.
117
49
  # Corresponds to the JSON property `bytesToSign`
50
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
118
51
  # @return [String]
119
52
  attr_accessor :bytes_to_sign
120
53
 
@@ -306,22 +239,6 @@ module Google
306
239
  class ServiceAccount
307
240
  include Google::Apis::Core::Hashable
308
241
 
309
- # @OutputOnly The email address of the service account.
310
- # Corresponds to the JSON property `email`
311
- # @return [String]
312
- attr_accessor :email
313
-
314
- # The resource name of the service account in the following format:
315
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
316
- # Requests using `-` as a wildcard for the project will infer the project
317
- # from the `account` and the `account` value can be the `email` address or
318
- # the `unique_id` of the service account.
319
- # In responses the resource name will always be in the format
320
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
321
- # Corresponds to the JSON property `name`
322
- # @return [String]
323
- attr_accessor :name
324
-
325
242
  # @OutputOnly The id of the project that owns the service account.
326
243
  # Corresponds to the JSON property `projectId`
327
244
  # @return [String]
@@ -347,34 +264,50 @@ module Google
347
264
 
348
265
  # Used to perform a consistent read-modify-write.
349
266
  # Corresponds to the JSON property `etag`
267
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
350
268
  # @return [String]
351
269
  attr_accessor :etag
352
270
 
271
+ # @OutputOnly The email address of the service account.
272
+ # Corresponds to the JSON property `email`
273
+ # @return [String]
274
+ attr_accessor :email
275
+
276
+ # The resource name of the service account in the following format:
277
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
278
+ # Requests using `-` as a wildcard for the project will infer the project
279
+ # from the `account` and the `account` value can be the `email` address or
280
+ # the `unique_id` of the service account.
281
+ # In responses the resource name will always be in the format
282
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
283
+ # Corresponds to the JSON property `name`
284
+ # @return [String]
285
+ attr_accessor :name
286
+
353
287
  def initialize(**args)
354
288
  update!(**args)
355
289
  end
356
290
 
357
291
  # Update properties of this object
358
292
  def update!(**args)
359
- @email = args[:email] if args.key?(:email)
360
- @name = args[:name] if args.key?(:name)
361
293
  @project_id = args[:project_id] if args.key?(:project_id)
362
294
  @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
363
295
  @unique_id = args[:unique_id] if args.key?(:unique_id)
364
296
  @display_name = args[:display_name] if args.key?(:display_name)
365
297
  @etag = args[:etag] if args.key?(:etag)
298
+ @email = args[:email] if args.key?(:email)
299
+ @name = args[:name] if args.key?(:name)
366
300
  end
367
301
  end
368
302
 
369
- # Response message for `TestIamPermissions` method.
370
- class TestIamPermissionsResponse
303
+ # The service account keys list response.
304
+ class ListServiceAccountKeysResponse
371
305
  include Google::Apis::Core::Hashable
372
306
 
373
- # A subset of `TestPermissionsRequest.permissions` that the caller is
374
- # allowed.
375
- # Corresponds to the JSON property `permissions`
376
- # @return [Array<String>]
377
- attr_accessor :permissions
307
+ # The public keys for the service account.
308
+ # Corresponds to the JSON property `keys`
309
+ # @return [Array<Google::Apis::IamV1::ServiceAccountKey>]
310
+ attr_accessor :keys
378
311
 
379
312
  def initialize(**args)
380
313
  update!(**args)
@@ -382,18 +315,19 @@ module Google
382
315
 
383
316
  # Update properties of this object
384
317
  def update!(**args)
385
- @permissions = args[:permissions] if args.key?(:permissions)
318
+ @keys = args[:keys] if args.key?(:keys)
386
319
  end
387
320
  end
388
321
 
389
- # The service account keys list response.
390
- class ListServiceAccountKeysResponse
322
+ # Response message for `TestIamPermissions` method.
323
+ class TestIamPermissionsResponse
391
324
  include Google::Apis::Core::Hashable
392
325
 
393
- # The public keys for the service account.
394
- # Corresponds to the JSON property `keys`
395
- # @return [Array<Google::Apis::IamV1::ServiceAccountKey>]
396
- attr_accessor :keys
326
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
327
+ # allowed.
328
+ # Corresponds to the JSON property `permissions`
329
+ # @return [Array<String>]
330
+ attr_accessor :permissions
397
331
 
398
332
  def initialize(**args)
399
333
  update!(**args)
@@ -401,7 +335,7 @@ module Google
401
335
 
402
336
  # Update properties of this object
403
337
  def update!(**args)
404
- @keys = args[:keys] if args.key?(:keys)
338
+ @permissions = args[:permissions] if args.key?(:permissions)
405
339
  end
406
340
  end
407
341
 
@@ -420,28 +354,16 @@ module Google
420
354
  class ServiceAccountKey
421
355
  include Google::Apis::Core::Hashable
422
356
 
423
- # The key can be used after this timestamp.
424
- # Corresponds to the JSON property `validAfterTime`
425
- # @return [String]
426
- attr_accessor :valid_after_time
427
-
428
- # The output format for the private key.
429
- # Only provided in `CreateServiceAccountKey` responses, not
430
- # in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
431
- # Google never exposes system-managed private keys, and never retains
432
- # user-managed private keys.
433
- # Corresponds to the JSON property `privateKeyType`
434
- # @return [String]
435
- attr_accessor :private_key_type
436
-
437
357
  # The private key data. Only provided in `CreateServiceAccountKey`
438
358
  # responses.
439
359
  # Corresponds to the JSON property `privateKeyData`
360
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
440
361
  # @return [String]
441
362
  attr_accessor :private_key_data
442
363
 
443
364
  # The public key data. Only provided in `GetServiceAccountKey` responses.
444
365
  # Corresponds to the JSON property `publicKeyData`
366
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
445
367
  # @return [String]
446
368
  attr_accessor :public_key_data
447
369
 
@@ -461,19 +383,33 @@ module Google
461
383
  # @return [String]
462
384
  attr_accessor :key_algorithm
463
385
 
386
+ # The key can be used after this timestamp.
387
+ # Corresponds to the JSON property `validAfterTime`
388
+ # @return [String]
389
+ attr_accessor :valid_after_time
390
+
391
+ # The output format for the private key.
392
+ # Only provided in `CreateServiceAccountKey` responses, not
393
+ # in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
394
+ # Google never exposes system-managed private keys, and never retains
395
+ # user-managed private keys.
396
+ # Corresponds to the JSON property `privateKeyType`
397
+ # @return [String]
398
+ attr_accessor :private_key_type
399
+
464
400
  def initialize(**args)
465
401
  update!(**args)
466
402
  end
467
403
 
468
404
  # Update properties of this object
469
405
  def update!(**args)
470
- @valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time)
471
- @private_key_type = args[:private_key_type] if args.key?(:private_key_type)
472
406
  @private_key_data = args[:private_key_data] if args.key?(:private_key_data)
473
407
  @public_key_data = args[:public_key_data] if args.key?(:public_key_data)
474
408
  @name = args[:name] if args.key?(:name)
475
409
  @valid_before_time = args[:valid_before_time] if args.key?(:valid_before_time)
476
410
  @key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
411
+ @valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time)
412
+ @private_key_type = args[:private_key_type] if args.key?(:private_key_type)
477
413
  end
478
414
  end
479
415
 
@@ -533,6 +469,7 @@ module Google
533
469
 
534
470
  # The signed blob.
535
471
  # Corresponds to the JSON property `signature`
472
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
536
473
  # @return [String]
537
474
  attr_accessor :signature
538
475
 
@@ -623,6 +560,7 @@ module Google
623
560
  # If no `etag` is provided in the call to `setIamPolicy`, then the existing
624
561
  # policy is overwritten blindly.
625
562
  # Corresponds to the JSON property `etag`
563
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
626
564
  # @return [String]
627
565
  attr_accessor :etag
628
566
 
@@ -738,6 +676,74 @@ module Google
738
676
  @binding_deltas = args[:binding_deltas] if args.key?(:binding_deltas)
739
677
  end
740
678
  end
679
+
680
+ # The service account create request.
681
+ class CreateServiceAccountRequest
682
+ include Google::Apis::Core::Hashable
683
+
684
+ # A service account in the Identity and Access Management API.
685
+ # To create a service account, specify the `project_id` and the `account_id`
686
+ # for the account. The `account_id` is unique within the project, and is used
687
+ # to generate the service account email address and a stable
688
+ # `unique_id`.
689
+ # If the account already exists, the account's resource name is returned
690
+ # in util::Status's ResourceInfo.resource_name in the format of
691
+ # projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
692
+ # use the name in other methods to access the account.
693
+ # All other methods can identify the service account using the format
694
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
695
+ # Using `-` as a wildcard for the project will infer the project from
696
+ # the account. The `account` value can be the `email` address or the
697
+ # `unique_id` of the service account.
698
+ # Corresponds to the JSON property `serviceAccount`
699
+ # @return [Google::Apis::IamV1::ServiceAccount]
700
+ attr_accessor :service_account
701
+
702
+ # Required. The account id that is used to generate the service account
703
+ # email address and a stable unique id. It is unique within a project,
704
+ # must be 6-30 characters long, and match the regular expression
705
+ # `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
706
+ # Corresponds to the JSON property `accountId`
707
+ # @return [String]
708
+ attr_accessor :account_id
709
+
710
+ def initialize(**args)
711
+ update!(**args)
712
+ end
713
+
714
+ # Update properties of this object
715
+ def update!(**args)
716
+ @service_account = args[:service_account] if args.key?(:service_account)
717
+ @account_id = args[:account_id] if args.key?(:account_id)
718
+ end
719
+ end
720
+
721
+ # The service account list response.
722
+ class ListServiceAccountsResponse
723
+ include Google::Apis::Core::Hashable
724
+
725
+ # To retrieve the next page of results, set
726
+ # ListServiceAccountsRequest.page_token
727
+ # to this value.
728
+ # Corresponds to the JSON property `nextPageToken`
729
+ # @return [String]
730
+ attr_accessor :next_page_token
731
+
732
+ # The list of matching service accounts.
733
+ # Corresponds to the JSON property `accounts`
734
+ # @return [Array<Google::Apis::IamV1::ServiceAccount>]
735
+ attr_accessor :accounts
736
+
737
+ def initialize(**args)
738
+ update!(**args)
739
+ end
740
+
741
+ # Update properties of this object
742
+ def update!(**args)
743
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
744
+ @accounts = args[:accounts] if args.key?(:accounts)
745
+ end
746
+ end
741
747
  end
742
748
  end
743
749
  end
@@ -22,18 +22,6 @@ module Google
22
22
  module Apis
23
23
  module IamV1
24
24
 
25
- class CreateServiceAccountRequest
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class ListServiceAccountsResponse
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
25
  class QueryGrantableRolesResponse
38
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
27
 
@@ -82,13 +70,13 @@ module Google
82
70
  include Google::Apis::Core::JsonObjectSupport
83
71
  end
84
72
 
85
- class TestIamPermissionsResponse
73
+ class ListServiceAccountKeysResponse
86
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
75
 
88
76
  include Google::Apis::Core::JsonObjectSupport
89
77
  end
90
78
 
91
- class ListServiceAccountKeysResponse
79
+ class TestIamPermissionsResponse
92
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
81
 
94
82
  include Google::Apis::Core::JsonObjectSupport
@@ -155,21 +143,15 @@ module Google
155
143
  end
156
144
 
157
145
  class CreateServiceAccountRequest
158
- # @private
159
- class Representation < Google::Apis::Core::JsonRepresentation
160
- property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
161
147
 
162
- property :account_id, as: 'accountId'
163
- end
148
+ include Google::Apis::Core::JsonObjectSupport
164
149
  end
165
150
 
166
151
  class ListServiceAccountsResponse
167
- # @private
168
- class Representation < Google::Apis::Core::JsonRepresentation
169
- property :next_page_token, as: 'nextPageToken'
170
- collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
153
 
172
- end
154
+ include Google::Apis::Core::JsonObjectSupport
173
155
  end
174
156
 
175
157
  class QueryGrantableRolesResponse
@@ -228,41 +210,41 @@ module Google
228
210
  class ServiceAccount
229
211
  # @private
230
212
  class Representation < Google::Apis::Core::JsonRepresentation
231
- property :email, as: 'email'
232
- property :name, as: 'name'
233
213
  property :project_id, as: 'projectId'
234
214
  property :oauth2_client_id, as: 'oauth2ClientId'
235
215
  property :unique_id, as: 'uniqueId'
236
216
  property :display_name, as: 'displayName'
237
217
  property :etag, :base64 => true, as: 'etag'
218
+ property :email, as: 'email'
219
+ property :name, as: 'name'
238
220
  end
239
221
  end
240
222
 
241
- class TestIamPermissionsResponse
223
+ class ListServiceAccountKeysResponse
242
224
  # @private
243
225
  class Representation < Google::Apis::Core::JsonRepresentation
244
- collection :permissions, as: 'permissions'
226
+ collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
227
+
245
228
  end
246
229
  end
247
230
 
248
- class ListServiceAccountKeysResponse
231
+ class TestIamPermissionsResponse
249
232
  # @private
250
233
  class Representation < Google::Apis::Core::JsonRepresentation
251
- collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
252
-
234
+ collection :permissions, as: 'permissions'
253
235
  end
254
236
  end
255
237
 
256
238
  class ServiceAccountKey
257
239
  # @private
258
240
  class Representation < Google::Apis::Core::JsonRepresentation
259
- property :valid_after_time, as: 'validAfterTime'
260
- property :private_key_type, as: 'privateKeyType'
261
241
  property :private_key_data, :base64 => true, as: 'privateKeyData'
262
242
  property :public_key_data, :base64 => true, as: 'publicKeyData'
263
243
  property :name, as: 'name'
264
244
  property :valid_before_time, as: 'validBeforeTime'
265
245
  property :key_algorithm, as: 'keyAlgorithm'
246
+ property :valid_after_time, as: 'validAfterTime'
247
+ property :private_key_type, as: 'privateKeyType'
266
248
  end
267
249
  end
268
250
 
@@ -338,6 +320,24 @@ module Google
338
320
 
339
321
  end
340
322
  end
323
+
324
+ class CreateServiceAccountRequest
325
+ # @private
326
+ class Representation < Google::Apis::Core::JsonRepresentation
327
+ property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
328
+
329
+ property :account_id, as: 'accountId'
330
+ end
331
+ end
332
+
333
+ class ListServiceAccountsResponse
334
+ # @private
335
+ class Representation < Google::Apis::Core::JsonRepresentation
336
+ property :next_page_token, as: 'nextPageToken'
337
+ collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
338
+
339
+ end
340
+ end
341
341
  end
342
342
  end
343
343
  end