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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigtable/
26
26
  module BigtableadminV2
27
27
  VERSION = 'V2'
28
- REVISION = '20190628'
28
+ REVISION = '20190821'
29
29
 
30
30
  # Administer your Cloud Bigtable tables and clusters
31
31
  AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
@@ -98,7 +98,7 @@ module Google
98
98
  # `
99
99
  # "log_type": "DATA_READ",
100
100
  # "exempted_members": [
101
- # "user:foo@gmail.com"
101
+ # "user:jose@example.com"
102
102
  # ]
103
103
  # `,
104
104
  # `
@@ -110,7 +110,7 @@ module Google
110
110
  # ]
111
111
  # `,
112
112
  # `
113
- # "service": "fooservice.googleapis.com"
113
+ # "service": "sampleservice.googleapis.com"
114
114
  # "audit_log_configs": [
115
115
  # `
116
116
  # "log_type": "DATA_READ",
@@ -118,16 +118,16 @@ module Google
118
118
  # `
119
119
  # "log_type": "DATA_WRITE",
120
120
  # "exempted_members": [
121
- # "user:bar@gmail.com"
121
+ # "user:aliya@example.com"
122
122
  # ]
123
123
  # `
124
124
  # ]
125
125
  # `
126
126
  # ]
127
127
  # `
128
- # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
129
- # logging. It also exempts foo@gmail.com from DATA_READ logging, and
130
- # bar@gmail.com from DATA_WRITE logging.
128
+ # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
129
+ # logging. It also exempts jose@example.com from DATA_READ logging, and
130
+ # aliya@example.com from DATA_WRITE logging.
131
131
  class AuditConfig
132
132
  include Google::Apis::Core::Hashable
133
133
 
@@ -161,7 +161,7 @@ module Google
161
161
  # `
162
162
  # "log_type": "DATA_READ",
163
163
  # "exempted_members": [
164
- # "user:foo@gmail.com"
164
+ # "user:jose@example.com"
165
165
  # ]
166
166
  # `,
167
167
  # `
@@ -170,7 +170,7 @@ module Google
170
170
  # ]
171
171
  # `
172
172
  # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
173
- # foo@gmail.com from DATA_READ logging.
173
+ # jose@example.com from DATA_READ logging.
174
174
  class AuditLogConfig
175
175
  include Google::Apis::Core::Hashable
176
176
 
@@ -216,7 +216,7 @@ module Google
216
216
  # * `allAuthenticatedUsers`: A special identifier that represents anyone
217
217
  # who is authenticated with a Google account or a service account.
218
218
  # * `user:`emailid``: An email address that represents a specific Google
219
- # account. For example, `alice@gmail.com` .
219
+ # account. For example, `alice@example.com` .
220
220
  # * `serviceAccount:`emailid``: An email address that represents a service
221
221
  # account. For example, `my-other-app@appspot.gserviceaccount.com`.
222
222
  # * `group:`emailid``: An email address that represents a Google group.
@@ -346,8 +346,7 @@ module Google
346
346
  class ClusterState
347
347
  include Google::Apis::Core::Hashable
348
348
 
349
- # Output only.
350
- # The state of replication for the table in this cluster.
349
+ # Output only. The state of replication for the table in this cluster.
351
350
  # Corresponds to the JSON property `replicationState`
352
351
  # @return [String]
353
352
  attr_accessor :replication_state
@@ -759,12 +758,40 @@ module Google
759
758
  class GetIamPolicyRequest
760
759
  include Google::Apis::Core::Hashable
761
760
 
761
+ # Encapsulates settings provided to GetIamPolicy.
762
+ # Corresponds to the JSON property `options`
763
+ # @return [Google::Apis::BigtableadminV2::GetPolicyOptions]
764
+ attr_accessor :options
765
+
766
+ def initialize(**args)
767
+ update!(**args)
768
+ end
769
+
770
+ # Update properties of this object
771
+ def update!(**args)
772
+ @options = args[:options] if args.key?(:options)
773
+ end
774
+ end
775
+
776
+ # Encapsulates settings provided to GetIamPolicy.
777
+ class GetPolicyOptions
778
+ include Google::Apis::Core::Hashable
779
+
780
+ # Optional. The policy format version to be returned.
781
+ # Acceptable values are 0, 1, and 3.
782
+ # If the value is 0, or the field is omitted, policy format version 1 will be
783
+ # returned.
784
+ # Corresponds to the JSON property `requestedPolicyVersion`
785
+ # @return [Fixnum]
786
+ attr_accessor :requested_policy_version
787
+
762
788
  def initialize(**args)
763
789
  update!(**args)
764
790
  end
765
791
 
766
792
  # Update properties of this object
767
793
  def update!(**args)
794
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
768
795
  end
769
796
  end
770
797
 
@@ -1310,7 +1337,7 @@ module Google
1310
1337
  # systems are expected to put that etag in the request to `setIamPolicy` to
1311
1338
  # ensure that their change will be applied to the same version of the policy.
1312
1339
  # If no `etag` is provided in the call to `setIamPolicy`, then the existing
1313
- # policy is overwritten blindly.
1340
+ # policy is overwritten.
1314
1341
  # Corresponds to the JSON property `etag`
1315
1342
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
1316
1343
  # @return [String]
@@ -1493,8 +1520,7 @@ module Google
1493
1520
  class Table
1494
1521
  include Google::Apis::Core::Hashable
1495
1522
 
1496
- # Output only.
1497
- # Map from cluster ID to per-cluster table state.
1523
+ # Output only. Map from cluster ID to per-cluster table state.
1498
1524
  # If it could not be determined whether or not the table has data in a
1499
1525
  # particular cluster (for example, if its zone is unavailable), then
1500
1526
  # there will be an entry for the cluster with UNKNOWN `replication_status`.
@@ -1519,8 +1545,7 @@ module Google
1519
1545
  # @return [String]
1520
1546
  attr_accessor :granularity
1521
1547
 
1522
- # Output only.
1523
- # The unique name of the table. Values are of the form
1548
+ # Output only. The unique name of the table. Values are of the form
1524
1549
  # `projects/<project>/instances/<instance>/tables/_a-zA-Z0-9*`.
1525
1550
  # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
1526
1551
  # Corresponds to the JSON property `name`
@@ -148,6 +148,12 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
+ class GetPolicyOptions
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
151
157
  class Instance
152
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
159
 
@@ -497,6 +503,15 @@ module Google
497
503
  class GetIamPolicyRequest
498
504
  # @private
499
505
  class Representation < Google::Apis::Core::JsonRepresentation
506
+ property :options, as: 'options', class: Google::Apis::BigtableadminV2::GetPolicyOptions, decorator: Google::Apis::BigtableadminV2::GetPolicyOptions::Representation
507
+
508
+ end
509
+ end
510
+
511
+ class GetPolicyOptions
512
+ # @private
513
+ class Representation < Google::Apis::Core::JsonRepresentation
514
+ property :requested_policy_version, as: 'requestedPolicyVersion'
500
515
  end
501
516
  end
502
517
 
@@ -0,0 +1,35 @@
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/binaryauthorization_v1/service.rb'
16
+ require 'google/apis/binaryauthorization_v1/classes.rb'
17
+ require 'google/apis/binaryauthorization_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Binary Authorization API
22
+ #
23
+ # The management interface for Binary Authorization, a system providing policy
24
+ # control for images deployed to Kubernetes Engine clusters.
25
+ #
26
+ # @see https://cloud.google.com/binary-authorization/
27
+ module BinaryauthorizationV1
28
+ VERSION = 'V1'
29
+ REVISION = '20190906'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,388 @@
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 BinaryauthorizationV1
24
+
25
+ # An admission rule specifies either that all container images
26
+ # used in a pod creation request must be attested to by one or more
27
+ # attestors, that all pod creations will be allowed, or that all
28
+ # pod creations will be denied.
29
+ # Images matching an admission whitelist pattern
30
+ # are exempted from admission rules and will never block a pod creation.
31
+ class AdmissionRule
32
+ include Google::Apis::Core::Hashable
33
+
34
+ # Required. The action when a pod creation is denied by the admission rule.
35
+ # Corresponds to the JSON property `enforcementMode`
36
+ # @return [String]
37
+ attr_accessor :enforcement_mode
38
+
39
+ # Required. How this admission rule will be evaluated.
40
+ # Corresponds to the JSON property `evaluationMode`
41
+ # @return [String]
42
+ attr_accessor :evaluation_mode
43
+
44
+ # Optional. The resource names of the attestors that must attest to
45
+ # a container image, in the format `projects/*/attestors/*`. Each
46
+ # attestor must exist before a policy can reference it. To add an attestor
47
+ # to a policy the principal issuing the policy change request must be able
48
+ # to read the attestor resource.
49
+ # Note: this field must be non-empty when the evaluation_mode field specifies
50
+ # REQUIRE_ATTESTATION, otherwise it must be empty.
51
+ # Corresponds to the JSON property `requireAttestationsBy`
52
+ # @return [Array<String>]
53
+ attr_accessor :require_attestations_by
54
+
55
+ def initialize(**args)
56
+ update!(**args)
57
+ end
58
+
59
+ # Update properties of this object
60
+ def update!(**args)
61
+ @enforcement_mode = args[:enforcement_mode] if args.key?(:enforcement_mode)
62
+ @evaluation_mode = args[:evaluation_mode] if args.key?(:evaluation_mode)
63
+ @require_attestations_by = args[:require_attestations_by] if args.key?(:require_attestations_by)
64
+ end
65
+ end
66
+
67
+ # An admission whitelist pattern exempts images
68
+ # from checks by admission rules.
69
+ class AdmissionWhitelistPattern
70
+ include Google::Apis::Core::Hashable
71
+
72
+ # An image name pattern to whitelist, in the form `registry/path/to/image`.
73
+ # This supports a trailing `*` as a wildcard, but this is allowed only in
74
+ # text after the `registry/` part.
75
+ # Corresponds to the JSON property `namePattern`
76
+ # @return [String]
77
+ attr_accessor :name_pattern
78
+
79
+ def initialize(**args)
80
+ update!(**args)
81
+ end
82
+
83
+ # Update properties of this object
84
+ def update!(**args)
85
+ @name_pattern = args[:name_pattern] if args.key?(:name_pattern)
86
+ end
87
+ end
88
+
89
+ # An attestor that attests to container image
90
+ # artifacts. An existing attestor cannot be modified except where
91
+ # indicated.
92
+ class Attestor
93
+ include Google::Apis::Core::Hashable
94
+
95
+ # Optional. A descriptive comment. This field may be updated.
96
+ # The field may be displayed in chooser dialogs.
97
+ # Corresponds to the JSON property `description`
98
+ # @return [String]
99
+ attr_accessor :description
100
+
101
+ # Required. The resource name, in the format:
102
+ # `projects/*/attestors/*`. This field may not be updated.
103
+ # Corresponds to the JSON property `name`
104
+ # @return [String]
105
+ attr_accessor :name
106
+
107
+ # Output only. Time when the attestor was last updated.
108
+ # Corresponds to the JSON property `updateTime`
109
+ # @return [String]
110
+ attr_accessor :update_time
111
+
112
+ # An user owned Grafeas note references a Grafeas
113
+ # Attestation.Authority Note created by the user.
114
+ # Corresponds to the JSON property `userOwnedGrafeasNote`
115
+ # @return [Google::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote]
116
+ attr_accessor :user_owned_grafeas_note
117
+
118
+ def initialize(**args)
119
+ update!(**args)
120
+ end
121
+
122
+ # Update properties of this object
123
+ def update!(**args)
124
+ @description = args[:description] if args.key?(:description)
125
+ @name = args[:name] if args.key?(:name)
126
+ @update_time = args[:update_time] if args.key?(:update_time)
127
+ @user_owned_grafeas_note = args[:user_owned_grafeas_note] if args.key?(:user_owned_grafeas_note)
128
+ end
129
+ end
130
+
131
+ # An attestor public key that will be used to verify
132
+ # attestations signed by this attestor.
133
+ class AttestorPublicKey
134
+ include Google::Apis::Core::Hashable
135
+
136
+ # ASCII-armored representation of a PGP public key, as the entire output by
137
+ # the command `gpg --export --armor foo@example.com` (either LF or CRLF
138
+ # line endings).
139
+ # When using this field, `id` should be left blank. The BinAuthz API
140
+ # handlers will calculate the ID and fill it in automatically. BinAuthz
141
+ # computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as
142
+ # upper-case hex. If `id` is provided by the caller, it will be
143
+ # overwritten by the API-calculated ID.
144
+ # Corresponds to the JSON property `asciiArmoredPgpPublicKey`
145
+ # @return [String]
146
+ attr_accessor :ascii_armored_pgp_public_key
147
+
148
+ # Optional. A descriptive comment. This field may be updated.
149
+ # Corresponds to the JSON property `comment`
150
+ # @return [String]
151
+ attr_accessor :comment
152
+
153
+ # The ID of this public key.
154
+ # Signatures verified by BinAuthz must include the ID of the public key that
155
+ # can be used to verify them, and that ID must match the contents of this
156
+ # field exactly.
157
+ # Additional restrictions on this field can be imposed based on which public
158
+ # key type is encapsulated. See the documentation on `public_key` cases below
159
+ # for details.
160
+ # Corresponds to the JSON property `id`
161
+ # @return [String]
162
+ attr_accessor :id
163
+
164
+ # A public key in the PkixPublicKey format (see
165
+ # https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
166
+ # Public keys of this type are typically textually encoded using the PEM
167
+ # format.
168
+ # Corresponds to the JSON property `pkixPublicKey`
169
+ # @return [Google::Apis::BinaryauthorizationV1::PkixPublicKey]
170
+ attr_accessor :pkix_public_key
171
+
172
+ def initialize(**args)
173
+ update!(**args)
174
+ end
175
+
176
+ # Update properties of this object
177
+ def update!(**args)
178
+ @ascii_armored_pgp_public_key = args[:ascii_armored_pgp_public_key] if args.key?(:ascii_armored_pgp_public_key)
179
+ @comment = args[:comment] if args.key?(:comment)
180
+ @id = args[:id] if args.key?(:id)
181
+ @pkix_public_key = args[:pkix_public_key] if args.key?(:pkix_public_key)
182
+ end
183
+ end
184
+
185
+ # A generic empty message that you can re-use to avoid defining duplicated
186
+ # empty messages in your APIs. A typical example is to use it as the request
187
+ # or the response type of an API method. For instance:
188
+ # service Foo `
189
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
190
+ # `
191
+ # The JSON representation for `Empty` is empty JSON object ````.
192
+ class Empty
193
+ include Google::Apis::Core::Hashable
194
+
195
+ def initialize(**args)
196
+ update!(**args)
197
+ end
198
+
199
+ # Update properties of this object
200
+ def update!(**args)
201
+ end
202
+ end
203
+
204
+ # Response message for BinauthzManagementService.ListAttestors.
205
+ class ListAttestorsResponse
206
+ include Google::Apis::Core::Hashable
207
+
208
+ # The list of attestors.
209
+ # Corresponds to the JSON property `attestors`
210
+ # @return [Array<Google::Apis::BinaryauthorizationV1::Attestor>]
211
+ attr_accessor :attestors
212
+
213
+ # A token to retrieve the next page of results. Pass this value in the
214
+ # ListAttestorsRequest.page_token field in the subsequent call to the
215
+ # `ListAttestors` method to retrieve the next page of results.
216
+ # Corresponds to the JSON property `nextPageToken`
217
+ # @return [String]
218
+ attr_accessor :next_page_token
219
+
220
+ def initialize(**args)
221
+ update!(**args)
222
+ end
223
+
224
+ # Update properties of this object
225
+ def update!(**args)
226
+ @attestors = args[:attestors] if args.key?(:attestors)
227
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
228
+ end
229
+ end
230
+
231
+ # A public key in the PkixPublicKey format (see
232
+ # https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
233
+ # Public keys of this type are typically textually encoded using the PEM
234
+ # format.
235
+ class PkixPublicKey
236
+ include Google::Apis::Core::Hashable
237
+
238
+ # A PEM-encoded public key, as described in
239
+ # https://tools.ietf.org/html/rfc7468#section-13
240
+ # Corresponds to the JSON property `publicKeyPem`
241
+ # @return [String]
242
+ attr_accessor :public_key_pem
243
+
244
+ # The signature algorithm used to verify a message against a signature using
245
+ # this key.
246
+ # These signature algorithm must match the structure and any object
247
+ # identifiers encoded in `public_key_pem` (i.e. this algorithm must match
248
+ # that of the public key).
249
+ # Corresponds to the JSON property `signatureAlgorithm`
250
+ # @return [String]
251
+ attr_accessor :signature_algorithm
252
+
253
+ def initialize(**args)
254
+ update!(**args)
255
+ end
256
+
257
+ # Update properties of this object
258
+ def update!(**args)
259
+ @public_key_pem = args[:public_key_pem] if args.key?(:public_key_pem)
260
+ @signature_algorithm = args[:signature_algorithm] if args.key?(:signature_algorithm)
261
+ end
262
+ end
263
+
264
+ # A policy for container image binary authorization.
265
+ class Policy
266
+ include Google::Apis::Core::Hashable
267
+
268
+ # Optional. Admission policy whitelisting. A matching admission request will
269
+ # always be permitted. This feature is typically used to exclude Google or
270
+ # third-party infrastructure images from Binary Authorization policies.
271
+ # Corresponds to the JSON property `admissionWhitelistPatterns`
272
+ # @return [Array<Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern>]
273
+ attr_accessor :admission_whitelist_patterns
274
+
275
+ # Optional. Per-cluster admission rules. Cluster spec format:
276
+ # `location.clusterId`. There can be at most one admission rule per cluster
277
+ # spec.
278
+ # A `location` is either a compute zone (e.g. us-central1-a) or a region
279
+ # (e.g. us-central1).
280
+ # For `clusterId` syntax restrictions see
281
+ # https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.
282
+ # clusters.
283
+ # Corresponds to the JSON property `clusterAdmissionRules`
284
+ # @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
285
+ attr_accessor :cluster_admission_rules
286
+
287
+ # An admission rule specifies either that all container images
288
+ # used in a pod creation request must be attested to by one or more
289
+ # attestors, that all pod creations will be allowed, or that all
290
+ # pod creations will be denied.
291
+ # Images matching an admission whitelist pattern
292
+ # are exempted from admission rules and will never block a pod creation.
293
+ # Corresponds to the JSON property `defaultAdmissionRule`
294
+ # @return [Google::Apis::BinaryauthorizationV1::AdmissionRule]
295
+ attr_accessor :default_admission_rule
296
+
297
+ # Optional. A descriptive comment.
298
+ # Corresponds to the JSON property `description`
299
+ # @return [String]
300
+ attr_accessor :description
301
+
302
+ # Optional. Controls the evaluation of a Google-maintained global admission
303
+ # policy for common system-level images. Images not covered by the global
304
+ # policy will be subject to the project admission policy. This setting
305
+ # has no effect when specified inside a global admission policy.
306
+ # Corresponds to the JSON property `globalPolicyEvaluationMode`
307
+ # @return [String]
308
+ attr_accessor :global_policy_evaluation_mode
309
+
310
+ # Output only. The resource name, in the format `projects/*/policy`. There is
311
+ # at most one policy per project.
312
+ # Corresponds to the JSON property `name`
313
+ # @return [String]
314
+ attr_accessor :name
315
+
316
+ # Output only. Time when the policy was last updated.
317
+ # Corresponds to the JSON property `updateTime`
318
+ # @return [String]
319
+ attr_accessor :update_time
320
+
321
+ def initialize(**args)
322
+ update!(**args)
323
+ end
324
+
325
+ # Update properties of this object
326
+ def update!(**args)
327
+ @admission_whitelist_patterns = args[:admission_whitelist_patterns] if args.key?(:admission_whitelist_patterns)
328
+ @cluster_admission_rules = args[:cluster_admission_rules] if args.key?(:cluster_admission_rules)
329
+ @default_admission_rule = args[:default_admission_rule] if args.key?(:default_admission_rule)
330
+ @description = args[:description] if args.key?(:description)
331
+ @global_policy_evaluation_mode = args[:global_policy_evaluation_mode] if args.key?(:global_policy_evaluation_mode)
332
+ @name = args[:name] if args.key?(:name)
333
+ @update_time = args[:update_time] if args.key?(:update_time)
334
+ end
335
+ end
336
+
337
+ # An user owned Grafeas note references a Grafeas
338
+ # Attestation.Authority Note created by the user.
339
+ class UserOwnedGrafeasNote
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # Output only. This field will contain the service account email address
343
+ # that this Attestor will use as the principal when querying Container
344
+ # Analysis. Attestor administrators must grant this service account the
345
+ # IAM role needed to read attestations from the note_reference in
346
+ # Container Analysis (`containeranalysis.notes.occurrences.viewer`).
347
+ # This email address is fixed for the lifetime of the Attestor, but callers
348
+ # should not make any other assumptions about the service account email;
349
+ # future versions may use an email based on a different naming pattern.
350
+ # Corresponds to the JSON property `delegationServiceAccountEmail`
351
+ # @return [String]
352
+ attr_accessor :delegation_service_account_email
353
+
354
+ # Required. The Grafeas resource name of a Attestation.Authority Note,
355
+ # created by the user, in the format: `projects/*/notes/*`. This field may
356
+ # not be updated.
357
+ # An attestation by this attestor is stored as a Grafeas
358
+ # Attestation.Authority Occurrence that names a container image and that
359
+ # links to this Note. Grafeas is an external dependency.
360
+ # Corresponds to the JSON property `noteReference`
361
+ # @return [String]
362
+ attr_accessor :note_reference
363
+
364
+ # Optional. Public keys that verify attestations signed by this
365
+ # attestor. This field may be updated.
366
+ # If this field is non-empty, one of the specified public keys must
367
+ # verify that an attestation was signed by this attestor for the
368
+ # image specified in the admission request.
369
+ # If this field is empty, this attestor always returns that no
370
+ # valid attestations exist.
371
+ # Corresponds to the JSON property `publicKeys`
372
+ # @return [Array<Google::Apis::BinaryauthorizationV1::AttestorPublicKey>]
373
+ attr_accessor :public_keys
374
+
375
+ def initialize(**args)
376
+ update!(**args)
377
+ end
378
+
379
+ # Update properties of this object
380
+ def update!(**args)
381
+ @delegation_service_account_email = args[:delegation_service_account_email] if args.key?(:delegation_service_account_email)
382
+ @note_reference = args[:note_reference] if args.key?(:note_reference)
383
+ @public_keys = args[:public_keys] if args.key?(:public_keys)
384
+ end
385
+ end
386
+ end
387
+ end
388
+ end