google-api-client 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/api_names.yaml +42335 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
  14. data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +61 -61
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
  24. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  25. data/generated/google/apis/appengine_v1.rb +6 -5
  26. data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
  27. data/generated/google/apis/appengine_v1/representations.rb +331 -331
  28. data/generated/google/apis/appengine_v1/service.rb +173 -168
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
  36. data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
  37. data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
  38. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  39. data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
  40. data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
  41. data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
  42. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  43. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
  44. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
  45. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
  46. data/generated/google/apis/cloudfunctions_v1.rb +1 -4
  47. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
  48. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
  49. data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
  50. data/generated/google/apis/cloudkms_v1.rb +1 -1
  51. data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
  52. data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
  53. data/generated/google/apis/cloudkms_v1/service.rb +272 -272
  54. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
  63. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
  66. data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +194 -25
  69. data/generated/google/apis/compute_beta/representations.rb +42 -0
  70. data/generated/google/apis/compute_beta/service.rb +196 -100
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +69 -18
  73. data/generated/google/apis/compute_v1/representations.rb +16 -0
  74. data/generated/google/apis/compute_v1/service.rb +84 -26
  75. data/generated/google/apis/container_v1.rb +3 -3
  76. data/generated/google/apis/container_v1/classes.rb +794 -586
  77. data/generated/google/apis/container_v1/representations.rb +202 -118
  78. data/generated/google/apis/container_v1/service.rb +396 -167
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +4 -4
  81. data/generated/google/apis/dataproc_v1.rb +1 -1
  82. data/generated/google/apis/dataproc_v1/classes.rb +487 -484
  83. data/generated/google/apis/dataproc_v1/representations.rb +83 -83
  84. data/generated/google/apis/dataproc_v1/service.rb +299 -297
  85. data/generated/google/apis/datastore_v1.rb +1 -1
  86. data/generated/google/apis/datastore_v1/classes.rb +703 -703
  87. data/generated/google/apis/datastore_v1/representations.rb +148 -148
  88. data/generated/google/apis/datastore_v1/service.rb +62 -62
  89. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  90. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
  91. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  92. data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
  93. data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
  94. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  95. data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
  96. data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
  97. data/generated/google/apis/dfareporting_v2_8.rb +40 -0
  98. data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
  99. data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
  100. data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
  101. data/generated/google/apis/dns_v1.rb +1 -1
  102. data/generated/google/apis/dns_v2beta1.rb +1 -1
  103. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2.rb +1 -1
  105. data/generated/google/apis/drive_v2/classes.rb +15 -0
  106. data/generated/google/apis/drive_v2/representations.rb +2 -0
  107. data/generated/google/apis/drive_v2/service.rb +2 -1
  108. data/generated/google/apis/drive_v3.rb +1 -1
  109. data/generated/google/apis/drive_v3/classes.rb +16 -0
  110. data/generated/google/apis/drive_v3/representations.rb +2 -0
  111. data/generated/google/apis/drive_v3/service.rb +2 -1
  112. data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
  113. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
  114. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
  115. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
  116. data/generated/google/apis/firebaserules_v1.rb +1 -1
  117. data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
  118. data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
  119. data/generated/google/apis/firebaserules_v1/service.rb +118 -118
  120. data/generated/google/apis/fusiontables_v2.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_v1.rb +1 -1
  124. data/generated/google/apis/genomics_v1.rb +1 -1
  125. data/generated/google/apis/genomics_v1/classes.rb +920 -920
  126. data/generated/google/apis/genomics_v1/representations.rb +202 -202
  127. data/generated/google/apis/genomics_v1/service.rb +1092 -1092
  128. data/generated/google/apis/gmail_v1.rb +1 -1
  129. data/generated/google/apis/iam_v1.rb +1 -1
  130. data/generated/google/apis/iam_v1/classes.rb +455 -435
  131. data/generated/google/apis/iam_v1/representations.rb +96 -93
  132. data/generated/google/apis/iam_v1/service.rb +157 -157
  133. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  134. data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
  135. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
  136. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  137. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  138. data/generated/google/apis/kgsearch_v1/service.rb +9 -9
  139. data/generated/google/apis/language_v1.rb +1 -1
  140. data/generated/google/apis/language_v1/classes.rb +455 -455
  141. data/generated/google/apis/language_v1/representations.rb +102 -102
  142. data/generated/google/apis/language_v1/service.rb +42 -42
  143. data/generated/google/apis/language_v1beta1.rb +1 -1
  144. data/generated/google/apis/language_v1beta1/classes.rb +216 -215
  145. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  146. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  147. data/generated/google/apis/logging_v2.rb +1 -1
  148. data/generated/google/apis/logging_v2/classes.rb +908 -895
  149. data/generated/google/apis/logging_v2/representations.rb +121 -120
  150. data/generated/google/apis/logging_v2/service.rb +489 -489
  151. data/generated/google/apis/logging_v2beta1.rb +4 -4
  152. data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
  153. data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
  154. data/generated/google/apis/logging_v2beta1/service.rb +249 -249
  155. data/generated/google/apis/manufacturers_v1.rb +1 -1
  156. data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
  157. data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
  158. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  159. data/generated/google/apis/mirror_v1.rb +1 -1
  160. data/generated/google/apis/ml_v1.rb +1 -1
  161. data/generated/google/apis/ml_v1/classes.rb +1186 -1183
  162. data/generated/google/apis/ml_v1/representations.rb +177 -177
  163. data/generated/google/apis/ml_v1/service.rb +244 -244
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +866 -866
  166. data/generated/google/apis/monitoring_v3/representations.rb +163 -163
  167. data/generated/google/apis/monitoring_v3/service.rb +355 -316
  168. data/generated/google/apis/oauth2_v2.rb +1 -1
  169. data/generated/google/apis/partners_v2.rb +1 -1
  170. data/generated/google/apis/partners_v2/classes.rb +1499 -1499
  171. data/generated/google/apis/partners_v2/representations.rb +368 -368
  172. data/generated/google/apis/partners_v2/service.rb +512 -512
  173. data/generated/google/apis/people_v1.rb +10 -10
  174. data/generated/google/apis/people_v1/classes.rb +544 -423
  175. data/generated/google/apis/people_v1/representations.rb +127 -109
  176. data/generated/google/apis/people_v1/service.rb +8 -8
  177. data/generated/google/apis/plus_domains_v1.rb +1 -1
  178. data/generated/google/apis/plus_v1.rb +1 -1
  179. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  180. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
  181. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
  182. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
  183. data/generated/google/apis/pubsub_v1.rb +1 -1
  184. data/generated/google/apis/pubsub_v1/classes.rb +377 -377
  185. data/generated/google/apis/pubsub_v1/representations.rb +82 -82
  186. data/generated/google/apis/pubsub_v1/service.rb +93 -93
  187. data/generated/google/apis/runtimeconfig_v1.rb +6 -4
  188. data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
  189. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  190. data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
  191. data/generated/google/apis/script_v1.rb +14 -14
  192. data/generated/google/apis/script_v1/classes.rb +113 -58
  193. data/generated/google/apis/script_v1/representations.rb +43 -14
  194. data/generated/google/apis/script_v1/service.rb +6 -6
  195. data/generated/google/apis/searchconsole_v1.rb +1 -1
  196. data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
  197. data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
  198. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  199. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  200. data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
  201. data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
  202. data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
  203. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  204. data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
  205. data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
  206. data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
  207. data/generated/google/apis/serviceuser_v1.rb +4 -4
  208. data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
  209. data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
  210. data/generated/google/apis/serviceuser_v1/service.rb +19 -19
  211. data/generated/google/apis/sheets_v4.rb +4 -1
  212. data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
  213. data/generated/google/apis/sheets_v4/representations.rb +858 -858
  214. data/generated/google/apis/sheets_v4/service.rb +115 -115
  215. data/generated/google/apis/slides_v1.rb +1 -1
  216. data/generated/google/apis/slides_v1/classes.rb +2890 -2890
  217. data/generated/google/apis/slides_v1/representations.rb +638 -638
  218. data/generated/google/apis/slides_v1/service.rb +36 -36
  219. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  220. data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
  221. data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
  222. data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
  223. data/generated/google/apis/spanner_v1.rb +1 -1
  224. data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
  225. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  226. data/generated/google/apis/spanner_v1/service.rb +466 -466
  227. data/generated/google/apis/speech_v1beta1.rb +2 -2
  228. data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
  229. data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
  230. data/generated/google/apis/speech_v1beta1/service.rb +49 -49
  231. data/generated/google/apis/storage_v1.rb +1 -1
  232. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  233. data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
  234. data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
  235. data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
  236. data/generated/google/apis/surveys_v2.rb +1 -1
  237. data/generated/google/apis/surveys_v2/classes.rb +0 -12
  238. data/generated/google/apis/surveys_v2/representations.rb +0 -4
  239. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  240. data/generated/google/apis/vision_v1.rb +1 -1
  241. data/generated/google/apis/vision_v1/classes.rb +1301 -1302
  242. data/generated/google/apis/vision_v1/representations.rb +183 -183
  243. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  244. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  245. data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
  246. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
  247. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  248. data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
  249. data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
  250. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  251. data/lib/google/apis/version.rb +1 -1
  252. metadata +7 -3
@@ -32,21 +32,51 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/slides/
34
34
  class SlidesService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # Available to use for quota purposes for server-side applications. Can be any
37
- # arbitrary string assigned to a user, but should not exceed 40 characters.
38
- attr_accessor :quota_user
39
-
40
35
  # @return [String]
41
36
  # API key. Your API key identifies your project and provides you with API access,
42
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
38
  attr_accessor :key
44
39
 
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
45
  def initialize
46
46
  super('https://slides.googleapis.com/', '')
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
+ # Gets the latest version of the specified presentation.
51
+ # @param [String] presentation_id
52
+ # The ID of the presentation to retrieve.
53
+ # @param [String] quota_user
54
+ # Available to use for quota purposes for server-side applications. Can be any
55
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [Google::Apis::RequestOptions] options
59
+ # Request-specific options
60
+ #
61
+ # @yield [result, err] Result & error if block supplied
62
+ # @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::SlidesV1::Presentation]
66
+ #
67
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
70
+ def get_presentation(presentation_id, quota_user: nil, fields: nil, options: nil, &block)
71
+ command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
72
+ command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
73
+ command.response_class = Google::Apis::SlidesV1::Presentation
74
+ command.params['presentationId'] = presentation_id unless presentation_id.nil?
75
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ execute_or_queue_command(command, &block)
78
+ end
79
+
50
80
  # Creates a new presentation using the title given in the request. Other
51
81
  # fields in the request are ignored.
52
82
  # Returns the created presentation.
@@ -128,36 +158,6 @@ module Google
128
158
  execute_or_queue_command(command, &block)
129
159
  end
130
160
 
131
- # Gets the latest version of the specified presentation.
132
- # @param [String] presentation_id
133
- # The ID of the presentation to retrieve.
134
- # @param [String] quota_user
135
- # Available to use for quota purposes for server-side applications. Can be any
136
- # arbitrary string assigned to a user, but should not exceed 40 characters.
137
- # @param [String] fields
138
- # Selector specifying which fields to include in a partial response.
139
- # @param [Google::Apis::RequestOptions] options
140
- # Request-specific options
141
- #
142
- # @yield [result, err] Result & error if block supplied
143
- # @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
144
- # @yieldparam err [StandardError] error object if request failed
145
- #
146
- # @return [Google::Apis::SlidesV1::Presentation]
147
- #
148
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
149
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
- # @raise [Google::Apis::AuthorizationError] Authorization is required
151
- def get_presentation(presentation_id, quota_user: nil, fields: nil, options: nil, &block)
152
- command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
153
- command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
154
- command.response_class = Google::Apis::SlidesV1::Presentation
155
- command.params['presentationId'] = presentation_id unless presentation_id.nil?
156
- command.query['quotaUser'] = quota_user unless quota_user.nil?
157
- command.query['fields'] = fields unless fields.nil?
158
- execute_or_queue_command(command, &block)
159
- end
160
-
161
161
  # Generates a thumbnail of the latest version of the specified page in the
162
162
  # presentation and returns a URL to the thumbnail image.
163
163
  # @param [String] presentation_id
@@ -237,8 +237,8 @@ module Google
237
237
  protected
238
238
 
239
239
  def apply_command_defaults(command)
240
- command.query['quotaUser'] = quota_user unless quota_user.nil?
241
240
  command.query['key'] = key unless key.nil?
241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
242
242
  end
243
243
  end
244
244
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/eap/cloud-repositories/cloud-sourcerepo-api
26
26
  module SourcerepoV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170327'
28
+ REVISION = '20170410'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,6 +22,215 @@ module Google
22
22
  module Apis
23
23
  module SourcerepoV1
24
24
 
25
+ # Request message for `TestIamPermissions` method.
26
+ class TestIamPermissionsRequest
27
+ include Google::Apis::Core::Hashable
28
+
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
36
+
37
+ def initialize(**args)
38
+ update!(**args)
39
+ end
40
+
41
+ # Update properties of this object
42
+ def update!(**args)
43
+ @permissions = args[:permissions] if args.key?(:permissions)
44
+ end
45
+ end
46
+
47
+ # Defines an Identity and Access Management (IAM) policy. It is used to
48
+ # specify access control policies for Cloud Platform resources.
49
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
50
+ # `members` to a `role`, where the members can be user accounts, Google groups,
51
+ # Google domains, and service accounts. A `role` is a named list of permissions
52
+ # defined by IAM.
53
+ # **Example**
54
+ # `
55
+ # "bindings": [
56
+ # `
57
+ # "role": "roles/owner",
58
+ # "members": [
59
+ # "user:mike@example.com",
60
+ # "group:admins@example.com",
61
+ # "domain:google.com",
62
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
63
+ # ]
64
+ # `,
65
+ # `
66
+ # "role": "roles/viewer",
67
+ # "members": ["user:sean@example.com"]
68
+ # `
69
+ # ]
70
+ # `
71
+ # For a description of IAM and its features, see the
72
+ # [IAM developer's guide](https://cloud.google.com/iam).
73
+ class Policy
74
+ include Google::Apis::Core::Hashable
75
+
76
+ # `etag` is used for optimistic concurrency control as a way to help
77
+ # prevent simultaneous updates of a policy from overwriting each other.
78
+ # It is strongly suggested that systems make use of the `etag` in the
79
+ # read-modify-write cycle to perform policy updates in order to avoid race
80
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
81
+ # systems are expected to put that etag in the request to `setIamPolicy` to
82
+ # ensure that their change will be applied to the same version of the policy.
83
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
84
+ # policy is overwritten blindly.
85
+ # Corresponds to the JSON property `etag`
86
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
87
+ # @return [String]
88
+ attr_accessor :etag
89
+
90
+ #
91
+ # Corresponds to the JSON property `iamOwned`
92
+ # @return [Boolean]
93
+ attr_accessor :iam_owned
94
+ alias_method :iam_owned?, :iam_owned
95
+
96
+ # If more than one rule is specified, the rules are applied in the following
97
+ # manner:
98
+ # - All matching LOG rules are always applied.
99
+ # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
100
+ # Logging will be applied if one or more matching rule requires logging.
101
+ # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
102
+ # granted.
103
+ # Logging will be applied if one or more matching rule requires logging.
104
+ # - Otherwise, if no rule applies, permission is denied.
105
+ # Corresponds to the JSON property `rules`
106
+ # @return [Array<Google::Apis::SourcerepoV1::Rule>]
107
+ attr_accessor :rules
108
+
109
+ # Version of the `Policy`. The default version is 0.
110
+ # Corresponds to the JSON property `version`
111
+ # @return [Fixnum]
112
+ attr_accessor :version
113
+
114
+ # Specifies cloud audit logging configuration for this policy.
115
+ # Corresponds to the JSON property `auditConfigs`
116
+ # @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
117
+ attr_accessor :audit_configs
118
+
119
+ # Associates a list of `members` to a `role`.
120
+ # Multiple `bindings` must not be specified for the same `role`.
121
+ # `bindings` with no members will result in an error.
122
+ # Corresponds to the JSON property `bindings`
123
+ # @return [Array<Google::Apis::SourcerepoV1::Binding>]
124
+ attr_accessor :bindings
125
+
126
+ def initialize(**args)
127
+ update!(**args)
128
+ end
129
+
130
+ # Update properties of this object
131
+ def update!(**args)
132
+ @etag = args[:etag] if args.key?(:etag)
133
+ @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
134
+ @rules = args[:rules] if args.key?(:rules)
135
+ @version = args[:version] if args.key?(:version)
136
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
137
+ @bindings = args[:bindings] if args.key?(:bindings)
138
+ end
139
+ end
140
+
141
+ # Write a Data Access (Gin) log
142
+ class DataAccessOptions
143
+ include Google::Apis::Core::Hashable
144
+
145
+ def initialize(**args)
146
+ update!(**args)
147
+ end
148
+
149
+ # Update properties of this object
150
+ def update!(**args)
151
+ end
152
+ end
153
+
154
+ # Specifies the audit configuration for a service.
155
+ # The configuration determines which permission types are logged, and what
156
+ # identities, if any, are exempted from logging.
157
+ # An AuditConifg must have one or more AuditLogConfigs.
158
+ # If there are AuditConfigs for both `allServices` and a specific service,
159
+ # the union of the two AuditConfigs is used for that service: the log_types
160
+ # specified in each AuditConfig are enabled, and the exempted_members in each
161
+ # AuditConfig are exempted.
162
+ # Example Policy with multiple AuditConfigs:
163
+ # `
164
+ # "audit_configs": [
165
+ # `
166
+ # "service": "allServices"
167
+ # "audit_log_configs": [
168
+ # `
169
+ # "log_type": "DATA_READ",
170
+ # "exempted_members": [
171
+ # "user:foo@gmail.com"
172
+ # ]
173
+ # `,
174
+ # `
175
+ # "log_type": "DATA_WRITE",
176
+ # `,
177
+ # `
178
+ # "log_type": "ADMIN_READ",
179
+ # `
180
+ # ]
181
+ # `,
182
+ # `
183
+ # "service": "fooservice.googleapis.com"
184
+ # "audit_log_configs": [
185
+ # `
186
+ # "log_type": "DATA_READ",
187
+ # `,
188
+ # `
189
+ # "log_type": "DATA_WRITE",
190
+ # "exempted_members": [
191
+ # "user:bar@gmail.com"
192
+ # ]
193
+ # `
194
+ # ]
195
+ # `
196
+ # ]
197
+ # `
198
+ # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
199
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and
200
+ # bar@gmail.com from DATA_WRITE logging.
201
+ class AuditConfig
202
+ include Google::Apis::Core::Hashable
203
+
204
+ # The configuration for logging of each type of permission.
205
+ # Next ID: 4
206
+ # Corresponds to the JSON property `auditLogConfigs`
207
+ # @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
208
+ attr_accessor :audit_log_configs
209
+
210
+ #
211
+ # Corresponds to the JSON property `exemptedMembers`
212
+ # @return [Array<String>]
213
+ attr_accessor :exempted_members
214
+
215
+ # Specifies a service that will be enabled for audit logging.
216
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
217
+ # `allServices` is a special value that covers all services.
218
+ # Corresponds to the JSON property `service`
219
+ # @return [String]
220
+ attr_accessor :service
221
+
222
+ def initialize(**args)
223
+ update!(**args)
224
+ end
225
+
226
+ # Update properties of this object
227
+ def update!(**args)
228
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
229
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
230
+ @service = args[:service] if args.key?(:service)
231
+ end
232
+ end
233
+
25
234
  # Request message for `SetIamPolicy` method.
26
235
  class SetIamPolicyRequest
27
236
  include Google::Apis::Core::Hashable
@@ -153,14 +362,6 @@ module Google
153
362
  class MirrorConfig
154
363
  include Google::Apis::Core::Hashable
155
364
 
156
- # ID of the webhook listening to updates to trigger mirroring.
157
- # Removing this webook from the other hosting service will stop
158
- # Google Cloud Source Repositories from receiving notifications,
159
- # and thereby disabling mirroring.
160
- # Corresponds to the JSON property `webhookId`
161
- # @return [String]
162
- attr_accessor :webhook_id
163
-
164
365
  # ID of the SSH deploy key at the other hosting service.
165
366
  # Removing this key from the other service would deauthorize
166
367
  # Google Cloud Source Repositories from mirroring.
@@ -173,15 +374,23 @@ module Google
173
374
  # @return [String]
174
375
  attr_accessor :url
175
376
 
377
+ # ID of the webhook listening to updates to trigger mirroring.
378
+ # Removing this webook from the other hosting service will stop
379
+ # Google Cloud Source Repositories from receiving notifications,
380
+ # and thereby disabling mirroring.
381
+ # Corresponds to the JSON property `webhookId`
382
+ # @return [String]
383
+ attr_accessor :webhook_id
384
+
176
385
  def initialize(**args)
177
386
  update!(**args)
178
387
  end
179
388
 
180
389
  # Update properties of this object
181
390
  def update!(**args)
182
- @webhook_id = args[:webhook_id] if args.key?(:webhook_id)
183
391
  @deploy_key_id = args[:deploy_key_id] if args.key?(:deploy_key_id)
184
392
  @url = args[:url] if args.key?(:url)
393
+ @webhook_id = args[:webhook_id] if args.key?(:webhook_id)
185
394
  end
186
395
  end
187
396
 
@@ -189,12 +398,6 @@ module Google
189
398
  class Repo
190
399
  include Google::Apis::Core::Hashable
191
400
 
192
- # Configuration to automatically mirror a repository from another
193
- # hosting service, for example GitHub or BitBucket.
194
- # Corresponds to the JSON property `mirrorConfig`
195
- # @return [Google::Apis::SourcerepoV1::MirrorConfig]
196
- attr_accessor :mirror_config
197
-
198
401
  # URL to clone the repository from Google Cloud Source Repositories.
199
402
  # Corresponds to the JSON property `url`
200
403
  # @return [String]
@@ -211,27 +414,34 @@ module Google
211
414
  # @return [String]
212
415
  attr_accessor :name
213
416
 
417
+ # Configuration to automatically mirror a repository from another
418
+ # hosting service, for example GitHub or BitBucket.
419
+ # Corresponds to the JSON property `mirrorConfig`
420
+ # @return [Google::Apis::SourcerepoV1::MirrorConfig]
421
+ attr_accessor :mirror_config
422
+
214
423
  def initialize(**args)
215
424
  update!(**args)
216
425
  end
217
426
 
218
427
  # Update properties of this object
219
428
  def update!(**args)
220
- @mirror_config = args[:mirror_config] if args.key?(:mirror_config)
221
429
  @url = args[:url] if args.key?(:url)
222
430
  @size = args[:size] if args.key?(:size)
223
431
  @name = args[:name] if args.key?(:name)
432
+ @mirror_config = args[:mirror_config] if args.key?(:mirror_config)
224
433
  end
225
434
  end
226
435
 
227
- # Response for ListRepos.
228
- class ListReposResponse
436
+ # Response message for `TestIamPermissions` method.
437
+ class TestIamPermissionsResponse
229
438
  include Google::Apis::Core::Hashable
230
439
 
231
- # The listed repos.
232
- # Corresponds to the JSON property `repos`
233
- # @return [Array<Google::Apis::SourcerepoV1::Repo>]
234
- attr_accessor :repos
440
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
441
+ # allowed.
442
+ # Corresponds to the JSON property `permissions`
443
+ # @return [Array<String>]
444
+ attr_accessor :permissions
235
445
 
236
446
  def initialize(**args)
237
447
  update!(**args)
@@ -239,24 +449,54 @@ module Google
239
449
 
240
450
  # Update properties of this object
241
451
  def update!(**args)
242
- @repos = args[:repos] if args.key?(:repos)
452
+ @permissions = args[:permissions] if args.key?(:permissions)
243
453
  end
244
454
  end
245
455
 
246
- # A condition to be met.
456
+ # Response for ListRepos.
457
+ class ListReposResponse
458
+ include Google::Apis::Core::Hashable
459
+
460
+ # The listed repos.
461
+ # Corresponds to the JSON property `repos`
462
+ # @return [Array<Google::Apis::SourcerepoV1::Repo>]
463
+ attr_accessor :repos
464
+
465
+ def initialize(**args)
466
+ update!(**args)
467
+ end
468
+
469
+ # Update properties of this object
470
+ def update!(**args)
471
+ @repos = args[:repos] if args.key?(:repos)
472
+ end
473
+ end
474
+
475
+ # A condition to be met.
247
476
  class Condition
248
477
  include Google::Apis::Core::Hashable
249
478
 
250
- # The objects of the condition. This is mutually exclusive with 'value'.
251
- # Corresponds to the JSON property `values`
252
- # @return [Array<String>]
253
- attr_accessor :values
479
+ # DEPRECATED. Use 'values' instead.
480
+ # Corresponds to the JSON property `value`
481
+ # @return [String]
482
+ attr_accessor :value
483
+
484
+ # Trusted attributes supplied by any service that owns resources and uses
485
+ # the IAM system for access control.
486
+ # Corresponds to the JSON property `sys`
487
+ # @return [String]
488
+ attr_accessor :sys
254
489
 
255
490
  # Trusted attributes supplied by the IAM system.
256
491
  # Corresponds to the JSON property `iam`
257
492
  # @return [String]
258
493
  attr_accessor :iam
259
494
 
495
+ # The objects of the condition. This is mutually exclusive with 'value'.
496
+ # Corresponds to the JSON property `values`
497
+ # @return [Array<String>]
498
+ attr_accessor :values
499
+
260
500
  # An operator to apply the subject with.
261
501
  # Corresponds to the JSON property `op`
262
502
  # @return [String]
@@ -267,49 +507,18 @@ module Google
267
507
  # @return [String]
268
508
  attr_accessor :svc
269
509
 
270
- # DEPRECATED. Use 'values' instead.
271
- # Corresponds to the JSON property `value`
272
- # @return [String]
273
- attr_accessor :value
274
-
275
- # Trusted attributes supplied by any service that owns resources and uses
276
- # the IAM system for access control.
277
- # Corresponds to the JSON property `sys`
278
- # @return [String]
279
- attr_accessor :sys
280
-
281
510
  def initialize(**args)
282
511
  update!(**args)
283
512
  end
284
513
 
285
514
  # Update properties of this object
286
515
  def update!(**args)
287
- @values = args[:values] if args.key?(:values)
516
+ @value = args[:value] if args.key?(:value)
517
+ @sys = args[:sys] if args.key?(:sys)
288
518
  @iam = args[:iam] if args.key?(:iam)
519
+ @values = args[:values] if args.key?(:values)
289
520
  @op = args[:op] if args.key?(:op)
290
521
  @svc = args[:svc] if args.key?(:svc)
291
- @value = args[:value] if args.key?(:value)
292
- @sys = args[:sys] if args.key?(:sys)
293
- end
294
- end
295
-
296
- # Response message for `TestIamPermissions` method.
297
- class TestIamPermissionsResponse
298
- include Google::Apis::Core::Hashable
299
-
300
- # A subset of `TestPermissionsRequest.permissions` that the caller is
301
- # allowed.
302
- # Corresponds to the JSON property `permissions`
303
- # @return [Array<String>]
304
- attr_accessor :permissions
305
-
306
- def initialize(**args)
307
- update!(**args)
308
- end
309
-
310
- # Update properties of this object
311
- def update!(**args)
312
- @permissions = args[:permissions] if args.key?(:permissions)
313
522
  end
314
523
  end
315
524
 
@@ -358,11 +567,6 @@ module Google
358
567
  class AuditLogConfig
359
568
  include Google::Apis::Core::Hashable
360
569
 
361
- # The log type that this config enables.
362
- # Corresponds to the JSON property `logType`
363
- # @return [String]
364
- attr_accessor :log_type
365
-
366
570
  # Specifies the identities that do not cause logging for this type of
367
571
  # permission.
368
572
  # Follows the same format of Binding.members.
@@ -370,14 +574,19 @@ module Google
370
574
  # @return [Array<String>]
371
575
  attr_accessor :exempted_members
372
576
 
577
+ # The log type that this config enables.
578
+ # Corresponds to the JSON property `logType`
579
+ # @return [String]
580
+ attr_accessor :log_type
581
+
373
582
  def initialize(**args)
374
583
  update!(**args)
375
584
  end
376
585
 
377
586
  # Update properties of this object
378
587
  def update!(**args)
379
- @log_type = args[:log_type] if args.key?(:log_type)
380
588
  @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
589
+ @log_type = args[:log_type] if args.key?(:log_type)
381
590
  end
382
591
  end
383
592
 
@@ -447,6 +656,11 @@ module Google
447
656
  class LogConfig
448
657
  include Google::Apis::Core::Hashable
449
658
 
659
+ # Write a Cloud Audit log
660
+ # Corresponds to the JSON property `cloudAudit`
661
+ # @return [Google::Apis::SourcerepoV1::CloudAuditOptions]
662
+ attr_accessor :cloud_audit
663
+
450
664
  # Options for counters
451
665
  # Corresponds to the JSON property `counter`
452
666
  # @return [Google::Apis::SourcerepoV1::CounterOptions]
@@ -457,229 +671,15 @@ module Google
457
671
  # @return [Google::Apis::SourcerepoV1::DataAccessOptions]
458
672
  attr_accessor :data_access
459
673
 
460
- # Write a Cloud Audit log
461
- # Corresponds to the JSON property `cloudAudit`
462
- # @return [Google::Apis::SourcerepoV1::CloudAuditOptions]
463
- attr_accessor :cloud_audit
464
-
465
674
  def initialize(**args)
466
675
  update!(**args)
467
676
  end
468
677
 
469
678
  # Update properties of this object
470
679
  def update!(**args)
680
+ @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
471
681
  @counter = args[:counter] if args.key?(:counter)
472
682
  @data_access = args[:data_access] if args.key?(:data_access)
473
- @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
474
- end
475
- end
476
-
477
- # Request message for `TestIamPermissions` method.
478
- class TestIamPermissionsRequest
479
- include Google::Apis::Core::Hashable
480
-
481
- # The set of permissions to check for the `resource`. Permissions with
482
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
483
- # information see
484
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
485
- # Corresponds to the JSON property `permissions`
486
- # @return [Array<String>]
487
- attr_accessor :permissions
488
-
489
- def initialize(**args)
490
- update!(**args)
491
- end
492
-
493
- # Update properties of this object
494
- def update!(**args)
495
- @permissions = args[:permissions] if args.key?(:permissions)
496
- end
497
- end
498
-
499
- # Defines an Identity and Access Management (IAM) policy. It is used to
500
- # specify access control policies for Cloud Platform resources.
501
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
502
- # `members` to a `role`, where the members can be user accounts, Google groups,
503
- # Google domains, and service accounts. A `role` is a named list of permissions
504
- # defined by IAM.
505
- # **Example**
506
- # `
507
- # "bindings": [
508
- # `
509
- # "role": "roles/owner",
510
- # "members": [
511
- # "user:mike@example.com",
512
- # "group:admins@example.com",
513
- # "domain:google.com",
514
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
515
- # ]
516
- # `,
517
- # `
518
- # "role": "roles/viewer",
519
- # "members": ["user:sean@example.com"]
520
- # `
521
- # ]
522
- # `
523
- # For a description of IAM and its features, see the
524
- # [IAM developer's guide](https://cloud.google.com/iam).
525
- class Policy
526
- include Google::Apis::Core::Hashable
527
-
528
- #
529
- # Corresponds to the JSON property `iamOwned`
530
- # @return [Boolean]
531
- attr_accessor :iam_owned
532
- alias_method :iam_owned?, :iam_owned
533
-
534
- # If more than one rule is specified, the rules are applied in the following
535
- # manner:
536
- # - All matching LOG rules are always applied.
537
- # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
538
- # Logging will be applied if one or more matching rule requires logging.
539
- # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
540
- # granted.
541
- # Logging will be applied if one or more matching rule requires logging.
542
- # - Otherwise, if no rule applies, permission is denied.
543
- # Corresponds to the JSON property `rules`
544
- # @return [Array<Google::Apis::SourcerepoV1::Rule>]
545
- attr_accessor :rules
546
-
547
- # Version of the `Policy`. The default version is 0.
548
- # Corresponds to the JSON property `version`
549
- # @return [Fixnum]
550
- attr_accessor :version
551
-
552
- # Specifies cloud audit logging configuration for this policy.
553
- # Corresponds to the JSON property `auditConfigs`
554
- # @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
555
- attr_accessor :audit_configs
556
-
557
- # Associates a list of `members` to a `role`.
558
- # Multiple `bindings` must not be specified for the same `role`.
559
- # `bindings` with no members will result in an error.
560
- # Corresponds to the JSON property `bindings`
561
- # @return [Array<Google::Apis::SourcerepoV1::Binding>]
562
- attr_accessor :bindings
563
-
564
- # `etag` is used for optimistic concurrency control as a way to help
565
- # prevent simultaneous updates of a policy from overwriting each other.
566
- # It is strongly suggested that systems make use of the `etag` in the
567
- # read-modify-write cycle to perform policy updates in order to avoid race
568
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
569
- # systems are expected to put that etag in the request to `setIamPolicy` to
570
- # ensure that their change will be applied to the same version of the policy.
571
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
572
- # policy is overwritten blindly.
573
- # Corresponds to the JSON property `etag`
574
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
575
- # @return [String]
576
- attr_accessor :etag
577
-
578
- def initialize(**args)
579
- update!(**args)
580
- end
581
-
582
- # Update properties of this object
583
- def update!(**args)
584
- @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
585
- @rules = args[:rules] if args.key?(:rules)
586
- @version = args[:version] if args.key?(:version)
587
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
588
- @bindings = args[:bindings] if args.key?(:bindings)
589
- @etag = args[:etag] if args.key?(:etag)
590
- end
591
- end
592
-
593
- # Write a Data Access (Gin) log
594
- class DataAccessOptions
595
- include Google::Apis::Core::Hashable
596
-
597
- def initialize(**args)
598
- update!(**args)
599
- end
600
-
601
- # Update properties of this object
602
- def update!(**args)
603
- end
604
- end
605
-
606
- # Specifies the audit configuration for a service.
607
- # The configuration determines which permission types are logged, and what
608
- # identities, if any, are exempted from logging.
609
- # An AuditConifg must have one or more AuditLogConfigs.
610
- # If there are AuditConfigs for both `allServices` and a specific service,
611
- # the union of the two AuditConfigs is used for that service: the log_types
612
- # specified in each AuditConfig are enabled, and the exempted_members in each
613
- # AuditConfig are exempted.
614
- # Example Policy with multiple AuditConfigs:
615
- # `
616
- # "audit_configs": [
617
- # `
618
- # "service": "allServices"
619
- # "audit_log_configs": [
620
- # `
621
- # "log_type": "DATA_READ",
622
- # "exempted_members": [
623
- # "user:foo@gmail.com"
624
- # ]
625
- # `,
626
- # `
627
- # "log_type": "DATA_WRITE",
628
- # `,
629
- # `
630
- # "log_type": "ADMIN_READ",
631
- # `
632
- # ]
633
- # `,
634
- # `
635
- # "service": "fooservice@googleapis.com"
636
- # "audit_log_configs": [
637
- # `
638
- # "log_type": "DATA_READ",
639
- # `,
640
- # `
641
- # "log_type": "DATA_WRITE",
642
- # "exempted_members": [
643
- # "user:bar@gmail.com"
644
- # ]
645
- # `
646
- # ]
647
- # `
648
- # ]
649
- # `
650
- # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
651
- # logging. It also exempts foo@gmail.com from DATA_READ logging, and
652
- # bar@gmail.com from DATA_WRITE logging.
653
- class AuditConfig
654
- include Google::Apis::Core::Hashable
655
-
656
- # The configuration for logging of each type of permission.
657
- # Next ID: 4
658
- # Corresponds to the JSON property `auditLogConfigs`
659
- # @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
660
- attr_accessor :audit_log_configs
661
-
662
- #
663
- # Corresponds to the JSON property `exemptedMembers`
664
- # @return [Array<String>]
665
- attr_accessor :exempted_members
666
-
667
- # Specifies a service that will be enabled for audit logging.
668
- # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
669
- # `allServices` is a special value that covers all services.
670
- # Corresponds to the JSON property `service`
671
- # @return [String]
672
- attr_accessor :service
673
-
674
- def initialize(**args)
675
- update!(**args)
676
- end
677
-
678
- # Update properties of this object
679
- def update!(**args)
680
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
681
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
682
- @service = args[:service] if args.key?(:service)
683
683
  end
684
684
  end
685
685
  end