google-api-client 0.9.8 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20160518'
29
+ REVISION = '20160927'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -44,9 +44,10 @@ module Google
44
44
  # @return [String]
45
45
  attr_accessor :lifecycle_state
46
46
 
47
- # The user-assigned name of the Project. It must be 4 to 30 characters. Allowed
48
- # characters are: lowercase and uppercase letters, numbers, hyphen, single-quote,
49
- # double-quote, space, and exclamation point. Example: My Project Read-write.
47
+ # The user-assigned display name of the Project. It must be 4 to 30 characters.
48
+ # Allowed characters are: lowercase and uppercase letters, numbers, hyphen,
49
+ # single-quote, double-quote, space, and exclamation point. Example: My Project
50
+ # Read-write.
50
51
  # Corresponds to the JSON property `name`
51
52
  # @return [String]
52
53
  attr_accessor :name
@@ -100,7 +101,7 @@ module Google
100
101
  include Google::Apis::Core::Hashable
101
102
 
102
103
  # Required field representing the resource type this id is for. At present, the
103
- # only valid type is "organization".
104
+ # valid types are "project" and "organization".
104
105
  # Corresponds to the JSON property `type`
105
106
  # @return [String]
106
107
  attr_accessor :type
@@ -371,8 +372,8 @@ module Google
371
372
  include Google::Apis::Core::Hashable
372
373
 
373
374
  # The set of permissions to check for the `resource`. Permissions with wildcards
374
- # (such as '*' or 'storage.*') are not allowed. For more information see IAM
375
- # Overview.
375
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
376
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
376
377
  # Corresponds to the JSON property `permissions`
377
378
  # @return [Array<String>]
378
379
  attr_accessor :permissions
@@ -440,14 +441,23 @@ module Google
440
441
  class Organization
441
442
  include Google::Apis::Core::Hashable
442
443
 
444
+ # Output Only. The resource name of the organization. This is the organization's
445
+ # relative path in the API. Its format is "organizations/[organization_id]". For
446
+ # example, "organizations/1234".
447
+ # Corresponds to the JSON property `name`
448
+ # @return [String]
449
+ attr_accessor :name
450
+
443
451
  # An immutable id for the Organization that is assigned on creation. This should
444
- # be omitted when creating a new Organization. This field is read-only.
452
+ # be omitted when creating a new Organization. This field is read-only. This
453
+ # field is deprecated and will be removed in v1. Use name instead.
445
454
  # Corresponds to the JSON property `organizationId`
446
455
  # @return [String]
447
456
  attr_accessor :organization_id
448
457
 
449
- # A friendly string to be used to refer to the Organization in the UI. This
450
- # field is required.
458
+ # A friendly string to be used to refer to the Organization in the UI. Assigned
459
+ # by the server, set to the firm name of the Google For Work customer that owns
460
+ # this organization. @OutputOnly
451
461
  # Corresponds to the JSON property `displayName`
452
462
  # @return [String]
453
463
  attr_accessor :display_name
@@ -466,16 +476,24 @@ module Google
466
476
  # @return [String]
467
477
  attr_accessor :creation_time
468
478
 
479
+ # The organization's current lifecycle state. Assigned by the server. @
480
+ # OutputOnly
481
+ # Corresponds to the JSON property `lifecycleState`
482
+ # @return [String]
483
+ attr_accessor :lifecycle_state
484
+
469
485
  def initialize(**args)
470
486
  update!(**args)
471
487
  end
472
488
 
473
489
  # Update properties of this object
474
490
  def update!(**args)
491
+ @name = args[:name] if args.key?(:name)
475
492
  @organization_id = args[:organization_id] if args.key?(:organization_id)
476
493
  @display_name = args[:display_name] if args.key?(:display_name)
477
494
  @owner = args[:owner] if args.key?(:owner)
478
495
  @creation_time = args[:creation_time] if args.key?(:creation_time)
496
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
479
497
  end
480
498
  end
481
499
 
@@ -500,6 +518,100 @@ module Google
500
518
  @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
501
519
  end
502
520
  end
521
+
522
+ # A status object which is used as the `metadata` field for the Operation
523
+ # returned by CreateProject. It provides insight for when significant phases of
524
+ # Project creation have completed.
525
+ class ProjectCreationStatus
526
+ include Google::Apis::Core::Hashable
527
+
528
+ # Creation time of the project creation workflow.
529
+ # Corresponds to the JSON property `createTime`
530
+ # @return [String]
531
+ attr_accessor :create_time
532
+
533
+ # True if the project can be retrieved using GetProject. No other operations on
534
+ # the project are guaranteed to work until the project creation is complete.
535
+ # Corresponds to the JSON property `gettable`
536
+ # @return [Boolean]
537
+ attr_accessor :gettable
538
+ alias_method :gettable?, :gettable
539
+
540
+ # True if the project creation process is complete.
541
+ # Corresponds to the JSON property `ready`
542
+ # @return [Boolean]
543
+ attr_accessor :ready
544
+ alias_method :ready?, :ready
545
+
546
+ def initialize(**args)
547
+ update!(**args)
548
+ end
549
+
550
+ # Update properties of this object
551
+ def update!(**args)
552
+ @create_time = args[:create_time] if args.key?(:create_time)
553
+ @gettable = args[:gettable] if args.key?(:gettable)
554
+ @ready = args[:ready] if args.key?(:ready)
555
+ end
556
+ end
557
+
558
+ # Metadata describing a long running folder operation
559
+ class FolderOperation
560
+ include Google::Apis::Core::Hashable
561
+
562
+ # The display name of the folder.
563
+ # Corresponds to the JSON property `displayName`
564
+ # @return [String]
565
+ attr_accessor :display_name
566
+
567
+ # The type of this operation.
568
+ # Corresponds to the JSON property `operationType`
569
+ # @return [String]
570
+ attr_accessor :operation_type
571
+
572
+ # The resource name of the folder's parent. Only applicable when the
573
+ # operation_type is MOVE.
574
+ # Corresponds to the JSON property `sourceParent`
575
+ # @return [String]
576
+ attr_accessor :source_parent
577
+
578
+ # The resource name of the folder or organization we are either creating the
579
+ # folder under or moving the folder to.
580
+ # Corresponds to the JSON property `destinationParent`
581
+ # @return [String]
582
+ attr_accessor :destination_parent
583
+
584
+ def initialize(**args)
585
+ update!(**args)
586
+ end
587
+
588
+ # Update properties of this object
589
+ def update!(**args)
590
+ @display_name = args[:display_name] if args.key?(:display_name)
591
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
592
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
593
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
594
+ end
595
+ end
596
+
597
+ # A classification of the Folder Operation error.
598
+ class FolderOperationError
599
+ include Google::Apis::Core::Hashable
600
+
601
+ # The type of operation error experienced.
602
+ # Corresponds to the JSON property `errorMessageId`
603
+ # @return [String]
604
+ attr_accessor :error_message_id
605
+
606
+ def initialize(**args)
607
+ update!(**args)
608
+ end
609
+
610
+ # Update properties of this object
611
+ def update!(**args)
612
+ @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
613
+ end
614
+ end
503
615
  end
504
616
  end
505
617
  end
@@ -124,6 +124,24 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class ProjectCreationStatus
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class FolderOperation
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class FolderOperationError
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
127
145
  class Project
128
146
  # @private
129
147
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -247,11 +265,13 @@ module Google
247
265
  class Organization
248
266
  # @private
249
267
  class Representation < Google::Apis::Core::JsonRepresentation
268
+ property :name, as: 'name'
250
269
  property :organization_id, as: 'organizationId'
251
270
  property :display_name, as: 'displayName'
252
271
  property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
253
272
 
254
273
  property :creation_time, as: 'creationTime'
274
+ property :lifecycle_state, as: 'lifecycleState'
255
275
  end
256
276
  end
257
277
 
@@ -261,6 +281,32 @@ module Google
261
281
  property :directory_customer_id, as: 'directoryCustomerId'
262
282
  end
263
283
  end
284
+
285
+ class ProjectCreationStatus
286
+ # @private
287
+ class Representation < Google::Apis::Core::JsonRepresentation
288
+ property :create_time, as: 'createTime'
289
+ property :gettable, as: 'gettable'
290
+ property :ready, as: 'ready'
291
+ end
292
+ end
293
+
294
+ class FolderOperation
295
+ # @private
296
+ class Representation < Google::Apis::Core::JsonRepresentation
297
+ property :display_name, as: 'displayName'
298
+ property :operation_type, as: 'operationType'
299
+ property :source_parent, as: 'sourceParent'
300
+ property :destination_parent, as: 'destinationParent'
301
+ end
302
+ end
303
+
304
+ class FolderOperationError
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :error_message_id, as: 'errorMessageId'
308
+ end
309
+ end
264
310
  end
265
311
  end
266
312
  end
@@ -52,6 +52,8 @@ module Google
52
52
  # or update the Project. Several APIs are activated automatically for the
53
53
  # Project, including Google Cloud Storage.
54
54
  # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
55
+ # @param [Boolean] use_legacy_stack
56
+ # A safety hatch to opt out of the new reliable project creation process.
55
57
  # @param [String] fields
56
58
  # Selector specifying which fields to include in a partial response.
57
59
  # @param [String] quota_user
@@ -69,12 +71,13 @@ module Google
69
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
73
75
  command = make_simple_command(:post, 'v1beta1/projects', options)
74
76
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
75
77
  command.request_object = project_object
76
78
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
77
79
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
80
+ command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
78
81
  command.query['fields'] = fields unless fields.nil?
79
82
  command.query['quotaUser'] = quota_user unless quota_user.nil?
80
83
  execute_or_queue_command(command, &block)
@@ -200,13 +203,12 @@ module Google
200
203
  # following criteria are met: + The Project does not have a billing account
201
204
  # associated with it. + The Project has a lifecycle state of ACTIVE. This method
202
205
  # changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The
203
- # deletion starts at an unspecified time, at which point the lifecycle state
204
- # changes to DELETE_IN_PROGRESS. Until the deletion completes, you can check the
205
- # lifecycle state checked by retrieving the Project with GetProject, and the
206
- # Project remains visible to ListProjects. However, you cannot update the
207
- # project. After the deletion completes, the Project is not retrievable by the
208
- # GetProject and ListProjects methods. The caller must have modify permissions
209
- # for this Project.
206
+ # deletion starts at an unspecified time, at which point the project is no
207
+ # longer accessible. Until the deletion completes, you can check the lifecycle
208
+ # state checked by retrieving the Project with GetProject, and the Project
209
+ # remains visible to ListProjects. However, you cannot update the project. After
210
+ # the deletion completes, the Project is not retrievable by the GetProject and
211
+ # ListProjects methods. The caller must have modify permissions for this Project.
210
212
  # @param [String] project_id
211
213
  # The Project ID (for example, `foo-bar-123`). Required.
212
214
  # @param [String] fields
@@ -238,9 +240,8 @@ module Google
238
240
 
239
241
  # Restores the Project identified by the specified `project_id` (for example, `
240
242
  # my-project-123`). You can only use this method for a Project that has a
241
- # lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by a
242
- # lifecycle state of DELETE_IN_PROGRESS, the Project cannot be restored. The
243
- # caller must have modify permissions for this Project.
243
+ # lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot
244
+ # be restored. The caller must have modify permissions for this Project.
244
245
  # @param [String] project_id
245
246
  # The project ID (for example, `foo-bar-123`). Required.
246
247
  # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
@@ -312,9 +313,8 @@ module Google
312
313
  # denied if the policy or the resource does not exist.
313
314
  # @param [String] resource
314
315
  # REQUIRED: The resource for which the policy is being requested. `resource` is
315
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
316
- # disk*`. The format for the path specified in this value is resource specific
317
- # and is specified in the `getIamPolicy` documentation.
316
+ # usually specified as a path. For example, a Project resource is specified as `
317
+ # projects/`project``.
318
318
  # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
319
319
  # @param [String] fields
320
320
  # Selector specifying which fields to include in a partial response.
@@ -347,22 +347,30 @@ module Google
347
347
 
348
348
  # Sets the IAM access control policy for the specified Project. Replaces any
349
349
  # existing policy. The following constraints apply when using `setIamPolicy()`: +
350
- # Project currently supports only `user:`emailid`` and `serviceAccount:`emailid`
351
- # ` members in a `Binding` of a `Policy`. + To be added as an `owner`, a user
352
- # must be invited via Cloud Platform console and must accept the invitation. +
353
- # Members cannot be added to more than one role in the same policy. + There must
354
- # be at least one owner who has accepted the Terms of Service (ToS) agreement in
355
- # the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner
356
- # from the policy will fail. + Calling this method requires enabling the App
357
- # Engine Admin API. Note: Removing service accounts from policies or changing
358
- # their roles can render services completely inoperable. It is important to
359
- # understand how the service account is being used before removing or updating
360
- # its roles.
350
+ # Project does not support `allUsers` and `allAuthenticatedUsers` as `members`
351
+ # in a `Binding` of a `Policy`. + The owner role can be granted only to `user`
352
+ # and `serviceAccount`. + Service accounts can be made owners of a project
353
+ # directly without any restrictions. However, to be added as an owner, a user
354
+ # must be invited via Cloud Platform console and must accept the invitation. + A
355
+ # user cannot be granted the owner role using `setIamPolicy()`. The user must be
356
+ # granted the owner role using the Cloud Platform Console and must explicitly
357
+ # accept the invitation. + Invitations to grant the owner role cannot be sent
358
+ # using `setIamPolicy()`; they must be sent only using the Cloud Platform
359
+ # Console. + Membership changes that leave the project without any owners that
360
+ # have accepted the Terms of Service (ToS) will be rejected. + There must be at
361
+ # least one owner who has accepted the Terms of Service (ToS) agreement in the
362
+ # policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner from
363
+ # the policy will fail. This restriction also applies to legacy projects that no
364
+ # longer have owners who have accepted the ToS. Edits to IAM policies will be
365
+ # rejected until the lack of a ToS-accepting owner is rectified. + Calling this
366
+ # method requires enabling the App Engine Admin API. Note: Removing service
367
+ # accounts from policies or changing their roles can render services completely
368
+ # inoperable. It is important to understand how the service account is being
369
+ # used before removing or updating its roles.
361
370
  # @param [String] resource
362
371
  # REQUIRED: The resource for which the policy is being specified. `resource` is
363
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
364
- # disk*`. The format for the path specified in this value is resource specific
365
- # and is specified in the `setIamPolicy` documentation.
372
+ # usually specified as a path. For example, a Project resource is specified as `
373
+ # projects/`project``.
366
374
  # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
367
375
  # @param [String] fields
368
376
  # Selector specifying which fields to include in a partial response.
@@ -396,9 +404,8 @@ module Google
396
404
  # Returns permissions that a caller has on the specified Project.
397
405
  # @param [String] resource
398
406
  # REQUIRED: The resource for which the policy detail is being requested. `
399
- # resource` is usually specified as a path, such as `projects/*project*/zones/*
400
- # zone*/disks/*disk*`. The format for the path specified in this value is
401
- # resource specific and is specified in the `testIamPermissions` documentation.
407
+ # resource` is usually specified as a path. For example, a Project resource is
408
+ # specified as `projects/`project``.
402
409
  # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
403
410
  # @param [String] fields
404
411
  # Selector specifying which fields to include in a partial response.
@@ -475,9 +482,12 @@ module Google
475
482
  execute_or_queue_command(command, &block)
476
483
  end
477
484
 
478
- # Fetches an Organization resource identified by the specified `organization_id`.
485
+ # Fetches an Organization resource identified by the specified resource name.
486
+ # @param [String] name
487
+ # The resource name of the Organization to fetch, e.g. "organizations/1234".
479
488
  # @param [String] organization_id
480
- # The id of the Organization resource to fetch.
489
+ # The id of the Organization resource to fetch. This field is deprecated and
490
+ # will be removed in v1. Use name instead.
481
491
  # @param [String] fields
482
492
  # Selector specifying which fields to include in a partial response.
483
493
  # @param [String] quota_user
@@ -495,20 +505,22 @@ module Google
495
505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
498
- def get_organization(organization_id, fields: nil, quota_user: nil, options: nil, &block)
499
- command = make_simple_command(:get, 'v1beta1/organizations/{organizationId}', options)
508
+ def get_organization(name, organization_id: nil, fields: nil, quota_user: nil, options: nil, &block)
509
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
500
510
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
501
511
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
502
- command.params['organizationId'] = organization_id unless organization_id.nil?
512
+ command.params['name'] = name unless name.nil?
513
+ command.query['organizationId'] = organization_id unless organization_id.nil?
503
514
  command.query['fields'] = fields unless fields.nil?
504
515
  command.query['quotaUser'] = quota_user unless quota_user.nil?
505
516
  execute_or_queue_command(command, &block)
506
517
  end
507
518
 
508
- # Updates an Organization resource identified by the specified `organization_id`.
509
- # @param [String] organization_id
510
- # An immutable id for the Organization that is assigned on creation. This should
511
- # be omitted when creating a new Organization. This field is read-only.
519
+ # Updates an Organization resource identified by the specified resource name.
520
+ # @param [String] name
521
+ # Output Only. The resource name of the organization. This is the organization's
522
+ # relative path in the API. Its format is "organizations/[organization_id]". For
523
+ # example, "organizations/1234".
512
524
  # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
513
525
  # @param [String] fields
514
526
  # Selector specifying which fields to include in a partial response.
@@ -527,25 +539,25 @@ module Google
527
539
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
528
540
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
529
541
  # @raise [Google::Apis::AuthorizationError] Authorization is required
530
- def update_organization(organization_id, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
531
- command = make_simple_command(:put, 'v1beta1/organizations/{organizationId}', options)
542
+ def update_organization(name, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
543
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
532
544
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
533
545
  command.request_object = organization_object
534
546
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
535
547
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
536
- command.params['organizationId'] = organization_id unless organization_id.nil?
548
+ command.params['name'] = name unless name.nil?
537
549
  command.query['fields'] = fields unless fields.nil?
538
550
  command.query['quotaUser'] = quota_user unless quota_user.nil?
539
551
  execute_or_queue_command(command, &block)
540
552
  end
541
553
 
542
554
  # Sets the access control policy on an Organization resource. Replaces any
543
- # existing policy.
555
+ # existing policy. The `resource` field should be the organization's resource
556
+ # name, e.g. "organizations/123".
544
557
  # @param [String] resource
545
558
  # REQUIRED: The resource for which the policy is being specified. `resource` is
546
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
547
- # disk*`. The format for the path specified in this value is resource specific
548
- # and is specified in the `setIamPolicy` documentation.
559
+ # usually specified as a path. For example, a Project resource is specified as `
560
+ # projects/`project``.
549
561
  # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
550
562
  # @param [String] fields
551
563
  # Selector specifying which fields to include in a partial response.
@@ -565,7 +577,7 @@ module Google
565
577
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
566
578
  # @raise [Google::Apis::AuthorizationError] Authorization is required
567
579
  def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
568
- command = make_simple_command(:post, 'v1beta1/organizations/{resource}:setIamPolicy', options)
580
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
569
581
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
570
582
  command.request_object = set_iam_policy_request_object
571
583
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
@@ -577,12 +589,12 @@ module Google
577
589
  end
578
590
 
579
591
  # Gets the access control policy for an Organization resource. May be empty if
580
- # no such policy or resource exists.
592
+ # no such policy or resource exists. The `resource` field should be the
593
+ # organization's resource name, e.g. "organizations/123".
581
594
  # @param [String] resource
582
595
  # REQUIRED: The resource for which the policy is being requested. `resource` is
583
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
584
- # disk*`. The format for the path specified in this value is resource specific
585
- # and is specified in the `getIamPolicy` documentation.
596
+ # usually specified as a path. For example, a Project resource is specified as `
597
+ # projects/`project``.
586
598
  # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
587
599
  # @param [String] fields
588
600
  # Selector specifying which fields to include in a partial response.
@@ -602,7 +614,7 @@ module Google
602
614
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
603
615
  # @raise [Google::Apis::AuthorizationError] Authorization is required
604
616
  def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
605
- command = make_simple_command(:post, 'v1beta1/organizations/{resource}:getIamPolicy', options)
617
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
606
618
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
607
619
  command.request_object = get_iam_policy_request_object
608
620
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
@@ -613,12 +625,13 @@ module Google
613
625
  execute_or_queue_command(command, &block)
614
626
  end
615
627
 
616
- # Returns permissions that a caller has on the specified Organization.
628
+ # Returns permissions that a caller has on the specified Organization. The `
629
+ # resource` field should be the organization's resource name, e.g. "
630
+ # organizations/123".
617
631
  # @param [String] resource
618
632
  # REQUIRED: The resource for which the policy detail is being requested. `
619
- # resource` is usually specified as a path, such as `projects/*project*/zones/*
620
- # zone*/disks/*disk*`. The format for the path specified in this value is
621
- # resource specific and is specified in the `testIamPermissions` documentation.
633
+ # resource` is usually specified as a path. For example, a Project resource is
634
+ # specified as `projects/`project``.
622
635
  # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
623
636
  # @param [String] fields
624
637
  # Selector specifying which fields to include in a partial response.
@@ -638,7 +651,7 @@ module Google
638
651
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
639
652
  # @raise [Google::Apis::AuthorizationError] Authorization is required
640
653
  def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
641
- command = make_simple_command(:post, 'v1beta1/organizations/{resource}:testIamPermissions', options)
654
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
642
655
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
643
656
  command.request_object = test_iam_permissions_request_object
644
657
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation