google-api-client 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -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 = '20170324'
29
+ REVISION = '20170329'
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'
@@ -22,6 +22,65 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1beta1
24
24
 
25
+ # Associates `members` with a `role`.
26
+ class Binding
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Specifies the identities requesting access for a Cloud Platform resource.
30
+ # `members` can have the following values:
31
+ # * `allUsers`: A special identifier that represents anyone who is
32
+ # on the internet; with or without a Google account.
33
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
34
+ # who is authenticated with a Google account or a service account.
35
+ # * `user:`emailid``: An email address that represents a specific Google
36
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
37
+ # * `serviceAccount:`emailid``: An email address that represents a service
38
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
39
+ # * `group:`emailid``: An email address that represents a Google group.
40
+ # For example, `admins@example.com`.
41
+ # * `domain:`domain``: A Google Apps domain name that represents all the
42
+ # users of that domain. For example, `google.com` or `example.com`.
43
+ # Corresponds to the JSON property `members`
44
+ # @return [Array<String>]
45
+ attr_accessor :members
46
+
47
+ # Role that is assigned to `members`.
48
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
49
+ # Required
50
+ # Corresponds to the JSON property `role`
51
+ # @return [String]
52
+ attr_accessor :role
53
+
54
+ def initialize(**args)
55
+ update!(**args)
56
+ end
57
+
58
+ # Update properties of this object
59
+ def update!(**args)
60
+ @members = args[:members] if args.key?(:members)
61
+ @role = args[:role] if args.key?(:role)
62
+ end
63
+ end
64
+
65
+ # A generic empty message that you can re-use to avoid defining duplicated
66
+ # empty messages in your APIs. A typical example is to use it as the request
67
+ # or the response type of an API method. For instance:
68
+ # service Foo `
69
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
70
+ # `
71
+ # The JSON representation for `Empty` is empty JSON object ````.
72
+ class Empty
73
+ include Google::Apis::Core::Hashable
74
+
75
+ def initialize(**args)
76
+ update!(**args)
77
+ end
78
+
79
+ # Update properties of this object
80
+ def update!(**args)
81
+ end
82
+ end
83
+
25
84
  # The request sent to the UndeleteProject
26
85
  # method.
27
86
  class UndeleteProjectRequest
@@ -36,20 +95,53 @@ module Google
36
95
  end
37
96
  end
38
97
 
39
- # The request sent to the ClearOrgPolicy method.
40
- class ClearOrgPolicyRequest
98
+ # The root node in the resource hierarchy to which a particular entity's
99
+ # (e.g., company) resources belong.
100
+ class Organization
41
101
  include Google::Apis::Core::Hashable
42
102
 
43
- # The current version, for concurrency control. Not sending an `etag`
44
- # will cause the `Policy` to be cleared blindly.
45
- # Corresponds to the JSON property `etag`
103
+ # Timestamp when the Organization was created. Assigned by the server.
104
+ # @OutputOnly
105
+ # Corresponds to the JSON property `creationTime`
46
106
  # @return [String]
47
- attr_accessor :etag
107
+ attr_accessor :creation_time
108
+
109
+ # The entity that owns an Organization. The lifetime of the Organization and
110
+ # all of its descendants are bound to the `OrganizationOwner`. If the
111
+ # `OrganizationOwner` is deleted, the Organization and all its descendants will
112
+ # be deleted.
113
+ # Corresponds to the JSON property `owner`
114
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
115
+ attr_accessor :owner
116
+
117
+ # Output Only. The resource name of the organization. This is the
118
+ # organization's relative path in the API. Its format is
119
+ # "organizations/[organization_id]". For example, "organizations/1234".
120
+ # Corresponds to the JSON property `name`
121
+ # @return [String]
122
+ attr_accessor :name
123
+
124
+ # An immutable id for the Organization that is assigned on creation. This
125
+ # should be omitted when creating a new Organization.
126
+ # This field is read-only.
127
+ # This field is deprecated and will be removed in v1. Use name instead.
128
+ # Corresponds to the JSON property `organizationId`
129
+ # @return [String]
130
+ attr_accessor :organization_id
131
+
132
+ # The organization's current lifecycle state. Assigned by the server.
133
+ # @OutputOnly
134
+ # Corresponds to the JSON property `lifecycleState`
135
+ # @return [String]
136
+ attr_accessor :lifecycle_state
48
137
 
49
- # Name of the `Constraint` of the `Policy` to clear.
50
- # Corresponds to the JSON property `constraint`
138
+ # A friendly string to be used to refer to the Organization in the UI.
139
+ # Assigned by the server, set to the primary domain of the G Suite
140
+ # customer that owns the organization.
141
+ # @OutputOnly
142
+ # Corresponds to the JSON property `displayName`
51
143
  # @return [String]
52
- attr_accessor :constraint
144
+ attr_accessor :display_name
53
145
 
54
146
  def initialize(**args)
55
147
  update!(**args)
@@ -57,8 +149,12 @@ module Google
57
149
 
58
150
  # Update properties of this object
59
151
  def update!(**args)
60
- @etag = args[:etag] if args.key?(:etag)
61
- @constraint = args[:constraint] if args.key?(:constraint)
152
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
153
+ @owner = args[:owner] if args.key?(:owner)
154
+ @name = args[:name] if args.key?(:name)
155
+ @organization_id = args[:organization_id] if args.key?(:organization_id)
156
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
157
+ @display_name = args[:display_name] if args.key?(:display_name)
62
158
  end
63
159
  end
64
160
 
@@ -99,11 +195,8 @@ module Google
99
195
  end
100
196
  end
101
197
 
102
- # A `Constraint` that is either enforced or not.
103
- # For example a constraint `constraints/compute.disableSerialPortAccess`.
104
- # If it is enforced on a VM instance, serial port connections will not be
105
- # opened to that instance.
106
- class BooleanConstraint
198
+ # Request message for `GetIamPolicy` method.
199
+ class GetIamPolicyRequest
107
200
  include Google::Apis::Core::Hashable
108
201
 
109
202
  def initialize(**args)
@@ -135,30 +228,80 @@ module Google
135
228
  end
136
229
  end
137
230
 
138
- # Request message for `GetIamPolicy` method.
139
- class GetIamPolicyRequest
231
+ # The entity that owns an Organization. The lifetime of the Organization and
232
+ # all of its descendants are bound to the `OrganizationOwner`. If the
233
+ # `OrganizationOwner` is deleted, the Organization and all its descendants will
234
+ # be deleted.
235
+ class OrganizationOwner
140
236
  include Google::Apis::Core::Hashable
141
237
 
238
+ # The Google for Work customer id used in the Directory API.
239
+ # Corresponds to the JSON property `directoryCustomerId`
240
+ # @return [String]
241
+ attr_accessor :directory_customer_id
242
+
142
243
  def initialize(**args)
143
244
  update!(**args)
144
245
  end
145
246
 
146
247
  # Update properties of this object
147
248
  def update!(**args)
249
+ @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
148
250
  end
149
251
  end
150
252
 
151
- # The entity that owns an Organization. The lifetime of the Organization and
152
- # all of its descendants are bound to the `OrganizationOwner`. If the
153
- # `OrganizationOwner` is deleted, the Organization and all its descendants will
154
- # be deleted.
155
- class OrganizationOwner
253
+ # Response from the GetAncestry method.
254
+ class GetAncestryResponse
156
255
  include Google::Apis::Core::Hashable
157
256
 
158
- # The Google for Work customer id used in the Directory API.
159
- # Corresponds to the JSON property `directoryCustomerId`
257
+ # Ancestors are ordered from bottom to top of the resource hierarchy. The
258
+ # first ancestor is the project itself, followed by the project's parent,
259
+ # etc.
260
+ # Corresponds to the JSON property `ancestor`
261
+ # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Ancestor>]
262
+ attr_accessor :ancestor
263
+
264
+ def initialize(**args)
265
+ update!(**args)
266
+ end
267
+
268
+ # Update properties of this object
269
+ def update!(**args)
270
+ @ancestor = args[:ancestor] if args.key?(:ancestor)
271
+ end
272
+ end
273
+
274
+ # Provides the configuration for logging a type of permissions.
275
+ # Example:
276
+ # `
277
+ # "audit_log_configs": [
278
+ # `
279
+ # "log_type": "DATA_READ",
280
+ # "exempted_members": [
281
+ # "user:foo@gmail.com"
282
+ # ]
283
+ # `,
284
+ # `
285
+ # "log_type": "DATA_WRITE",
286
+ # `
287
+ # ]
288
+ # `
289
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
290
+ # foo@gmail.com from DATA_READ logging.
291
+ class AuditLogConfig
292
+ include Google::Apis::Core::Hashable
293
+
294
+ # Specifies the identities that do not cause logging for this type of
295
+ # permission.
296
+ # Follows the same format of Binding.members.
297
+ # Corresponds to the JSON property `exemptedMembers`
298
+ # @return [Array<String>]
299
+ attr_accessor :exempted_members
300
+
301
+ # The log type that this config enables.
302
+ # Corresponds to the JSON property `logType`
160
303
  # @return [String]
161
- attr_accessor :directory_customer_id
304
+ attr_accessor :log_type
162
305
 
163
306
  def initialize(**args)
164
307
  update!(**args)
@@ -166,7 +309,8 @@ module Google
166
309
 
167
310
  # Update properties of this object
168
311
  def update!(**args)
169
- @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
312
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
313
+ @log_type = args[:log_type] if args.key?(:log_type)
170
314
  end
171
315
  end
172
316
 
@@ -208,12 +352,33 @@ module Google
208
352
  end
209
353
  end
210
354
 
355
+ # The request sent to the
356
+ # GetAncestry
357
+ # method.
358
+ class GetAncestryRequest
359
+ include Google::Apis::Core::Hashable
360
+
361
+ def initialize(**args)
362
+ update!(**args)
363
+ end
364
+
365
+ # Update properties of this object
366
+ def update!(**args)
367
+ end
368
+ end
369
+
211
370
  # A Project is a high-level Google Cloud Platform entity. It is a
212
371
  # container for ACLs, APIs, App Engine Apps, VMs, and other
213
372
  # Google Cloud Platform resources.
214
373
  class Project
215
374
  include Google::Apis::Core::Hashable
216
375
 
376
+ # The Project lifecycle state.
377
+ # Read-only.
378
+ # Corresponds to the JSON property `lifecycleState`
379
+ # @return [String]
380
+ attr_accessor :lifecycle_state
381
+
217
382
  # The number uniquely identifying the project.
218
383
  # Example: <code>415104041262</code>
219
384
  # Read-only.
@@ -229,12 +394,6 @@ module Google
229
394
  # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
230
395
  attr_accessor :parent
231
396
 
232
- # Creation time.
233
- # Read-only.
234
- # Corresponds to the JSON property `createTime`
235
- # @return [String]
236
- attr_accessor :create_time
237
-
238
397
  # The labels associated with this Project.
239
398
  # Label keys must be between 1 and 63 characters long and must conform
240
399
  # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
@@ -249,669 +408,31 @@ module Google
249
408
  # @return [Hash<String,String>]
250
409
  attr_accessor :labels
251
410
 
252
- # The user-assigned display name of the Project.
253
- # It must be 4 to 30 characters.
254
- # Allowed characters are: lowercase and uppercase letters, numbers,
255
- # hyphen, single-quote, double-quote, space, and exclamation point.
256
- # Example: <code>My Project</code>
257
- # Read-write.
258
- # Corresponds to the JSON property `name`
259
- # @return [String]
260
- attr_accessor :name
261
-
262
- # The unique, user-assigned ID of the Project.
263
- # It must be 6 to 30 lowercase letters, digits, or hyphens.
264
- # It must start with a letter.
265
- # Trailing hyphens are prohibited.
266
- # Example: <code>tokyo-rain-123</code>
267
- # Read-only after creation.
268
- # Corresponds to the JSON property `projectId`
269
- # @return [String]
270
- attr_accessor :project_id
271
-
272
- # The Project lifecycle state.
273
- # Read-only.
274
- # Corresponds to the JSON property `lifecycleState`
275
- # @return [String]
276
- attr_accessor :lifecycle_state
277
-
278
- def initialize(**args)
279
- update!(**args)
280
- end
281
-
282
- # Update properties of this object
283
- def update!(**args)
284
- @project_number = args[:project_number] if args.key?(:project_number)
285
- @parent = args[:parent] if args.key?(:parent)
286
- @create_time = args[:create_time] if args.key?(:create_time)
287
- @labels = args[:labels] if args.key?(:labels)
288
- @name = args[:name] if args.key?(:name)
289
- @project_id = args[:project_id] if args.key?(:project_id)
290
- @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
291
- end
292
- end
293
-
294
- # The response returned from the ListOrgPolicies method. It will be empty
295
- # if no `Policies` are set on the resource.
296
- class ListOrgPoliciesResponse
297
- include Google::Apis::Core::Hashable
298
-
299
- # The `Policies` that are set on the resource. It will be empty if no
300
- # `Policies` are set.
301
- # Corresponds to the JSON property `policies`
302
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy>]
303
- attr_accessor :policies
304
-
305
- # Page token used to retrieve the next page. This is currently not used, but
306
- # the server may at any point start supplying a valid token.
307
- # Corresponds to the JSON property `nextPageToken`
308
- # @return [String]
309
- attr_accessor :next_page_token
310
-
311
- def initialize(**args)
312
- update!(**args)
313
- end
314
-
315
- # Update properties of this object
316
- def update!(**args)
317
- @policies = args[:policies] if args.key?(:policies)
318
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
319
- end
320
- end
321
-
322
- # A classification of the Folder Operation error.
323
- class FolderOperationError
324
- include Google::Apis::Core::Hashable
325
-
326
- # The type of operation error experienced.
327
- # Corresponds to the JSON property `errorMessageId`
328
- # @return [String]
329
- attr_accessor :error_message_id
330
-
331
- def initialize(**args)
332
- update!(**args)
333
- end
334
-
335
- # Update properties of this object
336
- def update!(**args)
337
- @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
338
- end
339
- end
340
-
341
- # Defines a Cloud Organization `Policy` which is used to specify `Constraints`
342
- # for configurations of Cloud Platform resources.
343
- class OrgPolicy
344
- include Google::Apis::Core::Hashable
345
-
346
- # Version of the `Policy`. Default version is 0;
347
- # Corresponds to the JSON property `version`
348
- # @return [Fixnum]
349
- attr_accessor :version
350
-
351
- # Ignores policies set above this resource and restores the
352
- # `constraint_default` enforcement behavior of the specific `Constraint` at
353
- # this resource.
354
- # Suppose that `constraint_default` is set to `ALLOW` for the
355
- # `Constraint` `constraints/serviceuser.services`. Suppose that organization
356
- # foo.com sets a `Policy` at their Organization resource node that restricts
357
- # the allowed service activations to deny all service activations. They
358
- # could then set a `Policy` with the `policy_type` `restore_default` on
359
- # several experimental projects, restoring the `constraint_default`
360
- # enforcement of the `Constraint` for only those projects, allowing those
361
- # projects to have all services activated.
362
- # Corresponds to the JSON property `restoreDefault`
363
- # @return [Google::Apis::CloudresourcemanagerV1beta1::RestoreDefault]
364
- attr_accessor :restore_default
365
-
366
- # Used in `policy_type` to specify how `list_policy` behaves at this
367
- # resource.
368
- # A `ListPolicy` can define specific values that are allowed or denied by
369
- # setting either the `allowed_values` or `denied_values` fields. It can also
370
- # be used to allow or deny all values, by setting the `all_values` field. If
371
- # `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
372
- # or `denied_values` must be set (attempting to set both or neither will
373
- # result in a failed request). If `all_values` is set to either `ALLOW` or
374
- # `DENY`, `allowed_values` and `denied_values` must be unset.
375
- # Corresponds to the JSON property `listPolicy`
376
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ListPolicy]
377
- attr_accessor :list_policy
378
-
379
- # An opaque tag indicating the current version of the `Policy`, used for
380
- # concurrency control.
381
- # When the `Policy` is returned from either a `GetPolicy` or a
382
- # `ListOrgPolicy` request, this `etag` indicates the version of the current
383
- # `Policy` to use when executing a read-modify-write loop.
384
- # When the `Policy` is returned from a `GetEffectivePolicy` request, the
385
- # `etag` will be unset.
386
- # When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
387
- # that was returned from a `GetOrgPolicy` request as part of a
388
- # read-modify-write loop for concurrency control. Not setting the `etag`in a
389
- # `SetOrgPolicy` request will result in an unconditional write of the
390
- # `Policy`.
391
- # Corresponds to the JSON property `etag`
392
- # @return [String]
393
- attr_accessor :etag
394
-
395
- # The name of the `Constraint` the `Policy` is configuring, for example,
396
- # `constraints/serviceuser.services`.
397
- # Immutable after creation.
398
- # Corresponds to the JSON property `constraint`
399
- # @return [String]
400
- attr_accessor :constraint
401
-
402
- # Used in `policy_type` to specify how `boolean_policy` will behave at this
403
- # resource.
404
- # Corresponds to the JSON property `booleanPolicy`
405
- # @return [Google::Apis::CloudresourcemanagerV1beta1::BooleanPolicy]
406
- attr_accessor :boolean_policy
407
-
408
- # The time stamp the `Policy` was previously updated. This is set by the
409
- # server, not specified by the caller, and represents the last time a call to
410
- # `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
411
- # be ignored.
412
- # Corresponds to the JSON property `updateTime`
413
- # @return [String]
414
- attr_accessor :update_time
415
-
416
- def initialize(**args)
417
- update!(**args)
418
- end
419
-
420
- # Update properties of this object
421
- def update!(**args)
422
- @version = args[:version] if args.key?(:version)
423
- @restore_default = args[:restore_default] if args.key?(:restore_default)
424
- @list_policy = args[:list_policy] if args.key?(:list_policy)
425
- @etag = args[:etag] if args.key?(:etag)
426
- @constraint = args[:constraint] if args.key?(:constraint)
427
- @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
428
- @update_time = args[:update_time] if args.key?(:update_time)
429
- end
430
- end
431
-
432
- # Used in `policy_type` to specify how `boolean_policy` will behave at this
433
- # resource.
434
- class BooleanPolicy
435
- include Google::Apis::Core::Hashable
436
-
437
- # If `true`, then the `Policy` is enforced. If `false`, then any
438
- # configuration is acceptable.
439
- # Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess`
440
- # with `constraint_default` set to `ALLOW`. A `Policy` for that
441
- # `Constraint` exhibits the following behavior:
442
- # - If the `Policy` at this resource has enforced set to `false`, serial
443
- # port connection attempts will be allowed.
444
- # - If the `Policy` at this resource has enforced set to `true`, serial
445
- # port connection attempts will be refused.
446
- # - If the `Policy` at this resource is `RestoreDefault`, serial port
447
- # connection attempts will be allowed.
448
- # - If no `Policy` is set at this resource or anywhere higher in the
449
- # resource hierarchy, serial port connection attempts will be allowed.
450
- # - If no `Policy` is set at this resource, but one exists higher in the
451
- # resource hierarchy, the behavior is as if the`Policy` were set at
452
- # this resource.
453
- # The following examples demonstrate the different possible layerings:
454
- # Example 1 (nearest `Constraint` wins):
455
- # `organizations/foo` has a `Policy` with:
456
- # `enforced: false`
457
- # `projects/bar` has no `Policy` set.
458
- # The constraint at `projects/bar` and `organizations/foo` will not be
459
- # enforced.
460
- # Example 2 (enforcement gets replaced):
461
- # `organizations/foo` has a `Policy` with:
462
- # `enforced: false`
463
- # `projects/bar` has a `Policy` with:
464
- # `enforced: true`
465
- # The constraint at `organizations/foo` is not enforced.
466
- # The constraint at `projects/bar` is enforced.
467
- # Example 3 (RestoreDefault):
468
- # `organizations/foo` has a `Policy` with:
469
- # `enforced: true`
470
- # `projects/bar` has a `Policy` with:
471
- # `RestoreDefault: ```
472
- # The constraint at `organizations/foo` is enforced.
473
- # The constraint at `projects/bar` is not enforced, because
474
- # `constraint_default` for the `Constraint` is `ALLOW`.
475
- # Corresponds to the JSON property `enforced`
476
- # @return [Boolean]
477
- attr_accessor :enforced
478
- alias_method :enforced?, :enforced
479
-
480
- def initialize(**args)
481
- update!(**args)
482
- end
483
-
484
- # Update properties of this object
485
- def update!(**args)
486
- @enforced = args[:enforced] if args.key?(:enforced)
487
- end
488
- end
489
-
490
- # Identifying information for a single ancestor of a project.
491
- class Ancestor
492
- include Google::Apis::Core::Hashable
493
-
494
- # A container to reference an id for any resource type. A `resource` in Google
495
- # Cloud Platform is a generic term for something you (a developer) may want to
496
- # interact with through one of our API's. Some examples are an App Engine app,
497
- # a Compute Engine instance, a Cloud SQL database, and so on.
498
- # Corresponds to the JSON property `resourceId`
499
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
500
- attr_accessor :resource_id
501
-
502
- def initialize(**args)
503
- update!(**args)
504
- end
505
-
506
- # Update properties of this object
507
- def update!(**args)
508
- @resource_id = args[:resource_id] if args.key?(:resource_id)
509
- end
510
- end
511
-
512
- # A `Constraint` that allows or disallows a list of string values, which are
513
- # configured by an Organization's policy administrator with a `Policy`.
514
- class ListConstraint
515
- include Google::Apis::Core::Hashable
516
-
517
- # Optional. The Google Cloud Console will try to default to a configuration
518
- # that matches the value specified in this `Constraint`.
519
- # Corresponds to the JSON property `suggestedValue`
520
- # @return [String]
521
- attr_accessor :suggested_value
522
-
523
- def initialize(**args)
524
- update!(**args)
525
- end
526
-
527
- # Update properties of this object
528
- def update!(**args)
529
- @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
530
- end
531
- end
532
-
533
- # The request sent to the SetOrgPolicyRequest method.
534
- class SetOrgPolicyRequest
535
- include Google::Apis::Core::Hashable
536
-
537
- # Defines a Cloud Organization `Policy` which is used to specify `Constraints`
538
- # for configurations of Cloud Platform resources.
539
- # Corresponds to the JSON property `policy`
540
- # @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
541
- attr_accessor :policy
542
-
543
- def initialize(**args)
544
- update!(**args)
545
- end
546
-
547
- # Update properties of this object
548
- def update!(**args)
549
- @policy = args[:policy] if args.key?(:policy)
550
- end
551
- end
552
-
553
- # Request message for `SetIamPolicy` method.
554
- class SetIamPolicyRequest
555
- include Google::Apis::Core::Hashable
556
-
557
- # Defines an Identity and Access Management (IAM) policy. It is used to
558
- # specify access control policies for Cloud Platform resources.
559
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
560
- # `members` to a `role`, where the members can be user accounts, Google groups,
561
- # Google domains, and service accounts. A `role` is a named list of permissions
562
- # defined by IAM.
563
- # **Example**
564
- # `
565
- # "bindings": [
566
- # `
567
- # "role": "roles/owner",
568
- # "members": [
569
- # "user:mike@example.com",
570
- # "group:admins@example.com",
571
- # "domain:google.com",
572
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
573
- # ]
574
- # `,
575
- # `
576
- # "role": "roles/viewer",
577
- # "members": ["user:sean@example.com"]
578
- # `
579
- # ]
580
- # `
581
- # For a description of IAM and its features, see the
582
- # [IAM developer's guide](https://cloud.google.com/iam).
583
- # Corresponds to the JSON property `policy`
584
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
585
- attr_accessor :policy
586
-
587
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
588
- # the fields in the mask will be modified. If no mask is provided, the
589
- # following default mask is used:
590
- # paths: "bindings, etag"
591
- # This field is only used by Cloud IAM.
592
- # Corresponds to the JSON property `updateMask`
593
- # @return [String]
594
- attr_accessor :update_mask
595
-
596
- def initialize(**args)
597
- update!(**args)
598
- end
599
-
600
- # Update properties of this object
601
- def update!(**args)
602
- @policy = args[:policy] if args.key?(:policy)
603
- @update_mask = args[:update_mask] if args.key?(:update_mask)
604
- end
605
- end
606
-
607
- # A generic empty message that you can re-use to avoid defining duplicated
608
- # empty messages in your APIs. A typical example is to use it as the request
609
- # or the response type of an API method. For instance:
610
- # service Foo `
611
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
612
- # `
613
- # The JSON representation for `Empty` is empty JSON object ````.
614
- class Empty
615
- include Google::Apis::Core::Hashable
616
-
617
- def initialize(**args)
618
- update!(**args)
619
- end
620
-
621
- # Update properties of this object
622
- def update!(**args)
623
- end
624
- end
625
-
626
- # The root node in the resource hierarchy to which a particular entity's
627
- # (e.g., company) resources belong.
628
- class Organization
629
- include Google::Apis::Core::Hashable
630
-
631
- # The organization's current lifecycle state. Assigned by the server.
632
- # @OutputOnly
633
- # Corresponds to the JSON property `lifecycleState`
634
- # @return [String]
635
- attr_accessor :lifecycle_state
636
-
637
- # A friendly string to be used to refer to the Organization in the UI.
638
- # Assigned by the server, set to the primary domain of the G Suite
639
- # customer that owns the organization.
640
- # @OutputOnly
641
- # Corresponds to the JSON property `displayName`
642
- # @return [String]
643
- attr_accessor :display_name
644
-
645
- # Timestamp when the Organization was created. Assigned by the server.
646
- # @OutputOnly
647
- # Corresponds to the JSON property `creationTime`
648
- # @return [String]
649
- attr_accessor :creation_time
650
-
651
- # The entity that owns an Organization. The lifetime of the Organization and
652
- # all of its descendants are bound to the `OrganizationOwner`. If the
653
- # `OrganizationOwner` is deleted, the Organization and all its descendants will
654
- # be deleted.
655
- # Corresponds to the JSON property `owner`
656
- # @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
657
- attr_accessor :owner
658
-
659
- # Output Only. The resource name of the organization. This is the
660
- # organization's relative path in the API. Its format is
661
- # "organizations/[organization_id]". For example, "organizations/1234".
662
- # Corresponds to the JSON property `name`
663
- # @return [String]
664
- attr_accessor :name
665
-
666
- # An immutable id for the Organization that is assigned on creation. This
667
- # should be omitted when creating a new Organization.
668
- # This field is read-only.
669
- # This field is deprecated and will be removed in v1. Use name instead.
670
- # Corresponds to the JSON property `organizationId`
671
- # @return [String]
672
- attr_accessor :organization_id
673
-
674
- def initialize(**args)
675
- update!(**args)
676
- end
677
-
678
- # Update properties of this object
679
- def update!(**args)
680
- @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
681
- @display_name = args[:display_name] if args.key?(:display_name)
682
- @creation_time = args[:creation_time] if args.key?(:creation_time)
683
- @owner = args[:owner] if args.key?(:owner)
684
- @name = args[:name] if args.key?(:name)
685
- @organization_id = args[:organization_id] if args.key?(:organization_id)
686
- end
687
- end
688
-
689
- # The response returned from the ListAvailableOrgPolicyConstraints method.
690
- # Returns all `Constraints` that could be set at this level of the hierarchy
691
- # (contrast with the response from `ListPolicies`, which returns all policies
692
- # which are set).
693
- class ListAvailableOrgPolicyConstraintsResponse
694
- include Google::Apis::Core::Hashable
695
-
696
- # Page token used to retrieve the next page. This is currently not used.
697
- # Corresponds to the JSON property `nextPageToken`
698
- # @return [String]
699
- attr_accessor :next_page_token
700
-
701
- # The collection of constraints that are settable on the request resource.
702
- # Corresponds to the JSON property `constraints`
703
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Constraint>]
704
- attr_accessor :constraints
705
-
706
- def initialize(**args)
707
- update!(**args)
708
- end
709
-
710
- # Update properties of this object
711
- def update!(**args)
712
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
713
- @constraints = args[:constraints] if args.key?(:constraints)
714
- end
715
- end
716
-
717
- # Used in `policy_type` to specify how `list_policy` behaves at this
718
- # resource.
719
- # A `ListPolicy` can define specific values that are allowed or denied by
720
- # setting either the `allowed_values` or `denied_values` fields. It can also
721
- # be used to allow or deny all values, by setting the `all_values` field. If
722
- # `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
723
- # or `denied_values` must be set (attempting to set both or neither will
724
- # result in a failed request). If `all_values` is set to either `ALLOW` or
725
- # `DENY`, `allowed_values` and `denied_values` must be unset.
726
- class ListPolicy
727
- include Google::Apis::Core::Hashable
728
-
729
- # The policy all_values state.
730
- # Corresponds to the JSON property `allValues`
731
- # @return [String]
732
- attr_accessor :all_values
733
-
734
- # List of values allowed at this resource. an only be set if no values are
735
- # set for `denied_values` and `all_values` is set to
736
- # `ALL_VALUES_UNSPECIFIED`.
737
- # Corresponds to the JSON property `allowedValues`
738
- # @return [Array<String>]
739
- attr_accessor :allowed_values
740
-
741
- # Optional. The Google Cloud Console will try to default to a configuration
742
- # that matches the value specified in this `Policy`. If `suggested_value`
743
- # is not set, it will inherit the value specified higher in the hierarchy,
744
- # unless `inherit_from_parent` is `false`.
745
- # Corresponds to the JSON property `suggestedValue`
746
- # @return [String]
747
- attr_accessor :suggested_value
748
-
749
- # Determines the inheritance behavior for this `Policy`.
750
- # By default, a `ListPolicy` set at a resource supercedes any `Policy` set
751
- # anywhere up the resource hierarchy. However, if `inherit_from_parent` is
752
- # set to `true`, then the values from the effective `Policy` of the parent
753
- # resource are inherited, meaning the values set in this `Policy` are
754
- # added to the values inherited up the hierarchy.
755
- # Setting `Policy` hierarchies that inherit both allowed values and denied
756
- # values isn't recommended in most circumstances to keep the configuration
757
- # simple and understandable. However, it is possible to set a `Policy` with
758
- # `allowed_values` set that inherits a `Policy` with `denied_values` set.
759
- # In this case, the values that are allowed must be in `allowed_values` and
760
- # not present in `denied_values`.
761
- # For example, suppose you have a `Constraint`
762
- # `constraints/serviceuser.services`, which has a `constraint_type` of
763
- # `list_constraint`, and with `constraint_default` set to `ALLOW`.
764
- # Suppose that at the Organization level, a `Policy` is applied that
765
- # restricts the allowed API activations to ``E1`, `E2``. Then, if a
766
- # `Policy` is applied to a project below the Organization that has
767
- # `inherit_from_parent` set to `false` and field all_values set to DENY,
768
- # then an attempt to activate any API will be denied.
769
- # The following examples demonstrate different possible layerings:
770
- # Example 1 (no inherited values):
771
- # `organizations/foo` has a `Policy` with values:
772
- # `allowed_values: “E1” allowed_values:”E2”`
773
- # ``projects/bar`` has `inherit_from_parent` `false` and values:
774
- # `allowed_values: "E3" allowed_values: "E4"`
775
- # The accepted values at `organizations/foo` are `E1`, `E2`.
776
- # The accepted values at `projects/bar` are `E3`, and `E4`.
777
- # Example 2 (inherited values):
778
- # `organizations/foo` has a `Policy` with values:
779
- # `allowed_values: “E1” allowed_values:”E2”`
780
- # `projects/bar` has a `Policy` with values:
781
- # `value: “E3” value: ”E4” inherit_from_parent: true`
782
- # The accepted values at `organizations/foo` are `E1`, `E2`.
783
- # The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`.
784
- # Example 3 (inheriting both allowed and denied values):
785
- # `organizations/foo` has a `Policy` with values:
786
- # `allowed_values: "E1" allowed_values: "E2"`
787
- # `projects/bar` has a `Policy` with:
788
- # `denied_values: "E1"`
789
- # The accepted values at `organizations/foo` are `E1`, `E2`.
790
- # The value accepted at `projects/bar` is `E2`.
791
- # Example 4 (RestoreDefault):
792
- # `organizations/foo` has a `Policy` with values:
793
- # `allowed_values: “E1” allowed_values:”E2”`
794
- # `projects/bar` has a `Policy` with values:
795
- # `RestoreDefault: ```
796
- # The accepted values at `organizations/foo` are `E1`, `E2`.
797
- # The accepted values at `projects/bar` are either all or none depending on
798
- # the value of `constraint_default` (if `ALLOW`, all; if
799
- # `DENY`, none).
800
- # Example 5 (no policy inherits parent policy):
801
- # `organizations/foo` has no `Policy` set.
802
- # `projects/bar` has no `Policy` set.
803
- # The accepted values at both levels are either all or none depending on
804
- # the value of `constraint_default` (if `ALLOW`, all; if
805
- # `DENY`, none).
806
- # Example 6 (ListConstraint allowing all):
807
- # `organizations/foo` has a `Policy` with values:
808
- # `allowed_values: “E1” allowed_values: ”E2”`
809
- # `projects/bar` has a `Policy` with:
810
- # `all: ALLOW`
811
- # The accepted values at `organizations/foo` are `E1`, E2`.
812
- # Any value is accepted at `projects/bar`.
813
- # Example 7 (ListConstraint allowing none):
814
- # `organizations/foo` has a `Policy` with values:
815
- # `allowed_values: “E1” allowed_values: ”E2”`
816
- # `projects/bar` has a `Policy` with:
817
- # `all: DENY`
818
- # The accepted values at `organizations/foo` are `E1`, E2`.
819
- # No value is accepted at `projects/bar`.
820
- # Corresponds to the JSON property `inheritFromParent`
821
- # @return [Boolean]
822
- attr_accessor :inherit_from_parent
823
- alias_method :inherit_from_parent?, :inherit_from_parent
824
-
825
- # List of values denied at this resource. Can only be set if no values are
826
- # set for `allowed_values` and `all_values` is set to
827
- # `ALL_VALUES_UNSPECIFIED`.
828
- # Corresponds to the JSON property `deniedValues`
829
- # @return [Array<String>]
830
- attr_accessor :denied_values
831
-
832
- def initialize(**args)
833
- update!(**args)
834
- end
835
-
836
- # Update properties of this object
837
- def update!(**args)
838
- @all_values = args[:all_values] if args.key?(:all_values)
839
- @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
840
- @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
841
- @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent)
842
- @denied_values = args[:denied_values] if args.key?(:denied_values)
843
- end
844
- end
845
-
846
- # Response from the GetAncestry method.
847
- class GetAncestryResponse
848
- include Google::Apis::Core::Hashable
849
-
850
- # Ancestors are ordered from bottom to top of the resource hierarchy. The
851
- # first ancestor is the project itself, followed by the project's parent,
852
- # etc.
853
- # Corresponds to the JSON property `ancestor`
854
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Ancestor>]
855
- attr_accessor :ancestor
856
-
857
- def initialize(**args)
858
- update!(**args)
859
- end
860
-
861
- # Update properties of this object
862
- def update!(**args)
863
- @ancestor = args[:ancestor] if args.key?(:ancestor)
864
- end
865
- end
866
-
867
- # Provides the configuration for logging a type of permissions.
868
- # Example:
869
- # `
870
- # "audit_log_configs": [
871
- # `
872
- # "log_type": "DATA_READ",
873
- # "exempted_members": [
874
- # "user:foo@gmail.com"
875
- # ]
876
- # `,
877
- # `
878
- # "log_type": "DATA_WRITE",
879
- # `
880
- # ]
881
- # `
882
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
883
- # foo@gmail.com from DATA_READ logging.
884
- class AuditLogConfig
885
- include Google::Apis::Core::Hashable
886
-
887
- # Specifies the identities that do not cause logging for this type of
888
- # permission.
889
- # Follows the same format of Binding.members.
890
- # Corresponds to the JSON property `exemptedMembers`
891
- # @return [Array<String>]
892
- attr_accessor :exempted_members
893
-
894
- # The log type that this config enables.
895
- # Corresponds to the JSON property `logType`
896
- # @return [String]
897
- attr_accessor :log_type
898
-
899
- def initialize(**args)
900
- update!(**args)
901
- end
411
+ # Creation time.
412
+ # Read-only.
413
+ # Corresponds to the JSON property `createTime`
414
+ # @return [String]
415
+ attr_accessor :create_time
902
416
 
903
- # Update properties of this object
904
- def update!(**args)
905
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
906
- @log_type = args[:log_type] if args.key?(:log_type)
907
- end
908
- end
417
+ # The user-assigned display name of the Project.
418
+ # It must be 4 to 30 characters.
419
+ # Allowed characters are: lowercase and uppercase letters, numbers,
420
+ # hyphen, single-quote, double-quote, space, and exclamation point.
421
+ # Example: <code>My Project</code>
422
+ # Read-write.
423
+ # Corresponds to the JSON property `name`
424
+ # @return [String]
425
+ attr_accessor :name
909
426
 
910
- # The request sent to the
911
- # GetAncestry
912
- # method.
913
- class GetAncestryRequest
914
- include Google::Apis::Core::Hashable
427
+ # The unique, user-assigned ID of the Project.
428
+ # It must be 6 to 30 lowercase letters, digits, or hyphens.
429
+ # It must start with a letter.
430
+ # Trailing hyphens are prohibited.
431
+ # Example: <code>tokyo-rain-123</code>
432
+ # Read-only after creation.
433
+ # Corresponds to the JSON property `projectId`
434
+ # @return [String]
435
+ attr_accessor :project_id
915
436
 
916
437
  def initialize(**args)
917
438
  update!(**args)
@@ -919,6 +440,13 @@ module Google
919
440
 
920
441
  # Update properties of this object
921
442
  def update!(**args)
443
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
444
+ @project_number = args[:project_number] if args.key?(:project_number)
445
+ @parent = args[:parent] if args.key?(:parent)
446
+ @labels = args[:labels] if args.key?(:labels)
447
+ @create_time = args[:create_time] if args.key?(:create_time)
448
+ @name = args[:name] if args.key?(:name)
449
+ @project_id = args[:project_id] if args.key?(:project_id)
922
450
  end
923
451
  end
924
452
 
@@ -944,35 +472,6 @@ module Google
944
472
  end
945
473
  end
946
474
 
947
- # The request sent to the [ListAvailableOrgPolicyConstraints]
948
- # google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method.
949
- class ListAvailableOrgPolicyConstraintsRequest
950
- include Google::Apis::Core::Hashable
951
-
952
- # Page token used to retrieve the next page. This is currently unsupported
953
- # and will be ignored. The server may at any point start using this field.
954
- # Corresponds to the JSON property `pageToken`
955
- # @return [String]
956
- attr_accessor :page_token
957
-
958
- # Size of the pages to be returned. This is currently unsupported and will
959
- # be ignored. The server may at any point start using this field to limit
960
- # page size.
961
- # Corresponds to the JSON property `pageSize`
962
- # @return [Fixnum]
963
- attr_accessor :page_size
964
-
965
- def initialize(**args)
966
- update!(**args)
967
- end
968
-
969
- # Update properties of this object
970
- def update!(**args)
971
- @page_token = args[:page_token] if args.key?(:page_token)
972
- @page_size = args[:page_size] if args.key?(:page_size)
973
- end
974
- end
975
-
976
475
  # Defines an Identity and Access Management (IAM) policy. It is used to
977
476
  # specify access control policies for Cloud Platform resources.
978
477
  # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@@ -1012,6 +511,7 @@ module Google
1012
511
  # If no `etag` is provided in the call to `setIamPolicy`, then the existing
1013
512
  # policy is overwritten blindly.
1014
513
  # Corresponds to the JSON property `etag`
514
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1015
515
  # @return [String]
1016
516
  attr_accessor :etag
1017
517
 
@@ -1084,6 +584,25 @@ module Google
1084
584
  end
1085
585
  end
1086
586
 
587
+ # A classification of the Folder Operation error.
588
+ class FolderOperationError
589
+ include Google::Apis::Core::Hashable
590
+
591
+ # The type of operation error experienced.
592
+ # Corresponds to the JSON property `errorMessageId`
593
+ # @return [String]
594
+ attr_accessor :error_message_id
595
+
596
+ def initialize(**args)
597
+ update!(**args)
598
+ end
599
+
600
+ # Update properties of this object
601
+ def update!(**args)
602
+ @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
603
+ end
604
+ end
605
+
1087
606
  # A container to reference an id for any resource type. A `resource` in Google
1088
607
  # Cloud Platform is a generic term for something you (a developer) may want to
1089
608
  # interact with through one of our API's. Some examples are an App Engine app,
@@ -1114,53 +633,6 @@ module Google
1114
633
  end
1115
634
  end
1116
635
 
1117
- # The request sent to the GetEffectiveOrgPolicy method.
1118
- class GetEffectiveOrgPolicyRequest
1119
- include Google::Apis::Core::Hashable
1120
-
1121
- # The name of the `Constraint` to compute the effective `Policy`.
1122
- # Corresponds to the JSON property `constraint`
1123
- # @return [String]
1124
- attr_accessor :constraint
1125
-
1126
- def initialize(**args)
1127
- update!(**args)
1128
- end
1129
-
1130
- # Update properties of this object
1131
- def update!(**args)
1132
- @constraint = args[:constraint] if args.key?(:constraint)
1133
- end
1134
- end
1135
-
1136
- # The request sent to the ListOrgPolicies method.
1137
- class ListOrgPoliciesRequest
1138
- include Google::Apis::Core::Hashable
1139
-
1140
- # Page token used to retrieve the next page. This is currently unsupported
1141
- # and will be ignored. The server may at any point start using this field.
1142
- # Corresponds to the JSON property `pageToken`
1143
- # @return [String]
1144
- attr_accessor :page_token
1145
-
1146
- # Size of the pages to be returned. This is currently unsupported and will
1147
- # be ignored. The server may at any point start using this field to limit
1148
- # page size.
1149
- # Corresponds to the JSON property `pageSize`
1150
- # @return [Fixnum]
1151
- attr_accessor :page_size
1152
-
1153
- def initialize(**args)
1154
- update!(**args)
1155
- end
1156
-
1157
- # Update properties of this object
1158
- def update!(**args)
1159
- @page_token = args[:page_token] if args.key?(:page_token)
1160
- @page_size = args[:page_size] if args.key?(:page_size)
1161
- end
1162
- end
1163
-
1164
636
  # Specifies the audit configuration for a service.
1165
637
  # The configuration determines which permission types are logged, and what
1166
638
  # identities, if any, are exempted from logging.
@@ -1235,23 +707,17 @@ module Google
1235
707
  end
1236
708
  end
1237
709
 
1238
- # The response returned from the `ListOrganizations` method.
1239
- class ListOrganizationsResponse
710
+ # Identifying information for a single ancestor of a project.
711
+ class Ancestor
1240
712
  include Google::Apis::Core::Hashable
1241
713
 
1242
- # A pagination token to be used to retrieve the next page of results. If the
1243
- # result is too large to fit within the page size specified in the request,
1244
- # this field will be set with a token that can be used to fetch the next page
1245
- # of results. If this field is empty, it indicates that this response
1246
- # contains the last page of results.
1247
- # Corresponds to the JSON property `nextPageToken`
1248
- # @return [String]
1249
- attr_accessor :next_page_token
1250
-
1251
- # The list of Organizations that matched the list query, possibly paginated.
1252
- # Corresponds to the JSON property `organizations`
1253
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
1254
- attr_accessor :organizations
714
+ # A container to reference an id for any resource type. A `resource` in Google
715
+ # Cloud Platform is a generic term for something you (a developer) may want to
716
+ # interact with through one of our API's. Some examples are an App Engine app,
717
+ # a Compute Engine instance, a Cloud SQL database, and so on.
718
+ # Corresponds to the JSON property `resourceId`
719
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
720
+ attr_accessor :resource_id
1255
721
 
1256
722
  def initialize(**args)
1257
723
  update!(**args)
@@ -1259,69 +725,52 @@ module Google
1259
725
 
1260
726
  # Update properties of this object
1261
727
  def update!(**args)
1262
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1263
- @organizations = args[:organizations] if args.key?(:organizations)
728
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
1264
729
  end
1265
730
  end
1266
731
 
1267
- # A `Constraint` describes a way in which a resource's configuration can be
1268
- # restricted. For example, it controls which cloud services can be activated
1269
- # across an organization, or whether a Compute Engine instance can have
1270
- # serial port connections established. `Constraints` can be configured by the
1271
- # organization's policy adminstrator to fit the needs of the organzation by
1272
- # setting Policies for `Constraints` at different locations in the
1273
- # organization's resource hierarchy. Policies are inherited down the resource
1274
- # hierarchy from higher levels, but can also be overridden. For details about
1275
- # the inheritance rules please read about
1276
- # Policies.
1277
- # `Constraints` have a default behavior determined by the `constraint_default`
1278
- # field, which is the enforcement behavior that is used in the absence of a
1279
- # `Policy` being defined or inherited for the resource in question.
1280
- class Constraint
732
+ # Request message for `SetIamPolicy` method.
733
+ class SetIamPolicyRequest
1281
734
  include Google::Apis::Core::Hashable
1282
735
 
1283
- # Detailed description of what this `Constraint` controls as well as how and
1284
- # where it is enforced.
1285
- # Mutable.
1286
- # Corresponds to the JSON property `description`
1287
- # @return [String]
1288
- attr_accessor :description
1289
-
1290
- # The human readable name.
1291
- # Mutable.
1292
- # Corresponds to the JSON property `displayName`
1293
- # @return [String]
1294
- attr_accessor :display_name
1295
-
1296
- # A `Constraint` that is either enforced or not.
1297
- # For example a constraint `constraints/compute.disableSerialPortAccess`.
1298
- # If it is enforced on a VM instance, serial port connections will not be
1299
- # opened to that instance.
1300
- # Corresponds to the JSON property `booleanConstraint`
1301
- # @return [Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint]
1302
- attr_accessor :boolean_constraint
1303
-
1304
- # The evaluation behavior of this constraint in the absense of 'Policy'.
1305
- # Corresponds to the JSON property `constraintDefault`
1306
- # @return [String]
1307
- attr_accessor :constraint_default
1308
-
1309
- # Immutable value, required to globally be unique. For example,
1310
- # `constraints/serviceuser.services`
1311
- # Corresponds to the JSON property `name`
736
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
737
+ # the fields in the mask will be modified. If no mask is provided, the
738
+ # following default mask is used:
739
+ # paths: "bindings, etag"
740
+ # This field is only used by Cloud IAM.
741
+ # Corresponds to the JSON property `updateMask`
1312
742
  # @return [String]
1313
- attr_accessor :name
1314
-
1315
- # A `Constraint` that allows or disallows a list of string values, which are
1316
- # configured by an Organization's policy administrator with a `Policy`.
1317
- # Corresponds to the JSON property `listConstraint`
1318
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ListConstraint]
1319
- attr_accessor :list_constraint
743
+ attr_accessor :update_mask
1320
744
 
1321
- # Version of the `Constraint`. Default version is 0;
1322
- # Corresponds to the JSON property `version`
1323
- # @return [Fixnum]
1324
- attr_accessor :version
745
+ # Defines an Identity and Access Management (IAM) policy. It is used to
746
+ # specify access control policies for Cloud Platform resources.
747
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
748
+ # `members` to a `role`, where the members can be user accounts, Google groups,
749
+ # Google domains, and service accounts. A `role` is a named list of permissions
750
+ # defined by IAM.
751
+ # **Example**
752
+ # `
753
+ # "bindings": [
754
+ # `
755
+ # "role": "roles/owner",
756
+ # "members": [
757
+ # "user:mike@example.com",
758
+ # "group:admins@example.com",
759
+ # "domain:google.com",
760
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
761
+ # ]
762
+ # `,
763
+ # `
764
+ # "role": "roles/viewer",
765
+ # "members": ["user:sean@example.com"]
766
+ # `
767
+ # ]
768
+ # `
769
+ # For a description of IAM and its features, see the
770
+ # [IAM developer's guide](https://cloud.google.com/iam).
771
+ # Corresponds to the JSON property `policy`
772
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
773
+ attr_accessor :policy
1325
774
 
1326
775
  def initialize(**args)
1327
776
  update!(**args)
@@ -1329,87 +778,28 @@ module Google
1329
778
 
1330
779
  # Update properties of this object
1331
780
  def update!(**args)
1332
- @description = args[:description] if args.key?(:description)
1333
- @display_name = args[:display_name] if args.key?(:display_name)
1334
- @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
1335
- @constraint_default = args[:constraint_default] if args.key?(:constraint_default)
1336
- @name = args[:name] if args.key?(:name)
1337
- @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
1338
- @version = args[:version] if args.key?(:version)
781
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
782
+ @policy = args[:policy] if args.key?(:policy)
1339
783
  end
1340
784
  end
1341
785
 
1342
- # Associates `members` with a `role`.
1343
- class Binding
786
+ # The response returned from the `ListOrganizations` method.
787
+ class ListOrganizationsResponse
1344
788
  include Google::Apis::Core::Hashable
1345
789
 
1346
- # Specifies the identities requesting access for a Cloud Platform resource.
1347
- # `members` can have the following values:
1348
- # * `allUsers`: A special identifier that represents anyone who is
1349
- # on the internet; with or without a Google account.
1350
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
1351
- # who is authenticated with a Google account or a service account.
1352
- # * `user:`emailid``: An email address that represents a specific Google
1353
- # account. For example, `alice@gmail.com` or `joe@example.com`.
1354
- # * `serviceAccount:`emailid``: An email address that represents a service
1355
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1356
- # * `group:`emailid``: An email address that represents a Google group.
1357
- # For example, `admins@example.com`.
1358
- # * `domain:`domain``: A Google Apps domain name that represents all the
1359
- # users of that domain. For example, `google.com` or `example.com`.
1360
- # Corresponds to the JSON property `members`
1361
- # @return [Array<String>]
1362
- attr_accessor :members
1363
-
1364
- # Role that is assigned to `members`.
1365
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1366
- # Required
1367
- # Corresponds to the JSON property `role`
790
+ # A pagination token to be used to retrieve the next page of results. If the
791
+ # result is too large to fit within the page size specified in the request,
792
+ # this field will be set with a token that can be used to fetch the next page
793
+ # of results. If this field is empty, it indicates that this response
794
+ # contains the last page of results.
795
+ # Corresponds to the JSON property `nextPageToken`
1368
796
  # @return [String]
1369
- attr_accessor :role
1370
-
1371
- def initialize(**args)
1372
- update!(**args)
1373
- end
1374
-
1375
- # Update properties of this object
1376
- def update!(**args)
1377
- @members = args[:members] if args.key?(:members)
1378
- @role = args[:role] if args.key?(:role)
1379
- end
1380
- end
1381
-
1382
- # Ignores policies set above this resource and restores the
1383
- # `constraint_default` enforcement behavior of the specific `Constraint` at
1384
- # this resource.
1385
- # Suppose that `constraint_default` is set to `ALLOW` for the
1386
- # `Constraint` `constraints/serviceuser.services`. Suppose that organization
1387
- # foo.com sets a `Policy` at their Organization resource node that restricts
1388
- # the allowed service activations to deny all service activations. They
1389
- # could then set a `Policy` with the `policy_type` `restore_default` on
1390
- # several experimental projects, restoring the `constraint_default`
1391
- # enforcement of the `Constraint` for only those projects, allowing those
1392
- # projects to have all services activated.
1393
- class RestoreDefault
1394
- include Google::Apis::Core::Hashable
1395
-
1396
- def initialize(**args)
1397
- update!(**args)
1398
- end
1399
-
1400
- # Update properties of this object
1401
- def update!(**args)
1402
- end
1403
- end
1404
-
1405
- # The request sent to the GetOrgPolicy method.
1406
- class GetOrgPolicyRequest
1407
- include Google::Apis::Core::Hashable
797
+ attr_accessor :next_page_token
1408
798
 
1409
- # Name of the `Constraint` to get the `Policy`.
1410
- # Corresponds to the JSON property `constraint`
1411
- # @return [String]
1412
- attr_accessor :constraint
799
+ # The list of Organizations that matched the list query, possibly paginated.
800
+ # Corresponds to the JSON property `organizations`
801
+ # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
802
+ attr_accessor :organizations
1413
803
 
1414
804
  def initialize(**args)
1415
805
  update!(**args)
@@ -1417,7 +807,8 @@ module Google
1417
807
 
1418
808
  # Update properties of this object
1419
809
  def update!(**args)
1420
- @constraint = args[:constraint] if args.key?(:constraint)
810
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
811
+ @organizations = args[:organizations] if args.key?(:organizations)
1421
812
  end
1422
813
  end
1423
814
  end