google-api-client 0.11.2 → 0.11.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 (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170501'
29
+ REVISION = '20170524'
30
30
 
31
31
  # View your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
@@ -22,64 +22,45 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1
24
24
 
25
- # A `Constraint` describes a way in which a resource's configuration can be
26
- # restricted. For example, it controls which cloud services can be activated
27
- # across an organization, or whether a Compute Engine instance can have
28
- # serial port connections established. `Constraints` can be configured by the
29
- # organization's policy adminstrator to fit the needs of the organzation by
30
- # setting Policies for `Constraints` at different locations in the
31
- # organization's resource hierarchy. Policies are inherited down the resource
32
- # hierarchy from higher levels, but can also be overridden. For details about
33
- # the inheritance rules please read about
34
- # Policies.
35
- # `Constraints` have a default behavior determined by the `constraint_default`
36
- # field, which is the enforcement behavior that is used in the absence of a
37
- # `Policy` being defined or inherited for the resource in question.
38
- class Constraint
25
+ # Request message for `TestIamPermissions` method.
26
+ class TestIamPermissionsRequest
39
27
  include Google::Apis::Core::Hashable
40
28
 
41
- # Detailed description of what this `Constraint` controls as well as how and
42
- # where it is enforced.
43
- # Mutable.
44
- # Corresponds to the JSON property `description`
45
- # @return [String]
46
- attr_accessor :description
29
+ # The set of permissions to check for the `resource`. Permissions with
30
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
31
+ # information see
32
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
33
+ # Corresponds to the JSON property `permissions`
34
+ # @return [Array<String>]
35
+ attr_accessor :permissions
47
36
 
48
- # The human readable name.
49
- # Mutable.
50
- # Corresponds to the JSON property `displayName`
51
- # @return [String]
52
- attr_accessor :display_name
37
+ def initialize(**args)
38
+ update!(**args)
39
+ end
53
40
 
54
- # A `Constraint` that is either enforced or not.
55
- # For example a constraint `constraints/compute.disableSerialPortAccess`.
56
- # If it is enforced on a VM instance, serial port connections will not be
57
- # opened to that instance.
58
- # Corresponds to the JSON property `booleanConstraint`
59
- # @return [Google::Apis::CloudresourcemanagerV1::BooleanConstraint]
60
- attr_accessor :boolean_constraint
41
+ # Update properties of this object
42
+ def update!(**args)
43
+ @permissions = args[:permissions] if args.key?(:permissions)
44
+ end
45
+ end
61
46
 
62
- # The evaluation behavior of this constraint in the absense of 'Policy'.
63
- # Corresponds to the JSON property `constraintDefault`
64
- # @return [String]
65
- attr_accessor :constraint_default
47
+ # The request sent to the [ListAvailableOrgPolicyConstraints]
48
+ # google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method.
49
+ class ListAvailableOrgPolicyConstraintsRequest
50
+ include Google::Apis::Core::Hashable
66
51
 
67
- # Immutable value, required to globally be unique. For example,
68
- # `constraints/serviceuser.services`
69
- # Corresponds to the JSON property `name`
52
+ # Page token used to retrieve the next page. This is currently unsupported
53
+ # and will be ignored. The server may at any point start using this field.
54
+ # Corresponds to the JSON property `pageToken`
70
55
  # @return [String]
71
- attr_accessor :name
56
+ attr_accessor :page_token
72
57
 
73
- # Version of the `Constraint`. Default version is 0;
74
- # Corresponds to the JSON property `version`
58
+ # Size of the pages to be returned. This is currently unsupported and will
59
+ # be ignored. The server may at any point start using this field to limit
60
+ # page size.
61
+ # Corresponds to the JSON property `pageSize`
75
62
  # @return [Fixnum]
76
- attr_accessor :version
77
-
78
- # A `Constraint` that allows or disallows a list of string values, which are
79
- # configured by an Organization's policy administrator with a `Policy`.
80
- # Corresponds to the JSON property `listConstraint`
81
- # @return [Google::Apis::CloudresourcemanagerV1::ListConstraint]
82
- attr_accessor :list_constraint
63
+ attr_accessor :page_size
83
64
 
84
65
  def initialize(**args)
85
66
  update!(**args)
@@ -87,75 +68,36 @@ module Google
87
68
 
88
69
  # Update properties of this object
89
70
  def update!(**args)
90
- @description = args[:description] if args.key?(:description)
91
- @display_name = args[:display_name] if args.key?(:display_name)
92
- @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
93
- @constraint_default = args[:constraint_default] if args.key?(:constraint_default)
94
- @name = args[:name] if args.key?(:name)
95
- @version = args[:version] if args.key?(:version)
96
- @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
71
+ @page_token = args[:page_token] if args.key?(:page_token)
72
+ @page_size = args[:page_size] if args.key?(:page_size)
97
73
  end
98
74
  end
99
75
 
100
- # The `Status` type defines a logical error model that is suitable for different
101
- # programming environments, including REST APIs and RPC APIs. It is used by
102
- # [gRPC](https://github.com/grpc). The error model is designed to be:
103
- # - Simple to use and understand for most users
104
- # - Flexible enough to meet unexpected needs
105
- # # Overview
106
- # The `Status` message contains three pieces of data: error code, error message,
107
- # and error details. The error code should be an enum value of
108
- # google.rpc.Code, but it may accept additional error codes if needed. The
109
- # error message should be a developer-facing English message that helps
110
- # developers *understand* and *resolve* the error. If a localized user-facing
111
- # error message is needed, put the localized message in the error details or
112
- # localize it in the client. The optional error details may contain arbitrary
113
- # information about the error. There is a predefined set of error detail types
114
- # in the package `google.rpc` which can be used for common error conditions.
115
- # # Language mapping
116
- # The `Status` message is the logical representation of the error model, but it
117
- # is not necessarily the actual wire format. When the `Status` message is
118
- # exposed in different client libraries and different wire protocols, it can be
119
- # mapped differently. For example, it will likely be mapped to some exceptions
120
- # in Java, but more likely mapped to some error codes in C.
121
- # # Other uses
122
- # The error model and the `Status` message can be used in a variety of
123
- # environments, either with or without APIs, to provide a
124
- # consistent developer experience across different environments.
125
- # Example uses of this error model include:
126
- # - Partial errors. If a service needs to return partial errors to the client,
127
- # it may embed the `Status` in the normal response to indicate the partial
128
- # errors.
129
- # - Workflow errors. A typical workflow has multiple steps. Each step may
130
- # have a `Status` message for error reporting purpose.
131
- # - Batch operations. If a client uses batch request and batch response, the
132
- # `Status` message should be used directly inside batch response, one for
133
- # each error sub-response.
134
- # - Asynchronous operations. If an API call embeds asynchronous operation
135
- # results in its response, the status of those operations should be
136
- # represented directly using the `Status` message.
137
- # - Logging. If some API errors are stored in logs, the message `Status` could
138
- # be used directly after any stripping needed for security/privacy reasons.
139
- class Status
76
+ # Metadata describing a long running folder operation
77
+ class FolderOperation
140
78
  include Google::Apis::Core::Hashable
141
79
 
142
- # A list of messages that carry the error details. There will be a
143
- # common set of message types for APIs to use.
144
- # Corresponds to the JSON property `details`
145
- # @return [Array<Hash<String,Object>>]
146
- attr_accessor :details
80
+ # The resource name of the folder or organization we are either creating
81
+ # the folder under or moving the folder to.
82
+ # Corresponds to the JSON property `destinationParent`
83
+ # @return [String]
84
+ attr_accessor :destination_parent
147
85
 
148
- # The status code, which should be an enum value of google.rpc.Code.
149
- # Corresponds to the JSON property `code`
150
- # @return [Fixnum]
151
- attr_accessor :code
86
+ # The type of this operation.
87
+ # Corresponds to the JSON property `operationType`
88
+ # @return [String]
89
+ attr_accessor :operation_type
152
90
 
153
- # A developer-facing error message, which should be in English. Any
154
- # user-facing error message should be localized and sent in the
155
- # google.rpc.Status.details field, or localized by the client.
156
- # Corresponds to the JSON property `message`
91
+ # The display name of the folder.
92
+ # Corresponds to the JSON property `displayName`
157
93
  # @return [String]
158
- attr_accessor :message
94
+ attr_accessor :display_name
95
+
96
+ # The resource name of the folder's parent.
97
+ # Only applicable when the operation_type is MOVE.
98
+ # Corresponds to the JSON property `sourceParent`
99
+ # @return [String]
100
+ attr_accessor :source_parent
159
101
 
160
102
  def initialize(**args)
161
103
  update!(**args)
@@ -163,26 +105,72 @@ module Google
163
105
 
164
106
  # Update properties of this object
165
107
  def update!(**args)
166
- @details = args[:details] if args.key?(:details)
167
- @code = args[:code] if args.key?(:code)
168
- @message = args[:message] if args.key?(:message)
108
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
109
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
110
+ @display_name = args[:display_name] if args.key?(:display_name)
111
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
169
112
  end
170
113
  end
171
114
 
172
- # The response message for Liens.ListLiens.
173
- class ListLiensResponse
115
+ # Defines an Identity and Access Management (IAM) policy. It is used to
116
+ # specify access control policies for Cloud Platform resources.
117
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
118
+ # `members` to a `role`, where the members can be user accounts, Google groups,
119
+ # Google domains, and service accounts. A `role` is a named list of permissions
120
+ # defined by IAM.
121
+ # **Example**
122
+ # `
123
+ # "bindings": [
124
+ # `
125
+ # "role": "roles/owner",
126
+ # "members": [
127
+ # "user:mike@example.com",
128
+ # "group:admins@example.com",
129
+ # "domain:google.com",
130
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
131
+ # ]
132
+ # `,
133
+ # `
134
+ # "role": "roles/viewer",
135
+ # "members": ["user:sean@example.com"]
136
+ # `
137
+ # ]
138
+ # `
139
+ # For a description of IAM and its features, see the
140
+ # [IAM developer's guide](https://cloud.google.com/iam).
141
+ class Policy
174
142
  include Google::Apis::Core::Hashable
175
143
 
176
- # Token to retrieve the next page of results, or empty if there are no more
177
- # results in the list.
178
- # Corresponds to the JSON property `nextPageToken`
144
+ # `etag` is used for optimistic concurrency control as a way to help
145
+ # prevent simultaneous updates of a policy from overwriting each other.
146
+ # It is strongly suggested that systems make use of the `etag` in the
147
+ # read-modify-write cycle to perform policy updates in order to avoid race
148
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
149
+ # systems are expected to put that etag in the request to `setIamPolicy` to
150
+ # ensure that their change will be applied to the same version of the policy.
151
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
152
+ # policy is overwritten blindly.
153
+ # Corresponds to the JSON property `etag`
154
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
179
155
  # @return [String]
180
- attr_accessor :next_page_token
156
+ attr_accessor :etag
181
157
 
182
- # A list of Liens.
183
- # Corresponds to the JSON property `liens`
184
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Lien>]
185
- attr_accessor :liens
158
+ # Version of the `Policy`. The default version is 0.
159
+ # Corresponds to the JSON property `version`
160
+ # @return [Fixnum]
161
+ attr_accessor :version
162
+
163
+ # Specifies cloud audit logging configuration for this policy.
164
+ # Corresponds to the JSON property `auditConfigs`
165
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditConfig>]
166
+ attr_accessor :audit_configs
167
+
168
+ # Associates a list of `members` to a `role`.
169
+ # Multiple `bindings` must not be specified for the same `role`.
170
+ # `bindings` with no members will result in an error.
171
+ # Corresponds to the JSON property `bindings`
172
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
173
+ attr_accessor :bindings
186
174
 
187
175
  def initialize(**args)
188
176
  update!(**args)
@@ -190,39 +178,31 @@ module Google
190
178
 
191
179
  # Update properties of this object
192
180
  def update!(**args)
193
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
194
- @liens = args[:liens] if args.key?(:liens)
181
+ @etag = args[:etag] if args.key?(:etag)
182
+ @version = args[:version] if args.key?(:version)
183
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
184
+ @bindings = args[:bindings] if args.key?(:bindings)
195
185
  end
196
186
  end
197
187
 
198
- # Associates `members` with a `role`.
199
- class Binding
188
+ # A container to reference an id for any resource type. A `resource` in Google
189
+ # Cloud Platform is a generic term for something you (a developer) may want to
190
+ # interact with through one of our API's. Some examples are an App Engine app,
191
+ # a Compute Engine instance, a Cloud SQL database, and so on.
192
+ class ResourceId
200
193
  include Google::Apis::Core::Hashable
201
194
 
202
- # Specifies the identities requesting access for a Cloud Platform resource.
203
- # `members` can have the following values:
204
- # * `allUsers`: A special identifier that represents anyone who is
205
- # on the internet; with or without a Google account.
206
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
207
- # who is authenticated with a Google account or a service account.
208
- # * `user:`emailid``: An email address that represents a specific Google
209
- # account. For example, `alice@gmail.com` or `joe@example.com`.
210
- # * `serviceAccount:`emailid``: An email address that represents a service
211
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
212
- # * `group:`emailid``: An email address that represents a Google group.
213
- # For example, `admins@example.com`.
214
- # * `domain:`domain``: A Google Apps domain name that represents all the
215
- # users of that domain. For example, `google.com` or `example.com`.
216
- # Corresponds to the JSON property `members`
217
- # @return [Array<String>]
218
- attr_accessor :members
195
+ # Required field representing the resource type this id is for.
196
+ # At present, the valid types are: "organization"
197
+ # Corresponds to the JSON property `type`
198
+ # @return [String]
199
+ attr_accessor :type
219
200
 
220
- # Role that is assigned to `members`.
221
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
222
- # Required
223
- # Corresponds to the JSON property `role`
201
+ # Required field for the type-specific id. This should correspond to the id
202
+ # used in the type-specific API's.
203
+ # Corresponds to the JSON property `id`
224
204
  # @return [String]
225
- attr_accessor :role
205
+ attr_accessor :id
226
206
 
227
207
  def initialize(**args)
228
208
  update!(**args)
@@ -230,16 +210,16 @@ module Google
230
210
 
231
211
  # Update properties of this object
232
212
  def update!(**args)
233
- @members = args[:members] if args.key?(:members)
234
- @role = args[:role] if args.key?(:role)
213
+ @type = args[:type] if args.key?(:type)
214
+ @id = args[:id] if args.key?(:id)
235
215
  end
236
216
  end
237
217
 
238
- # The request sent to the GetOrgPolicy method.
239
- class GetOrgPolicyRequest
218
+ # The request sent to the GetEffectiveOrgPolicy method.
219
+ class GetEffectiveOrgPolicyRequest
240
220
  include Google::Apis::Core::Hashable
241
221
 
242
- # Name of the `Constraint` to get the `Policy`.
222
+ # The name of the `Constraint` to compute the effective `Policy`.
243
223
  # Corresponds to the JSON property `constraint`
244
224
  # @return [String]
245
225
  attr_accessor :constraint
@@ -254,33 +234,22 @@ module Google
254
234
  end
255
235
  end
256
236
 
257
- # Ignores policies set above this resource and restores the
258
- # `constraint_default` enforcement behavior of the specific `Constraint` at
259
- # this resource.
260
- # Suppose that `constraint_default` is set to `ALLOW` for the
261
- # `Constraint` `constraints/serviceuser.services`. Suppose that organization
262
- # foo.com sets a `Policy` at their Organization resource node that restricts
263
- # the allowed service activations to deny all service activations. They
264
- # could then set a `Policy` with the `policy_type` `restore_default` on
265
- # several experimental projects, restoring the `constraint_default`
266
- # enforcement of the `Constraint` for only those projects, allowing those
267
- # projects to have all services activated.
268
- class RestoreDefault
237
+ # The request sent to the ListOrgPolicies method.
238
+ class ListOrgPoliciesRequest
269
239
  include Google::Apis::Core::Hashable
270
240
 
271
- def initialize(**args)
272
- update!(**args)
273
- end
274
-
275
- # Update properties of this object
276
- def update!(**args)
277
- end
278
- end
241
+ # Page token used to retrieve the next page. This is currently unsupported
242
+ # and will be ignored. The server may at any point start using this field.
243
+ # Corresponds to the JSON property `pageToken`
244
+ # @return [String]
245
+ attr_accessor :page_token
279
246
 
280
- # The request sent to the UndeleteProject
281
- # method.
282
- class UndeleteProjectRequest
283
- include Google::Apis::Core::Hashable
247
+ # Size of the pages to be returned. This is currently unsupported and will
248
+ # be ignored. The server may at any point start using this field to limit
249
+ # page size.
250
+ # Corresponds to the JSON property `pageSize`
251
+ # @return [Fixnum]
252
+ attr_accessor :page_size
284
253
 
285
254
  def initialize(**args)
286
255
  update!(**args)
@@ -288,24 +257,93 @@ module Google
288
257
 
289
258
  # Update properties of this object
290
259
  def update!(**args)
260
+ @page_token = args[:page_token] if args.key?(:page_token)
261
+ @page_size = args[:page_size] if args.key?(:page_size)
291
262
  end
292
263
  end
293
264
 
294
- # The request sent to the ClearOrgPolicy method.
295
- class ClearOrgPolicyRequest
265
+ # This resource represents a long-running operation that is the result of a
266
+ # network API call.
267
+ class Operation
296
268
  include Google::Apis::Core::Hashable
297
269
 
298
- # The current version, for concurrency control. Not sending an `etag`
299
- # will cause the `Policy` to be cleared blindly.
300
- # Corresponds to the JSON property `etag`
301
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
302
- # @return [String]
303
- attr_accessor :etag
270
+ # The normal response of the operation in case of success. If the original
271
+ # method returns no data on success, such as `Delete`, the response is
272
+ # `google.protobuf.Empty`. If the original method is standard
273
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
274
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
275
+ # is the original method name. For example, if the original method name
276
+ # is `TakeSnapshot()`, the inferred response type is
277
+ # `TakeSnapshotResponse`.
278
+ # Corresponds to the JSON property `response`
279
+ # @return [Hash<String,Object>]
280
+ attr_accessor :response
304
281
 
305
- # Name of the `Constraint` of the `Policy` to clear.
306
- # Corresponds to the JSON property `constraint`
282
+ # The server-assigned name, which is only unique within the same service that
283
+ # originally returns it. If you use the default HTTP mapping, the
284
+ # `name` should have the format of `operations/some/unique/name`.
285
+ # Corresponds to the JSON property `name`
307
286
  # @return [String]
308
- attr_accessor :constraint
287
+ attr_accessor :name
288
+
289
+ # The `Status` type defines a logical error model that is suitable for different
290
+ # programming environments, including REST APIs and RPC APIs. It is used by
291
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
292
+ # - Simple to use and understand for most users
293
+ # - Flexible enough to meet unexpected needs
294
+ # # Overview
295
+ # The `Status` message contains three pieces of data: error code, error message,
296
+ # and error details. The error code should be an enum value of
297
+ # google.rpc.Code, but it may accept additional error codes if needed. The
298
+ # error message should be a developer-facing English message that helps
299
+ # developers *understand* and *resolve* the error. If a localized user-facing
300
+ # error message is needed, put the localized message in the error details or
301
+ # localize it in the client. The optional error details may contain arbitrary
302
+ # information about the error. There is a predefined set of error detail types
303
+ # in the package `google.rpc` that can be used for common error conditions.
304
+ # # Language mapping
305
+ # The `Status` message is the logical representation of the error model, but it
306
+ # is not necessarily the actual wire format. When the `Status` message is
307
+ # exposed in different client libraries and different wire protocols, it can be
308
+ # mapped differently. For example, it will likely be mapped to some exceptions
309
+ # in Java, but more likely mapped to some error codes in C.
310
+ # # Other uses
311
+ # The error model and the `Status` message can be used in a variety of
312
+ # environments, either with or without APIs, to provide a
313
+ # consistent developer experience across different environments.
314
+ # Example uses of this error model include:
315
+ # - Partial errors. If a service needs to return partial errors to the client,
316
+ # it may embed the `Status` in the normal response to indicate the partial
317
+ # errors.
318
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
319
+ # have a `Status` message for error reporting.
320
+ # - Batch operations. If a client uses batch request and batch response, the
321
+ # `Status` message should be used directly inside batch response, one for
322
+ # each error sub-response.
323
+ # - Asynchronous operations. If an API call embeds asynchronous operation
324
+ # results in its response, the status of those operations should be
325
+ # represented directly using the `Status` message.
326
+ # - Logging. If some API errors are stored in logs, the message `Status` could
327
+ # be used directly after any stripping needed for security/privacy reasons.
328
+ # Corresponds to the JSON property `error`
329
+ # @return [Google::Apis::CloudresourcemanagerV1::Status]
330
+ attr_accessor :error
331
+
332
+ # Service-specific metadata associated with the operation. It typically
333
+ # contains progress information and common metadata such as create time.
334
+ # Some services might not provide such metadata. Any method that returns a
335
+ # long-running operation should document the metadata type, if any.
336
+ # Corresponds to the JSON property `metadata`
337
+ # @return [Hash<String,Object>]
338
+ attr_accessor :metadata
339
+
340
+ # If the value is `false`, it means the operation is still in progress.
341
+ # If true, the operation is completed, and either `error` or `response` is
342
+ # available.
343
+ # Corresponds to the JSON property `done`
344
+ # @return [Boolean]
345
+ attr_accessor :done
346
+ alias_method :done?, :done
309
347
 
310
348
  def initialize(**args)
311
349
  update!(**args)
@@ -313,35 +351,76 @@ module Google
313
351
 
314
352
  # Update properties of this object
315
353
  def update!(**args)
316
- @etag = args[:etag] if args.key?(:etag)
317
- @constraint = args[:constraint] if args.key?(:constraint)
354
+ @response = args[:response] if args.key?(:response)
355
+ @name = args[:name] if args.key?(:name)
356
+ @error = args[:error] if args.key?(:error)
357
+ @metadata = args[:metadata] if args.key?(:metadata)
358
+ @done = args[:done] if args.key?(:done)
318
359
  end
319
360
  end
320
361
 
321
- # A status object which is used as the `metadata` field for the Operation
322
- # returned by CreateProject. It provides insight for when significant phases of
323
- # Project creation have completed.
324
- class ProjectCreationStatus
362
+ # Specifies the audit configuration for a service.
363
+ # The configuration determines which permission types are logged, and what
364
+ # identities, if any, are exempted from logging.
365
+ # An AuditConfig must have one or more AuditLogConfigs.
366
+ # If there are AuditConfigs for both `allServices` and a specific service,
367
+ # the union of the two AuditConfigs is used for that service: the log_types
368
+ # specified in each AuditConfig are enabled, and the exempted_members in each
369
+ # AuditConfig are exempted.
370
+ # Example Policy with multiple AuditConfigs:
371
+ # `
372
+ # "audit_configs": [
373
+ # `
374
+ # "service": "allServices"
375
+ # "audit_log_configs": [
376
+ # `
377
+ # "log_type": "DATA_READ",
378
+ # "exempted_members": [
379
+ # "user:foo@gmail.com"
380
+ # ]
381
+ # `,
382
+ # `
383
+ # "log_type": "DATA_WRITE",
384
+ # `,
385
+ # `
386
+ # "log_type": "ADMIN_READ",
387
+ # `
388
+ # ]
389
+ # `,
390
+ # `
391
+ # "service": "fooservice.googleapis.com"
392
+ # "audit_log_configs": [
393
+ # `
394
+ # "log_type": "DATA_READ",
395
+ # `,
396
+ # `
397
+ # "log_type": "DATA_WRITE",
398
+ # "exempted_members": [
399
+ # "user:bar@gmail.com"
400
+ # ]
401
+ # `
402
+ # ]
403
+ # `
404
+ # ]
405
+ # `
406
+ # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
407
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and
408
+ # bar@gmail.com from DATA_WRITE logging.
409
+ class AuditConfig
325
410
  include Google::Apis::Core::Hashable
326
411
 
327
- # True if the project creation process is complete.
328
- # Corresponds to the JSON property `ready`
329
- # @return [Boolean]
330
- attr_accessor :ready
331
- alias_method :ready?, :ready
332
-
333
- # Creation time of the project creation workflow.
334
- # Corresponds to the JSON property `createTime`
412
+ # Specifies a service that will be enabled for audit logging.
413
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
414
+ # `allServices` is a special value that covers all services.
415
+ # Corresponds to the JSON property `service`
335
416
  # @return [String]
336
- attr_accessor :create_time
417
+ attr_accessor :service
337
418
 
338
- # True if the project can be retrieved using GetProject. No other operations
339
- # on the project are guaranteed to work until the project creation is
340
- # complete.
341
- # Corresponds to the JSON property `gettable`
342
- # @return [Boolean]
343
- attr_accessor :gettable
344
- alias_method :gettable?, :gettable
419
+ # The configuration for logging of each type of permission.
420
+ # Next ID: 4
421
+ # Corresponds to the JSON property `auditLogConfigs`
422
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditLogConfig>]
423
+ attr_accessor :audit_log_configs
345
424
 
346
425
  def initialize(**args)
347
426
  update!(**args)
@@ -349,50 +428,167 @@ module Google
349
428
 
350
429
  # Update properties of this object
351
430
  def update!(**args)
352
- @ready = args[:ready] if args.key?(:ready)
353
- @create_time = args[:create_time] if args.key?(:create_time)
354
- @gettable = args[:gettable] if args.key?(:gettable)
431
+ @service = args[:service] if args.key?(:service)
432
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
355
433
  end
356
434
  end
357
435
 
358
- # A `Constraint` that is either enforced or not.
359
- # For example a constraint `constraints/compute.disableSerialPortAccess`.
360
- # If it is enforced on a VM instance, serial port connections will not be
361
- # opened to that instance.
362
- class BooleanConstraint
363
- include Google::Apis::Core::Hashable
364
-
365
- def initialize(**args)
366
- update!(**args)
367
- end
436
+ # The `Status` type defines a logical error model that is suitable for different
437
+ # programming environments, including REST APIs and RPC APIs. It is used by
438
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
439
+ # - Simple to use and understand for most users
440
+ # - Flexible enough to meet unexpected needs
441
+ # # Overview
442
+ # The `Status` message contains three pieces of data: error code, error message,
443
+ # and error details. The error code should be an enum value of
444
+ # google.rpc.Code, but it may accept additional error codes if needed. The
445
+ # error message should be a developer-facing English message that helps
446
+ # developers *understand* and *resolve* the error. If a localized user-facing
447
+ # error message is needed, put the localized message in the error details or
448
+ # localize it in the client. The optional error details may contain arbitrary
449
+ # information about the error. There is a predefined set of error detail types
450
+ # in the package `google.rpc` that can be used for common error conditions.
451
+ # # Language mapping
452
+ # The `Status` message is the logical representation of the error model, but it
453
+ # is not necessarily the actual wire format. When the `Status` message is
454
+ # exposed in different client libraries and different wire protocols, it can be
455
+ # mapped differently. For example, it will likely be mapped to some exceptions
456
+ # in Java, but more likely mapped to some error codes in C.
457
+ # # Other uses
458
+ # The error model and the `Status` message can be used in a variety of
459
+ # environments, either with or without APIs, to provide a
460
+ # consistent developer experience across different environments.
461
+ # Example uses of this error model include:
462
+ # - Partial errors. If a service needs to return partial errors to the client,
463
+ # it may embed the `Status` in the normal response to indicate the partial
464
+ # errors.
465
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
466
+ # have a `Status` message for error reporting.
467
+ # - Batch operations. If a client uses batch request and batch response, the
468
+ # `Status` message should be used directly inside batch response, one for
469
+ # each error sub-response.
470
+ # - Asynchronous operations. If an API call embeds asynchronous operation
471
+ # results in its response, the status of those operations should be
472
+ # represented directly using the `Status` message.
473
+ # - Logging. If some API errors are stored in logs, the message `Status` could
474
+ # be used directly after any stripping needed for security/privacy reasons.
475
+ class Status
476
+ include Google::Apis::Core::Hashable
477
+
478
+ # The status code, which should be an enum value of google.rpc.Code.
479
+ # Corresponds to the JSON property `code`
480
+ # @return [Fixnum]
481
+ attr_accessor :code
482
+
483
+ # A developer-facing error message, which should be in English. Any
484
+ # user-facing error message should be localized and sent in the
485
+ # google.rpc.Status.details field, or localized by the client.
486
+ # Corresponds to the JSON property `message`
487
+ # @return [String]
488
+ attr_accessor :message
489
+
490
+ # A list of messages that carry the error details. There will be a
491
+ # common set of message types for APIs to use.
492
+ # Corresponds to the JSON property `details`
493
+ # @return [Array<Hash<String,Object>>]
494
+ attr_accessor :details
495
+
496
+ def initialize(**args)
497
+ update!(**args)
498
+ end
368
499
 
369
500
  # Update properties of this object
370
501
  def update!(**args)
502
+ @code = args[:code] if args.key?(:code)
503
+ @message = args[:message] if args.key?(:message)
504
+ @details = args[:details] if args.key?(:details)
371
505
  end
372
506
  end
373
507
 
374
- # Request message for `GetIamPolicy` method.
375
- class GetIamPolicyRequest
508
+ # The response message for Liens.ListLiens.
509
+ class ListLiensResponse
376
510
  include Google::Apis::Core::Hashable
377
511
 
512
+ # A list of Liens.
513
+ # Corresponds to the JSON property `liens`
514
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Lien>]
515
+ attr_accessor :liens
516
+
517
+ # Token to retrieve the next page of results, or empty if there are no more
518
+ # results in the list.
519
+ # Corresponds to the JSON property `nextPageToken`
520
+ # @return [String]
521
+ attr_accessor :next_page_token
522
+
378
523
  def initialize(**args)
379
524
  update!(**args)
380
525
  end
381
526
 
382
527
  # Update properties of this object
383
528
  def update!(**args)
529
+ @liens = args[:liens] if args.key?(:liens)
530
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
384
531
  end
385
532
  end
386
533
 
387
- # Response message for `TestIamPermissions` method.
388
- class TestIamPermissionsResponse
534
+ # A `Constraint` describes a way in which a resource's configuration can be
535
+ # restricted. For example, it controls which cloud services can be activated
536
+ # across an organization, or whether a Compute Engine instance can have
537
+ # serial port connections established. `Constraints` can be configured by the
538
+ # organization's policy adminstrator to fit the needs of the organzation by
539
+ # setting Policies for `Constraints` at different locations in the
540
+ # organization's resource hierarchy. Policies are inherited down the resource
541
+ # hierarchy from higher levels, but can also be overridden. For details about
542
+ # the inheritance rules please read about
543
+ # Policies.
544
+ # `Constraints` have a default behavior determined by the `constraint_default`
545
+ # field, which is the enforcement behavior that is used in the absence of a
546
+ # `Policy` being defined or inherited for the resource in question.
547
+ class Constraint
389
548
  include Google::Apis::Core::Hashable
390
549
 
391
- # A subset of `TestPermissionsRequest.permissions` that the caller is
392
- # allowed.
393
- # Corresponds to the JSON property `permissions`
394
- # @return [Array<String>]
395
- attr_accessor :permissions
550
+ # A `Constraint` that allows or disallows a list of string values, which are
551
+ # configured by an Organization's policy administrator with a `Policy`.
552
+ # Corresponds to the JSON property `listConstraint`
553
+ # @return [Google::Apis::CloudresourcemanagerV1::ListConstraint]
554
+ attr_accessor :list_constraint
555
+
556
+ # Version of the `Constraint`. Default version is 0;
557
+ # Corresponds to the JSON property `version`
558
+ # @return [Fixnum]
559
+ attr_accessor :version
560
+
561
+ # The human readable name.
562
+ # Mutable.
563
+ # Corresponds to the JSON property `displayName`
564
+ # @return [String]
565
+ attr_accessor :display_name
566
+
567
+ # Detailed description of what this `Constraint` controls as well as how and
568
+ # where it is enforced.
569
+ # Mutable.
570
+ # Corresponds to the JSON property `description`
571
+ # @return [String]
572
+ attr_accessor :description
573
+
574
+ # A `Constraint` that is either enforced or not.
575
+ # For example a constraint `constraints/compute.disableSerialPortAccess`.
576
+ # If it is enforced on a VM instance, serial port connections will not be
577
+ # opened to that instance.
578
+ # Corresponds to the JSON property `booleanConstraint`
579
+ # @return [Google::Apis::CloudresourcemanagerV1::BooleanConstraint]
580
+ attr_accessor :boolean_constraint
581
+
582
+ # The evaluation behavior of this constraint in the absense of 'Policy'.
583
+ # Corresponds to the JSON property `constraintDefault`
584
+ # @return [String]
585
+ attr_accessor :constraint_default
586
+
587
+ # Immutable value, required to globally be unique. For example,
588
+ # `constraints/serviceuser.services`
589
+ # Corresponds to the JSON property `name`
590
+ # @return [String]
591
+ attr_accessor :name
396
592
 
397
593
  def initialize(**args)
398
594
  update!(**args)
@@ -400,21 +596,44 @@ module Google
400
596
 
401
597
  # Update properties of this object
402
598
  def update!(**args)
403
- @permissions = args[:permissions] if args.key?(:permissions)
599
+ @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
600
+ @version = args[:version] if args.key?(:version)
601
+ @display_name = args[:display_name] if args.key?(:display_name)
602
+ @description = args[:description] if args.key?(:description)
603
+ @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
604
+ @constraint_default = args[:constraint_default] if args.key?(:constraint_default)
605
+ @name = args[:name] if args.key?(:name)
404
606
  end
405
607
  end
406
608
 
407
- # The entity that owns an Organization. The lifetime of the Organization and
408
- # all of its descendants are bound to the `OrganizationOwner`. If the
409
- # `OrganizationOwner` is deleted, the Organization and all its descendants will
410
- # be deleted.
411
- class OrganizationOwner
609
+ # Associates `members` with a `role`.
610
+ class Binding
412
611
  include Google::Apis::Core::Hashable
413
612
 
414
- # The Google for Work customer id used in the Directory API.
415
- # Corresponds to the JSON property `directoryCustomerId`
613
+ # Specifies the identities requesting access for a Cloud Platform resource.
614
+ # `members` can have the following values:
615
+ # * `allUsers`: A special identifier that represents anyone who is
616
+ # on the internet; with or without a Google account.
617
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
618
+ # who is authenticated with a Google account or a service account.
619
+ # * `user:`emailid``: An email address that represents a specific Google
620
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
621
+ # * `serviceAccount:`emailid``: An email address that represents a service
622
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
623
+ # * `group:`emailid``: An email address that represents a Google group.
624
+ # For example, `admins@example.com`.
625
+ # * `domain:`domain``: A Google Apps domain name that represents all the
626
+ # users of that domain. For example, `google.com` or `example.com`.
627
+ # Corresponds to the JSON property `members`
628
+ # @return [Array<String>]
629
+ attr_accessor :members
630
+
631
+ # Role that is assigned to `members`.
632
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
633
+ # Required
634
+ # Corresponds to the JSON property `role`
416
635
  # @return [String]
417
- attr_accessor :directory_customer_id
636
+ attr_accessor :role
418
637
 
419
638
  def initialize(**args)
420
639
  update!(**args)
@@ -422,36 +641,43 @@ module Google
422
641
 
423
642
  # Update properties of this object
424
643
  def update!(**args)
425
- @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
644
+ @members = args[:members] if args.key?(:members)
645
+ @role = args[:role] if args.key?(:role)
426
646
  end
427
647
  end
428
648
 
429
- # A page of the response received from the
430
- # ListProjects
431
- # method.
432
- # A paginated response where more pages are available has
433
- # `next_page_token` set. This token can be used in a subsequent request to
434
- # retrieve the next request page.
435
- class ListProjectsResponse
649
+ # The request sent to the GetOrgPolicy method.
650
+ class GetOrgPolicyRequest
436
651
  include Google::Apis::Core::Hashable
437
652
 
438
- # Pagination token.
439
- # If the result set is too large to fit in a single response, this token
440
- # is returned. It encodes the position of the current result cursor.
441
- # Feeding this value into a new list request with the `page_token` parameter
442
- # gives the next page of the results.
443
- # When `next_page_token` is not filled in, there is no next page and
444
- # the list returned is the last page in the result set.
445
- # Pagination tokens have a limited lifetime.
446
- # Corresponds to the JSON property `nextPageToken`
653
+ # Name of the `Constraint` to get the `Policy`.
654
+ # Corresponds to the JSON property `constraint`
447
655
  # @return [String]
448
- attr_accessor :next_page_token
656
+ attr_accessor :constraint
449
657
 
450
- # The list of Projects that matched the list filter. This list can
451
- # be paginated.
452
- # Corresponds to the JSON property `projects`
453
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
454
- attr_accessor :projects
658
+ def initialize(**args)
659
+ update!(**args)
660
+ end
661
+
662
+ # Update properties of this object
663
+ def update!(**args)
664
+ @constraint = args[:constraint] if args.key?(:constraint)
665
+ end
666
+ end
667
+
668
+ # Ignores policies set above this resource and restores the
669
+ # `constraint_default` enforcement behavior of the specific `Constraint` at
670
+ # this resource.
671
+ # Suppose that `constraint_default` is set to `ALLOW` for the
672
+ # `Constraint` `constraints/serviceuser.services`. Suppose that organization
673
+ # foo.com sets a `Policy` at their Organization resource node that restricts
674
+ # the allowed service activations to deny all service activations. They
675
+ # could then set a `Policy` with the `policy_type` `restore_default` on
676
+ # several experimental projects, restoring the `constraint_default`
677
+ # enforcement of the `Constraint` for only those projects, allowing those
678
+ # projects to have all services activated.
679
+ class RestoreDefault
680
+ include Google::Apis::Core::Hashable
455
681
 
456
682
  def initialize(**args)
457
683
  update!(**args)
@@ -459,24 +685,203 @@ module Google
459
685
 
460
686
  # Update properties of this object
461
687
  def update!(**args)
462
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
463
- @projects = args[:projects] if args.key?(:projects)
464
688
  end
465
689
  end
466
690
 
467
- # A Project is a high-level Google Cloud Platform entity. It is a
468
- # container for ACLs, APIs, App Engine Apps, VMs, and other
469
- # Google Cloud Platform resources.
470
- class Project
691
+ # The request sent to the ClearOrgPolicy method.
692
+ class ClearOrgPolicyRequest
471
693
  include Google::Apis::Core::Hashable
472
694
 
473
- # The Project lifecycle state.
474
- # Read-only.
475
- # Corresponds to the JSON property `lifecycleState`
695
+ # The current version, for concurrency control. Not sending an `etag`
696
+ # will cause the `Policy` to be cleared blindly.
697
+ # Corresponds to the JSON property `etag`
698
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
476
699
  # @return [String]
477
- attr_accessor :lifecycle_state
700
+ attr_accessor :etag
478
701
 
479
- # The number uniquely identifying the project.
702
+ # Name of the `Constraint` of the `Policy` to clear.
703
+ # Corresponds to the JSON property `constraint`
704
+ # @return [String]
705
+ attr_accessor :constraint
706
+
707
+ def initialize(**args)
708
+ update!(**args)
709
+ end
710
+
711
+ # Update properties of this object
712
+ def update!(**args)
713
+ @etag = args[:etag] if args.key?(:etag)
714
+ @constraint = args[:constraint] if args.key?(:constraint)
715
+ end
716
+ end
717
+
718
+ # The request sent to the UndeleteProject
719
+ # method.
720
+ class UndeleteProjectRequest
721
+ include Google::Apis::Core::Hashable
722
+
723
+ def initialize(**args)
724
+ update!(**args)
725
+ end
726
+
727
+ # Update properties of this object
728
+ def update!(**args)
729
+ end
730
+ end
731
+
732
+ # A status object which is used as the `metadata` field for the Operation
733
+ # returned by CreateProject. It provides insight for when significant phases of
734
+ # Project creation have completed.
735
+ class ProjectCreationStatus
736
+ include Google::Apis::Core::Hashable
737
+
738
+ # True if the project creation process is complete.
739
+ # Corresponds to the JSON property `ready`
740
+ # @return [Boolean]
741
+ attr_accessor :ready
742
+ alias_method :ready?, :ready
743
+
744
+ # Creation time of the project creation workflow.
745
+ # Corresponds to the JSON property `createTime`
746
+ # @return [String]
747
+ attr_accessor :create_time
748
+
749
+ # True if the project can be retrieved using GetProject. No other operations
750
+ # on the project are guaranteed to work until the project creation is
751
+ # complete.
752
+ # Corresponds to the JSON property `gettable`
753
+ # @return [Boolean]
754
+ attr_accessor :gettable
755
+ alias_method :gettable?, :gettable
756
+
757
+ def initialize(**args)
758
+ update!(**args)
759
+ end
760
+
761
+ # Update properties of this object
762
+ def update!(**args)
763
+ @ready = args[:ready] if args.key?(:ready)
764
+ @create_time = args[:create_time] if args.key?(:create_time)
765
+ @gettable = args[:gettable] if args.key?(:gettable)
766
+ end
767
+ end
768
+
769
+ # A `Constraint` that is either enforced or not.
770
+ # For example a constraint `constraints/compute.disableSerialPortAccess`.
771
+ # If it is enforced on a VM instance, serial port connections will not be
772
+ # opened to that instance.
773
+ class BooleanConstraint
774
+ include Google::Apis::Core::Hashable
775
+
776
+ def initialize(**args)
777
+ update!(**args)
778
+ end
779
+
780
+ # Update properties of this object
781
+ def update!(**args)
782
+ end
783
+ end
784
+
785
+ # Request message for `GetIamPolicy` method.
786
+ class GetIamPolicyRequest
787
+ include Google::Apis::Core::Hashable
788
+
789
+ def initialize(**args)
790
+ update!(**args)
791
+ end
792
+
793
+ # Update properties of this object
794
+ def update!(**args)
795
+ end
796
+ end
797
+
798
+ # Response message for `TestIamPermissions` method.
799
+ class TestIamPermissionsResponse
800
+ include Google::Apis::Core::Hashable
801
+
802
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
803
+ # allowed.
804
+ # Corresponds to the JSON property `permissions`
805
+ # @return [Array<String>]
806
+ attr_accessor :permissions
807
+
808
+ def initialize(**args)
809
+ update!(**args)
810
+ end
811
+
812
+ # Update properties of this object
813
+ def update!(**args)
814
+ @permissions = args[:permissions] if args.key?(:permissions)
815
+ end
816
+ end
817
+
818
+ # The entity that owns an Organization. The lifetime of the Organization and
819
+ # all of its descendants are bound to the `OrganizationOwner`. If the
820
+ # `OrganizationOwner` is deleted, the Organization and all its descendants will
821
+ # be deleted.
822
+ class OrganizationOwner
823
+ include Google::Apis::Core::Hashable
824
+
825
+ # The Google for Work customer id used in the Directory API.
826
+ # Corresponds to the JSON property `directoryCustomerId`
827
+ # @return [String]
828
+ attr_accessor :directory_customer_id
829
+
830
+ def initialize(**args)
831
+ update!(**args)
832
+ end
833
+
834
+ # Update properties of this object
835
+ def update!(**args)
836
+ @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
837
+ end
838
+ end
839
+
840
+ # A page of the response received from the
841
+ # ListProjects
842
+ # method.
843
+ # A paginated response where more pages are available has
844
+ # `next_page_token` set. This token can be used in a subsequent request to
845
+ # retrieve the next request page.
846
+ class ListProjectsResponse
847
+ include Google::Apis::Core::Hashable
848
+
849
+ # The list of Projects that matched the list filter. This list can
850
+ # be paginated.
851
+ # Corresponds to the JSON property `projects`
852
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
853
+ attr_accessor :projects
854
+
855
+ # Pagination token.
856
+ # If the result set is too large to fit in a single response, this token
857
+ # is returned. It encodes the position of the current result cursor.
858
+ # Feeding this value into a new list request with the `page_token` parameter
859
+ # gives the next page of the results.
860
+ # When `next_page_token` is not filled in, there is no next page and
861
+ # the list returned is the last page in the result set.
862
+ # Pagination tokens have a limited lifetime.
863
+ # Corresponds to the JSON property `nextPageToken`
864
+ # @return [String]
865
+ attr_accessor :next_page_token
866
+
867
+ def initialize(**args)
868
+ update!(**args)
869
+ end
870
+
871
+ # Update properties of this object
872
+ def update!(**args)
873
+ @projects = args[:projects] if args.key?(:projects)
874
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
875
+ end
876
+ end
877
+
878
+ # A Project is a high-level Google Cloud Platform entity. It is a
879
+ # container for ACLs, APIs, App Engine Apps, VMs, and other
880
+ # Google Cloud Platform resources.
881
+ class Project
882
+ include Google::Apis::Core::Hashable
883
+
884
+ # The number uniquely identifying the project.
480
885
  # Example: <code>415104041262</code>
481
886
  # Read-only.
482
887
  # Corresponds to the JSON property `projectNumber`
@@ -491,6 +896,12 @@ module Google
491
896
  # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
492
897
  attr_accessor :parent
493
898
 
899
+ # Creation time.
900
+ # Read-only.
901
+ # Corresponds to the JSON property `createTime`
902
+ # @return [String]
903
+ attr_accessor :create_time
904
+
494
905
  # The labels associated with this Project.
495
906
  # Label keys must be between 1 and 63 characters long and must conform
496
907
  # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
@@ -505,12 +916,6 @@ module Google
505
916
  # @return [Hash<String,String>]
506
917
  attr_accessor :labels
507
918
 
508
- # Creation time.
509
- # Read-only.
510
- # Corresponds to the JSON property `createTime`
511
- # @return [String]
512
- attr_accessor :create_time
513
-
514
919
  # The user-assigned display name of the Project.
515
920
  # It must be 4 to 30 characters.
516
921
  # Allowed characters are: lowercase and uppercase letters, numbers,
@@ -531,19 +936,25 @@ module Google
531
936
  # @return [String]
532
937
  attr_accessor :project_id
533
938
 
939
+ # The Project lifecycle state.
940
+ # Read-only.
941
+ # Corresponds to the JSON property `lifecycleState`
942
+ # @return [String]
943
+ attr_accessor :lifecycle_state
944
+
534
945
  def initialize(**args)
535
946
  update!(**args)
536
947
  end
537
948
 
538
949
  # Update properties of this object
539
950
  def update!(**args)
540
- @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
541
951
  @project_number = args[:project_number] if args.key?(:project_number)
542
952
  @parent = args[:parent] if args.key?(:parent)
543
- @labels = args[:labels] if args.key?(:labels)
544
953
  @create_time = args[:create_time] if args.key?(:create_time)
954
+ @labels = args[:labels] if args.key?(:labels)
545
955
  @name = args[:name] if args.key?(:name)
546
956
  @project_id = args[:project_id] if args.key?(:project_id)
957
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
547
958
  end
548
959
  end
549
960
 
@@ -629,6 +1040,14 @@ module Google
629
1040
  class OrgPolicy
630
1041
  include Google::Apis::Core::Hashable
631
1042
 
1043
+ # The time stamp the `Policy` was previously updated. This is set by the
1044
+ # server, not specified by the caller, and represents the last time a call to
1045
+ # `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
1046
+ # be ignored.
1047
+ # Corresponds to the JSON property `updateTime`
1048
+ # @return [String]
1049
+ attr_accessor :update_time
1050
+
632
1051
  # Version of the `Policy`. Default version is 0;
633
1052
  # Corresponds to the JSON property `version`
634
1053
  # @return [Fixnum]
@@ -679,26 +1098,18 @@ module Google
679
1098
  # @return [String]
680
1099
  attr_accessor :etag
681
1100
 
682
- # The name of the `Constraint` the `Policy` is configuring, for example,
683
- # `constraints/serviceuser.services`.
684
- # Immutable after creation.
685
- # Corresponds to the JSON property `constraint`
686
- # @return [String]
687
- attr_accessor :constraint
688
-
689
1101
  # Used in `policy_type` to specify how `boolean_policy` will behave at this
690
1102
  # resource.
691
1103
  # Corresponds to the JSON property `booleanPolicy`
692
1104
  # @return [Google::Apis::CloudresourcemanagerV1::BooleanPolicy]
693
1105
  attr_accessor :boolean_policy
694
1106
 
695
- # The time stamp the `Policy` was previously updated. This is set by the
696
- # server, not specified by the caller, and represents the last time a call to
697
- # `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
698
- # be ignored.
699
- # Corresponds to the JSON property `updateTime`
1107
+ # The name of the `Constraint` the `Policy` is configuring, for example,
1108
+ # `constraints/serviceuser.services`.
1109
+ # Immutable after creation.
1110
+ # Corresponds to the JSON property `constraint`
700
1111
  # @return [String]
701
- attr_accessor :update_time
1112
+ attr_accessor :constraint
702
1113
 
703
1114
  def initialize(**args)
704
1115
  update!(**args)
@@ -706,13 +1117,13 @@ module Google
706
1117
 
707
1118
  # Update properties of this object
708
1119
  def update!(**args)
1120
+ @update_time = args[:update_time] if args.key?(:update_time)
709
1121
  @version = args[:version] if args.key?(:version)
710
1122
  @restore_default = args[:restore_default] if args.key?(:restore_default)
711
1123
  @list_policy = args[:list_policy] if args.key?(:list_policy)
712
1124
  @etag = args[:etag] if args.key?(:etag)
713
- @constraint = args[:constraint] if args.key?(:constraint)
714
1125
  @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
715
- @update_time = args[:update_time] if args.key?(:update_time)
1126
+ @constraint = args[:constraint] if args.key?(:constraint)
716
1127
  end
717
1128
  end
718
1129
 
@@ -779,18 +1190,6 @@ module Google
779
1190
  class Lien
780
1191
  include Google::Apis::Core::Hashable
781
1192
 
782
- # A reference to the resource this Lien is attached to. The server will
783
- # validate the parent against those for which Liens are supported.
784
- # Example: `projects/1234`
785
- # Corresponds to the JSON property `parent`
786
- # @return [String]
787
- attr_accessor :parent
788
-
789
- # The creation time of this Lien.
790
- # Corresponds to the JSON property `createTime`
791
- # @return [String]
792
- attr_accessor :create_time
793
-
794
1193
  # A system-generated unique identifier for this Lien.
795
1194
  # Example: `liens/1234abcd`
796
1195
  # Corresponds to the JSON property `name`
@@ -821,18 +1220,30 @@ module Google
821
1220
  # @return [Array<String>]
822
1221
  attr_accessor :restrictions
823
1222
 
824
- def initialize(**args)
825
- update!(**args)
826
- end
1223
+ # A reference to the resource this Lien is attached to. The server will
1224
+ # validate the parent against those for which Liens are supported.
1225
+ # Example: `projects/1234`
1226
+ # Corresponds to the JSON property `parent`
1227
+ # @return [String]
1228
+ attr_accessor :parent
1229
+
1230
+ # The creation time of this Lien.
1231
+ # Corresponds to the JSON property `createTime`
1232
+ # @return [String]
1233
+ attr_accessor :create_time
1234
+
1235
+ def initialize(**args)
1236
+ update!(**args)
1237
+ end
827
1238
 
828
1239
  # Update properties of this object
829
1240
  def update!(**args)
830
- @parent = args[:parent] if args.key?(:parent)
831
- @create_time = args[:create_time] if args.key?(:create_time)
832
1241
  @name = args[:name] if args.key?(:name)
833
1242
  @reason = args[:reason] if args.key?(:reason)
834
1243
  @origin = args[:origin] if args.key?(:origin)
835
1244
  @restrictions = args[:restrictions] if args.key?(:restrictions)
1245
+ @parent = args[:parent] if args.key?(:parent)
1246
+ @create_time = args[:create_time] if args.key?(:create_time)
836
1247
  end
837
1248
  end
838
1249
 
@@ -903,15 +1314,6 @@ module Google
903
1314
  class SetIamPolicyRequest
904
1315
  include Google::Apis::Core::Hashable
905
1316
 
906
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
907
- # the fields in the mask will be modified. If no mask is provided, the
908
- # following default mask is used:
909
- # paths: "bindings, etag"
910
- # This field is only used by Cloud IAM.
911
- # Corresponds to the JSON property `updateMask`
912
- # @return [String]
913
- attr_accessor :update_mask
914
-
915
1317
  # Defines an Identity and Access Management (IAM) policy. It is used to
916
1318
  # specify access control policies for Cloud Platform resources.
917
1319
  # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@@ -942,14 +1344,23 @@ module Google
942
1344
  # @return [Google::Apis::CloudresourcemanagerV1::Policy]
943
1345
  attr_accessor :policy
944
1346
 
1347
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1348
+ # the fields in the mask will be modified. If no mask is provided, the
1349
+ # following default mask is used:
1350
+ # paths: "bindings, etag"
1351
+ # This field is only used by Cloud IAM.
1352
+ # Corresponds to the JSON property `updateMask`
1353
+ # @return [String]
1354
+ attr_accessor :update_mask
1355
+
945
1356
  def initialize(**args)
946
1357
  update!(**args)
947
1358
  end
948
1359
 
949
1360
  # Update properties of this object
950
1361
  def update!(**args)
951
- @update_mask = args[:update_mask] if args.key?(:update_mask)
952
1362
  @policy = args[:policy] if args.key?(:policy)
1363
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
953
1364
  end
954
1365
  end
955
1366
 
@@ -977,12 +1388,6 @@ module Google
977
1388
  class Organization
978
1389
  include Google::Apis::Core::Hashable
979
1390
 
980
- # Timestamp when the Organization was created. Assigned by the server.
981
- # @OutputOnly
982
- # Corresponds to the JSON property `creationTime`
983
- # @return [String]
984
- attr_accessor :creation_time
985
-
986
1391
  # The entity that owns an Organization. The lifetime of the Organization and
987
1392
  # all of its descendants are bound to the `OrganizationOwner`. If the
988
1393
  # `OrganizationOwner` is deleted, the Organization and all its descendants will
@@ -1012,17 +1417,23 @@ module Google
1012
1417
  # @return [String]
1013
1418
  attr_accessor :display_name
1014
1419
 
1420
+ # Timestamp when the Organization was created. Assigned by the server.
1421
+ # @OutputOnly
1422
+ # Corresponds to the JSON property `creationTime`
1423
+ # @return [String]
1424
+ attr_accessor :creation_time
1425
+
1015
1426
  def initialize(**args)
1016
1427
  update!(**args)
1017
1428
  end
1018
1429
 
1019
1430
  # Update properties of this object
1020
1431
  def update!(**args)
1021
- @creation_time = args[:creation_time] if args.key?(:creation_time)
1022
1432
  @owner = args[:owner] if args.key?(:owner)
1023
1433
  @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
1024
1434
  @name = args[:name] if args.key?(:name)
1025
1435
  @display_name = args[:display_name] if args.key?(:display_name)
1436
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
1026
1437
  end
1027
1438
  end
1028
1439
 
@@ -1033,24 +1444,24 @@ module Google
1033
1444
  class ListAvailableOrgPolicyConstraintsResponse
1034
1445
  include Google::Apis::Core::Hashable
1035
1446
 
1036
- # Page token used to retrieve the next page. This is currently not used.
1037
- # Corresponds to the JSON property `nextPageToken`
1038
- # @return [String]
1039
- attr_accessor :next_page_token
1040
-
1041
1447
  # The collection of constraints that are settable on the request resource.
1042
1448
  # Corresponds to the JSON property `constraints`
1043
1449
  # @return [Array<Google::Apis::CloudresourcemanagerV1::Constraint>]
1044
1450
  attr_accessor :constraints
1045
1451
 
1452
+ # Page token used to retrieve the next page. This is currently not used.
1453
+ # Corresponds to the JSON property `nextPageToken`
1454
+ # @return [String]
1455
+ attr_accessor :next_page_token
1456
+
1046
1457
  def initialize(**args)
1047
1458
  update!(**args)
1048
1459
  end
1049
1460
 
1050
1461
  # Update properties of this object
1051
1462
  def update!(**args)
1052
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1053
1463
  @constraints = args[:constraints] if args.key?(:constraints)
1464
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1054
1465
  end
1055
1466
  end
1056
1467
 
@@ -1157,335 +1568,17 @@ module Google
1157
1568
  # `all: DENY`
1158
1569
  # The accepted values at `organizations/foo` are `E1`, E2`.
1159
1570
  # No value is accepted at `projects/bar`.
1160
- # Corresponds to the JSON property `inheritFromParent`
1161
- # @return [Boolean]
1162
- attr_accessor :inherit_from_parent
1163
- alias_method :inherit_from_parent?, :inherit_from_parent
1164
-
1165
- # List of values denied at this resource. Can only be set if no values are
1166
- # set for `allowed_values` and `all_values` is set to
1167
- # `ALL_VALUES_UNSPECIFIED`.
1168
- # Corresponds to the JSON property `deniedValues`
1169
- # @return [Array<String>]
1170
- attr_accessor :denied_values
1171
-
1172
- def initialize(**args)
1173
- update!(**args)
1174
- end
1175
-
1176
- # Update properties of this object
1177
- def update!(**args)
1178
- @all_values = args[:all_values] if args.key?(:all_values)
1179
- @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
1180
- @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
1181
- @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent)
1182
- @denied_values = args[:denied_values] if args.key?(:denied_values)
1183
- end
1184
- end
1185
-
1186
- # Response from the GetAncestry method.
1187
- class GetAncestryResponse
1188
- include Google::Apis::Core::Hashable
1189
-
1190
- # Ancestors are ordered from bottom to top of the resource hierarchy. The
1191
- # first ancestor is the project itself, followed by the project's parent,
1192
- # etc.
1193
- # Corresponds to the JSON property `ancestor`
1194
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Ancestor>]
1195
- attr_accessor :ancestor
1196
-
1197
- def initialize(**args)
1198
- update!(**args)
1199
- end
1200
-
1201
- # Update properties of this object
1202
- def update!(**args)
1203
- @ancestor = args[:ancestor] if args.key?(:ancestor)
1204
- end
1205
- end
1206
-
1207
- # Provides the configuration for logging a type of permissions.
1208
- # Example:
1209
- # `
1210
- # "audit_log_configs": [
1211
- # `
1212
- # "log_type": "DATA_READ",
1213
- # "exempted_members": [
1214
- # "user:foo@gmail.com"
1215
- # ]
1216
- # `,
1217
- # `
1218
- # "log_type": "DATA_WRITE",
1219
- # `
1220
- # ]
1221
- # `
1222
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
1223
- # foo@gmail.com from DATA_READ logging.
1224
- class AuditLogConfig
1225
- include Google::Apis::Core::Hashable
1226
-
1227
- # Specifies the identities that do not cause logging for this type of
1228
- # permission.
1229
- # Follows the same format of Binding.members.
1230
- # Corresponds to the JSON property `exemptedMembers`
1231
- # @return [Array<String>]
1232
- attr_accessor :exempted_members
1233
-
1234
- # The log type that this config enables.
1235
- # Corresponds to the JSON property `logType`
1236
- # @return [String]
1237
- attr_accessor :log_type
1238
-
1239
- def initialize(**args)
1240
- update!(**args)
1241
- end
1242
-
1243
- # Update properties of this object
1244
- def update!(**args)
1245
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
1246
- @log_type = args[:log_type] if args.key?(:log_type)
1247
- end
1248
- end
1249
-
1250
- # The request sent to the `SearchOrganizations` method.
1251
- class SearchOrganizationsRequest
1252
- include Google::Apis::Core::Hashable
1253
-
1254
- # A pagination token returned from a previous call to `SearchOrganizations`
1255
- # that indicates from where listing should continue.
1256
- # This field is optional.
1257
- # Corresponds to the JSON property `pageToken`
1258
- # @return [String]
1259
- attr_accessor :page_token
1260
-
1261
- # The maximum number of Organizations to return in the response.
1262
- # This field is optional.
1263
- # Corresponds to the JSON property `pageSize`
1264
- # @return [Fixnum]
1265
- attr_accessor :page_size
1266
-
1267
- # An optional query string used to filter the Organizations to return in
1268
- # the response. Filter rules are case-insensitive.
1269
- # Organizations may be filtered by `owner.directoryCustomerId` or by
1270
- # `domain`, where the domain is a Google for Work domain, for example:
1271
- # |Filter|Description|
1272
- # |------|-----------|
1273
- # |owner.directorycustomerid:123456789|Organizations with
1274
- # `owner.directory_customer_id` equal to `123456789`.|
1275
- # |domain:google.com|Organizations corresponding to the domain `google.com`.|
1276
- # This field is optional.
1277
- # Corresponds to the JSON property `filter`
1278
- # @return [String]
1279
- attr_accessor :filter
1280
-
1281
- def initialize(**args)
1282
- update!(**args)
1283
- end
1284
-
1285
- # Update properties of this object
1286
- def update!(**args)
1287
- @page_token = args[:page_token] if args.key?(:page_token)
1288
- @page_size = args[:page_size] if args.key?(:page_size)
1289
- @filter = args[:filter] if args.key?(:filter)
1290
- end
1291
- end
1292
-
1293
- # The request sent to the
1294
- # GetAncestry
1295
- # method.
1296
- class GetAncestryRequest
1297
- include Google::Apis::Core::Hashable
1298
-
1299
- def initialize(**args)
1300
- update!(**args)
1301
- end
1302
-
1303
- # Update properties of this object
1304
- def update!(**args)
1305
- end
1306
- end
1307
-
1308
- # Request message for `TestIamPermissions` method.
1309
- class TestIamPermissionsRequest
1310
- include Google::Apis::Core::Hashable
1311
-
1312
- # The set of permissions to check for the `resource`. Permissions with
1313
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
1314
- # information see
1315
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1316
- # Corresponds to the JSON property `permissions`
1317
- # @return [Array<String>]
1318
- attr_accessor :permissions
1319
-
1320
- def initialize(**args)
1321
- update!(**args)
1322
- end
1323
-
1324
- # Update properties of this object
1325
- def update!(**args)
1326
- @permissions = args[:permissions] if args.key?(:permissions)
1327
- end
1328
- end
1329
-
1330
- # The request sent to the [ListAvailableOrgPolicyConstraints]
1331
- # google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method.
1332
- class ListAvailableOrgPolicyConstraintsRequest
1333
- include Google::Apis::Core::Hashable
1334
-
1335
- # Page token used to retrieve the next page. This is currently unsupported
1336
- # and will be ignored. The server may at any point start using this field.
1337
- # Corresponds to the JSON property `pageToken`
1338
- # @return [String]
1339
- attr_accessor :page_token
1340
-
1341
- # Size of the pages to be returned. This is currently unsupported and will
1342
- # be ignored. The server may at any point start using this field to limit
1343
- # page size.
1344
- # Corresponds to the JSON property `pageSize`
1345
- # @return [Fixnum]
1346
- attr_accessor :page_size
1347
-
1348
- def initialize(**args)
1349
- update!(**args)
1350
- end
1351
-
1352
- # Update properties of this object
1353
- def update!(**args)
1354
- @page_token = args[:page_token] if args.key?(:page_token)
1355
- @page_size = args[:page_size] if args.key?(:page_size)
1356
- end
1357
- end
1358
-
1359
- # Defines an Identity and Access Management (IAM) policy. It is used to
1360
- # specify access control policies for Cloud Platform resources.
1361
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
1362
- # `members` to a `role`, where the members can be user accounts, Google groups,
1363
- # Google domains, and service accounts. A `role` is a named list of permissions
1364
- # defined by IAM.
1365
- # **Example**
1366
- # `
1367
- # "bindings": [
1368
- # `
1369
- # "role": "roles/owner",
1370
- # "members": [
1371
- # "user:mike@example.com",
1372
- # "group:admins@example.com",
1373
- # "domain:google.com",
1374
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
1375
- # ]
1376
- # `,
1377
- # `
1378
- # "role": "roles/viewer",
1379
- # "members": ["user:sean@example.com"]
1380
- # `
1381
- # ]
1382
- # `
1383
- # For a description of IAM and its features, see the
1384
- # [IAM developer's guide](https://cloud.google.com/iam).
1385
- class Policy
1386
- include Google::Apis::Core::Hashable
1387
-
1388
- # `etag` is used for optimistic concurrency control as a way to help
1389
- # prevent simultaneous updates of a policy from overwriting each other.
1390
- # It is strongly suggested that systems make use of the `etag` in the
1391
- # read-modify-write cycle to perform policy updates in order to avoid race
1392
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1393
- # systems are expected to put that etag in the request to `setIamPolicy` to
1394
- # ensure that their change will be applied to the same version of the policy.
1395
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
1396
- # policy is overwritten blindly.
1397
- # Corresponds to the JSON property `etag`
1398
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
1399
- # @return [String]
1400
- attr_accessor :etag
1401
-
1402
- # Version of the `Policy`. The default version is 0.
1403
- # Corresponds to the JSON property `version`
1404
- # @return [Fixnum]
1405
- attr_accessor :version
1406
-
1407
- # Specifies cloud audit logging configuration for this policy.
1408
- # Corresponds to the JSON property `auditConfigs`
1409
- # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditConfig>]
1410
- attr_accessor :audit_configs
1411
-
1412
- # Associates a list of `members` to a `role`.
1413
- # Multiple `bindings` must not be specified for the same `role`.
1414
- # `bindings` with no members will result in an error.
1415
- # Corresponds to the JSON property `bindings`
1416
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
1417
- attr_accessor :bindings
1418
-
1419
- def initialize(**args)
1420
- update!(**args)
1421
- end
1422
-
1423
- # Update properties of this object
1424
- def update!(**args)
1425
- @etag = args[:etag] if args.key?(:etag)
1426
- @version = args[:version] if args.key?(:version)
1427
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1428
- @bindings = args[:bindings] if args.key?(:bindings)
1429
- end
1430
- end
1431
-
1432
- # Metadata describing a long running folder operation
1433
- class FolderOperation
1434
- include Google::Apis::Core::Hashable
1435
-
1436
- # The type of this operation.
1437
- # Corresponds to the JSON property `operationType`
1438
- # @return [String]
1439
- attr_accessor :operation_type
1440
-
1441
- # The display name of the folder.
1442
- # Corresponds to the JSON property `displayName`
1443
- # @return [String]
1444
- attr_accessor :display_name
1445
-
1446
- # The resource name of the folder's parent.
1447
- # Only applicable when the operation_type is MOVE.
1448
- # Corresponds to the JSON property `sourceParent`
1449
- # @return [String]
1450
- attr_accessor :source_parent
1451
-
1452
- # The resource name of the folder or organization we are either creating
1453
- # the folder under or moving the folder to.
1454
- # Corresponds to the JSON property `destinationParent`
1455
- # @return [String]
1456
- attr_accessor :destination_parent
1457
-
1458
- def initialize(**args)
1459
- update!(**args)
1460
- end
1461
-
1462
- # Update properties of this object
1463
- def update!(**args)
1464
- @operation_type = args[:operation_type] if args.key?(:operation_type)
1465
- @display_name = args[:display_name] if args.key?(:display_name)
1466
- @source_parent = args[:source_parent] if args.key?(:source_parent)
1467
- @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
1468
- end
1469
- end
1470
-
1471
- # A container to reference an id for any resource type. A `resource` in Google
1472
- # Cloud Platform is a generic term for something you (a developer) may want to
1473
- # interact with through one of our API's. Some examples are an App Engine app,
1474
- # a Compute Engine instance, a Cloud SQL database, and so on.
1475
- class ResourceId
1476
- include Google::Apis::Core::Hashable
1477
-
1478
- # Required field representing the resource type this id is for.
1479
- # At present, the valid types are: "organization"
1480
- # Corresponds to the JSON property `type`
1481
- # @return [String]
1482
- attr_accessor :type
1571
+ # Corresponds to the JSON property `inheritFromParent`
1572
+ # @return [Boolean]
1573
+ attr_accessor :inherit_from_parent
1574
+ alias_method :inherit_from_parent?, :inherit_from_parent
1483
1575
 
1484
- # Required field for the type-specific id. This should correspond to the id
1485
- # used in the type-specific API's.
1486
- # Corresponds to the JSON property `id`
1487
- # @return [String]
1488
- attr_accessor :id
1576
+ # List of values denied at this resource. Can only be set if no values are
1577
+ # set for `allowed_values` and `all_values` is set to
1578
+ # `ALL_VALUES_UNSPECIFIED`.
1579
+ # Corresponds to the JSON property `deniedValues`
1580
+ # @return [Array<String>]
1581
+ attr_accessor :denied_values
1489
1582
 
1490
1583
  def initialize(**args)
1491
1584
  update!(**args)
@@ -1493,19 +1586,24 @@ module Google
1493
1586
 
1494
1587
  # Update properties of this object
1495
1588
  def update!(**args)
1496
- @type = args[:type] if args.key?(:type)
1497
- @id = args[:id] if args.key?(:id)
1589
+ @all_values = args[:all_values] if args.key?(:all_values)
1590
+ @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
1591
+ @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
1592
+ @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent)
1593
+ @denied_values = args[:denied_values] if args.key?(:denied_values)
1498
1594
  end
1499
1595
  end
1500
1596
 
1501
- # The request sent to the GetEffectiveOrgPolicy method.
1502
- class GetEffectiveOrgPolicyRequest
1597
+ # Response from the GetAncestry method.
1598
+ class GetAncestryResponse
1503
1599
  include Google::Apis::Core::Hashable
1504
1600
 
1505
- # The name of the `Constraint` to compute the effective `Policy`.
1506
- # Corresponds to the JSON property `constraint`
1507
- # @return [String]
1508
- attr_accessor :constraint
1601
+ # Ancestors are ordered from bottom to top of the resource hierarchy. The
1602
+ # first ancestor is the project itself, followed by the project's parent,
1603
+ # etc.
1604
+ # Corresponds to the JSON property `ancestor`
1605
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Ancestor>]
1606
+ attr_accessor :ancestor
1509
1607
 
1510
1608
  def initialize(**args)
1511
1609
  update!(**args)
@@ -1513,26 +1611,41 @@ module Google
1513
1611
 
1514
1612
  # Update properties of this object
1515
1613
  def update!(**args)
1516
- @constraint = args[:constraint] if args.key?(:constraint)
1614
+ @ancestor = args[:ancestor] if args.key?(:ancestor)
1517
1615
  end
1518
1616
  end
1519
1617
 
1520
- # The request sent to the ListOrgPolicies method.
1521
- class ListOrgPoliciesRequest
1618
+ # Provides the configuration for logging a type of permissions.
1619
+ # Example:
1620
+ # `
1621
+ # "audit_log_configs": [
1622
+ # `
1623
+ # "log_type": "DATA_READ",
1624
+ # "exempted_members": [
1625
+ # "user:foo@gmail.com"
1626
+ # ]
1627
+ # `,
1628
+ # `
1629
+ # "log_type": "DATA_WRITE",
1630
+ # `
1631
+ # ]
1632
+ # `
1633
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
1634
+ # foo@gmail.com from DATA_READ logging.
1635
+ class AuditLogConfig
1522
1636
  include Google::Apis::Core::Hashable
1523
1637
 
1524
- # Page token used to retrieve the next page. This is currently unsupported
1525
- # and will be ignored. The server may at any point start using this field.
1526
- # Corresponds to the JSON property `pageToken`
1638
+ # The log type that this config enables.
1639
+ # Corresponds to the JSON property `logType`
1527
1640
  # @return [String]
1528
- attr_accessor :page_token
1641
+ attr_accessor :log_type
1529
1642
 
1530
- # Size of the pages to be returned. This is currently unsupported and will
1531
- # be ignored. The server may at any point start using this field to limit
1532
- # page size.
1533
- # Corresponds to the JSON property `pageSize`
1534
- # @return [Fixnum]
1535
- attr_accessor :page_size
1643
+ # Specifies the identities that do not cause logging for this type of
1644
+ # permission.
1645
+ # Follows the same format of Binding.members.
1646
+ # Corresponds to the JSON property `exemptedMembers`
1647
+ # @return [Array<String>]
1648
+ attr_accessor :exempted_members
1536
1649
 
1537
1650
  def initialize(**args)
1538
1651
  update!(**args)
@@ -1540,93 +1653,41 @@ module Google
1540
1653
 
1541
1654
  # Update properties of this object
1542
1655
  def update!(**args)
1543
- @page_token = args[:page_token] if args.key?(:page_token)
1544
- @page_size = args[:page_size] if args.key?(:page_size)
1656
+ @log_type = args[:log_type] if args.key?(:log_type)
1657
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
1545
1658
  end
1546
1659
  end
1547
1660
 
1548
- # This resource represents a long-running operation that is the result of a
1549
- # network API call.
1550
- class Operation
1661
+ # The request sent to the `SearchOrganizations` method.
1662
+ class SearchOrganizationsRequest
1551
1663
  include Google::Apis::Core::Hashable
1552
1664
 
1553
- # The normal response of the operation in case of success. If the original
1554
- # method returns no data on success, such as `Delete`, the response is
1555
- # `google.protobuf.Empty`. If the original method is standard
1556
- # `Get`/`Create`/`Update`, the response should be the resource. For other
1557
- # methods, the response should have the type `XxxResponse`, where `Xxx`
1558
- # is the original method name. For example, if the original method name
1559
- # is `TakeSnapshot()`, the inferred response type is
1560
- # `TakeSnapshotResponse`.
1561
- # Corresponds to the JSON property `response`
1562
- # @return [Hash<String,Object>]
1563
- attr_accessor :response
1564
-
1565
- # The server-assigned name, which is only unique within the same service that
1566
- # originally returns it. If you use the default HTTP mapping, the
1567
- # `name` should have the format of `operations/some/unique/name`.
1568
- # Corresponds to the JSON property `name`
1665
+ # A pagination token returned from a previous call to `SearchOrganizations`
1666
+ # that indicates from where listing should continue.
1667
+ # This field is optional.
1668
+ # Corresponds to the JSON property `pageToken`
1569
1669
  # @return [String]
1570
- attr_accessor :name
1571
-
1572
- # The `Status` type defines a logical error model that is suitable for different
1573
- # programming environments, including REST APIs and RPC APIs. It is used by
1574
- # [gRPC](https://github.com/grpc). The error model is designed to be:
1575
- # - Simple to use and understand for most users
1576
- # - Flexible enough to meet unexpected needs
1577
- # # Overview
1578
- # The `Status` message contains three pieces of data: error code, error message,
1579
- # and error details. The error code should be an enum value of
1580
- # google.rpc.Code, but it may accept additional error codes if needed. The
1581
- # error message should be a developer-facing English message that helps
1582
- # developers *understand* and *resolve* the error. If a localized user-facing
1583
- # error message is needed, put the localized message in the error details or
1584
- # localize it in the client. The optional error details may contain arbitrary
1585
- # information about the error. There is a predefined set of error detail types
1586
- # in the package `google.rpc` which can be used for common error conditions.
1587
- # # Language mapping
1588
- # The `Status` message is the logical representation of the error model, but it
1589
- # is not necessarily the actual wire format. When the `Status` message is
1590
- # exposed in different client libraries and different wire protocols, it can be
1591
- # mapped differently. For example, it will likely be mapped to some exceptions
1592
- # in Java, but more likely mapped to some error codes in C.
1593
- # # Other uses
1594
- # The error model and the `Status` message can be used in a variety of
1595
- # environments, either with or without APIs, to provide a
1596
- # consistent developer experience across different environments.
1597
- # Example uses of this error model include:
1598
- # - Partial errors. If a service needs to return partial errors to the client,
1599
- # it may embed the `Status` in the normal response to indicate the partial
1600
- # errors.
1601
- # - Workflow errors. A typical workflow has multiple steps. Each step may
1602
- # have a `Status` message for error reporting purpose.
1603
- # - Batch operations. If a client uses batch request and batch response, the
1604
- # `Status` message should be used directly inside batch response, one for
1605
- # each error sub-response.
1606
- # - Asynchronous operations. If an API call embeds asynchronous operation
1607
- # results in its response, the status of those operations should be
1608
- # represented directly using the `Status` message.
1609
- # - Logging. If some API errors are stored in logs, the message `Status` could
1610
- # be used directly after any stripping needed for security/privacy reasons.
1611
- # Corresponds to the JSON property `error`
1612
- # @return [Google::Apis::CloudresourcemanagerV1::Status]
1613
- attr_accessor :error
1670
+ attr_accessor :page_token
1614
1671
 
1615
- # Service-specific metadata associated with the operation. It typically
1616
- # contains progress information and common metadata such as create time.
1617
- # Some services might not provide such metadata. Any method that returns a
1618
- # long-running operation should document the metadata type, if any.
1619
- # Corresponds to the JSON property `metadata`
1620
- # @return [Hash<String,Object>]
1621
- attr_accessor :metadata
1672
+ # The maximum number of Organizations to return in the response.
1673
+ # This field is optional.
1674
+ # Corresponds to the JSON property `pageSize`
1675
+ # @return [Fixnum]
1676
+ attr_accessor :page_size
1622
1677
 
1623
- # If the value is `false`, it means the operation is still in progress.
1624
- # If true, the operation is completed, and either `error` or `response` is
1625
- # available.
1626
- # Corresponds to the JSON property `done`
1627
- # @return [Boolean]
1628
- attr_accessor :done
1629
- alias_method :done?, :done
1678
+ # An optional query string used to filter the Organizations to return in
1679
+ # the response. Filter rules are case-insensitive.
1680
+ # Organizations may be filtered by `owner.directoryCustomerId` or by
1681
+ # `domain`, where the domain is a Google for Work domain, for example:
1682
+ # |Filter|Description|
1683
+ # |------|-----------|
1684
+ # |owner.directorycustomerid:123456789|Organizations with
1685
+ # `owner.directory_customer_id` equal to `123456789`.|
1686
+ # |domain:google.com|Organizations corresponding to the domain `google.com`.|
1687
+ # This field is optional.
1688
+ # Corresponds to the JSON property `filter`
1689
+ # @return [String]
1690
+ attr_accessor :filter
1630
1691
 
1631
1692
  def initialize(**args)
1632
1693
  update!(**args)
@@ -1634,85 +1695,24 @@ module Google
1634
1695
 
1635
1696
  # Update properties of this object
1636
1697
  def update!(**args)
1637
- @response = args[:response] if args.key?(:response)
1638
- @name = args[:name] if args.key?(:name)
1639
- @error = args[:error] if args.key?(:error)
1640
- @metadata = args[:metadata] if args.key?(:metadata)
1641
- @done = args[:done] if args.key?(:done)
1698
+ @page_token = args[:page_token] if args.key?(:page_token)
1699
+ @page_size = args[:page_size] if args.key?(:page_size)
1700
+ @filter = args[:filter] if args.key?(:filter)
1642
1701
  end
1643
1702
  end
1644
1703
 
1645
- # Specifies the audit configuration for a service.
1646
- # The configuration determines which permission types are logged, and what
1647
- # identities, if any, are exempted from logging.
1648
- # An AuditConfig must have one or more AuditLogConfigs.
1649
- # If there are AuditConfigs for both `allServices` and a specific service,
1650
- # the union of the two AuditConfigs is used for that service: the log_types
1651
- # specified in each AuditConfig are enabled, and the exempted_members in each
1652
- # AuditConfig are exempted.
1653
- # Example Policy with multiple AuditConfigs:
1654
- # `
1655
- # "audit_configs": [
1656
- # `
1657
- # "service": "allServices"
1658
- # "audit_log_configs": [
1659
- # `
1660
- # "log_type": "DATA_READ",
1661
- # "exempted_members": [
1662
- # "user:foo@gmail.com"
1663
- # ]
1664
- # `,
1665
- # `
1666
- # "log_type": "DATA_WRITE",
1667
- # `,
1668
- # `
1669
- # "log_type": "ADMIN_READ",
1670
- # `
1671
- # ]
1672
- # `,
1673
- # `
1674
- # "service": "fooservice.googleapis.com"
1675
- # "audit_log_configs": [
1676
- # `
1677
- # "log_type": "DATA_READ",
1678
- # `,
1679
- # `
1680
- # "log_type": "DATA_WRITE",
1681
- # "exempted_members": [
1682
- # "user:bar@gmail.com"
1683
- # ]
1684
- # `
1685
- # ]
1686
- # `
1687
- # ]
1688
- # `
1689
- # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1690
- # logging. It also exempts foo@gmail.com from DATA_READ logging, and
1691
- # bar@gmail.com from DATA_WRITE logging.
1692
- class AuditConfig
1704
+ # The request sent to the
1705
+ # GetAncestry
1706
+ # method.
1707
+ class GetAncestryRequest
1693
1708
  include Google::Apis::Core::Hashable
1694
1709
 
1695
- # Specifies a service that will be enabled for audit logging.
1696
- # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1697
- # `allServices` is a special value that covers all services.
1698
- # Corresponds to the JSON property `service`
1699
- # @return [String]
1700
- attr_accessor :service
1701
-
1702
- # The configuration for logging of each type of permission.
1703
- # Next ID: 4
1704
- # Corresponds to the JSON property `auditLogConfigs`
1705
- # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditLogConfig>]
1706
- attr_accessor :audit_log_configs
1707
-
1708
1710
  def initialize(**args)
1709
1711
  update!(**args)
1710
1712
  end
1711
1713
 
1712
1714
  # Update properties of this object
1713
1715
  def update!(**args)
1714
- @service = args[:service] if args.key?(:service)
1715
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
1716
1716
  end
1717
1717
  end
1718
1718
  end