google-api-client 0.30.9 → 0.30.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +89 -0
  3. data/api_names.yaml +1 -0
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +18 -7
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +5 -10
  7. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  8. data/generated/google/apis/adexperiencereport_v1/classes.rb +24 -12
  9. data/generated/google/apis/adexperiencereport_v1/service.rb +6 -9
  10. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -0
  12. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  13. data/generated/google/apis/androidmanagement_v1/classes.rb +62 -9
  14. data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
  15. data/generated/google/apis/bigquery_v2.rb +1 -1
  16. data/generated/google/apis/bigquery_v2/classes.rb +32 -9
  17. data/generated/google/apis/bigquery_v2/representations.rb +5 -0
  18. data/generated/google/apis/bigquery_v2/service.rb +1 -1
  19. data/generated/google/apis/bigqueryconnection_v1beta1.rb +37 -0
  20. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +645 -0
  21. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +263 -0
  22. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +378 -0
  23. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  24. data/generated/google/apis/bigtableadmin_v2/classes.rb +41 -16
  25. data/generated/google/apis/bigtableadmin_v2/representations.rb +15 -0
  26. data/generated/google/apis/binaryauthorization_v1.rb +35 -0
  27. data/generated/google/apis/binaryauthorization_v1/classes.rb +388 -0
  28. data/generated/google/apis/binaryauthorization_v1/representations.rb +167 -0
  29. data/generated/google/apis/binaryauthorization_v1/service.rb +313 -0
  30. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  31. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -1
  32. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -6
  33. data/generated/google/apis/calendar_v3.rb +1 -1
  34. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  35. data/generated/google/apis/cloudasset_v1.rb +1 -1
  36. data/generated/google/apis/cloudasset_v1/classes.rb +52 -1
  37. data/generated/google/apis/cloudasset_v1/representations.rb +17 -0
  38. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  39. data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -1
  40. data/generated/google/apis/cloudiot_v1.rb +1 -1
  41. data/generated/google/apis/cloudiot_v1/classes.rb +11 -4
  42. data/generated/google/apis/cloudkms_v1.rb +1 -1
  43. data/generated/google/apis/cloudkms_v1/classes.rb +0 -14
  44. data/generated/google/apis/cloudkms_v1/representations.rb +0 -2
  45. data/generated/google/apis/cloudkms_v1/service.rb +3 -3
  46. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  47. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -1
  48. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +5 -3
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +12 -8
  51. data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -1
  52. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  53. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -8
  54. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -2
  55. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -4
  57. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -4
  59. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  60. data/generated/google/apis/cloudsearch_v1/classes.rb +14 -3
  61. data/generated/google/apis/cloudsearch_v1/representations.rb +1 -0
  62. data/generated/google/apis/cloudsearch_v1/service.rb +3 -1
  63. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  64. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
  65. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  66. data/generated/google/apis/cloudtrace_v2/classes.rb +8 -0
  67. data/generated/google/apis/cloudtrace_v2/representations.rb +1 -0
  68. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  69. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +1 -0
  70. data/generated/google/apis/composer_v1.rb +1 -1
  71. data/generated/google/apis/composer_v1/classes.rb +17 -24
  72. data/generated/google/apis/composer_v1beta1.rb +1 -1
  73. data/generated/google/apis/composer_v1beta1/classes.rb +17 -24
  74. data/generated/google/apis/compute_alpha.rb +1 -1
  75. data/generated/google/apis/compute_alpha/classes.rb +1139 -284
  76. data/generated/google/apis/compute_alpha/representations.rb +304 -1
  77. data/generated/google/apis/compute_alpha/service.rb +935 -23
  78. data/generated/google/apis/compute_beta.rb +1 -1
  79. data/generated/google/apis/compute_beta/classes.rb +554 -98
  80. data/generated/google/apis/compute_beta/representations.rb +117 -0
  81. data/generated/google/apis/compute_beta/service.rb +63 -19
  82. data/generated/google/apis/compute_v1.rb +1 -1
  83. data/generated/google/apis/compute_v1/classes.rb +1187 -165
  84. data/generated/google/apis/compute_v1/representations.rb +402 -0
  85. data/generated/google/apis/compute_v1/service.rb +832 -12
  86. data/generated/google/apis/container_v1.rb +1 -1
  87. data/generated/google/apis/container_v1/classes.rb +36 -0
  88. data/generated/google/apis/container_v1/representations.rb +16 -0
  89. data/generated/google/apis/container_v1beta1.rb +1 -1
  90. data/generated/google/apis/container_v1beta1/classes.rb +153 -0
  91. data/generated/google/apis/container_v1beta1/representations.rb +77 -0
  92. data/generated/google/apis/content_v2.rb +1 -1
  93. data/generated/google/apis/content_v2/classes.rb +93 -2
  94. data/generated/google/apis/content_v2/representations.rb +37 -0
  95. data/generated/google/apis/content_v2_1.rb +1 -1
  96. data/generated/google/apis/content_v2_1/classes.rb +86 -2
  97. data/generated/google/apis/content_v2_1/representations.rb +36 -0
  98. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  99. data/generated/google/apis/dataflow_v1b3/classes.rb +21 -106
  100. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -58
  101. data/generated/google/apis/dataflow_v1b3/service.rb +0 -327
  102. data/generated/google/apis/dataproc_v1.rb +1 -1
  103. data/generated/google/apis/dataproc_v1/classes.rb +7 -0
  104. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  105. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  106. data/generated/google/apis/dataproc_v1beta2/classes.rb +7 -0
  107. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  108. data/generated/google/apis/datastore_v1.rb +1 -1
  109. data/generated/google/apis/datastore_v1/classes.rb +9 -75
  110. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  111. data/generated/google/apis/datastore_v1beta1/classes.rb +9 -75
  112. data/generated/google/apis/dfareporting_v3_1.rb +1 -1
  113. data/generated/google/apis/dfareporting_v3_1/classes.rb +42 -302
  114. data/generated/google/apis/dfareporting_v3_1/representations.rb +8 -84
  115. data/generated/google/apis/dfareporting_v3_1/service.rb +5 -107
  116. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  117. data/generated/google/apis/dialogflow_v2beta1/classes.rb +118 -0
  118. data/generated/google/apis/dialogflow_v2beta1/representations.rb +70 -0
  119. data/generated/google/apis/dialogflow_v2beta1/service.rb +75 -0
  120. data/generated/google/apis/dlp_v2.rb +1 -1
  121. data/generated/google/apis/dlp_v2/classes.rb +42 -0
  122. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  123. data/generated/google/apis/dlp_v2/service.rb +125 -1
  124. data/generated/google/apis/docs_v1.rb +1 -1
  125. data/generated/google/apis/docs_v1/classes.rb +128 -0
  126. data/generated/google/apis/docs_v1/representations.rb +49 -0
  127. data/generated/google/apis/{appstate_v1.rb → domainsrdap_v1.rb} +8 -11
  128. data/generated/google/apis/domainsrdap_v1/classes.rb +269 -0
  129. data/generated/google/apis/{appstate_v1 → domainsrdap_v1}/representations.rb +33 -22
  130. data/generated/google/apis/domainsrdap_v1/service.rb +350 -0
  131. data/generated/google/apis/drive_v2.rb +1 -1
  132. data/generated/google/apis/drive_v2/classes.rb +10 -1
  133. data/generated/google/apis/drive_v2/representations.rb +1 -0
  134. data/generated/google/apis/drive_v3.rb +1 -1
  135. data/generated/google/apis/drive_v3/classes.rb +10 -1
  136. data/generated/google/apis/drive_v3/representations.rb +1 -0
  137. data/generated/google/apis/driveactivity_v2.rb +1 -1
  138. data/generated/google/apis/firestore_v1.rb +1 -1
  139. data/generated/google/apis/firestore_v1/classes.rb +21 -130
  140. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  141. data/generated/google/apis/firestore_v1beta1/classes.rb +16 -122
  142. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  143. data/generated/google/apis/firestore_v1beta2/classes.rb +14 -83
  144. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  145. data/generated/google/apis/healthcare_v1alpha2/classes.rb +94 -48
  146. data/generated/google/apis/healthcare_v1alpha2/representations.rb +16 -0
  147. data/generated/google/apis/healthcare_v1alpha2/service.rb +117 -75
  148. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  149. data/generated/google/apis/healthcare_v1beta1/classes.rb +56 -2
  150. data/generated/google/apis/healthcare_v1beta1/representations.rb +17 -0
  151. data/generated/google/apis/healthcare_v1beta1/service.rb +10 -5
  152. data/generated/google/apis/homegraph_v1.rb +31 -0
  153. data/generated/google/apis/homegraph_v1/classes.rb +692 -0
  154. data/generated/google/apis/homegraph_v1/representations.rb +323 -0
  155. data/generated/google/apis/homegraph_v1/service.rb +255 -0
  156. data/generated/google/apis/logging_v2.rb +1 -1
  157. data/generated/google/apis/logging_v2/classes.rb +8 -7
  158. data/generated/google/apis/logging_v2/service.rb +40 -35
  159. data/generated/google/apis/ml_v1.rb +1 -1
  160. data/generated/google/apis/monitoring_v3.rb +1 -1
  161. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  162. data/generated/google/apis/pubsub_v1.rb +1 -1
  163. data/generated/google/apis/pubsub_v1/classes.rb +6 -1
  164. data/generated/google/apis/pubsub_v1/service.rb +15 -9
  165. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  166. data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -1
  167. data/generated/google/apis/pubsub_v1beta2/service.rb +10 -6
  168. data/generated/google/apis/run_v1alpha1.rb +1 -1
  169. data/generated/google/apis/run_v1alpha1/classes.rb +26 -6
  170. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  171. data/generated/google/apis/run_v1alpha1/service.rb +5 -3
  172. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  173. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -1
  174. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +5 -3
  175. data/generated/google/apis/script_v1.rb +1 -1
  176. data/generated/google/apis/script_v1/service.rb +6 -5
  177. data/generated/google/apis/securitycenter_v1.rb +1 -1
  178. data/generated/google/apis/securitycenter_v1/classes.rb +11 -4
  179. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  180. data/generated/google/apis/securitycenter_v1beta1/classes.rb +11 -4
  181. data/generated/google/apis/servicebroker_v1.rb +1 -1
  182. data/generated/google/apis/servicebroker_v1/classes.rb +6 -1
  183. data/generated/google/apis/servicebroker_v1/service.rb +5 -3
  184. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  185. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -1
  186. data/generated/google/apis/servicebroker_v1alpha1/service.rb +5 -3
  187. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  188. data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -1
  189. data/generated/google/apis/servicebroker_v1beta1/service.rb +5 -3
  190. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  191. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -4
  192. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +11 -4
  194. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  195. data/generated/google/apis/servicenetworking_v1/classes.rb +1 -4
  196. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  197. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -4
  198. data/generated/google/apis/serviceusage_v1.rb +1 -1
  199. data/generated/google/apis/serviceusage_v1/classes.rb +30 -4
  200. data/generated/google/apis/serviceusage_v1/representations.rb +14 -0
  201. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  202. data/generated/google/apis/serviceusage_v1beta1/classes.rb +30 -4
  203. data/generated/google/apis/serviceusage_v1beta1/representations.rb +14 -0
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +1 -1
  206. data/generated/google/apis/speech_v1.rb +1 -1
  207. data/generated/google/apis/speech_v1/classes.rb +9 -7
  208. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  209. data/generated/google/apis/speech_v1p1beta1/classes.rb +17 -15
  210. data/generated/google/apis/speech_v2beta.rb +1 -1
  211. data/generated/google/apis/speech_v2beta/classes.rb +3 -3
  212. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  213. data/generated/google/apis/sqladmin_v1beta4/classes.rb +72 -0
  214. data/generated/google/apis/sqladmin_v1beta4/representations.rb +35 -0
  215. data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
  216. data/generated/google/apis/storage_v1.rb +1 -1
  217. data/generated/google/apis/storage_v1/classes.rb +7 -1
  218. data/generated/google/apis/storage_v1/representations.rb +2 -2
  219. data/generated/google/apis/storage_v1/service.rb +6 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/service.rb +1 -9
  222. data/generated/google/apis/testing_v1.rb +1 -1
  223. data/generated/google/apis/testing_v1/classes.rb +19 -0
  224. data/generated/google/apis/testing_v1/representations.rb +3 -0
  225. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  226. data/generated/google/apis/toolresults_v1beta3/classes.rb +1 -0
  227. data/generated/google/apis/translate_v3beta1.rb +1 -1
  228. data/generated/google/apis/translate_v3beta1/classes.rb +33 -0
  229. data/generated/google/apis/translate_v3beta1/representations.rb +3 -0
  230. data/generated/google/apis/verifiedaccess_v1.rb +35 -0
  231. data/generated/google/apis/verifiedaccess_v1/classes.rb +174 -0
  232. data/generated/google/apis/verifiedaccess_v1/representations.rb +99 -0
  233. data/generated/google/apis/verifiedaccess_v1/service.rb +120 -0
  234. data/generated/google/apis/vision_v1.rb +1 -1
  235. data/generated/google/apis/vision_v1/classes.rb +204 -2375
  236. data/generated/google/apis/vision_v1/representations.rb +701 -1634
  237. data/generated/google/apis/vision_v1/service.rb +17 -17
  238. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  239. data/generated/google/apis/vision_v1p1beta1/classes.rb +135 -2306
  240. data/generated/google/apis/vision_v1p1beta1/representations.rb +768 -1701
  241. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  242. data/generated/google/apis/vision_v1p2beta1/classes.rb +326 -2161
  243. data/generated/google/apis/vision_v1p2beta1/representations.rb +897 -1710
  244. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  245. data/generated/google/apis/youtube_v3.rb +1 -1
  246. data/generated/google/apis/youtube_v3/classes.rb +8 -2
  247. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  248. data/lib/google/apis/version.rb +1 -1
  249. metadata +22 -6
  250. data/generated/google/apis/appstate_v1/classes.rb +0 -154
  251. data/generated/google/apis/appstate_v1/service.rb +0 -249
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class AppTrackInfo
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Application
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -397,9 +403,19 @@ module Google
397
403
  end
398
404
  end
399
405
 
406
+ class AppTrackInfo
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ property :track_alias, as: 'trackAlias'
410
+ property :track_id, as: 'trackId'
411
+ end
412
+ end
413
+
400
414
  class Application
401
415
  # @private
402
416
  class Representation < Google::Apis::Core::JsonRepresentation
417
+ collection :app_tracks, as: 'appTracks', class: Google::Apis::AndroidmanagementV1::AppTrackInfo, decorator: Google::Apis::AndroidmanagementV1::AppTrackInfo::Representation
418
+
403
419
  collection :managed_properties, as: 'managedProperties', class: Google::Apis::AndroidmanagementV1::ManagedProperty, decorator: Google::Apis::AndroidmanagementV1::ManagedProperty::Representation
404
420
 
405
421
  property :name, as: 'name'
@@ -429,6 +445,7 @@ module Google
429
445
  class ApplicationPolicy
430
446
  # @private
431
447
  class Representation < Google::Apis::Core::JsonRepresentation
448
+ collection :accessible_track_ids, as: 'accessibleTrackIds'
432
449
  property :default_permission_policy, as: 'defaultPermissionPolicy'
433
450
  collection :delegated_scopes, as: 'delegatedScopes'
434
451
  property :disabled, as: 'disabled'
@@ -918,6 +935,8 @@ module Google
918
935
 
919
936
  collection :permission_grants, as: 'permissionGrants', class: Google::Apis::AndroidmanagementV1::PermissionGrant, decorator: Google::Apis::AndroidmanagementV1::PermissionGrant::Representation
920
937
 
938
+ property :permitted_accessibility_services, as: 'permittedAccessibilityServices', class: Google::Apis::AndroidmanagementV1::PackageNameList, decorator: Google::Apis::AndroidmanagementV1::PackageNameList::Representation
939
+
921
940
  property :permitted_input_methods, as: 'permittedInputMethods', class: Google::Apis::AndroidmanagementV1::PackageNameList, decorator: Google::Apis::AndroidmanagementV1::PackageNameList::Representation
922
941
 
923
942
  collection :persistent_preferred_activities, as: 'persistentPreferredActivities', class: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity, decorator: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity::Representation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20190807'
28
+ REVISION = '20190825'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -1870,9 +1870,9 @@ module Google
1870
1870
  class GoogleSheetsOptions
1871
1871
  include Google::Apis::Core::Hashable
1872
1872
 
1873
- # [Beta] [Optional] Range of a sheet to query from. Only used when non-empty.
1874
- # Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example:
1875
- # sheet1!A1:B20
1873
+ # [Optional] Range of a sheet to query from. Only used when non-empty. Typical
1874
+ # format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!
1875
+ # A1:B20
1876
1876
  # Corresponds to the JSON property `range`
1877
1877
  # @return [String]
1878
1878
  attr_accessor :range
@@ -2197,11 +2197,25 @@ module Google
2197
2197
  attr_accessor :print_header
2198
2198
  alias_method :print_header?, :print_header
2199
2199
 
2200
- # [Required] A reference to the table being exported.
2200
+ # A reference to the model being exported.
2201
+ # Corresponds to the JSON property `sourceModel`
2202
+ # @return [Google::Apis::BigqueryV2::ModelReference]
2203
+ attr_accessor :source_model
2204
+
2205
+ # A reference to the table being exported.
2201
2206
  # Corresponds to the JSON property `sourceTable`
2202
2207
  # @return [Google::Apis::BigqueryV2::TableReference]
2203
2208
  attr_accessor :source_table
2204
2209
 
2210
+ # [Optional] If destinationFormat is set to "AVRO", this flag indicates whether
2211
+ # to enable extracting applicable column types (such as TIMESTAMP) to their
2212
+ # corresponding AVRO logical types (timestamp-micros), instead of only using
2213
+ # their raw types (avro-long).
2214
+ # Corresponds to the JSON property `useAvroLogicalTypes`
2215
+ # @return [Boolean]
2216
+ attr_accessor :use_avro_logical_types
2217
+ alias_method :use_avro_logical_types?, :use_avro_logical_types
2218
+
2205
2219
  def initialize(**args)
2206
2220
  update!(**args)
2207
2221
  end
@@ -2214,7 +2228,9 @@ module Google
2214
2228
  @destination_uris = args[:destination_uris] if args.key?(:destination_uris)
2215
2229
  @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
2216
2230
  @print_header = args[:print_header] if args.key?(:print_header)
2231
+ @source_model = args[:source_model] if args.key?(:source_model)
2217
2232
  @source_table = args[:source_table] if args.key?(:source_table)
2233
+ @use_avro_logical_types = args[:use_avro_logical_types] if args.key?(:use_avro_logical_types)
2218
2234
  end
2219
2235
  end
2220
2236
 
@@ -3456,6 +3472,13 @@ module Google
3456
3472
  # @return [String]
3457
3473
  attr_accessor :description
3458
3474
 
3475
+ # Custom encryption configuration (e.g., Cloud KMS keys). This shows the
3476
+ # encryption configuration of the model data while stored in BigQuery
3477
+ # storage.
3478
+ # Corresponds to the JSON property `encryptionConfiguration`
3479
+ # @return [Google::Apis::BigqueryV2::EncryptionConfiguration]
3480
+ attr_accessor :encryption_configuration
3481
+
3459
3482
  # Output only. A hash of this resource.
3460
3483
  # Corresponds to the JSON property `etag`
3461
3484
  # @return [String]
@@ -3508,7 +3531,7 @@ module Google
3508
3531
  # @return [String]
3509
3532
  attr_accessor :location
3510
3533
 
3511
- # Id path of a model.
3534
+ # Required. Unique identifier for this model.
3512
3535
  # Corresponds to the JSON property `modelReference`
3513
3536
  # @return [Google::Apis::BigqueryV2::ModelReference]
3514
3537
  attr_accessor :model_reference
@@ -3532,6 +3555,7 @@ module Google
3532
3555
  def update!(**args)
3533
3556
  @creation_time = args[:creation_time] if args.key?(:creation_time)
3534
3557
  @description = args[:description] if args.key?(:description)
3558
+ @encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration)
3535
3559
  @etag = args[:etag] if args.key?(:etag)
3536
3560
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
3537
3561
  @feature_columns = args[:feature_columns] if args.key?(:feature_columns)
@@ -3609,7 +3633,7 @@ module Google
3609
3633
  end
3610
3634
  end
3611
3635
 
3612
- # Id path of a model.
3636
+ #
3613
3637
  class ModelReference
3614
3638
  include Google::Apis::Core::Hashable
3615
3639
 
@@ -3618,9 +3642,8 @@ module Google
3618
3642
  # @return [String]
3619
3643
  attr_accessor :dataset_id
3620
3644
 
3621
- # [Required] The ID of the model. The ID must contain only
3622
- # letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
3623
- # length is 1,024 characters.
3645
+ # [Required] The ID of the model. The ID must contain only letters (a-z, A-Z),
3646
+ # numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
3624
3647
  # Corresponds to the JSON property `modelId`
3625
3648
  # @return [String]
3626
3649
  attr_accessor :model_id
@@ -1160,8 +1160,11 @@ module Google
1160
1160
  collection :destination_uris, as: 'destinationUris'
1161
1161
  property :field_delimiter, as: 'fieldDelimiter'
1162
1162
  property :print_header, as: 'printHeader'
1163
+ property :source_model, as: 'sourceModel', class: Google::Apis::BigqueryV2::ModelReference, decorator: Google::Apis::BigqueryV2::ModelReference::Representation
1164
+
1163
1165
  property :source_table, as: 'sourceTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
1164
1166
 
1167
+ property :use_avro_logical_types, as: 'useAvroLogicalTypes'
1165
1168
  end
1166
1169
  end
1167
1170
 
@@ -1447,6 +1450,8 @@ module Google
1447
1450
  class Representation < Google::Apis::Core::JsonRepresentation
1448
1451
  property :creation_time, :numeric_string => true, as: 'creationTime'
1449
1452
  property :description, as: 'description'
1453
+ property :encryption_configuration, as: 'encryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
1454
+
1450
1455
  property :etag, as: 'etag'
1451
1456
  property :expiration_time, :numeric_string => true, as: 'expirationTime'
1452
1457
  collection :feature_columns, as: 'featureColumns', class: Google::Apis::BigqueryV2::StandardSqlField, decorator: Google::Apis::BigqueryV2::StandardSqlField::Representation
@@ -47,7 +47,7 @@ module Google
47
47
  attr_accessor :user_ip
48
48
 
49
49
  def initialize
50
- super('https://www.googleapis.com/', 'bigquery/v2/')
50
+ super('https://bigquery.googleapis.com/', 'bigquery/v2/')
51
51
  @batch_path = 'batch/bigquery/v2'
52
52
  end
53
53
 
@@ -0,0 +1,37 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/bigqueryconnection_v1beta1/service.rb'
16
+ require 'google/apis/bigqueryconnection_v1beta1/classes.rb'
17
+ require 'google/apis/bigqueryconnection_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # BigQuery Connection API
22
+ #
23
+ # Allows users to manage BigQuery connections to external data sources.
24
+ #
25
+ # @see https://cloud.google.com/bigquery/
26
+ module BigqueryconnectionV1beta1
27
+ VERSION = 'V1beta1'
28
+ REVISION = '20190824'
29
+
30
+ # View and manage your data in Google BigQuery
31
+ AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,645 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module BigqueryconnectionV1beta1
24
+
25
+ # Specifies the audit configuration for a service.
26
+ # The configuration determines which permission types are logged, and what
27
+ # identities, if any, are exempted from logging.
28
+ # An AuditConfig must have one or more AuditLogConfigs.
29
+ # If there are AuditConfigs for both `allServices` and a specific service,
30
+ # the union of the two AuditConfigs is used for that service: the log_types
31
+ # specified in each AuditConfig are enabled, and the exempted_members in each
32
+ # AuditLogConfig are exempted.
33
+ # Example Policy with multiple AuditConfigs:
34
+ # `
35
+ # "audit_configs": [
36
+ # `
37
+ # "service": "allServices"
38
+ # "audit_log_configs": [
39
+ # `
40
+ # "log_type": "DATA_READ",
41
+ # "exempted_members": [
42
+ # "user:jose@example.com"
43
+ # ]
44
+ # `,
45
+ # `
46
+ # "log_type": "DATA_WRITE",
47
+ # `,
48
+ # `
49
+ # "log_type": "ADMIN_READ",
50
+ # `
51
+ # ]
52
+ # `,
53
+ # `
54
+ # "service": "sampleservice.googleapis.com"
55
+ # "audit_log_configs": [
56
+ # `
57
+ # "log_type": "DATA_READ",
58
+ # `,
59
+ # `
60
+ # "log_type": "DATA_WRITE",
61
+ # "exempted_members": [
62
+ # "user:aliya@example.com"
63
+ # ]
64
+ # `
65
+ # ]
66
+ # `
67
+ # ]
68
+ # `
69
+ # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
70
+ # logging. It also exempts jose@example.com from DATA_READ logging, and
71
+ # aliya@example.com from DATA_WRITE logging.
72
+ class AuditConfig
73
+ include Google::Apis::Core::Hashable
74
+
75
+ # The configuration for logging of each type of permission.
76
+ # Corresponds to the JSON property `auditLogConfigs`
77
+ # @return [Array<Google::Apis::BigqueryconnectionV1beta1::AuditLogConfig>]
78
+ attr_accessor :audit_log_configs
79
+
80
+ # Specifies a service that will be enabled for audit logging.
81
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
82
+ # `allServices` is a special value that covers all services.
83
+ # Corresponds to the JSON property `service`
84
+ # @return [String]
85
+ attr_accessor :service
86
+
87
+ def initialize(**args)
88
+ update!(**args)
89
+ end
90
+
91
+ # Update properties of this object
92
+ def update!(**args)
93
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
94
+ @service = args[:service] if args.key?(:service)
95
+ end
96
+ end
97
+
98
+ # Provides the configuration for logging a type of permissions.
99
+ # Example:
100
+ # `
101
+ # "audit_log_configs": [
102
+ # `
103
+ # "log_type": "DATA_READ",
104
+ # "exempted_members": [
105
+ # "user:jose@example.com"
106
+ # ]
107
+ # `,
108
+ # `
109
+ # "log_type": "DATA_WRITE",
110
+ # `
111
+ # ]
112
+ # `
113
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
114
+ # jose@example.com from DATA_READ logging.
115
+ class AuditLogConfig
116
+ include Google::Apis::Core::Hashable
117
+
118
+ # Specifies the identities that do not cause logging for this type of
119
+ # permission.
120
+ # Follows the same format of Binding.members.
121
+ # Corresponds to the JSON property `exemptedMembers`
122
+ # @return [Array<String>]
123
+ attr_accessor :exempted_members
124
+
125
+ # The log type that this config enables.
126
+ # Corresponds to the JSON property `logType`
127
+ # @return [String]
128
+ attr_accessor :log_type
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
137
+ @log_type = args[:log_type] if args.key?(:log_type)
138
+ end
139
+ end
140
+
141
+ # Associates `members` with a `role`.
142
+ class Binding
143
+ include Google::Apis::Core::Hashable
144
+
145
+ # Represents an expression text. Example:
146
+ # title: "User account presence"
147
+ # description: "Determines whether the request has a user account"
148
+ # expression: "size(request.user) > 0"
149
+ # Corresponds to the JSON property `condition`
150
+ # @return [Google::Apis::BigqueryconnectionV1beta1::Expr]
151
+ attr_accessor :condition
152
+
153
+ # Specifies the identities requesting access for a Cloud Platform resource.
154
+ # `members` can have the following values:
155
+ # * `allUsers`: A special identifier that represents anyone who is
156
+ # on the internet; with or without a Google account.
157
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
158
+ # who is authenticated with a Google account or a service account.
159
+ # * `user:`emailid``: An email address that represents a specific Google
160
+ # account. For example, `alice@example.com` .
161
+ # * `serviceAccount:`emailid``: An email address that represents a service
162
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
163
+ # * `group:`emailid``: An email address that represents a Google group.
164
+ # For example, `admins@example.com`.
165
+ # * `domain:`domain``: The G Suite domain (primary) that represents all the
166
+ # users of that domain. For example, `google.com` or `example.com`.
167
+ # Corresponds to the JSON property `members`
168
+ # @return [Array<String>]
169
+ attr_accessor :members
170
+
171
+ # Role that is assigned to `members`.
172
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
173
+ # Corresponds to the JSON property `role`
174
+ # @return [String]
175
+ attr_accessor :role
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ @condition = args[:condition] if args.key?(:condition)
184
+ @members = args[:members] if args.key?(:members)
185
+ @role = args[:role] if args.key?(:role)
186
+ end
187
+ end
188
+
189
+ # Credential info for the Cloud SQL.
190
+ class CloudSqlCredential
191
+ include Google::Apis::Core::Hashable
192
+
193
+ # The password for the credential.
194
+ # Corresponds to the JSON property `password`
195
+ # @return [String]
196
+ attr_accessor :password
197
+
198
+ # The username for the credential.
199
+ # Corresponds to the JSON property `username`
200
+ # @return [String]
201
+ attr_accessor :username
202
+
203
+ def initialize(**args)
204
+ update!(**args)
205
+ end
206
+
207
+ # Update properties of this object
208
+ def update!(**args)
209
+ @password = args[:password] if args.key?(:password)
210
+ @username = args[:username] if args.key?(:username)
211
+ end
212
+ end
213
+
214
+ # Connection properties specific to the Cloud SQL.
215
+ class CloudSqlProperties
216
+ include Google::Apis::Core::Hashable
217
+
218
+ # Database name.
219
+ # Corresponds to the JSON property `database`
220
+ # @return [String]
221
+ attr_accessor :database
222
+
223
+ # Cloud SQL instance ID in the form `project:location:instance`.
224
+ # Corresponds to the JSON property `instanceId`
225
+ # @return [String]
226
+ attr_accessor :instance_id
227
+
228
+ # Type of the Cloud SQL database.
229
+ # Corresponds to the JSON property `type`
230
+ # @return [String]
231
+ attr_accessor :type
232
+
233
+ def initialize(**args)
234
+ update!(**args)
235
+ end
236
+
237
+ # Update properties of this object
238
+ def update!(**args)
239
+ @database = args[:database] if args.key?(:database)
240
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
241
+ @type = args[:type] if args.key?(:type)
242
+ end
243
+ end
244
+
245
+ # Configuration parameters to establish connection with an external data
246
+ # source, except the credential attributes.
247
+ class Connection
248
+ include Google::Apis::Core::Hashable
249
+
250
+ # Connection properties specific to the Cloud SQL.
251
+ # Corresponds to the JSON property `cloudSql`
252
+ # @return [Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties]
253
+ attr_accessor :cloud_sql
254
+
255
+ # Output only. The creation timestamp of the connection.
256
+ # Corresponds to the JSON property `creationTime`
257
+ # @return [Fixnum]
258
+ attr_accessor :creation_time
259
+
260
+ # User provided description.
261
+ # Corresponds to the JSON property `description`
262
+ # @return [String]
263
+ attr_accessor :description
264
+
265
+ # User provided display name for the connection.
266
+ # Corresponds to the JSON property `friendlyName`
267
+ # @return [String]
268
+ attr_accessor :friendly_name
269
+
270
+ # Output only. True, if credential is configured for this connection.
271
+ # Corresponds to the JSON property `hasCredential`
272
+ # @return [Boolean]
273
+ attr_accessor :has_credential
274
+ alias_method :has_credential?, :has_credential
275
+
276
+ # Output only. The last update timestamp of the connection.
277
+ # Corresponds to the JSON property `lastModifiedTime`
278
+ # @return [Fixnum]
279
+ attr_accessor :last_modified_time
280
+
281
+ # The resource name of the connection in the form of:
282
+ # `projects/`project_id`/locations/`location_id`/connections/`connection_id``
283
+ # Corresponds to the JSON property `name`
284
+ # @return [String]
285
+ attr_accessor :name
286
+
287
+ def initialize(**args)
288
+ update!(**args)
289
+ end
290
+
291
+ # Update properties of this object
292
+ def update!(**args)
293
+ @cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql)
294
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
295
+ @description = args[:description] if args.key?(:description)
296
+ @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
297
+ @has_credential = args[:has_credential] if args.key?(:has_credential)
298
+ @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
299
+ @name = args[:name] if args.key?(:name)
300
+ end
301
+ end
302
+
303
+ # Credential to use with a connection.
304
+ class ConnectionCredential
305
+ include Google::Apis::Core::Hashable
306
+
307
+ # Credential info for the Cloud SQL.
308
+ # Corresponds to the JSON property `cloudSql`
309
+ # @return [Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential]
310
+ attr_accessor :cloud_sql
311
+
312
+ def initialize(**args)
313
+ update!(**args)
314
+ end
315
+
316
+ # Update properties of this object
317
+ def update!(**args)
318
+ @cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql)
319
+ end
320
+ end
321
+
322
+ # A generic empty message that you can re-use to avoid defining duplicated
323
+ # empty messages in your APIs. A typical example is to use it as the request
324
+ # or the response type of an API method. For instance:
325
+ # service Foo `
326
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
327
+ # `
328
+ # The JSON representation for `Empty` is empty JSON object ````.
329
+ class Empty
330
+ include Google::Apis::Core::Hashable
331
+
332
+ def initialize(**args)
333
+ update!(**args)
334
+ end
335
+
336
+ # Update properties of this object
337
+ def update!(**args)
338
+ end
339
+ end
340
+
341
+ # Represents an expression text. Example:
342
+ # title: "User account presence"
343
+ # description: "Determines whether the request has a user account"
344
+ # expression: "size(request.user) > 0"
345
+ class Expr
346
+ include Google::Apis::Core::Hashable
347
+
348
+ # An optional description of the expression. This is a longer text which
349
+ # describes the expression, e.g. when hovered over it in a UI.
350
+ # Corresponds to the JSON property `description`
351
+ # @return [String]
352
+ attr_accessor :description
353
+
354
+ # Textual representation of an expression in
355
+ # Common Expression Language syntax.
356
+ # The application context of the containing message determines which
357
+ # well-known feature set of CEL is supported.
358
+ # Corresponds to the JSON property `expression`
359
+ # @return [String]
360
+ attr_accessor :expression
361
+
362
+ # An optional string indicating the location of the expression for error
363
+ # reporting, e.g. a file name and a position in the file.
364
+ # Corresponds to the JSON property `location`
365
+ # @return [String]
366
+ attr_accessor :location
367
+
368
+ # An optional title for the expression, i.e. a short string describing
369
+ # its purpose. This can be used e.g. in UIs which allow to enter the
370
+ # expression.
371
+ # Corresponds to the JSON property `title`
372
+ # @return [String]
373
+ attr_accessor :title
374
+
375
+ def initialize(**args)
376
+ update!(**args)
377
+ end
378
+
379
+ # Update properties of this object
380
+ def update!(**args)
381
+ @description = args[:description] if args.key?(:description)
382
+ @expression = args[:expression] if args.key?(:expression)
383
+ @location = args[:location] if args.key?(:location)
384
+ @title = args[:title] if args.key?(:title)
385
+ end
386
+ end
387
+
388
+ # Request message for `GetIamPolicy` method.
389
+ class GetIamPolicyRequest
390
+ include Google::Apis::Core::Hashable
391
+
392
+ # Encapsulates settings provided to GetIamPolicy.
393
+ # Corresponds to the JSON property `options`
394
+ # @return [Google::Apis::BigqueryconnectionV1beta1::GetPolicyOptions]
395
+ attr_accessor :options
396
+
397
+ def initialize(**args)
398
+ update!(**args)
399
+ end
400
+
401
+ # Update properties of this object
402
+ def update!(**args)
403
+ @options = args[:options] if args.key?(:options)
404
+ end
405
+ end
406
+
407
+ # Encapsulates settings provided to GetIamPolicy.
408
+ class GetPolicyOptions
409
+ include Google::Apis::Core::Hashable
410
+
411
+ # Optional. The policy format version to be returned.
412
+ # Acceptable values are 0, 1, and 3.
413
+ # If the value is 0, or the field is omitted, policy format version 1 will be
414
+ # returned.
415
+ # Corresponds to the JSON property `requestedPolicyVersion`
416
+ # @return [Fixnum]
417
+ attr_accessor :requested_policy_version
418
+
419
+ def initialize(**args)
420
+ update!(**args)
421
+ end
422
+
423
+ # Update properties of this object
424
+ def update!(**args)
425
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
426
+ end
427
+ end
428
+
429
+ # The response for ConnectionService.ListConnections.
430
+ class ListConnectionsResponse
431
+ include Google::Apis::Core::Hashable
432
+
433
+ # List of connections.
434
+ # Corresponds to the JSON property `connections`
435
+ # @return [Array<Google::Apis::BigqueryconnectionV1beta1::Connection>]
436
+ attr_accessor :connections
437
+
438
+ # Next page token.
439
+ # Corresponds to the JSON property `nextPageToken`
440
+ # @return [String]
441
+ attr_accessor :next_page_token
442
+
443
+ def initialize(**args)
444
+ update!(**args)
445
+ end
446
+
447
+ # Update properties of this object
448
+ def update!(**args)
449
+ @connections = args[:connections] if args.key?(:connections)
450
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
451
+ end
452
+ end
453
+
454
+ # Defines an Identity and Access Management (IAM) policy. It is used to
455
+ # specify access control policies for Cloud Platform resources.
456
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
457
+ # `members` to a `role`, where the members can be user accounts, Google groups,
458
+ # Google domains, and service accounts. A `role` is a named list of permissions
459
+ # defined by IAM.
460
+ # **JSON Example**
461
+ # `
462
+ # "bindings": [
463
+ # `
464
+ # "role": "roles/owner",
465
+ # "members": [
466
+ # "user:mike@example.com",
467
+ # "group:admins@example.com",
468
+ # "domain:google.com",
469
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
470
+ # ]
471
+ # `,
472
+ # `
473
+ # "role": "roles/viewer",
474
+ # "members": ["user:sean@example.com"]
475
+ # `
476
+ # ]
477
+ # `
478
+ # **YAML Example**
479
+ # bindings:
480
+ # - members:
481
+ # - user:mike@example.com
482
+ # - group:admins@example.com
483
+ # - domain:google.com
484
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
485
+ # role: roles/owner
486
+ # - members:
487
+ # - user:sean@example.com
488
+ # role: roles/viewer
489
+ # For a description of IAM and its features, see the
490
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
491
+ class Policy
492
+ include Google::Apis::Core::Hashable
493
+
494
+ # Specifies cloud audit logging configuration for this policy.
495
+ # Corresponds to the JSON property `auditConfigs`
496
+ # @return [Array<Google::Apis::BigqueryconnectionV1beta1::AuditConfig>]
497
+ attr_accessor :audit_configs
498
+
499
+ # Associates a list of `members` to a `role`.
500
+ # `bindings` with no members will result in an error.
501
+ # Corresponds to the JSON property `bindings`
502
+ # @return [Array<Google::Apis::BigqueryconnectionV1beta1::Binding>]
503
+ attr_accessor :bindings
504
+
505
+ # `etag` is used for optimistic concurrency control as a way to help
506
+ # prevent simultaneous updates of a policy from overwriting each other.
507
+ # It is strongly suggested that systems make use of the `etag` in the
508
+ # read-modify-write cycle to perform policy updates in order to avoid race
509
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
510
+ # systems are expected to put that etag in the request to `setIamPolicy` to
511
+ # ensure that their change will be applied to the same version of the policy.
512
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
513
+ # policy is overwritten.
514
+ # Corresponds to the JSON property `etag`
515
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
516
+ # @return [String]
517
+ attr_accessor :etag
518
+
519
+ # Deprecated.
520
+ # Corresponds to the JSON property `version`
521
+ # @return [Fixnum]
522
+ attr_accessor :version
523
+
524
+ def initialize(**args)
525
+ update!(**args)
526
+ end
527
+
528
+ # Update properties of this object
529
+ def update!(**args)
530
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
531
+ @bindings = args[:bindings] if args.key?(:bindings)
532
+ @etag = args[:etag] if args.key?(:etag)
533
+ @version = args[:version] if args.key?(:version)
534
+ end
535
+ end
536
+
537
+ # Request message for `SetIamPolicy` method.
538
+ class SetIamPolicyRequest
539
+ include Google::Apis::Core::Hashable
540
+
541
+ # Defines an Identity and Access Management (IAM) policy. It is used to
542
+ # specify access control policies for Cloud Platform resources.
543
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
544
+ # `members` to a `role`, where the members can be user accounts, Google groups,
545
+ # Google domains, and service accounts. A `role` is a named list of permissions
546
+ # defined by IAM.
547
+ # **JSON Example**
548
+ # `
549
+ # "bindings": [
550
+ # `
551
+ # "role": "roles/owner",
552
+ # "members": [
553
+ # "user:mike@example.com",
554
+ # "group:admins@example.com",
555
+ # "domain:google.com",
556
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
557
+ # ]
558
+ # `,
559
+ # `
560
+ # "role": "roles/viewer",
561
+ # "members": ["user:sean@example.com"]
562
+ # `
563
+ # ]
564
+ # `
565
+ # **YAML Example**
566
+ # bindings:
567
+ # - members:
568
+ # - user:mike@example.com
569
+ # - group:admins@example.com
570
+ # - domain:google.com
571
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
572
+ # role: roles/owner
573
+ # - members:
574
+ # - user:sean@example.com
575
+ # role: roles/viewer
576
+ # For a description of IAM and its features, see the
577
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
578
+ # Corresponds to the JSON property `policy`
579
+ # @return [Google::Apis::BigqueryconnectionV1beta1::Policy]
580
+ attr_accessor :policy
581
+
582
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
583
+ # the fields in the mask will be modified. If no mask is provided, the
584
+ # following default mask is used:
585
+ # paths: "bindings, etag"
586
+ # This field is only used by Cloud IAM.
587
+ # Corresponds to the JSON property `updateMask`
588
+ # @return [String]
589
+ attr_accessor :update_mask
590
+
591
+ def initialize(**args)
592
+ update!(**args)
593
+ end
594
+
595
+ # Update properties of this object
596
+ def update!(**args)
597
+ @policy = args[:policy] if args.key?(:policy)
598
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
599
+ end
600
+ end
601
+
602
+ # Request message for `TestIamPermissions` method.
603
+ class TestIamPermissionsRequest
604
+ include Google::Apis::Core::Hashable
605
+
606
+ # The set of permissions to check for the `resource`. Permissions with
607
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
608
+ # information see
609
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
610
+ # Corresponds to the JSON property `permissions`
611
+ # @return [Array<String>]
612
+ attr_accessor :permissions
613
+
614
+ def initialize(**args)
615
+ update!(**args)
616
+ end
617
+
618
+ # Update properties of this object
619
+ def update!(**args)
620
+ @permissions = args[:permissions] if args.key?(:permissions)
621
+ end
622
+ end
623
+
624
+ # Response message for `TestIamPermissions` method.
625
+ class TestIamPermissionsResponse
626
+ include Google::Apis::Core::Hashable
627
+
628
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
629
+ # allowed.
630
+ # Corresponds to the JSON property `permissions`
631
+ # @return [Array<String>]
632
+ attr_accessor :permissions
633
+
634
+ def initialize(**args)
635
+ update!(**args)
636
+ end
637
+
638
+ # Update properties of this object
639
+ def update!(**args)
640
+ @permissions = args[:permissions] if args.key?(:permissions)
641
+ end
642
+ end
643
+ end
644
+ end
645
+ end