google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -26,13 +26,13 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20170607'
30
-
31
- # View your data across Google Cloud Platform services
32
- AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
29
+ REVISION = '20170705'
33
30
 
34
31
  # View and manage your data across Google Cloud Platform services
35
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # View your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
36
36
  end
37
37
  end
38
38
  end
@@ -22,286 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1beta1
24
24
 
25
- # The request sent to the
26
- # GetAncestry
27
- # method.
28
- class GetAncestryRequest
29
- include Google::Apis::Core::Hashable
30
-
31
- def initialize(**args)
32
- update!(**args)
33
- end
34
-
35
- # Update properties of this object
36
- def update!(**args)
37
- end
38
- end
39
-
40
- # A Project is a high-level Google Cloud Platform entity. It is a
41
- # container for ACLs, APIs, App Engine Apps, VMs, and other
42
- # Google Cloud Platform resources.
43
- class Project
44
- include Google::Apis::Core::Hashable
45
-
46
- # The number uniquely identifying the project.
47
- # Example: <code>415104041262</code>
48
- # Read-only.
49
- # Corresponds to the JSON property `projectNumber`
50
- # @return [Fixnum]
51
- attr_accessor :project_number
52
-
53
- # A container to reference an id for any resource type. A `resource` in Google
54
- # Cloud Platform is a generic term for something you (a developer) may want to
55
- # interact with through one of our API's. Some examples are an App Engine app,
56
- # a Compute Engine instance, a Cloud SQL database, and so on.
57
- # Corresponds to the JSON property `parent`
58
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
59
- attr_accessor :parent
60
-
61
- # Creation time.
62
- # Read-only.
63
- # Corresponds to the JSON property `createTime`
64
- # @return [String]
65
- attr_accessor :create_time
66
-
67
- # The labels associated with this Project.
68
- # Label keys must be between 1 and 63 characters long and must conform
69
- # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
70
- # Label values must be between 0 and 63 characters long and must conform
71
- # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
72
- # No more than 256 labels can be associated with a given resource.
73
- # Clients should store labels in a representation such as JSON that does not
74
- # depend on specific characters being disallowed.
75
- # Example: <code>"environment" : "dev"</code>
76
- # Read-write.
77
- # Corresponds to the JSON property `labels`
78
- # @return [Hash<String,String>]
79
- attr_accessor :labels
80
-
81
- # The user-assigned display name of the Project.
82
- # It must be 4 to 30 characters.
83
- # Allowed characters are: lowercase and uppercase letters, numbers,
84
- # hyphen, single-quote, double-quote, space, and exclamation point.
85
- # Example: <code>My Project</code>
86
- # Read-write.
87
- # Corresponds to the JSON property `name`
88
- # @return [String]
89
- attr_accessor :name
90
-
91
- # The unique, user-assigned ID of the Project.
92
- # It must be 6 to 30 lowercase letters, digits, or hyphens.
93
- # It must start with a letter.
94
- # Trailing hyphens are prohibited.
95
- # Example: <code>tokyo-rain-123</code>
96
- # Read-only after creation.
97
- # Corresponds to the JSON property `projectId`
98
- # @return [String]
99
- attr_accessor :project_id
100
-
101
- # The Project lifecycle state.
102
- # Read-only.
103
- # Corresponds to the JSON property `lifecycleState`
104
- # @return [String]
105
- attr_accessor :lifecycle_state
106
-
107
- def initialize(**args)
108
- update!(**args)
109
- end
110
-
111
- # Update properties of this object
112
- def update!(**args)
113
- @project_number = args[:project_number] if args.key?(:project_number)
114
- @parent = args[:parent] if args.key?(:parent)
115
- @create_time = args[:create_time] if args.key?(:create_time)
116
- @labels = args[:labels] if args.key?(:labels)
117
- @name = args[:name] if args.key?(:name)
118
- @project_id = args[:project_id] if args.key?(:project_id)
119
- @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
120
- end
121
- end
122
-
123
- # Request message for `TestIamPermissions` method.
124
- class TestIamPermissionsRequest
125
- include Google::Apis::Core::Hashable
126
-
127
- # The set of permissions to check for the `resource`. Permissions with
128
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
129
- # information see
130
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
131
- # Corresponds to the JSON property `permissions`
132
- # @return [Array<String>]
133
- attr_accessor :permissions
134
-
135
- def initialize(**args)
136
- update!(**args)
137
- end
138
-
139
- # Update properties of this object
140
- def update!(**args)
141
- @permissions = args[:permissions] if args.key?(:permissions)
142
- end
143
- end
144
-
145
- # Metadata describing a long running folder operation
146
- class FolderOperation
147
- include Google::Apis::Core::Hashable
148
-
149
- # The type of this operation.
150
- # Corresponds to the JSON property `operationType`
151
- # @return [String]
152
- attr_accessor :operation_type
153
-
154
- # The display name of the folder.
155
- # Corresponds to the JSON property `displayName`
156
- # @return [String]
157
- attr_accessor :display_name
158
-
159
- # The resource name of the folder's parent.
160
- # Only applicable when the operation_type is MOVE.
161
- # Corresponds to the JSON property `sourceParent`
162
- # @return [String]
163
- attr_accessor :source_parent
164
-
165
- # The resource name of the folder or organization we are either creating
166
- # the folder under or moving the folder to.
167
- # Corresponds to the JSON property `destinationParent`
168
- # @return [String]
169
- attr_accessor :destination_parent
170
-
171
- def initialize(**args)
172
- update!(**args)
173
- end
174
-
175
- # Update properties of this object
176
- def update!(**args)
177
- @operation_type = args[:operation_type] if args.key?(:operation_type)
178
- @display_name = args[:display_name] if args.key?(:display_name)
179
- @source_parent = args[:source_parent] if args.key?(:source_parent)
180
- @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
181
- end
182
- end
183
-
184
- # Defines an Identity and Access Management (IAM) policy. It is used to
185
- # specify access control policies for Cloud Platform resources.
186
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
187
- # `members` to a `role`, where the members can be user accounts, Google groups,
188
- # Google domains, and service accounts. A `role` is a named list of permissions
189
- # defined by IAM.
190
- # **Example**
191
- # `
192
- # "bindings": [
193
- # `
194
- # "role": "roles/owner",
195
- # "members": [
196
- # "user:mike@example.com",
197
- # "group:admins@example.com",
198
- # "domain:google.com",
199
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
200
- # ]
201
- # `,
202
- # `
203
- # "role": "roles/viewer",
204
- # "members": ["user:sean@example.com"]
205
- # `
206
- # ]
207
- # `
208
- # For a description of IAM and its features, see the
209
- # [IAM developer's guide](https://cloud.google.com/iam).
210
- class Policy
211
- include Google::Apis::Core::Hashable
212
-
213
- # `etag` is used for optimistic concurrency control as a way to help
214
- # prevent simultaneous updates of a policy from overwriting each other.
215
- # It is strongly suggested that systems make use of the `etag` in the
216
- # read-modify-write cycle to perform policy updates in order to avoid race
217
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
218
- # systems are expected to put that etag in the request to `setIamPolicy` to
219
- # ensure that their change will be applied to the same version of the policy.
220
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
221
- # policy is overwritten blindly.
222
- # Corresponds to the JSON property `etag`
223
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
224
- # @return [String]
225
- attr_accessor :etag
226
-
227
- # Version of the `Policy`. The default version is 0.
228
- # Corresponds to the JSON property `version`
229
- # @return [Fixnum]
230
- attr_accessor :version
231
-
232
- # Specifies cloud audit logging configuration for this policy.
233
- # Corresponds to the JSON property `auditConfigs`
234
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditConfig>]
235
- attr_accessor :audit_configs
236
-
237
- # Associates a list of `members` to a `role`.
238
- # `bindings` with no members will result in an error.
239
- # Corresponds to the JSON property `bindings`
240
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
241
- attr_accessor :bindings
242
-
243
- def initialize(**args)
244
- update!(**args)
245
- end
246
-
247
- # Update properties of this object
248
- def update!(**args)
249
- @etag = args[:etag] if args.key?(:etag)
250
- @version = args[:version] if args.key?(:version)
251
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
252
- @bindings = args[:bindings] if args.key?(:bindings)
253
- end
254
- end
255
-
256
- # A classification of the Folder Operation error.
257
- class FolderOperationError
258
- include Google::Apis::Core::Hashable
259
-
260
- # The type of operation error experienced.
261
- # Corresponds to the JSON property `errorMessageId`
262
- # @return [String]
263
- attr_accessor :error_message_id
264
-
265
- def initialize(**args)
266
- update!(**args)
267
- end
268
-
269
- # Update properties of this object
270
- def update!(**args)
271
- @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
272
- end
273
- end
274
-
275
- # A container to reference an id for any resource type. A `resource` in Google
276
- # Cloud Platform is a generic term for something you (a developer) may want to
277
- # interact with through one of our API's. Some examples are an App Engine app,
278
- # a Compute Engine instance, a Cloud SQL database, and so on.
279
- class ResourceId
280
- include Google::Apis::Core::Hashable
281
-
282
- # Required field representing the resource type this id is for.
283
- # At present, the valid types are "project" and "organization".
284
- # Corresponds to the JSON property `type`
285
- # @return [String]
286
- attr_accessor :type
287
-
288
- # Required field for the type-specific id. This should correspond to the id
289
- # used in the type-specific API's.
290
- # Corresponds to the JSON property `id`
291
- # @return [String]
292
- attr_accessor :id
293
-
294
- def initialize(**args)
295
- update!(**args)
296
- end
297
-
298
- # Update properties of this object
299
- def update!(**args)
300
- @type = args[:type] if args.key?(:type)
301
- @id = args[:id] if args.key?(:id)
302
- end
303
- end
304
-
305
25
  # Specifies the audit configuration for a service.
306
26
  # The configuration determines which permission types are logged, and what
307
27
  # identities, if any, are exempted from logging.
@@ -380,13 +100,41 @@ module Google
380
100
  class Ancestor
381
101
  include Google::Apis::Core::Hashable
382
102
 
383
- # A container to reference an id for any resource type. A `resource` in Google
384
- # Cloud Platform is a generic term for something you (a developer) may want to
385
- # interact with through one of our API's. Some examples are an App Engine app,
386
- # a Compute Engine instance, a Cloud SQL database, and so on.
387
- # Corresponds to the JSON property `resourceId`
388
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
389
- attr_accessor :resource_id
103
+ # A container to reference an id for any resource type. A `resource` in Google
104
+ # Cloud Platform is a generic term for something you (a developer) may want to
105
+ # interact with through one of our API's. Some examples are an App Engine app,
106
+ # a Compute Engine instance, a Cloud SQL database, and so on.
107
+ # Corresponds to the JSON property `resourceId`
108
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
109
+ attr_accessor :resource_id
110
+
111
+ def initialize(**args)
112
+ update!(**args)
113
+ end
114
+
115
+ # Update properties of this object
116
+ def update!(**args)
117
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
118
+ end
119
+ end
120
+
121
+ # The response returned from the `ListOrganizations` method.
122
+ class ListOrganizationsResponse
123
+ include Google::Apis::Core::Hashable
124
+
125
+ # A pagination token to be used to retrieve the next page of results. If the
126
+ # result is too large to fit within the page size specified in the request,
127
+ # this field will be set with a token that can be used to fetch the next page
128
+ # of results. If this field is empty, it indicates that this response
129
+ # contains the last page of results.
130
+ # Corresponds to the JSON property `nextPageToken`
131
+ # @return [String]
132
+ attr_accessor :next_page_token
133
+
134
+ # The list of Organizations that matched the list query, possibly paginated.
135
+ # Corresponds to the JSON property `organizations`
136
+ # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
137
+ attr_accessor :organizations
390
138
 
391
139
  def initialize(**args)
392
140
  update!(**args)
@@ -394,7 +142,8 @@ module Google
394
142
 
395
143
  # Update properties of this object
396
144
  def update!(**args)
397
- @resource_id = args[:resource_id] if args.key?(:resource_id)
145
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
146
+ @organizations = args[:organizations] if args.key?(:organizations)
398
147
  end
399
148
  end
400
149
 
@@ -452,35 +201,6 @@ module Google
452
201
  end
453
202
  end
454
203
 
455
- # The response returned from the `ListOrganizations` method.
456
- class ListOrganizationsResponse
457
- include Google::Apis::Core::Hashable
458
-
459
- # A pagination token to be used to retrieve the next page of results. If the
460
- # result is too large to fit within the page size specified in the request,
461
- # this field will be set with a token that can be used to fetch the next page
462
- # of results. If this field is empty, it indicates that this response
463
- # contains the last page of results.
464
- # Corresponds to the JSON property `nextPageToken`
465
- # @return [String]
466
- attr_accessor :next_page_token
467
-
468
- # The list of Organizations that matched the list query, possibly paginated.
469
- # Corresponds to the JSON property `organizations`
470
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
471
- attr_accessor :organizations
472
-
473
- def initialize(**args)
474
- update!(**args)
475
- end
476
-
477
- # Update properties of this object
478
- def update!(**args)
479
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
480
- @organizations = args[:organizations] if args.key?(:organizations)
481
- end
482
- end
483
-
484
204
  # Associates `members` with a `role`.
485
205
  class Binding
486
206
  include Google::Apis::Core::Hashable
@@ -559,6 +279,12 @@ module Google
559
279
  class Organization
560
280
  include Google::Apis::Core::Hashable
561
281
 
282
+ # Timestamp when the Organization was created. Assigned by the server.
283
+ # @OutputOnly
284
+ # Corresponds to the JSON property `creationTime`
285
+ # @return [String]
286
+ attr_accessor :creation_time
287
+
562
288
  # The entity that owns an Organization. The lifetime of the Organization and
563
289
  # all of its descendants are bound to the `OrganizationOwner`. If the
564
290
  # `OrganizationOwner` is deleted, the Organization and all its descendants will
@@ -596,24 +322,18 @@ module Google
596
322
  # @return [String]
597
323
  attr_accessor :display_name
598
324
 
599
- # Timestamp when the Organization was created. Assigned by the server.
600
- # @OutputOnly
601
- # Corresponds to the JSON property `creationTime`
602
- # @return [String]
603
- attr_accessor :creation_time
604
-
605
325
  def initialize(**args)
606
326
  update!(**args)
607
327
  end
608
328
 
609
329
  # Update properties of this object
610
330
  def update!(**args)
331
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
611
332
  @owner = args[:owner] if args.key?(:owner)
612
333
  @name = args[:name] if args.key?(:name)
613
334
  @organization_id = args[:organization_id] if args.key?(:organization_id)
614
335
  @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
615
336
  @display_name = args[:display_name] if args.key?(:display_name)
616
- @creation_time = args[:creation_time] if args.key?(:creation_time)
617
337
  end
618
338
  end
619
339
 
@@ -623,10 +343,11 @@ module Google
623
343
  class ProjectCreationStatus
624
344
  include Google::Apis::Core::Hashable
625
345
 
626
- # Creation time of the project creation workflow.
627
- # Corresponds to the JSON property `createTime`
628
- # @return [String]
629
- attr_accessor :create_time
346
+ # True if the project creation process is complete.
347
+ # Corresponds to the JSON property `ready`
348
+ # @return [Boolean]
349
+ attr_accessor :ready
350
+ alias_method :ready?, :ready
630
351
 
631
352
  # True if the project can be retrieved using GetProject. No other operations
632
353
  # on the project are guaranteed to work until the project creation is
@@ -636,11 +357,185 @@ module Google
636
357
  attr_accessor :gettable
637
358
  alias_method :gettable?, :gettable
638
359
 
639
- # True if the project creation process is complete.
640
- # Corresponds to the JSON property `ready`
641
- # @return [Boolean]
642
- attr_accessor :ready
643
- alias_method :ready?, :ready
360
+ # Creation time of the project creation workflow.
361
+ # Corresponds to the JSON property `createTime`
362
+ # @return [String]
363
+ attr_accessor :create_time
364
+
365
+ def initialize(**args)
366
+ update!(**args)
367
+ end
368
+
369
+ # Update properties of this object
370
+ def update!(**args)
371
+ @ready = args[:ready] if args.key?(:ready)
372
+ @gettable = args[:gettable] if args.key?(:gettable)
373
+ @create_time = args[:create_time] if args.key?(:create_time)
374
+ end
375
+ end
376
+
377
+ # Response message for `TestIamPermissions` method.
378
+ class TestIamPermissionsResponse
379
+ include Google::Apis::Core::Hashable
380
+
381
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
382
+ # allowed.
383
+ # Corresponds to the JSON property `permissions`
384
+ # @return [Array<String>]
385
+ attr_accessor :permissions
386
+
387
+ def initialize(**args)
388
+ update!(**args)
389
+ end
390
+
391
+ # Update properties of this object
392
+ def update!(**args)
393
+ @permissions = args[:permissions] if args.key?(:permissions)
394
+ end
395
+ end
396
+
397
+ # Request message for `GetIamPolicy` method.
398
+ class GetIamPolicyRequest
399
+ include Google::Apis::Core::Hashable
400
+
401
+ def initialize(**args)
402
+ update!(**args)
403
+ end
404
+
405
+ # Update properties of this object
406
+ def update!(**args)
407
+ end
408
+ end
409
+
410
+ # Response from the GetAncestry method.
411
+ class GetAncestryResponse
412
+ include Google::Apis::Core::Hashable
413
+
414
+ # Ancestors are ordered from bottom to top of the resource hierarchy. The
415
+ # first ancestor is the project itself, followed by the project's parent,
416
+ # etc.
417
+ # Corresponds to the JSON property `ancestor`
418
+ # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Ancestor>]
419
+ attr_accessor :ancestor
420
+
421
+ def initialize(**args)
422
+ update!(**args)
423
+ end
424
+
425
+ # Update properties of this object
426
+ def update!(**args)
427
+ @ancestor = args[:ancestor] if args.key?(:ancestor)
428
+ end
429
+ end
430
+
431
+ # The entity that owns an Organization. The lifetime of the Organization and
432
+ # all of its descendants are bound to the `OrganizationOwner`. If the
433
+ # `OrganizationOwner` is deleted, the Organization and all its descendants will
434
+ # be deleted.
435
+ class OrganizationOwner
436
+ include Google::Apis::Core::Hashable
437
+
438
+ # The Google for Work customer id used in the Directory API.
439
+ # Corresponds to the JSON property `directoryCustomerId`
440
+ # @return [String]
441
+ attr_accessor :directory_customer_id
442
+
443
+ def initialize(**args)
444
+ update!(**args)
445
+ end
446
+
447
+ # Update properties of this object
448
+ def update!(**args)
449
+ @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
450
+ end
451
+ end
452
+
453
+ # A page of the response received from the
454
+ # ListProjects
455
+ # method.
456
+ # A paginated response where more pages are available has
457
+ # `next_page_token` set. This token can be used in a subsequent request to
458
+ # retrieve the next request page.
459
+ class ListProjectsResponse
460
+ include Google::Apis::Core::Hashable
461
+
462
+ # The list of Projects that matched the list filter. This list can
463
+ # be paginated.
464
+ # Corresponds to the JSON property `projects`
465
+ # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
466
+ attr_accessor :projects
467
+
468
+ # Pagination token.
469
+ # If the result set is too large to fit in a single response, this token
470
+ # is returned. It encodes the position of the current result cursor.
471
+ # Feeding this value into a new list request with the `page_token` parameter
472
+ # gives the next page of the results.
473
+ # When `next_page_token` is not filled in, there is no next page and
474
+ # the list returned is the last page in the result set.
475
+ # Pagination tokens have a limited lifetime.
476
+ # Corresponds to the JSON property `nextPageToken`
477
+ # @return [String]
478
+ attr_accessor :next_page_token
479
+
480
+ def initialize(**args)
481
+ update!(**args)
482
+ end
483
+
484
+ # Update properties of this object
485
+ def update!(**args)
486
+ @projects = args[:projects] if args.key?(:projects)
487
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
488
+ end
489
+ end
490
+
491
+ # Provides the configuration for logging a type of permissions.
492
+ # Example:
493
+ # `
494
+ # "audit_log_configs": [
495
+ # `
496
+ # "log_type": "DATA_READ",
497
+ # "exempted_members": [
498
+ # "user:foo@gmail.com"
499
+ # ]
500
+ # `,
501
+ # `
502
+ # "log_type": "DATA_WRITE",
503
+ # `
504
+ # ]
505
+ # `
506
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
507
+ # foo@gmail.com from DATA_READ logging.
508
+ class AuditLogConfig
509
+ include Google::Apis::Core::Hashable
510
+
511
+ # Specifies the identities that do not cause logging for this type of
512
+ # permission.
513
+ # Follows the same format of Binding.members.
514
+ # Corresponds to the JSON property `exemptedMembers`
515
+ # @return [Array<String>]
516
+ attr_accessor :exempted_members
517
+
518
+ # The log type that this config enables.
519
+ # Corresponds to the JSON property `logType`
520
+ # @return [String]
521
+ attr_accessor :log_type
522
+
523
+ def initialize(**args)
524
+ update!(**args)
525
+ end
526
+
527
+ # Update properties of this object
528
+ def update!(**args)
529
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
530
+ @log_type = args[:log_type] if args.key?(:log_type)
531
+ end
532
+ end
533
+
534
+ # The request sent to the
535
+ # GetAncestry
536
+ # method.
537
+ class GetAncestryRequest
538
+ include Google::Apis::Core::Hashable
644
539
 
645
540
  def initialize(**args)
646
541
  update!(**args)
@@ -648,31 +543,100 @@ module Google
648
543
 
649
544
  # Update properties of this object
650
545
  def update!(**args)
651
- @create_time = args[:create_time] if args.key?(:create_time)
652
- @gettable = args[:gettable] if args.key?(:gettable)
653
- @ready = args[:ready] if args.key?(:ready)
654
546
  end
655
547
  end
656
548
 
657
- # Request message for `GetIamPolicy` method.
658
- class GetIamPolicyRequest
549
+ # A Project is a high-level Google Cloud Platform entity. It is a
550
+ # container for ACLs, APIs, App Engine Apps, VMs, and other
551
+ # Google Cloud Platform resources.
552
+ class Project
659
553
  include Google::Apis::Core::Hashable
660
554
 
555
+ # The Project lifecycle state.
556
+ # Read-only.
557
+ # Corresponds to the JSON property `lifecycleState`
558
+ # @return [String]
559
+ attr_accessor :lifecycle_state
560
+
561
+ # The number uniquely identifying the project.
562
+ # Example: <code>415104041262</code>
563
+ # Read-only.
564
+ # Corresponds to the JSON property `projectNumber`
565
+ # @return [Fixnum]
566
+ attr_accessor :project_number
567
+
568
+ # A container to reference an id for any resource type. A `resource` in Google
569
+ # Cloud Platform is a generic term for something you (a developer) may want to
570
+ # interact with through one of our API's. Some examples are an App Engine app,
571
+ # a Compute Engine instance, a Cloud SQL database, and so on.
572
+ # Corresponds to the JSON property `parent`
573
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
574
+ attr_accessor :parent
575
+
576
+ # The labels associated with this Project.
577
+ # Label keys must be between 1 and 63 characters long and must conform
578
+ # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
579
+ # Label values must be between 0 and 63 characters long and must conform
580
+ # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
581
+ # No more than 256 labels can be associated with a given resource.
582
+ # Clients should store labels in a representation such as JSON that does not
583
+ # depend on specific characters being disallowed.
584
+ # Example: <code>"environment" : "dev"</code>
585
+ # Read-write.
586
+ # Corresponds to the JSON property `labels`
587
+ # @return [Hash<String,String>]
588
+ attr_accessor :labels
589
+
590
+ # Creation time.
591
+ # Read-only.
592
+ # Corresponds to the JSON property `createTime`
593
+ # @return [String]
594
+ attr_accessor :create_time
595
+
596
+ # The user-assigned display name of the Project.
597
+ # It must be 4 to 30 characters.
598
+ # Allowed characters are: lowercase and uppercase letters, numbers,
599
+ # hyphen, single-quote, double-quote, space, and exclamation point.
600
+ # Example: <code>My Project</code>
601
+ # Read-write.
602
+ # Corresponds to the JSON property `name`
603
+ # @return [String]
604
+ attr_accessor :name
605
+
606
+ # The unique, user-assigned ID of the Project.
607
+ # It must be 6 to 30 lowercase letters, digits, or hyphens.
608
+ # It must start with a letter.
609
+ # Trailing hyphens are prohibited.
610
+ # Example: <code>tokyo-rain-123</code>
611
+ # Read-only after creation.
612
+ # Corresponds to the JSON property `projectId`
613
+ # @return [String]
614
+ attr_accessor :project_id
615
+
661
616
  def initialize(**args)
662
617
  update!(**args)
663
618
  end
664
619
 
665
620
  # Update properties of this object
666
621
  def update!(**args)
622
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
623
+ @project_number = args[:project_number] if args.key?(:project_number)
624
+ @parent = args[:parent] if args.key?(:parent)
625
+ @labels = args[:labels] if args.key?(:labels)
626
+ @create_time = args[:create_time] if args.key?(:create_time)
627
+ @name = args[:name] if args.key?(:name)
628
+ @project_id = args[:project_id] if args.key?(:project_id)
667
629
  end
668
630
  end
669
631
 
670
- # Response message for `TestIamPermissions` method.
671
- class TestIamPermissionsResponse
632
+ # Request message for `TestIamPermissions` method.
633
+ class TestIamPermissionsRequest
672
634
  include Google::Apis::Core::Hashable
673
635
 
674
- # A subset of `TestPermissionsRequest.permissions` that the caller is
675
- # allowed.
636
+ # The set of permissions to check for the `resource`. Permissions with
637
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
638
+ # information see
639
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
676
640
  # Corresponds to the JSON property `permissions`
677
641
  # @return [Array<String>]
678
642
  attr_accessor :permissions
@@ -687,16 +651,14 @@ module Google
687
651
  end
688
652
  end
689
653
 
690
- # Response from the GetAncestry method.
691
- class GetAncestryResponse
654
+ # A classification of the Folder Operation error.
655
+ class FolderOperationError
692
656
  include Google::Apis::Core::Hashable
693
657
 
694
- # Ancestors are ordered from bottom to top of the resource hierarchy. The
695
- # first ancestor is the project itself, followed by the project's parent,
696
- # etc.
697
- # Corresponds to the JSON property `ancestor`
698
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Ancestor>]
699
- attr_accessor :ancestor
658
+ # The type of operation error experienced.
659
+ # Corresponds to the JSON property `errorMessageId`
660
+ # @return [String]
661
+ attr_accessor :error_message_id
700
662
 
701
663
  def initialize(**args)
702
664
  update!(**args)
@@ -704,21 +666,35 @@ module Google
704
666
 
705
667
  # Update properties of this object
706
668
  def update!(**args)
707
- @ancestor = args[:ancestor] if args.key?(:ancestor)
669
+ @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
708
670
  end
709
671
  end
710
672
 
711
- # The entity that owns an Organization. The lifetime of the Organization and
712
- # all of its descendants are bound to the `OrganizationOwner`. If the
713
- # `OrganizationOwner` is deleted, the Organization and all its descendants will
714
- # be deleted.
715
- class OrganizationOwner
673
+ # Metadata describing a long running folder operation
674
+ class FolderOperation
716
675
  include Google::Apis::Core::Hashable
717
676
 
718
- # The Google for Work customer id used in the Directory API.
719
- # Corresponds to the JSON property `directoryCustomerId`
677
+ # The type of this operation.
678
+ # Corresponds to the JSON property `operationType`
720
679
  # @return [String]
721
- attr_accessor :directory_customer_id
680
+ attr_accessor :operation_type
681
+
682
+ # The resource name of the folder's parent.
683
+ # Only applicable when the operation_type is MOVE.
684
+ # Corresponds to the JSON property `sourceParent`
685
+ # @return [String]
686
+ attr_accessor :source_parent
687
+
688
+ # The display name of the folder.
689
+ # Corresponds to the JSON property `displayName`
690
+ # @return [String]
691
+ attr_accessor :display_name
692
+
693
+ # The resource name of the folder or organization we are either creating
694
+ # the folder under or moving the folder to.
695
+ # Corresponds to the JSON property `destinationParent`
696
+ # @return [String]
697
+ attr_accessor :destination_parent
722
698
 
723
699
  def initialize(**args)
724
700
  update!(**args)
@@ -726,41 +702,71 @@ module Google
726
702
 
727
703
  # Update properties of this object
728
704
  def update!(**args)
729
- @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
705
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
706
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
707
+ @display_name = args[:display_name] if args.key?(:display_name)
708
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
730
709
  end
731
710
  end
732
711
 
733
- # Provides the configuration for logging a type of permissions.
734
- # Example:
712
+ # Defines an Identity and Access Management (IAM) policy. It is used to
713
+ # specify access control policies for Cloud Platform resources.
714
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
715
+ # `members` to a `role`, where the members can be user accounts, Google groups,
716
+ # Google domains, and service accounts. A `role` is a named list of permissions
717
+ # defined by IAM.
718
+ # **Example**
735
719
  # `
736
- # "audit_log_configs": [
720
+ # "bindings": [
737
721
  # `
738
- # "log_type": "DATA_READ",
739
- # "exempted_members": [
740
- # "user:foo@gmail.com"
722
+ # "role": "roles/owner",
723
+ # "members": [
724
+ # "user:mike@example.com",
725
+ # "group:admins@example.com",
726
+ # "domain:google.com",
727
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
741
728
  # ]
742
729
  # `,
743
730
  # `
744
- # "log_type": "DATA_WRITE",
731
+ # "role": "roles/viewer",
732
+ # "members": ["user:sean@example.com"]
745
733
  # `
746
734
  # ]
747
735
  # `
748
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
749
- # foo@gmail.com from DATA_READ logging.
750
- class AuditLogConfig
736
+ # For a description of IAM and its features, see the
737
+ # [IAM developer's guide](https://cloud.google.com/iam).
738
+ class Policy
751
739
  include Google::Apis::Core::Hashable
752
740
 
753
- # Specifies the identities that do not cause logging for this type of
754
- # permission.
755
- # Follows the same format of Binding.members.
756
- # Corresponds to the JSON property `exemptedMembers`
757
- # @return [Array<String>]
758
- attr_accessor :exempted_members
759
-
760
- # The log type that this config enables.
761
- # Corresponds to the JSON property `logType`
741
+ # `etag` is used for optimistic concurrency control as a way to help
742
+ # prevent simultaneous updates of a policy from overwriting each other.
743
+ # It is strongly suggested that systems make use of the `etag` in the
744
+ # read-modify-write cycle to perform policy updates in order to avoid race
745
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
746
+ # systems are expected to put that etag in the request to `setIamPolicy` to
747
+ # ensure that their change will be applied to the same version of the policy.
748
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
749
+ # policy is overwritten blindly.
750
+ # Corresponds to the JSON property `etag`
751
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
762
752
  # @return [String]
763
- attr_accessor :log_type
753
+ attr_accessor :etag
754
+
755
+ # Version of the `Policy`. The default version is 0.
756
+ # Corresponds to the JSON property `version`
757
+ # @return [Fixnum]
758
+ attr_accessor :version
759
+
760
+ # Specifies cloud audit logging configuration for this policy.
761
+ # Corresponds to the JSON property `auditConfigs`
762
+ # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditConfig>]
763
+ attr_accessor :audit_configs
764
+
765
+ # Associates a list of `members` to a `role`.
766
+ # `bindings` with no members will result in an error.
767
+ # Corresponds to the JSON property `bindings`
768
+ # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
769
+ attr_accessor :bindings
764
770
 
765
771
  def initialize(**args)
766
772
  update!(**args)
@@ -768,37 +774,31 @@ module Google
768
774
 
769
775
  # Update properties of this object
770
776
  def update!(**args)
771
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
772
- @log_type = args[:log_type] if args.key?(:log_type)
777
+ @etag = args[:etag] if args.key?(:etag)
778
+ @version = args[:version] if args.key?(:version)
779
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
780
+ @bindings = args[:bindings] if args.key?(:bindings)
773
781
  end
774
782
  end
775
783
 
776
- # A page of the response received from the
777
- # ListProjects
778
- # method.
779
- # A paginated response where more pages are available has
780
- # `next_page_token` set. This token can be used in a subsequent request to
781
- # retrieve the next request page.
782
- class ListProjectsResponse
784
+ # A container to reference an id for any resource type. A `resource` in Google
785
+ # Cloud Platform is a generic term for something you (a developer) may want to
786
+ # interact with through one of our API's. Some examples are an App Engine app,
787
+ # a Compute Engine instance, a Cloud SQL database, and so on.
788
+ class ResourceId
783
789
  include Google::Apis::Core::Hashable
784
790
 
785
- # The list of Projects that matched the list filter. This list can
786
- # be paginated.
787
- # Corresponds to the JSON property `projects`
788
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
789
- attr_accessor :projects
791
+ # Required field representing the resource type this id is for.
792
+ # At present, the valid types are "project" and "organization".
793
+ # Corresponds to the JSON property `type`
794
+ # @return [String]
795
+ attr_accessor :type
790
796
 
791
- # Pagination token.
792
- # If the result set is too large to fit in a single response, this token
793
- # is returned. It encodes the position of the current result cursor.
794
- # Feeding this value into a new list request with the `page_token` parameter
795
- # gives the next page of the results.
796
- # When `next_page_token` is not filled in, there is no next page and
797
- # the list returned is the last page in the result set.
798
- # Pagination tokens have a limited lifetime.
799
- # Corresponds to the JSON property `nextPageToken`
797
+ # Required field for the type-specific id. This should correspond to the id
798
+ # used in the type-specific API's.
799
+ # Corresponds to the JSON property `id`
800
800
  # @return [String]
801
- attr_accessor :next_page_token
801
+ attr_accessor :id
802
802
 
803
803
  def initialize(**args)
804
804
  update!(**args)
@@ -806,8 +806,8 @@ module Google
806
806
 
807
807
  # Update properties of this object
808
808
  def update!(**args)
809
- @projects = args[:projects] if args.key?(:projects)
810
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
809
+ @type = args[:type] if args.key?(:type)
810
+ @id = args[:id] if args.key?(:id)
811
811
  end
812
812
  end
813
813
  end