google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -50,11 +50,11 @@ module Google
50
50
  # Gets the latest version of the specified presentation.
51
51
  # @param [String] presentation_id
52
52
  # The ID of the presentation to retrieve.
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
53
55
  # @param [String] quota_user
54
56
  # Available to use for quota purposes for server-side applications. Can be any
55
57
  # 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
58
  # @param [Google::Apis::RequestOptions] options
59
59
  # Request-specific options
60
60
  #
@@ -67,13 +67,13 @@ module Google
67
67
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
68
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
69
  # @raise [Google::Apis::AuthorizationError] Authorization is required
70
- def get_presentation(presentation_id, quota_user: nil, fields: nil, options: nil, &block)
70
+ def get_presentation(presentation_id, fields: nil, quota_user: nil, options: nil, &block)
71
71
  command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
72
72
  command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
73
73
  command.response_class = Google::Apis::SlidesV1::Presentation
74
74
  command.params['presentationId'] = presentation_id unless presentation_id.nil?
75
- command.query['quotaUser'] = quota_user unless quota_user.nil?
76
75
  command.query['fields'] = fields unless fields.nil?
76
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
77
77
  execute_or_queue_command(command, &block)
78
78
  end
79
79
 
@@ -81,11 +81,11 @@ module Google
81
81
  # fields in the request are ignored.
82
82
  # Returns the created presentation.
83
83
  # @param [Google::Apis::SlidesV1::Presentation] presentation_object
84
+ # @param [String] fields
85
+ # Selector specifying which fields to include in a partial response.
84
86
  # @param [String] quota_user
85
87
  # Available to use for quota purposes for server-side applications. Can be any
86
88
  # arbitrary string assigned to a user, but should not exceed 40 characters.
87
- # @param [String] fields
88
- # Selector specifying which fields to include in a partial response.
89
89
  # @param [Google::Apis::RequestOptions] options
90
90
  # Request-specific options
91
91
  #
@@ -98,14 +98,14 @@ module Google
98
98
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
99
99
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
100
100
  # @raise [Google::Apis::AuthorizationError] Authorization is required
101
- def create_presentation(presentation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
101
+ def create_presentation(presentation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
102
102
  command = make_simple_command(:post, 'v1/presentations', options)
103
103
  command.request_representation = Google::Apis::SlidesV1::Presentation::Representation
104
104
  command.request_object = presentation_object
105
105
  command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
106
106
  command.response_class = Google::Apis::SlidesV1::Presentation
107
- command.query['quotaUser'] = quota_user unless quota_user.nil?
108
107
  command.query['fields'] = fields unless fields.nil?
108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
109
109
  execute_or_queue_command(command, &block)
110
110
  end
111
111
 
@@ -129,11 +129,11 @@ module Google
129
129
  # @param [String] presentation_id
130
130
  # The presentation to apply the updates to.
131
131
  # @param [Google::Apis::SlidesV1::BatchUpdatePresentationRequest] batch_update_presentation_request_object
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
132
134
  # @param [String] quota_user
133
135
  # Available to use for quota purposes for server-side applications. Can be any
134
136
  # arbitrary string assigned to a user, but should not exceed 40 characters.
135
- # @param [String] fields
136
- # Selector specifying which fields to include in a partial response.
137
137
  # @param [Google::Apis::RequestOptions] options
138
138
  # Request-specific options
139
139
  #
@@ -146,91 +146,91 @@ module Google
146
146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
149
- def batch_update_presentation(presentation_id, batch_update_presentation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
149
+ def batch_update_presentation(presentation_id, batch_update_presentation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
150
150
  command = make_simple_command(:post, 'v1/presentations/{presentationId}:batchUpdate', options)
151
151
  command.request_representation = Google::Apis::SlidesV1::BatchUpdatePresentationRequest::Representation
152
152
  command.request_object = batch_update_presentation_request_object
153
153
  command.response_representation = Google::Apis::SlidesV1::BatchUpdatePresentationResponse::Representation
154
154
  command.response_class = Google::Apis::SlidesV1::BatchUpdatePresentationResponse
155
155
  command.params['presentationId'] = presentation_id unless presentation_id.nil?
156
- command.query['quotaUser'] = quota_user unless quota_user.nil?
157
156
  command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
158
  execute_or_queue_command(command, &block)
159
159
  end
160
160
 
161
- # Generates a thumbnail of the latest version of the specified page in the
162
- # presentation and returns a URL to the thumbnail image.
161
+ # Gets the latest version of the specified page in the presentation.
163
162
  # @param [String] presentation_id
164
163
  # The ID of the presentation to retrieve.
165
164
  # @param [String] page_object_id
166
- # The object ID of the page whose thumbnail to retrieve.
167
- # @param [String] thumbnail_properties_mime_type
168
- # The optional mime type of the thumbnail image.
169
- # If you don't specify the mime type, the default mime type will be PNG.
170
- # @param [String] thumbnail_properties_thumbnail_size
171
- # The optional thumbnail image size.
172
- # If you don't specify the size, the server chooses a default size of the
173
- # image.
165
+ # The object ID of the page to retrieve.
166
+ # @param [String] fields
167
+ # Selector specifying which fields to include in a partial response.
174
168
  # @param [String] quota_user
175
169
  # Available to use for quota purposes for server-side applications. Can be any
176
170
  # arbitrary string assigned to a user, but should not exceed 40 characters.
177
- # @param [String] fields
178
- # Selector specifying which fields to include in a partial response.
179
171
  # @param [Google::Apis::RequestOptions] options
180
172
  # Request-specific options
181
173
  #
182
174
  # @yield [result, err] Result & error if block supplied
183
- # @yieldparam result [Google::Apis::SlidesV1::Thumbnail] parsed result object
175
+ # @yieldparam result [Google::Apis::SlidesV1::Page] parsed result object
184
176
  # @yieldparam err [StandardError] error object if request failed
185
177
  #
186
- # @return [Google::Apis::SlidesV1::Thumbnail]
178
+ # @return [Google::Apis::SlidesV1::Page]
187
179
  #
188
180
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
189
181
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
190
182
  # @raise [Google::Apis::AuthorizationError] Authorization is required
191
- def get_presentation_page_thumbnail(presentation_id, page_object_id, thumbnail_properties_mime_type: nil, thumbnail_properties_thumbnail_size: nil, quota_user: nil, fields: nil, options: nil, &block)
192
- command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail', options)
193
- command.response_representation = Google::Apis::SlidesV1::Thumbnail::Representation
194
- command.response_class = Google::Apis::SlidesV1::Thumbnail
183
+ def get_presentation_page(presentation_id, page_object_id, fields: nil, quota_user: nil, options: nil, &block)
184
+ command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
185
+ command.response_representation = Google::Apis::SlidesV1::Page::Representation
186
+ command.response_class = Google::Apis::SlidesV1::Page
195
187
  command.params['presentationId'] = presentation_id unless presentation_id.nil?
196
188
  command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
197
- command.query['thumbnailProperties.mimeType'] = thumbnail_properties_mime_type unless thumbnail_properties_mime_type.nil?
198
- command.query['thumbnailProperties.thumbnailSize'] = thumbnail_properties_thumbnail_size unless thumbnail_properties_thumbnail_size.nil?
199
- command.query['quotaUser'] = quota_user unless quota_user.nil?
200
189
  command.query['fields'] = fields unless fields.nil?
190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
201
191
  execute_or_queue_command(command, &block)
202
192
  end
203
193
 
204
- # Gets the latest version of the specified page in the presentation.
194
+ # Generates a thumbnail of the latest version of the specified page in the
195
+ # presentation and returns a URL to the thumbnail image.
205
196
  # @param [String] presentation_id
206
197
  # The ID of the presentation to retrieve.
207
198
  # @param [String] page_object_id
208
- # The object ID of the page to retrieve.
199
+ # The object ID of the page whose thumbnail to retrieve.
200
+ # @param [String] thumbnail_properties_mime_type
201
+ # The optional mime type of the thumbnail image.
202
+ # If you don't specify the mime type, the default mime type will be PNG.
203
+ # @param [String] thumbnail_properties_thumbnail_size
204
+ # The optional thumbnail image size.
205
+ # If you don't specify the size, the server chooses a default size of the
206
+ # image.
207
+ # @param [String] fields
208
+ # Selector specifying which fields to include in a partial response.
209
209
  # @param [String] quota_user
210
210
  # Available to use for quota purposes for server-side applications. Can be any
211
211
  # arbitrary string assigned to a user, but should not exceed 40 characters.
212
- # @param [String] fields
213
- # Selector specifying which fields to include in a partial response.
214
212
  # @param [Google::Apis::RequestOptions] options
215
213
  # Request-specific options
216
214
  #
217
215
  # @yield [result, err] Result & error if block supplied
218
- # @yieldparam result [Google::Apis::SlidesV1::Page] parsed result object
216
+ # @yieldparam result [Google::Apis::SlidesV1::Thumbnail] parsed result object
219
217
  # @yieldparam err [StandardError] error object if request failed
220
218
  #
221
- # @return [Google::Apis::SlidesV1::Page]
219
+ # @return [Google::Apis::SlidesV1::Thumbnail]
222
220
  #
223
221
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
222
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
223
  # @raise [Google::Apis::AuthorizationError] Authorization is required
226
- def get_presentation_page(presentation_id, page_object_id, quota_user: nil, fields: nil, options: nil, &block)
227
- command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
228
- command.response_representation = Google::Apis::SlidesV1::Page::Representation
229
- command.response_class = Google::Apis::SlidesV1::Page
224
+ def get_presentation_page_thumbnail(presentation_id, page_object_id, thumbnail_properties_mime_type: nil, thumbnail_properties_thumbnail_size: nil, fields: nil, quota_user: nil, options: nil, &block)
225
+ command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail', options)
226
+ command.response_representation = Google::Apis::SlidesV1::Thumbnail::Representation
227
+ command.response_class = Google::Apis::SlidesV1::Thumbnail
230
228
  command.params['presentationId'] = presentation_id unless presentation_id.nil?
231
229
  command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
232
- command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ command.query['thumbnailProperties.mimeType'] = thumbnail_properties_mime_type unless thumbnail_properties_mime_type.nil?
231
+ command.query['thumbnailProperties.thumbnailSize'] = thumbnail_properties_thumbnail_size unless thumbnail_properties_thumbnail_size.nil?
233
232
  command.query['fields'] = fields unless fields.nil?
233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
234
234
  execute_or_queue_command(command, &block)
235
235
  end
236
236
 
@@ -22,10 +22,10 @@ module Google
22
22
  #
23
23
  # Access source code repositories hosted by Google.
24
24
  #
25
- # @see https://cloud.google.com/eap/cloud-repositories/cloud-sourcerepo-api
25
+ # @see https://cloud.google.com/source-repositories/docs/apis
26
26
  module SourcerepoV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170410'
28
+ REVISION = '20170502'
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,304 @@ module Google
22
22
  module Apis
23
23
  module SourcerepoV1
24
24
 
25
+ # A repository (or repo) is a Git repository storing versioned source content.
26
+ class Repo
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Configuration to automatically mirror a repository from another
30
+ # hosting service, for example GitHub or BitBucket.
31
+ # Corresponds to the JSON property `mirrorConfig`
32
+ # @return [Google::Apis::SourcerepoV1::MirrorConfig]
33
+ attr_accessor :mirror_config
34
+
35
+ # URL to clone the repository from Google Cloud Source Repositories.
36
+ # Corresponds to the JSON property `url`
37
+ # @return [String]
38
+ attr_accessor :url
39
+
40
+ # The disk usage of the repo, in bytes.
41
+ # Only returned by GetRepo.
42
+ # Corresponds to the JSON property `size`
43
+ # @return [Fixnum]
44
+ attr_accessor :size
45
+
46
+ # Resource name of the repository, of the form
47
+ # `projects/<project>/repos/<repo>`.
48
+ # Corresponds to the JSON property `name`
49
+ # @return [String]
50
+ attr_accessor :name
51
+
52
+ def initialize(**args)
53
+ update!(**args)
54
+ end
55
+
56
+ # Update properties of this object
57
+ def update!(**args)
58
+ @mirror_config = args[:mirror_config] if args.key?(:mirror_config)
59
+ @url = args[:url] if args.key?(:url)
60
+ @size = args[:size] if args.key?(:size)
61
+ @name = args[:name] if args.key?(:name)
62
+ end
63
+ end
64
+
65
+ # A condition to be met.
66
+ class Condition
67
+ include Google::Apis::Core::Hashable
68
+
69
+ # Trusted attributes supplied by any service that owns resources and uses
70
+ # the IAM system for access control.
71
+ # Corresponds to the JSON property `sys`
72
+ # @return [String]
73
+ attr_accessor :sys
74
+
75
+ # DEPRECATED. Use 'values' instead.
76
+ # Corresponds to the JSON property `value`
77
+ # @return [String]
78
+ attr_accessor :value
79
+
80
+ # Trusted attributes supplied by the IAM system.
81
+ # Corresponds to the JSON property `iam`
82
+ # @return [String]
83
+ attr_accessor :iam
84
+
85
+ # The objects of the condition. This is mutually exclusive with 'value'.
86
+ # Corresponds to the JSON property `values`
87
+ # @return [Array<String>]
88
+ attr_accessor :values
89
+
90
+ # An operator to apply the subject with.
91
+ # Corresponds to the JSON property `op`
92
+ # @return [String]
93
+ attr_accessor :op
94
+
95
+ # Trusted attributes discharged by the service.
96
+ # Corresponds to the JSON property `svc`
97
+ # @return [String]
98
+ attr_accessor :svc
99
+
100
+ def initialize(**args)
101
+ update!(**args)
102
+ end
103
+
104
+ # Update properties of this object
105
+ def update!(**args)
106
+ @sys = args[:sys] if args.key?(:sys)
107
+ @value = args[:value] if args.key?(:value)
108
+ @iam = args[:iam] if args.key?(:iam)
109
+ @values = args[:values] if args.key?(:values)
110
+ @op = args[:op] if args.key?(:op)
111
+ @svc = args[:svc] if args.key?(:svc)
112
+ end
113
+ end
114
+
115
+ # Response for ListRepos.
116
+ class ListReposResponse
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # If non-empty, additional repositories exist within the project. These
120
+ # can be retrieved by including this value in the next ListReposRequest's
121
+ # page_token field.
122
+ # Corresponds to the JSON property `nextPageToken`
123
+ # @return [String]
124
+ attr_accessor :next_page_token
125
+
126
+ # The listed repos.
127
+ # Corresponds to the JSON property `repos`
128
+ # @return [Array<Google::Apis::SourcerepoV1::Repo>]
129
+ attr_accessor :repos
130
+
131
+ def initialize(**args)
132
+ update!(**args)
133
+ end
134
+
135
+ # Update properties of this object
136
+ def update!(**args)
137
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
138
+ @repos = args[:repos] if args.key?(:repos)
139
+ end
140
+ end
141
+
142
+ # Response message for `TestIamPermissions` method.
143
+ class TestIamPermissionsResponse
144
+ include Google::Apis::Core::Hashable
145
+
146
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
147
+ # allowed.
148
+ # Corresponds to the JSON property `permissions`
149
+ # @return [Array<String>]
150
+ attr_accessor :permissions
151
+
152
+ def initialize(**args)
153
+ update!(**args)
154
+ end
155
+
156
+ # Update properties of this object
157
+ def update!(**args)
158
+ @permissions = args[:permissions] if args.key?(:permissions)
159
+ end
160
+ end
161
+
162
+ # Options for counters
163
+ class CounterOptions
164
+ include Google::Apis::Core::Hashable
165
+
166
+ # The metric to update.
167
+ # Corresponds to the JSON property `metric`
168
+ # @return [String]
169
+ attr_accessor :metric
170
+
171
+ # The field value to attribute.
172
+ # Corresponds to the JSON property `field`
173
+ # @return [String]
174
+ attr_accessor :field
175
+
176
+ def initialize(**args)
177
+ update!(**args)
178
+ end
179
+
180
+ # Update properties of this object
181
+ def update!(**args)
182
+ @metric = args[:metric] if args.key?(:metric)
183
+ @field = args[:field] if args.key?(:field)
184
+ end
185
+ end
186
+
187
+ # Provides the configuration for logging a type of permissions.
188
+ # Example:
189
+ # `
190
+ # "audit_log_configs": [
191
+ # `
192
+ # "log_type": "DATA_READ",
193
+ # "exempted_members": [
194
+ # "user:foo@gmail.com"
195
+ # ]
196
+ # `,
197
+ # `
198
+ # "log_type": "DATA_WRITE",
199
+ # `
200
+ # ]
201
+ # `
202
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
203
+ # foo@gmail.com from DATA_READ logging.
204
+ class AuditLogConfig
205
+ include Google::Apis::Core::Hashable
206
+
207
+ # Specifies the identities that do not cause logging for this type of
208
+ # permission.
209
+ # Follows the same format of Binding.members.
210
+ # Corresponds to the JSON property `exemptedMembers`
211
+ # @return [Array<String>]
212
+ attr_accessor :exempted_members
213
+
214
+ # The log type that this config enables.
215
+ # Corresponds to the JSON property `logType`
216
+ # @return [String]
217
+ attr_accessor :log_type
218
+
219
+ def initialize(**args)
220
+ update!(**args)
221
+ end
222
+
223
+ # Update properties of this object
224
+ def update!(**args)
225
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
226
+ @log_type = args[:log_type] if args.key?(:log_type)
227
+ end
228
+ end
229
+
230
+ # A rule to be applied in a Policy.
231
+ class Rule
232
+ include Google::Apis::Core::Hashable
233
+
234
+ # If one or more 'not_in' clauses are specified, the rule matches
235
+ # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
236
+ # The format for in and not_in entries is the same as for members in a
237
+ # Binding (see google/iam/v1/policy.proto).
238
+ # Corresponds to the JSON property `notIn`
239
+ # @return [Array<String>]
240
+ attr_accessor :not_in
241
+
242
+ # Human-readable description of the rule.
243
+ # Corresponds to the JSON property `description`
244
+ # @return [String]
245
+ attr_accessor :description
246
+
247
+ # Additional restrictions that must be met
248
+ # Corresponds to the JSON property `conditions`
249
+ # @return [Array<Google::Apis::SourcerepoV1::Condition>]
250
+ attr_accessor :conditions
251
+
252
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
253
+ # that match the LOG action.
254
+ # Corresponds to the JSON property `logConfig`
255
+ # @return [Array<Google::Apis::SourcerepoV1::LogConfig>]
256
+ attr_accessor :log_config
257
+
258
+ # If one or more 'in' clauses are specified, the rule matches if
259
+ # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
260
+ # Corresponds to the JSON property `in`
261
+ # @return [Array<String>]
262
+ attr_accessor :in
263
+
264
+ # A permission is a string of form '<service>.<resource type>.<verb>'
265
+ # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
266
+ # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
267
+ # Corresponds to the JSON property `permissions`
268
+ # @return [Array<String>]
269
+ attr_accessor :permissions
270
+
271
+ # Required
272
+ # Corresponds to the JSON property `action`
273
+ # @return [String]
274
+ attr_accessor :action
275
+
276
+ def initialize(**args)
277
+ update!(**args)
278
+ end
279
+
280
+ # Update properties of this object
281
+ def update!(**args)
282
+ @not_in = args[:not_in] if args.key?(:not_in)
283
+ @description = args[:description] if args.key?(:description)
284
+ @conditions = args[:conditions] if args.key?(:conditions)
285
+ @log_config = args[:log_config] if args.key?(:log_config)
286
+ @in = args[:in] if args.key?(:in)
287
+ @permissions = args[:permissions] if args.key?(:permissions)
288
+ @action = args[:action] if args.key?(:action)
289
+ end
290
+ end
291
+
292
+ # Specifies what kind of log the caller must write
293
+ class LogConfig
294
+ include Google::Apis::Core::Hashable
295
+
296
+ # Write a Data Access (Gin) log
297
+ # Corresponds to the JSON property `dataAccess`
298
+ # @return [Google::Apis::SourcerepoV1::DataAccessOptions]
299
+ attr_accessor :data_access
300
+
301
+ # Write a Cloud Audit log
302
+ # Corresponds to the JSON property `cloudAudit`
303
+ # @return [Google::Apis::SourcerepoV1::CloudAuditOptions]
304
+ attr_accessor :cloud_audit
305
+
306
+ # Options for counters
307
+ # Corresponds to the JSON property `counter`
308
+ # @return [Google::Apis::SourcerepoV1::CounterOptions]
309
+ attr_accessor :counter
310
+
311
+ def initialize(**args)
312
+ update!(**args)
313
+ end
314
+
315
+ # Update properties of this object
316
+ def update!(**args)
317
+ @data_access = args[:data_access] if args.key?(:data_access)
318
+ @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
319
+ @counter = args[:counter] if args.key?(:counter)
320
+ end
321
+ end
322
+
25
323
  # Request message for `TestIamPermissions` method.
26
324
  class TestIamPermissionsRequest
27
325
  include Google::Apis::Core::Hashable
@@ -73,6 +371,13 @@ module Google
73
371
  class Policy
74
372
  include Google::Apis::Core::Hashable
75
373
 
374
+ # Associates a list of `members` to a `role`.
375
+ # Multiple `bindings` must not be specified for the same `role`.
376
+ # `bindings` with no members will result in an error.
377
+ # Corresponds to the JSON property `bindings`
378
+ # @return [Array<Google::Apis::SourcerepoV1::Binding>]
379
+ attr_accessor :bindings
380
+
76
381
  # `etag` is used for optimistic concurrency control as a way to help
77
382
  # prevent simultaneous updates of a policy from overwriting each other.
78
383
  # It is strongly suggested that systems make use of the `etag` in the
@@ -113,15 +418,8 @@ module Google
113
418
 
114
419
  # Specifies cloud audit logging configuration for this policy.
115
420
  # 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
421
+ # @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
422
+ attr_accessor :audit_configs
125
423
 
126
424
  def initialize(**args)
127
425
  update!(**args)
@@ -129,12 +427,12 @@ module Google
129
427
 
130
428
  # Update properties of this object
131
429
  def update!(**args)
430
+ @bindings = args[:bindings] if args.key?(:bindings)
132
431
  @etag = args[:etag] if args.key?(:etag)
133
432
  @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
134
433
  @rules = args[:rules] if args.key?(:rules)
135
434
  @version = args[:version] if args.key?(:version)
136
435
  @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
137
- @bindings = args[:bindings] if args.key?(:bindings)
138
436
  end
139
437
  end
140
438
 
@@ -154,7 +452,7 @@ module Google
154
452
  # Specifies the audit configuration for a service.
155
453
  # The configuration determines which permission types are logged, and what
156
454
  # identities, if any, are exempted from logging.
157
- # An AuditConifg must have one or more AuditLogConfigs.
455
+ # An AuditConfig must have one or more AuditLogConfigs.
158
456
  # If there are AuditConfigs for both `allServices` and a specific service,
159
457
  # the union of the two AuditConfigs is used for that service: the log_types
160
458
  # specified in each AuditConfig are enabled, and the exempted_members in each
@@ -201,17 +499,6 @@ module Google
201
499
  class AuditConfig
202
500
  include Google::Apis::Core::Hashable
203
501
 
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
502
  # Specifies a service that will be enabled for audit logging.
216
503
  # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
217
504
  # `allServices` is a special value that covers all services.
@@ -219,248 +506,16 @@ module Google
219
506
  # @return [String]
220
507
  attr_accessor :service
221
508
 
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
-
234
- # Request message for `SetIamPolicy` method.
235
- class SetIamPolicyRequest
236
- include Google::Apis::Core::Hashable
237
-
238
- # Defines an Identity and Access Management (IAM) policy. It is used to
239
- # specify access control policies for Cloud Platform resources.
240
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
241
- # `members` to a `role`, where the members can be user accounts, Google groups,
242
- # Google domains, and service accounts. A `role` is a named list of permissions
243
- # defined by IAM.
244
- # **Example**
245
- # `
246
- # "bindings": [
247
- # `
248
- # "role": "roles/owner",
249
- # "members": [
250
- # "user:mike@example.com",
251
- # "group:admins@example.com",
252
- # "domain:google.com",
253
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
254
- # ]
255
- # `,
256
- # `
257
- # "role": "roles/viewer",
258
- # "members": ["user:sean@example.com"]
259
- # `
260
- # ]
261
- # `
262
- # For a description of IAM and its features, see the
263
- # [IAM developer's guide](https://cloud.google.com/iam).
264
- # Corresponds to the JSON property `policy`
265
- # @return [Google::Apis::SourcerepoV1::Policy]
266
- attr_accessor :policy
267
-
268
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
269
- # the fields in the mask will be modified. If no mask is provided, the
270
- # following default mask is used:
271
- # paths: "bindings, etag"
272
- # This field is only used by Cloud IAM.
273
- # Corresponds to the JSON property `updateMask`
274
- # @return [String]
275
- attr_accessor :update_mask
276
-
277
- def initialize(**args)
278
- update!(**args)
279
- end
280
-
281
- # Update properties of this object
282
- def update!(**args)
283
- @policy = args[:policy] if args.key?(:policy)
284
- @update_mask = args[:update_mask] if args.key?(:update_mask)
285
- end
286
- end
287
-
288
- # Write a Cloud Audit log
289
- class CloudAuditOptions
290
- include Google::Apis::Core::Hashable
291
-
292
- def initialize(**args)
293
- update!(**args)
294
- end
295
-
296
- # Update properties of this object
297
- def update!(**args)
298
- end
299
- end
300
-
301
- # Associates `members` with a `role`.
302
- class Binding
303
- include Google::Apis::Core::Hashable
304
-
305
- # Specifies the identities requesting access for a Cloud Platform resource.
306
- # `members` can have the following values:
307
- # * `allUsers`: A special identifier that represents anyone who is
308
- # on the internet; with or without a Google account.
309
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
310
- # who is authenticated with a Google account or a service account.
311
- # * `user:`emailid``: An email address that represents a specific Google
312
- # account. For example, `alice@gmail.com` or `joe@example.com`.
313
- # * `serviceAccount:`emailid``: An email address that represents a service
314
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
315
- # * `group:`emailid``: An email address that represents a Google group.
316
- # For example, `admins@example.com`.
317
- # * `domain:`domain``: A Google Apps domain name that represents all the
318
- # users of that domain. For example, `google.com` or `example.com`.
319
- # Corresponds to the JSON property `members`
320
- # @return [Array<String>]
321
- attr_accessor :members
322
-
323
- # Role that is assigned to `members`.
324
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
325
- # Required
326
- # Corresponds to the JSON property `role`
327
- # @return [String]
328
- attr_accessor :role
329
-
330
- def initialize(**args)
331
- update!(**args)
332
- end
333
-
334
- # Update properties of this object
335
- def update!(**args)
336
- @members = args[:members] if args.key?(:members)
337
- @role = args[:role] if args.key?(:role)
338
- end
339
- end
340
-
341
- # A generic empty message that you can re-use to avoid defining duplicated
342
- # empty messages in your APIs. A typical example is to use it as the request
343
- # or the response type of an API method. For instance:
344
- # service Foo `
345
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
346
- # `
347
- # The JSON representation for `Empty` is empty JSON object ````.
348
- class Empty
349
- include Google::Apis::Core::Hashable
350
-
351
- def initialize(**args)
352
- update!(**args)
353
- end
354
-
355
- # Update properties of this object
356
- def update!(**args)
357
- end
358
- end
359
-
360
- # Configuration to automatically mirror a repository from another
361
- # hosting service, for example GitHub or BitBucket.
362
- class MirrorConfig
363
- include Google::Apis::Core::Hashable
364
-
365
- # ID of the SSH deploy key at the other hosting service.
366
- # Removing this key from the other service would deauthorize
367
- # Google Cloud Source Repositories from mirroring.
368
- # Corresponds to the JSON property `deployKeyId`
369
- # @return [String]
370
- attr_accessor :deploy_key_id
371
-
372
- # URL of the main repository at the other hosting service.
373
- # Corresponds to the JSON property `url`
374
- # @return [String]
375
- attr_accessor :url
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
-
385
- def initialize(**args)
386
- update!(**args)
387
- end
388
-
389
- # Update properties of this object
390
- def update!(**args)
391
- @deploy_key_id = args[:deploy_key_id] if args.key?(:deploy_key_id)
392
- @url = args[:url] if args.key?(:url)
393
- @webhook_id = args[:webhook_id] if args.key?(:webhook_id)
394
- end
395
- end
396
-
397
- # A repository (or repo) is a Git repository storing versioned source content.
398
- class Repo
399
- include Google::Apis::Core::Hashable
400
-
401
- # URL to clone the repository from Google Cloud Source Repositories.
402
- # Corresponds to the JSON property `url`
403
- # @return [String]
404
- attr_accessor :url
405
-
406
- # The size in bytes of the repo.
407
- # Corresponds to the JSON property `size`
408
- # @return [Fixnum]
409
- attr_accessor :size
410
-
411
- # Resource name of the repository, of the form
412
- # `projects/<project>/repos/<repo>`.
413
- # Corresponds to the JSON property `name`
414
- # @return [String]
415
- attr_accessor :name
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
-
423
- def initialize(**args)
424
- update!(**args)
425
- end
426
-
427
- # Update properties of this object
428
- def update!(**args)
429
- @url = args[:url] if args.key?(:url)
430
- @size = args[:size] if args.key?(:size)
431
- @name = args[:name] if args.key?(:name)
432
- @mirror_config = args[:mirror_config] if args.key?(:mirror_config)
433
- end
434
- end
435
-
436
- # Response message for `TestIamPermissions` method.
437
- class TestIamPermissionsResponse
438
- include Google::Apis::Core::Hashable
439
-
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
445
-
446
- def initialize(**args)
447
- update!(**args)
448
- end
449
-
450
- # Update properties of this object
451
- def update!(**args)
452
- @permissions = args[:permissions] if args.key?(:permissions)
453
- end
454
- end
455
-
456
- # Response for ListRepos.
457
- class ListReposResponse
458
- include Google::Apis::Core::Hashable
509
+ # The configuration for logging of each type of permission.
510
+ # Next ID: 4
511
+ # Corresponds to the JSON property `auditLogConfigs`
512
+ # @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
513
+ attr_accessor :audit_log_configs
459
514
 
460
- # The listed repos.
461
- # Corresponds to the JSON property `repos`
462
- # @return [Array<Google::Apis::SourcerepoV1::Repo>]
463
- attr_accessor :repos
515
+ #
516
+ # Corresponds to the JSON property `exemptedMembers`
517
+ # @return [Array<String>]
518
+ attr_accessor :exempted_members
464
519
 
465
520
  def initialize(**args)
466
521
  update!(**args)
@@ -468,44 +523,54 @@ module Google
468
523
 
469
524
  # Update properties of this object
470
525
  def update!(**args)
471
- @repos = args[:repos] if args.key?(:repos)
526
+ @service = args[:service] if args.key?(:service)
527
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
528
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
472
529
  end
473
530
  end
474
531
 
475
- # A condition to be met.
476
- class Condition
532
+ # Request message for `SetIamPolicy` method.
533
+ class SetIamPolicyRequest
477
534
  include Google::Apis::Core::Hashable
478
535
 
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
489
-
490
- # Trusted attributes supplied by the IAM system.
491
- # Corresponds to the JSON property `iam`
492
- # @return [String]
493
- attr_accessor :iam
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
-
500
- # An operator to apply the subject with.
501
- # Corresponds to the JSON property `op`
502
- # @return [String]
503
- attr_accessor :op
536
+ # Defines an Identity and Access Management (IAM) policy. It is used to
537
+ # specify access control policies for Cloud Platform resources.
538
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
539
+ # `members` to a `role`, where the members can be user accounts, Google groups,
540
+ # Google domains, and service accounts. A `role` is a named list of permissions
541
+ # defined by IAM.
542
+ # **Example**
543
+ # `
544
+ # "bindings": [
545
+ # `
546
+ # "role": "roles/owner",
547
+ # "members": [
548
+ # "user:mike@example.com",
549
+ # "group:admins@example.com",
550
+ # "domain:google.com",
551
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
552
+ # ]
553
+ # `,
554
+ # `
555
+ # "role": "roles/viewer",
556
+ # "members": ["user:sean@example.com"]
557
+ # `
558
+ # ]
559
+ # `
560
+ # For a description of IAM and its features, see the
561
+ # [IAM developer's guide](https://cloud.google.com/iam).
562
+ # Corresponds to the JSON property `policy`
563
+ # @return [Google::Apis::SourcerepoV1::Policy]
564
+ attr_accessor :policy
504
565
 
505
- # Trusted attributes discharged by the service.
506
- # Corresponds to the JSON property `svc`
566
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
567
+ # the fields in the mask will be modified. If no mask is provided, the
568
+ # following default mask is used:
569
+ # paths: "bindings, etag"
570
+ # This field is only used by Cloud IAM.
571
+ # Corresponds to the JSON property `updateMask`
507
572
  # @return [String]
508
- attr_accessor :svc
573
+ attr_accessor :update_mask
509
574
 
510
575
  def initialize(**args)
511
576
  update!(**args)
@@ -513,71 +578,52 @@ module Google
513
578
 
514
579
  # Update properties of this object
515
580
  def update!(**args)
516
- @value = args[:value] if args.key?(:value)
517
- @sys = args[:sys] if args.key?(:sys)
518
- @iam = args[:iam] if args.key?(:iam)
519
- @values = args[:values] if args.key?(:values)
520
- @op = args[:op] if args.key?(:op)
521
- @svc = args[:svc] if args.key?(:svc)
581
+ @policy = args[:policy] if args.key?(:policy)
582
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
522
583
  end
523
584
  end
524
585
 
525
- # Options for counters
526
- class CounterOptions
586
+ # Write a Cloud Audit log
587
+ class CloudAuditOptions
527
588
  include Google::Apis::Core::Hashable
528
589
 
529
- # The metric to update.
530
- # Corresponds to the JSON property `metric`
531
- # @return [String]
532
- attr_accessor :metric
533
-
534
- # The field value to attribute.
535
- # Corresponds to the JSON property `field`
536
- # @return [String]
537
- attr_accessor :field
538
-
539
590
  def initialize(**args)
540
591
  update!(**args)
541
592
  end
542
593
 
543
594
  # Update properties of this object
544
595
  def update!(**args)
545
- @metric = args[:metric] if args.key?(:metric)
546
- @field = args[:field] if args.key?(:field)
547
596
  end
548
597
  end
549
598
 
550
- # Provides the configuration for logging a type of permissions.
551
- # Example:
552
- # `
553
- # "audit_log_configs": [
554
- # `
555
- # "log_type": "DATA_READ",
556
- # "exempted_members": [
557
- # "user:foo@gmail.com"
558
- # ]
559
- # `,
560
- # `
561
- # "log_type": "DATA_WRITE",
562
- # `
563
- # ]
564
- # `
565
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
566
- # foo@gmail.com from DATA_READ logging.
567
- class AuditLogConfig
599
+ # Associates `members` with a `role`.
600
+ class Binding
568
601
  include Google::Apis::Core::Hashable
569
602
 
570
- # Specifies the identities that do not cause logging for this type of
571
- # permission.
572
- # Follows the same format of Binding.members.
573
- # Corresponds to the JSON property `exemptedMembers`
603
+ # Specifies the identities requesting access for a Cloud Platform resource.
604
+ # `members` can have the following values:
605
+ # * `allUsers`: A special identifier that represents anyone who is
606
+ # on the internet; with or without a Google account.
607
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
608
+ # who is authenticated with a Google account or a service account.
609
+ # * `user:`emailid``: An email address that represents a specific Google
610
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
611
+ # * `serviceAccount:`emailid``: An email address that represents a service
612
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
613
+ # * `group:`emailid``: An email address that represents a Google group.
614
+ # For example, `admins@example.com`.
615
+ # * `domain:`domain``: A Google Apps domain name that represents all the
616
+ # users of that domain. For example, `google.com` or `example.com`.
617
+ # Corresponds to the JSON property `members`
574
618
  # @return [Array<String>]
575
- attr_accessor :exempted_members
619
+ attr_accessor :members
576
620
 
577
- # The log type that this config enables.
578
- # Corresponds to the JSON property `logType`
621
+ # Role that is assigned to `members`.
622
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
623
+ # Required
624
+ # Corresponds to the JSON property `role`
579
625
  # @return [String]
580
- attr_accessor :log_type
626
+ attr_accessor :role
581
627
 
582
628
  def initialize(**args)
583
629
  update!(**args)
@@ -585,91 +631,54 @@ module Google
585
631
 
586
632
  # Update properties of this object
587
633
  def update!(**args)
588
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
589
- @log_type = args[:log_type] if args.key?(:log_type)
634
+ @members = args[:members] if args.key?(:members)
635
+ @role = args[:role] if args.key?(:role)
590
636
  end
591
637
  end
592
638
 
593
- # A rule to be applied in a Policy.
594
- class Rule
639
+ # A generic empty message that you can re-use to avoid defining duplicated
640
+ # empty messages in your APIs. A typical example is to use it as the request
641
+ # or the response type of an API method. For instance:
642
+ # service Foo `
643
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
644
+ # `
645
+ # The JSON representation for `Empty` is empty JSON object ````.
646
+ class Empty
595
647
  include Google::Apis::Core::Hashable
596
648
 
597
- # If one or more 'not_in' clauses are specified, the rule matches
598
- # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
599
- # The format for in and not_in entries is the same as for members in a
600
- # Binding (see google/iam/v1/policy.proto).
601
- # Corresponds to the JSON property `notIn`
602
- # @return [Array<String>]
603
- attr_accessor :not_in
604
-
605
- # Human-readable description of the rule.
606
- # Corresponds to the JSON property `description`
607
- # @return [String]
608
- attr_accessor :description
609
-
610
- # Additional restrictions that must be met
611
- # Corresponds to the JSON property `conditions`
612
- # @return [Array<Google::Apis::SourcerepoV1::Condition>]
613
- attr_accessor :conditions
614
-
615
- # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
616
- # that match the LOG action.
617
- # Corresponds to the JSON property `logConfig`
618
- # @return [Array<Google::Apis::SourcerepoV1::LogConfig>]
619
- attr_accessor :log_config
620
-
621
- # If one or more 'in' clauses are specified, the rule matches if
622
- # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
623
- # Corresponds to the JSON property `in`
624
- # @return [Array<String>]
625
- attr_accessor :in
626
-
627
- # A permission is a string of form '<service>.<resource type>.<verb>'
628
- # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
629
- # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
630
- # Corresponds to the JSON property `permissions`
631
- # @return [Array<String>]
632
- attr_accessor :permissions
633
-
634
- # Required
635
- # Corresponds to the JSON property `action`
636
- # @return [String]
637
- attr_accessor :action
638
-
639
649
  def initialize(**args)
640
650
  update!(**args)
641
651
  end
642
652
 
643
653
  # Update properties of this object
644
654
  def update!(**args)
645
- @not_in = args[:not_in] if args.key?(:not_in)
646
- @description = args[:description] if args.key?(:description)
647
- @conditions = args[:conditions] if args.key?(:conditions)
648
- @log_config = args[:log_config] if args.key?(:log_config)
649
- @in = args[:in] if args.key?(:in)
650
- @permissions = args[:permissions] if args.key?(:permissions)
651
- @action = args[:action] if args.key?(:action)
652
655
  end
653
656
  end
654
657
 
655
- # Specifies what kind of log the caller must write
656
- class LogConfig
658
+ # Configuration to automatically mirror a repository from another
659
+ # hosting service, for example GitHub or BitBucket.
660
+ class MirrorConfig
657
661
  include Google::Apis::Core::Hashable
658
662
 
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
+ # ID of the webhook listening to updates to trigger mirroring.
664
+ # Removing this webook from the other hosting service will stop
665
+ # Google Cloud Source Repositories from receiving notifications,
666
+ # and thereby disabling mirroring.
667
+ # Corresponds to the JSON property `webhookId`
668
+ # @return [String]
669
+ attr_accessor :webhook_id
663
670
 
664
- # Options for counters
665
- # Corresponds to the JSON property `counter`
666
- # @return [Google::Apis::SourcerepoV1::CounterOptions]
667
- attr_accessor :counter
671
+ # ID of the SSH deploy key at the other hosting service.
672
+ # Removing this key from the other service would deauthorize
673
+ # Google Cloud Source Repositories from mirroring.
674
+ # Corresponds to the JSON property `deployKeyId`
675
+ # @return [String]
676
+ attr_accessor :deploy_key_id
668
677
 
669
- # Write a Data Access (Gin) log
670
- # Corresponds to the JSON property `dataAccess`
671
- # @return [Google::Apis::SourcerepoV1::DataAccessOptions]
672
- attr_accessor :data_access
678
+ # URL of the main repository at the other hosting service.
679
+ # Corresponds to the JSON property `url`
680
+ # @return [String]
681
+ attr_accessor :url
673
682
 
674
683
  def initialize(**args)
675
684
  update!(**args)
@@ -677,9 +686,9 @@ module Google
677
686
 
678
687
  # Update properties of this object
679
688
  def update!(**args)
680
- @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
681
- @counter = args[:counter] if args.key?(:counter)
682
- @data_access = args[:data_access] if args.key?(:data_access)
689
+ @webhook_id = args[:webhook_id] if args.key?(:webhook_id)
690
+ @deploy_key_id = args[:deploy_key_id] if args.key?(:deploy_key_id)
691
+ @url = args[:url] if args.key?(:url)
683
692
  end
684
693
  end
685
694
  end