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
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/functions
27
27
  module CloudfunctionsV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170425'
29
+ REVISION = '20170520'
30
30
  end
31
31
  end
32
32
  end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/kms/
27
27
  module CloudkmsV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170425'
29
+ REVISION = '20170515'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,383 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudkmsV1
24
24
 
25
- # Request message for KeyManagementService.DestroyCryptoKeyVersion.
26
- class DestroyCryptoKeyVersionRequest
27
- include Google::Apis::Core::Hashable
28
-
29
- def initialize(**args)
30
- update!(**args)
31
- end
32
-
33
- # Update properties of this object
34
- def update!(**args)
35
- end
36
- end
37
-
38
- # A rule to be applied in a Policy.
39
- class Rule
40
- include Google::Apis::Core::Hashable
41
-
42
- # If one or more 'not_in' clauses are specified, the rule matches
43
- # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
44
- # The format for in and not_in entries is the same as for members in a
45
- # Binding (see google/iam/v1/policy.proto).
46
- # Corresponds to the JSON property `notIn`
47
- # @return [Array<String>]
48
- attr_accessor :not_in
49
-
50
- # Human-readable description of the rule.
51
- # Corresponds to the JSON property `description`
52
- # @return [String]
53
- attr_accessor :description
54
-
55
- # Additional restrictions that must be met
56
- # Corresponds to the JSON property `conditions`
57
- # @return [Array<Google::Apis::CloudkmsV1::Condition>]
58
- attr_accessor :conditions
59
-
60
- # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
61
- # that match the LOG action.
62
- # Corresponds to the JSON property `logConfig`
63
- # @return [Array<Google::Apis::CloudkmsV1::LogConfig>]
64
- attr_accessor :log_config
65
-
66
- # If one or more 'in' clauses are specified, the rule matches if
67
- # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
68
- # Corresponds to the JSON property `in`
69
- # @return [Array<String>]
70
- attr_accessor :in
71
-
72
- # A permission is a string of form '<service>.<resource type>.<verb>'
73
- # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
74
- # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
75
- # Corresponds to the JSON property `permissions`
76
- # @return [Array<String>]
77
- attr_accessor :permissions
78
-
79
- # Required
80
- # Corresponds to the JSON property `action`
81
- # @return [String]
82
- attr_accessor :action
83
-
84
- def initialize(**args)
85
- update!(**args)
86
- end
87
-
88
- # Update properties of this object
89
- def update!(**args)
90
- @not_in = args[:not_in] if args.key?(:not_in)
91
- @description = args[:description] if args.key?(:description)
92
- @conditions = args[:conditions] if args.key?(:conditions)
93
- @log_config = args[:log_config] if args.key?(:log_config)
94
- @in = args[:in] if args.key?(:in)
95
- @permissions = args[:permissions] if args.key?(:permissions)
96
- @action = args[:action] if args.key?(:action)
97
- end
98
- end
99
-
100
- # A CryptoKey represents a logical key that can be used for cryptographic
101
- # operations.
102
- # A CryptoKey is made up of one or more versions, which
103
- # represent the actual key material used in cryptographic operations.
104
- class CryptoKey
105
- include Google::Apis::Core::Hashable
106
-
107
- # Output only. The time at which this CryptoKey was created.
108
- # Corresponds to the JSON property `createTime`
109
- # @return [String]
110
- attr_accessor :create_time
111
-
112
- # next_rotation_time will be advanced by this period when the service
113
- # automatically rotates a key. Must be at least one day.
114
- # If rotation_period is set, next_rotation_time must also be set.
115
- # Corresponds to the JSON property `rotationPeriod`
116
- # @return [String]
117
- attr_accessor :rotation_period
118
-
119
- # A CryptoKeyVersion represents an individual cryptographic key, and the
120
- # associated key material.
121
- # It can be used for cryptographic operations either directly, or via its
122
- # parent CryptoKey, in which case the server will choose the appropriate
123
- # version for the operation.
124
- # Corresponds to the JSON property `primary`
125
- # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
126
- attr_accessor :primary
127
-
128
- # Output only. The resource name for this CryptoKey in the format
129
- # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
130
- # Corresponds to the JSON property `name`
131
- # @return [String]
132
- attr_accessor :name
133
-
134
- # The immutable purpose of this CryptoKey. Currently, the only acceptable
135
- # purpose is ENCRYPT_DECRYPT.
136
- # Corresponds to the JSON property `purpose`
137
- # @return [String]
138
- attr_accessor :purpose
139
-
140
- # At next_rotation_time, the Key Management Service will automatically:
141
- # 1. Create a new version of this CryptoKey.
142
- # 2. Mark the new version as primary.
143
- # Key rotations performed manually via
144
- # CreateCryptoKeyVersion and
145
- # UpdateCryptoKeyPrimaryVersion
146
- # do not affect next_rotation_time.
147
- # Corresponds to the JSON property `nextRotationTime`
148
- # @return [String]
149
- attr_accessor :next_rotation_time
150
-
151
- def initialize(**args)
152
- update!(**args)
153
- end
154
-
155
- # Update properties of this object
156
- def update!(**args)
157
- @create_time = args[:create_time] if args.key?(:create_time)
158
- @rotation_period = args[:rotation_period] if args.key?(:rotation_period)
159
- @primary = args[:primary] if args.key?(:primary)
160
- @name = args[:name] if args.key?(:name)
161
- @purpose = args[:purpose] if args.key?(:purpose)
162
- @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
163
- end
164
- end
165
-
166
- # Specifies what kind of log the caller must write
167
- class LogConfig
168
- include Google::Apis::Core::Hashable
169
-
170
- # Options for counters
171
- # Corresponds to the JSON property `counter`
172
- # @return [Google::Apis::CloudkmsV1::CounterOptions]
173
- attr_accessor :counter
174
-
175
- # Write a Data Access (Gin) log
176
- # Corresponds to the JSON property `dataAccess`
177
- # @return [Google::Apis::CloudkmsV1::DataAccessOptions]
178
- attr_accessor :data_access
179
-
180
- # Write a Cloud Audit log
181
- # Corresponds to the JSON property `cloudAudit`
182
- # @return [Google::Apis::CloudkmsV1::CloudAuditOptions]
183
- attr_accessor :cloud_audit
184
-
185
- def initialize(**args)
186
- update!(**args)
187
- end
188
-
189
- # Update properties of this object
190
- def update!(**args)
191
- @counter = args[:counter] if args.key?(:counter)
192
- @data_access = args[:data_access] if args.key?(:data_access)
193
- @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
194
- end
195
- end
196
-
197
- # Request message for `SetIamPolicy` method.
198
- class SetIamPolicyRequest
199
- include Google::Apis::Core::Hashable
200
-
201
- # Defines an Identity and Access Management (IAM) policy. It is used to
202
- # specify access control policies for Cloud Platform resources.
203
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
204
- # `members` to a `role`, where the members can be user accounts, Google groups,
205
- # Google domains, and service accounts. A `role` is a named list of permissions
206
- # defined by IAM.
207
- # **Example**
208
- # `
209
- # "bindings": [
210
- # `
211
- # "role": "roles/owner",
212
- # "members": [
213
- # "user:mike@example.com",
214
- # "group:admins@example.com",
215
- # "domain:google.com",
216
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
217
- # ]
218
- # `,
219
- # `
220
- # "role": "roles/viewer",
221
- # "members": ["user:sean@example.com"]
222
- # `
223
- # ]
224
- # `
225
- # For a description of IAM and its features, see the
226
- # [IAM developer's guide](https://cloud.google.com/iam).
227
- # Corresponds to the JSON property `policy`
228
- # @return [Google::Apis::CloudkmsV1::Policy]
229
- attr_accessor :policy
230
-
231
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
232
- # the fields in the mask will be modified. If no mask is provided, the
233
- # following default mask is used:
234
- # paths: "bindings, etag"
235
- # This field is only used by Cloud IAM.
236
- # Corresponds to the JSON property `updateMask`
237
- # @return [String]
238
- attr_accessor :update_mask
239
-
240
- def initialize(**args)
241
- update!(**args)
242
- end
243
-
244
- # Update properties of this object
245
- def update!(**args)
246
- @policy = args[:policy] if args.key?(:policy)
247
- @update_mask = args[:update_mask] if args.key?(:update_mask)
248
- end
249
- end
250
-
251
- # Request message for KeyManagementService.Decrypt.
252
- class DecryptRequest
253
- include Google::Apis::Core::Hashable
254
-
255
- # Required. The encrypted data originally returned in
256
- # EncryptResponse.ciphertext.
257
- # Corresponds to the JSON property `ciphertext`
258
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
259
- # @return [String]
260
- attr_accessor :ciphertext
261
-
262
- # Optional data that must match the data originally supplied in
263
- # EncryptRequest.additional_authenticated_data.
264
- # Corresponds to the JSON property `additionalAuthenticatedData`
265
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
266
- # @return [String]
267
- attr_accessor :additional_authenticated_data
268
-
269
- def initialize(**args)
270
- update!(**args)
271
- end
272
-
273
- # Update properties of this object
274
- def update!(**args)
275
- @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
276
- @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
277
- end
278
- end
279
-
280
- # A resource that represents Google Cloud Platform location.
281
- class Location
282
- include Google::Apis::Core::Hashable
283
-
284
- # Cross-service attributes for the location. For example
285
- # `"cloud.googleapis.com/region": "us-east1"`
286
- # Corresponds to the JSON property `labels`
287
- # @return [Hash<String,String>]
288
- attr_accessor :labels
289
-
290
- # Resource name for the location, which may vary between implementations.
291
- # For example: `"projects/example-project/locations/us-east1"`
292
- # Corresponds to the JSON property `name`
293
- # @return [String]
294
- attr_accessor :name
295
-
296
- # The canonical id for this location. For example: `"us-east1"`.
297
- # Corresponds to the JSON property `locationId`
298
- # @return [String]
299
- attr_accessor :location_id
300
-
301
- # Service-specific metadata. For example the available capacity at the given
302
- # location.
303
- # Corresponds to the JSON property `metadata`
304
- # @return [Hash<String,Object>]
305
- attr_accessor :metadata
306
-
307
- def initialize(**args)
308
- update!(**args)
309
- end
310
-
311
- # Update properties of this object
312
- def update!(**args)
313
- @labels = args[:labels] if args.key?(:labels)
314
- @name = args[:name] if args.key?(:name)
315
- @location_id = args[:location_id] if args.key?(:location_id)
316
- @metadata = args[:metadata] if args.key?(:metadata)
317
- end
318
- end
319
-
320
- # Response message for KeyManagementService.ListCryptoKeys.
321
- class ListCryptoKeysResponse
322
- include Google::Apis::Core::Hashable
323
-
324
- # A token to retrieve next page of results. Pass this value in
325
- # ListCryptoKeysRequest.page_token to retrieve the next page of results.
326
- # Corresponds to the JSON property `nextPageToken`
327
- # @return [String]
328
- attr_accessor :next_page_token
329
-
330
- # The list of CryptoKeys.
331
- # Corresponds to the JSON property `cryptoKeys`
332
- # @return [Array<Google::Apis::CloudkmsV1::CryptoKey>]
333
- attr_accessor :crypto_keys
334
-
335
- # The total number of CryptoKeys that matched the query.
336
- # Corresponds to the JSON property `totalSize`
337
- # @return [Fixnum]
338
- attr_accessor :total_size
339
-
340
- def initialize(**args)
341
- update!(**args)
342
- end
343
-
344
- # Update properties of this object
345
- def update!(**args)
346
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
347
- @crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys)
348
- @total_size = args[:total_size] if args.key?(:total_size)
349
- end
350
- end
351
-
352
- # A condition to be met.
353
- class Condition
354
- include Google::Apis::Core::Hashable
355
-
356
- # DEPRECATED. Use 'values' instead.
357
- # Corresponds to the JSON property `value`
358
- # @return [String]
359
- attr_accessor :value
360
-
361
- # Trusted attributes supplied by any service that owns resources and uses
362
- # the IAM system for access control.
363
- # Corresponds to the JSON property `sys`
364
- # @return [String]
365
- attr_accessor :sys
366
-
367
- # Trusted attributes supplied by the IAM system.
368
- # Corresponds to the JSON property `iam`
369
- # @return [String]
370
- attr_accessor :iam
371
-
372
- # The objects of the condition. This is mutually exclusive with 'value'.
373
- # Corresponds to the JSON property `values`
374
- # @return [Array<String>]
375
- attr_accessor :values
376
-
377
- # An operator to apply the subject with.
378
- # Corresponds to the JSON property `op`
379
- # @return [String]
380
- attr_accessor :op
381
-
382
- # Trusted attributes discharged by the service.
383
- # Corresponds to the JSON property `svc`
384
- # @return [String]
385
- attr_accessor :svc
386
-
387
- def initialize(**args)
388
- update!(**args)
389
- end
390
-
391
- # Update properties of this object
392
- def update!(**args)
393
- @value = args[:value] if args.key?(:value)
394
- @sys = args[:sys] if args.key?(:sys)
395
- @iam = args[:iam] if args.key?(:iam)
396
- @values = args[:values] if args.key?(:values)
397
- @op = args[:op] if args.key?(:op)
398
- @svc = args[:svc] if args.key?(:svc)
399
- end
400
- end
401
-
402
25
  # Options for counters
403
26
  class CounterOptions
404
27
  include Google::Apis::Core::Hashable
@@ -444,11 +67,6 @@ module Google
444
67
  class AuditLogConfig
445
68
  include Google::Apis::Core::Hashable
446
69
 
447
- # The log type that this config enables.
448
- # Corresponds to the JSON property `logType`
449
- # @return [String]
450
- attr_accessor :log_type
451
-
452
70
  # Specifies the identities that do not cause logging for this type of
453
71
  # permission.
454
72
  # Follows the same format of Binding.members.
@@ -456,14 +74,19 @@ module Google
456
74
  # @return [Array<String>]
457
75
  attr_accessor :exempted_members
458
76
 
77
+ # The log type that this config enables.
78
+ # Corresponds to the JSON property `logType`
79
+ # @return [String]
80
+ attr_accessor :log_type
81
+
459
82
  def initialize(**args)
460
83
  update!(**args)
461
84
  end
462
85
 
463
86
  # Update properties of this object
464
87
  def update!(**args)
465
- @log_type = args[:log_type] if args.key?(:log_type)
466
88
  @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
89
+ @log_type = args[:log_type] if args.key?(:log_type)
467
90
  end
468
91
  end
469
92
 
@@ -509,29 +132,123 @@ module Google
509
132
  end
510
133
  end
511
134
 
135
+ # Defines an Identity and Access Management (IAM) policy. It is used to
136
+ # specify access control policies for Cloud Platform resources.
137
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
138
+ # `members` to a `role`, where the members can be user accounts, Google groups,
139
+ # Google domains, and service accounts. A `role` is a named list of permissions
140
+ # defined by IAM.
141
+ # **Example**
142
+ # `
143
+ # "bindings": [
144
+ # `
145
+ # "role": "roles/owner",
146
+ # "members": [
147
+ # "user:mike@example.com",
148
+ # "group:admins@example.com",
149
+ # "domain:google.com",
150
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
151
+ # ]
152
+ # `,
153
+ # `
154
+ # "role": "roles/viewer",
155
+ # "members": ["user:sean@example.com"]
156
+ # `
157
+ # ]
158
+ # `
159
+ # For a description of IAM and its features, see the
160
+ # [IAM developer's guide](https://cloud.google.com/iam).
161
+ class Policy
162
+ include Google::Apis::Core::Hashable
163
+
164
+ # Specifies cloud audit logging configuration for this policy.
165
+ # Corresponds to the JSON property `auditConfigs`
166
+ # @return [Array<Google::Apis::CloudkmsV1::AuditConfig>]
167
+ attr_accessor :audit_configs
168
+
169
+ # Associates a list of `members` to a `role`.
170
+ # Multiple `bindings` must not be specified for the same `role`.
171
+ # `bindings` with no members will result in an error.
172
+ # Corresponds to the JSON property `bindings`
173
+ # @return [Array<Google::Apis::CloudkmsV1::Binding>]
174
+ attr_accessor :bindings
175
+
176
+ # `etag` is used for optimistic concurrency control as a way to help
177
+ # prevent simultaneous updates of a policy from overwriting each other.
178
+ # It is strongly suggested that systems make use of the `etag` in the
179
+ # read-modify-write cycle to perform policy updates in order to avoid race
180
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
181
+ # systems are expected to put that etag in the request to `setIamPolicy` to
182
+ # ensure that their change will be applied to the same version of the policy.
183
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
184
+ # policy is overwritten blindly.
185
+ # Corresponds to the JSON property `etag`
186
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
187
+ # @return [String]
188
+ attr_accessor :etag
189
+
190
+ #
191
+ # Corresponds to the JSON property `iamOwned`
192
+ # @return [Boolean]
193
+ attr_accessor :iam_owned
194
+ alias_method :iam_owned?, :iam_owned
195
+
196
+ # If more than one rule is specified, the rules are applied in the following
197
+ # manner:
198
+ # - All matching LOG rules are always applied.
199
+ # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
200
+ # Logging will be applied if one or more matching rule requires logging.
201
+ # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
202
+ # granted.
203
+ # Logging will be applied if one or more matching rule requires logging.
204
+ # - Otherwise, if no rule applies, permission is denied.
205
+ # Corresponds to the JSON property `rules`
206
+ # @return [Array<Google::Apis::CloudkmsV1::Rule>]
207
+ attr_accessor :rules
208
+
209
+ # Version of the `Policy`. The default version is 0.
210
+ # Corresponds to the JSON property `version`
211
+ # @return [Fixnum]
212
+ attr_accessor :version
213
+
214
+ def initialize(**args)
215
+ update!(**args)
216
+ end
217
+
218
+ # Update properties of this object
219
+ def update!(**args)
220
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
221
+ @bindings = args[:bindings] if args.key?(:bindings)
222
+ @etag = args[:etag] if args.key?(:etag)
223
+ @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
224
+ @rules = args[:rules] if args.key?(:rules)
225
+ @version = args[:version] if args.key?(:version)
226
+ end
227
+ end
228
+
512
229
  # Response message for KeyManagementService.Encrypt.
513
230
  class EncryptResponse
514
231
  include Google::Apis::Core::Hashable
515
232
 
233
+ # The resource name of the CryptoKeyVersion used in encryption.
234
+ # Corresponds to the JSON property `name`
235
+ # @return [String]
236
+ attr_accessor :name
237
+
516
238
  # The encrypted data.
517
239
  # Corresponds to the JSON property `ciphertext`
518
240
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
519
241
  # @return [String]
520
242
  attr_accessor :ciphertext
521
243
 
522
- # The resource name of the CryptoKeyVersion used in encryption.
523
- # Corresponds to the JSON property `name`
524
- # @return [String]
525
- attr_accessor :name
526
-
527
244
  def initialize(**args)
528
245
  update!(**args)
529
246
  end
530
247
 
531
248
  # Update properties of this object
532
249
  def update!(**args)
533
- @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
534
250
  @name = args[:name] if args.key?(:name)
251
+ @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
535
252
  end
536
253
  end
537
254
 
@@ -586,84 +303,223 @@ module Google
586
303
  end
587
304
  end
588
305
 
589
- # Defines an Identity and Access Management (IAM) policy. It is used to
590
- # specify access control policies for Cloud Platform resources.
591
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
592
- # `members` to a `role`, where the members can be user accounts, Google groups,
593
- # Google domains, and service accounts. A `role` is a named list of permissions
594
- # defined by IAM.
595
- # **Example**
306
+ # Request message for KeyManagementService.RestoreCryptoKeyVersion.
307
+ class RestoreCryptoKeyVersionRequest
308
+ include Google::Apis::Core::Hashable
309
+
310
+ def initialize(**args)
311
+ update!(**args)
312
+ end
313
+
314
+ # Update properties of this object
315
+ def update!(**args)
316
+ end
317
+ end
318
+
319
+ # Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.
320
+ class UpdateCryptoKeyPrimaryVersionRequest
321
+ include Google::Apis::Core::Hashable
322
+
323
+ # The id of the child CryptoKeyVersion to use as primary.
324
+ # Corresponds to the JSON property `cryptoKeyVersionId`
325
+ # @return [String]
326
+ attr_accessor :crypto_key_version_id
327
+
328
+ def initialize(**args)
329
+ update!(**args)
330
+ end
331
+
332
+ # Update properties of this object
333
+ def update!(**args)
334
+ @crypto_key_version_id = args[:crypto_key_version_id] if args.key?(:crypto_key_version_id)
335
+ end
336
+ end
337
+
338
+ # Write a Data Access (Gin) log
339
+ class DataAccessOptions
340
+ include Google::Apis::Core::Hashable
341
+
342
+ def initialize(**args)
343
+ update!(**args)
344
+ end
345
+
346
+ # Update properties of this object
347
+ def update!(**args)
348
+ end
349
+ end
350
+
351
+ # Response message for KeyManagementService.ListKeyRings.
352
+ class ListKeyRingsResponse
353
+ include Google::Apis::Core::Hashable
354
+
355
+ # A token to retrieve next page of results. Pass this value in
356
+ # ListKeyRingsRequest.page_token to retrieve the next page of results.
357
+ # Corresponds to the JSON property `nextPageToken`
358
+ # @return [String]
359
+ attr_accessor :next_page_token
360
+
361
+ # The total number of KeyRings that matched the query.
362
+ # Corresponds to the JSON property `totalSize`
363
+ # @return [Fixnum]
364
+ attr_accessor :total_size
365
+
366
+ # The list of KeyRings.
367
+ # Corresponds to the JSON property `keyRings`
368
+ # @return [Array<Google::Apis::CloudkmsV1::KeyRing>]
369
+ attr_accessor :key_rings
370
+
371
+ def initialize(**args)
372
+ update!(**args)
373
+ end
374
+
375
+ # Update properties of this object
376
+ def update!(**args)
377
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
378
+ @total_size = args[:total_size] if args.key?(:total_size)
379
+ @key_rings = args[:key_rings] if args.key?(:key_rings)
380
+ end
381
+ end
382
+
383
+ # Specifies the audit configuration for a service.
384
+ # The configuration determines which permission types are logged, and what
385
+ # identities, if any, are exempted from logging.
386
+ # An AuditConfig must have one or more AuditLogConfigs.
387
+ # If there are AuditConfigs for both `allServices` and a specific service,
388
+ # the union of the two AuditConfigs is used for that service: the log_types
389
+ # specified in each AuditConfig are enabled, and the exempted_members in each
390
+ # AuditConfig are exempted.
391
+ # Example Policy with multiple AuditConfigs:
596
392
  # `
597
- # "bindings": [
393
+ # "audit_configs": [
598
394
  # `
599
- # "role": "roles/owner",
600
- # "members": [
601
- # "user:mike@example.com",
602
- # "group:admins@example.com",
603
- # "domain:google.com",
604
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
395
+ # "service": "allServices"
396
+ # "audit_log_configs": [
397
+ # `
398
+ # "log_type": "DATA_READ",
399
+ # "exempted_members": [
400
+ # "user:foo@gmail.com"
605
401
  # ]
606
402
  # `,
607
403
  # `
608
- # "role": "roles/viewer",
609
- # "members": ["user:sean@example.com"]
404
+ # "log_type": "DATA_WRITE",
405
+ # `,
406
+ # `
407
+ # "log_type": "ADMIN_READ",
610
408
  # `
611
409
  # ]
410
+ # `,
612
411
  # `
613
- # For a description of IAM and its features, see the
614
- # [IAM developer's guide](https://cloud.google.com/iam).
615
- class Policy
412
+ # "service": "fooservice.googleapis.com"
413
+ # "audit_log_configs": [
414
+ # `
415
+ # "log_type": "DATA_READ",
416
+ # `,
417
+ # `
418
+ # "log_type": "DATA_WRITE",
419
+ # "exempted_members": [
420
+ # "user:bar@gmail.com"
421
+ # ]
422
+ # `
423
+ # ]
424
+ # `
425
+ # ]
426
+ # `
427
+ # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
428
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and
429
+ # bar@gmail.com from DATA_WRITE logging.
430
+ class AuditConfig
616
431
  include Google::Apis::Core::Hashable
617
432
 
433
+ # Specifies a service that will be enabled for audit logging.
434
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
435
+ # `allServices` is a special value that covers all services.
436
+ # Corresponds to the JSON property `service`
437
+ # @return [String]
438
+ attr_accessor :service
439
+
440
+ # The configuration for logging of each type of permission.
441
+ # Next ID: 4
442
+ # Corresponds to the JSON property `auditLogConfigs`
443
+ # @return [Array<Google::Apis::CloudkmsV1::AuditLogConfig>]
444
+ attr_accessor :audit_log_configs
445
+
618
446
  #
619
- # Corresponds to the JSON property `iamOwned`
620
- # @return [Boolean]
621
- attr_accessor :iam_owned
622
- alias_method :iam_owned?, :iam_owned
447
+ # Corresponds to the JSON property `exemptedMembers`
448
+ # @return [Array<String>]
449
+ attr_accessor :exempted_members
623
450
 
624
- # If more than one rule is specified, the rules are applied in the following
625
- # manner:
626
- # - All matching LOG rules are always applied.
627
- # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
628
- # Logging will be applied if one or more matching rule requires logging.
629
- # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
630
- # granted.
631
- # Logging will be applied if one or more matching rule requires logging.
632
- # - Otherwise, if no rule applies, permission is denied.
633
- # Corresponds to the JSON property `rules`
634
- # @return [Array<Google::Apis::CloudkmsV1::Rule>]
635
- attr_accessor :rules
451
+ def initialize(**args)
452
+ update!(**args)
453
+ end
636
454
 
637
- # Version of the `Policy`. The default version is 0.
638
- # Corresponds to the JSON property `version`
639
- # @return [Fixnum]
640
- attr_accessor :version
455
+ # Update properties of this object
456
+ def update!(**args)
457
+ @service = args[:service] if args.key?(:service)
458
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
459
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
460
+ end
461
+ end
641
462
 
642
- # Specifies cloud audit logging configuration for this policy.
643
- # Corresponds to the JSON property `auditConfigs`
644
- # @return [Array<Google::Apis::CloudkmsV1::AuditConfig>]
645
- attr_accessor :audit_configs
463
+ # A CryptoKeyVersion represents an individual cryptographic key, and the
464
+ # associated key material.
465
+ # It can be used for cryptographic operations either directly, or via its
466
+ # parent CryptoKey, in which case the server will choose the appropriate
467
+ # version for the operation.
468
+ class CryptoKeyVersion
469
+ include Google::Apis::Core::Hashable
646
470
 
647
- # Associates a list of `members` to a `role`.
648
- # Multiple `bindings` must not be specified for the same `role`.
649
- # `bindings` with no members will result in an error.
650
- # Corresponds to the JSON property `bindings`
651
- # @return [Array<Google::Apis::CloudkmsV1::Binding>]
652
- attr_accessor :bindings
471
+ # The current state of the CryptoKeyVersion.
472
+ # Corresponds to the JSON property `state`
473
+ # @return [String]
474
+ attr_accessor :state
475
+
476
+ # Output only. The resource name for this CryptoKeyVersion in the format
477
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
478
+ # Corresponds to the JSON property `name`
479
+ # @return [String]
480
+ attr_accessor :name
481
+
482
+ # Output only. The time this CryptoKeyVersion's key material was
483
+ # destroyed. Only present if state is
484
+ # DESTROYED.
485
+ # Corresponds to the JSON property `destroyEventTime`
486
+ # @return [String]
487
+ attr_accessor :destroy_event_time
488
+
489
+ # Output only. The time this CryptoKeyVersion's key material is scheduled
490
+ # for destruction. Only present if state is
491
+ # DESTROY_SCHEDULED.
492
+ # Corresponds to the JSON property `destroyTime`
493
+ # @return [String]
494
+ attr_accessor :destroy_time
495
+
496
+ # Output only. The time at which this CryptoKeyVersion was created.
497
+ # Corresponds to the JSON property `createTime`
498
+ # @return [String]
499
+ attr_accessor :create_time
500
+
501
+ def initialize(**args)
502
+ update!(**args)
503
+ end
504
+
505
+ # Update properties of this object
506
+ def update!(**args)
507
+ @state = args[:state] if args.key?(:state)
508
+ @name = args[:name] if args.key?(:name)
509
+ @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
510
+ @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
511
+ @create_time = args[:create_time] if args.key?(:create_time)
512
+ end
513
+ end
653
514
 
654
- # `etag` is used for optimistic concurrency control as a way to help
655
- # prevent simultaneous updates of a policy from overwriting each other.
656
- # It is strongly suggested that systems make use of the `etag` in the
657
- # read-modify-write cycle to perform policy updates in order to avoid race
658
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
659
- # systems are expected to put that etag in the request to `setIamPolicy` to
660
- # ensure that their change will be applied to the same version of the policy.
661
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
662
- # policy is overwritten blindly.
663
- # Corresponds to the JSON property `etag`
664
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
515
+ # Write a Cloud Audit log
516
+ class CloudAuditOptions
517
+ include Google::Apis::Core::Hashable
518
+
519
+ # The log_name to populate in the Cloud Audit Record.
520
+ # Corresponds to the JSON property `logName`
665
521
  # @return [String]
666
- attr_accessor :etag
522
+ attr_accessor :log_name
667
523
 
668
524
  def initialize(**args)
669
525
  update!(**args)
@@ -671,36 +527,67 @@ module Google
671
527
 
672
528
  # Update properties of this object
673
529
  def update!(**args)
674
- @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
675
- @rules = args[:rules] if args.key?(:rules)
676
- @version = args[:version] if args.key?(:version)
677
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
678
- @bindings = args[:bindings] if args.key?(:bindings)
679
- @etag = args[:etag] if args.key?(:etag)
530
+ @log_name = args[:log_name] if args.key?(:log_name)
680
531
  end
681
532
  end
682
533
 
683
- # Request message for KeyManagementService.RestoreCryptoKeyVersion.
684
- class RestoreCryptoKeyVersionRequest
534
+ # Associates `members` with a `role`.
535
+ class Binding
685
536
  include Google::Apis::Core::Hashable
686
537
 
538
+ # Specifies the identities requesting access for a Cloud Platform resource.
539
+ # `members` can have the following values:
540
+ # * `allUsers`: A special identifier that represents anyone who is
541
+ # on the internet; with or without a Google account.
542
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
543
+ # who is authenticated with a Google account or a service account.
544
+ # * `user:`emailid``: An email address that represents a specific Google
545
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
546
+ # * `serviceAccount:`emailid``: An email address that represents a service
547
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
548
+ # * `group:`emailid``: An email address that represents a Google group.
549
+ # For example, `admins@example.com`.
550
+ # * `domain:`domain``: A Google Apps domain name that represents all the
551
+ # users of that domain. For example, `google.com` or `example.com`.
552
+ # Corresponds to the JSON property `members`
553
+ # @return [Array<String>]
554
+ attr_accessor :members
555
+
556
+ # Role that is assigned to `members`.
557
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
558
+ # Required
559
+ # Corresponds to the JSON property `role`
560
+ # @return [String]
561
+ attr_accessor :role
562
+
687
563
  def initialize(**args)
688
564
  update!(**args)
689
565
  end
690
566
 
691
567
  # Update properties of this object
692
568
  def update!(**args)
569
+ @members = args[:members] if args.key?(:members)
570
+ @role = args[:role] if args.key?(:role)
693
571
  end
694
572
  end
695
573
 
696
- # Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.
697
- class UpdateCryptoKeyPrimaryVersionRequest
574
+ # Request message for KeyManagementService.Encrypt.
575
+ class EncryptRequest
698
576
  include Google::Apis::Core::Hashable
699
577
 
700
- # The id of the child CryptoKeyVersion to use as primary.
701
- # Corresponds to the JSON property `cryptoKeyVersionId`
578
+ # Optional data that, if specified, must also be provided during decryption
579
+ # through DecryptRequest.additional_authenticated_data. Must be no
580
+ # larger than 64KiB.
581
+ # Corresponds to the JSON property `additionalAuthenticatedData`
582
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
702
583
  # @return [String]
703
- attr_accessor :crypto_key_version_id
584
+ attr_accessor :additional_authenticated_data
585
+
586
+ # Required. The data to encrypt. Must be no larger than 64KiB.
587
+ # Corresponds to the JSON property `plaintext`
588
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
589
+ # @return [String]
590
+ attr_accessor :plaintext
704
591
 
705
592
  def initialize(**args)
706
593
  update!(**args)
@@ -708,26 +595,29 @@ module Google
708
595
 
709
596
  # Update properties of this object
710
597
  def update!(**args)
711
- @crypto_key_version_id = args[:crypto_key_version_id] if args.key?(:crypto_key_version_id)
598
+ @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
599
+ @plaintext = args[:plaintext] if args.key?(:plaintext)
712
600
  end
713
601
  end
714
602
 
715
- # Response message for KeyManagementService.ListKeyRings.
716
- class ListKeyRingsResponse
603
+ # Response message for KeyManagementService.ListCryptoKeyVersions.
604
+ class ListCryptoKeyVersionsResponse
717
605
  include Google::Apis::Core::Hashable
718
606
 
719
- # The list of KeyRings.
720
- # Corresponds to the JSON property `keyRings`
721
- # @return [Array<Google::Apis::CloudkmsV1::KeyRing>]
722
- attr_accessor :key_rings
607
+ # The list of CryptoKeyVersions.
608
+ # Corresponds to the JSON property `cryptoKeyVersions`
609
+ # @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
610
+ attr_accessor :crypto_key_versions
723
611
 
724
612
  # A token to retrieve next page of results. Pass this value in
725
- # ListKeyRingsRequest.page_token to retrieve the next page of results.
613
+ # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
614
+ # results.
726
615
  # Corresponds to the JSON property `nextPageToken`
727
616
  # @return [String]
728
617
  attr_accessor :next_page_token
729
618
 
730
- # The total number of KeyRings that matched the query.
619
+ # The total number of CryptoKeyVersions that matched the
620
+ # query.
731
621
  # Corresponds to the JSON property `totalSize`
732
622
  # @return [Fixnum]
733
623
  attr_accessor :total_size
@@ -738,92 +628,90 @@ module Google
738
628
 
739
629
  # Update properties of this object
740
630
  def update!(**args)
741
- @key_rings = args[:key_rings] if args.key?(:key_rings)
631
+ @crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
742
632
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
743
633
  @total_size = args[:total_size] if args.key?(:total_size)
744
634
  end
745
635
  end
746
636
 
747
- # Write a Data Access (Gin) log
748
- class DataAccessOptions
637
+ # Response message for `TestIamPermissions` method.
638
+ class TestIamPermissionsResponse
749
639
  include Google::Apis::Core::Hashable
750
640
 
641
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
642
+ # allowed.
643
+ # Corresponds to the JSON property `permissions`
644
+ # @return [Array<String>]
645
+ attr_accessor :permissions
646
+
751
647
  def initialize(**args)
752
648
  update!(**args)
753
649
  end
754
650
 
755
651
  # Update properties of this object
756
652
  def update!(**args)
653
+ @permissions = args[:permissions] if args.key?(:permissions)
757
654
  end
758
655
  end
759
656
 
760
- # Specifies the audit configuration for a service.
761
- # The configuration determines which permission types are logged, and what
762
- # identities, if any, are exempted from logging.
763
- # An AuditConfig must have one or more AuditLogConfigs.
764
- # If there are AuditConfigs for both `allServices` and a specific service,
765
- # the union of the two AuditConfigs is used for that service: the log_types
766
- # specified in each AuditConfig are enabled, and the exempted_members in each
767
- # AuditConfig are exempted.
768
- # Example Policy with multiple AuditConfigs:
769
- # `
770
- # "audit_configs": [
771
- # `
772
- # "service": "allServices"
773
- # "audit_log_configs": [
774
- # `
775
- # "log_type": "DATA_READ",
776
- # "exempted_members": [
777
- # "user:foo@gmail.com"
778
- # ]
779
- # `,
780
- # `
781
- # "log_type": "DATA_WRITE",
782
- # `,
783
- # `
784
- # "log_type": "ADMIN_READ",
785
- # `
786
- # ]
787
- # `,
788
- # `
789
- # "service": "fooservice.googleapis.com"
790
- # "audit_log_configs": [
791
- # `
792
- # "log_type": "DATA_READ",
793
- # `,
794
- # `
795
- # "log_type": "DATA_WRITE",
796
- # "exempted_members": [
797
- # "user:bar@gmail.com"
798
- # ]
799
- # `
800
- # ]
801
- # `
802
- # ]
803
- # `
804
- # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
805
- # logging. It also exempts foo@gmail.com from DATA_READ logging, and
806
- # bar@gmail.com from DATA_WRITE logging.
807
- class AuditConfig
657
+ # Request message for KeyManagementService.DestroyCryptoKeyVersion.
658
+ class DestroyCryptoKeyVersionRequest
808
659
  include Google::Apis::Core::Hashable
809
660
 
810
- #
811
- # Corresponds to the JSON property `exemptedMembers`
661
+ def initialize(**args)
662
+ update!(**args)
663
+ end
664
+
665
+ # Update properties of this object
666
+ def update!(**args)
667
+ end
668
+ end
669
+
670
+ # A rule to be applied in a Policy.
671
+ class Rule
672
+ include Google::Apis::Core::Hashable
673
+
674
+ # Human-readable description of the rule.
675
+ # Corresponds to the JSON property `description`
676
+ # @return [String]
677
+ attr_accessor :description
678
+
679
+ # Additional restrictions that must be met
680
+ # Corresponds to the JSON property `conditions`
681
+ # @return [Array<Google::Apis::CloudkmsV1::Condition>]
682
+ attr_accessor :conditions
683
+
684
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
685
+ # that match the LOG action.
686
+ # Corresponds to the JSON property `logConfig`
687
+ # @return [Array<Google::Apis::CloudkmsV1::LogConfig>]
688
+ attr_accessor :log_config
689
+
690
+ # If one or more 'in' clauses are specified, the rule matches if
691
+ # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
692
+ # Corresponds to the JSON property `in`
812
693
  # @return [Array<String>]
813
- attr_accessor :exempted_members
694
+ attr_accessor :in
814
695
 
815
- # Specifies a service that will be enabled for audit logging.
816
- # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
817
- # `allServices` is a special value that covers all services.
818
- # Corresponds to the JSON property `service`
696
+ # A permission is a string of form '<service>.<resource type>.<verb>'
697
+ # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
698
+ # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
699
+ # Corresponds to the JSON property `permissions`
700
+ # @return [Array<String>]
701
+ attr_accessor :permissions
702
+
703
+ # Required
704
+ # Corresponds to the JSON property `action`
819
705
  # @return [String]
820
- attr_accessor :service
706
+ attr_accessor :action
821
707
 
822
- # The configuration for logging of each type of permission.
823
- # Next ID: 4
824
- # Corresponds to the JSON property `auditLogConfigs`
825
- # @return [Array<Google::Apis::CloudkmsV1::AuditLogConfig>]
826
- attr_accessor :audit_log_configs
708
+ # If one or more 'not_in' clauses are specified, the rule matches
709
+ # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
710
+ # The format for in and not_in entries is the same as for members in a
711
+ # Binding (see google/iam/v1/policy.proto).
712
+ # Corresponds to the JSON property `notIn`
713
+ # @return [Array<String>]
714
+ attr_accessor :not_in
827
715
 
828
716
  def initialize(**args)
829
717
  update!(**args)
@@ -831,46 +719,63 @@ module Google
831
719
 
832
720
  # Update properties of this object
833
721
  def update!(**args)
834
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
835
- @service = args[:service] if args.key?(:service)
836
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
722
+ @description = args[:description] if args.key?(:description)
723
+ @conditions = args[:conditions] if args.key?(:conditions)
724
+ @log_config = args[:log_config] if args.key?(:log_config)
725
+ @in = args[:in] if args.key?(:in)
726
+ @permissions = args[:permissions] if args.key?(:permissions)
727
+ @action = args[:action] if args.key?(:action)
728
+ @not_in = args[:not_in] if args.key?(:not_in)
837
729
  end
838
730
  end
839
731
 
840
- # A CryptoKeyVersion represents an individual cryptographic key, and the
841
- # associated key material.
842
- # It can be used for cryptographic operations either directly, or via its
843
- # parent CryptoKey, in which case the server will choose the appropriate
844
- # version for the operation.
845
- class CryptoKeyVersion
732
+ # A CryptoKey represents a logical key that can be used for cryptographic
733
+ # operations.
734
+ # A CryptoKey is made up of one or more versions, which
735
+ # represent the actual key material used in cryptographic operations.
736
+ class CryptoKey
846
737
  include Google::Apis::Core::Hashable
847
738
 
848
- # Output only. The time this CryptoKeyVersion's key material was
849
- # destroyed. Only present if state is
850
- # DESTROYED.
851
- # Corresponds to the JSON property `destroyEventTime`
739
+ # The immutable purpose of this CryptoKey. Currently, the only acceptable
740
+ # purpose is ENCRYPT_DECRYPT.
741
+ # Corresponds to the JSON property `purpose`
852
742
  # @return [String]
853
- attr_accessor :destroy_event_time
743
+ attr_accessor :purpose
854
744
 
855
- # Output only. The time this CryptoKeyVersion's key material is scheduled
856
- # for destruction. Only present if state is
857
- # DESTROY_SCHEDULED.
858
- # Corresponds to the JSON property `destroyTime`
745
+ # At next_rotation_time, the Key Management Service will automatically:
746
+ # 1. Create a new version of this CryptoKey.
747
+ # 2. Mark the new version as primary.
748
+ # Key rotations performed manually via
749
+ # CreateCryptoKeyVersion and
750
+ # UpdateCryptoKeyPrimaryVersion
751
+ # do not affect next_rotation_time.
752
+ # Corresponds to the JSON property `nextRotationTime`
859
753
  # @return [String]
860
- attr_accessor :destroy_time
754
+ attr_accessor :next_rotation_time
861
755
 
862
- # Output only. The time at which this CryptoKeyVersion was created.
756
+ # Output only. The time at which this CryptoKey was created.
863
757
  # Corresponds to the JSON property `createTime`
864
758
  # @return [String]
865
759
  attr_accessor :create_time
866
760
 
867
- # The current state of the CryptoKeyVersion.
868
- # Corresponds to the JSON property `state`
761
+ # next_rotation_time will be advanced by this period when the service
762
+ # automatically rotates a key. Must be at least one day.
763
+ # If rotation_period is set, next_rotation_time must also be set.
764
+ # Corresponds to the JSON property `rotationPeriod`
869
765
  # @return [String]
870
- attr_accessor :state
766
+ attr_accessor :rotation_period
871
767
 
872
- # Output only. The resource name for this CryptoKeyVersion in the format
873
- # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
768
+ # A CryptoKeyVersion represents an individual cryptographic key, and the
769
+ # associated key material.
770
+ # It can be used for cryptographic operations either directly, or via its
771
+ # parent CryptoKey, in which case the server will choose the appropriate
772
+ # version for the operation.
773
+ # Corresponds to the JSON property `primary`
774
+ # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
775
+ attr_accessor :primary
776
+
777
+ # Output only. The resource name for this CryptoKey in the format
778
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
874
779
  # Corresponds to the JSON property `name`
875
780
  # @return [String]
876
781
  attr_accessor :name
@@ -881,55 +786,88 @@ module Google
881
786
 
882
787
  # Update properties of this object
883
788
  def update!(**args)
884
- @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
885
- @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
789
+ @purpose = args[:purpose] if args.key?(:purpose)
790
+ @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
886
791
  @create_time = args[:create_time] if args.key?(:create_time)
887
- @state = args[:state] if args.key?(:state)
792
+ @rotation_period = args[:rotation_period] if args.key?(:rotation_period)
793
+ @primary = args[:primary] if args.key?(:primary)
888
794
  @name = args[:name] if args.key?(:name)
889
795
  end
890
796
  end
891
797
 
892
- # Write a Cloud Audit log
893
- class CloudAuditOptions
798
+ # Specifies what kind of log the caller must write
799
+ class LogConfig
894
800
  include Google::Apis::Core::Hashable
895
801
 
802
+ # Options for counters
803
+ # Corresponds to the JSON property `counter`
804
+ # @return [Google::Apis::CloudkmsV1::CounterOptions]
805
+ attr_accessor :counter
806
+
807
+ # Write a Data Access (Gin) log
808
+ # Corresponds to the JSON property `dataAccess`
809
+ # @return [Google::Apis::CloudkmsV1::DataAccessOptions]
810
+ attr_accessor :data_access
811
+
812
+ # Write a Cloud Audit log
813
+ # Corresponds to the JSON property `cloudAudit`
814
+ # @return [Google::Apis::CloudkmsV1::CloudAuditOptions]
815
+ attr_accessor :cloud_audit
816
+
896
817
  def initialize(**args)
897
818
  update!(**args)
898
819
  end
899
820
 
900
821
  # Update properties of this object
901
822
  def update!(**args)
823
+ @counter = args[:counter] if args.key?(:counter)
824
+ @data_access = args[:data_access] if args.key?(:data_access)
825
+ @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
902
826
  end
903
827
  end
904
828
 
905
- # Associates `members` with a `role`.
906
- class Binding
829
+ # Request message for `SetIamPolicy` method.
830
+ class SetIamPolicyRequest
907
831
  include Google::Apis::Core::Hashable
908
832
 
909
- # Specifies the identities requesting access for a Cloud Platform resource.
910
- # `members` can have the following values:
911
- # * `allUsers`: A special identifier that represents anyone who is
912
- # on the internet; with or without a Google account.
913
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
914
- # who is authenticated with a Google account or a service account.
915
- # * `user:`emailid``: An email address that represents a specific Google
916
- # account. For example, `alice@gmail.com` or `joe@example.com`.
917
- # * `serviceAccount:`emailid``: An email address that represents a service
918
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
919
- # * `group:`emailid``: An email address that represents a Google group.
920
- # For example, `admins@example.com`.
921
- # * `domain:`domain``: A Google Apps domain name that represents all the
922
- # users of that domain. For example, `google.com` or `example.com`.
923
- # Corresponds to the JSON property `members`
924
- # @return [Array<String>]
925
- attr_accessor :members
926
-
927
- # Role that is assigned to `members`.
928
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
929
- # Required
930
- # Corresponds to the JSON property `role`
833
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
834
+ # the fields in the mask will be modified. If no mask is provided, the
835
+ # following default mask is used:
836
+ # paths: "bindings, etag"
837
+ # This field is only used by Cloud IAM.
838
+ # Corresponds to the JSON property `updateMask`
931
839
  # @return [String]
932
- attr_accessor :role
840
+ attr_accessor :update_mask
841
+
842
+ # Defines an Identity and Access Management (IAM) policy. It is used to
843
+ # specify access control policies for Cloud Platform resources.
844
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
845
+ # `members` to a `role`, where the members can be user accounts, Google groups,
846
+ # Google domains, and service accounts. A `role` is a named list of permissions
847
+ # defined by IAM.
848
+ # **Example**
849
+ # `
850
+ # "bindings": [
851
+ # `
852
+ # "role": "roles/owner",
853
+ # "members": [
854
+ # "user:mike@example.com",
855
+ # "group:admins@example.com",
856
+ # "domain:google.com",
857
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
858
+ # ]
859
+ # `,
860
+ # `
861
+ # "role": "roles/viewer",
862
+ # "members": ["user:sean@example.com"]
863
+ # `
864
+ # ]
865
+ # `
866
+ # For a description of IAM and its features, see the
867
+ # [IAM developer's guide](https://cloud.google.com/iam).
868
+ # Corresponds to the JSON property `policy`
869
+ # @return [Google::Apis::CloudkmsV1::Policy]
870
+ attr_accessor :policy
933
871
 
934
872
  def initialize(**args)
935
873
  update!(**args)
@@ -937,28 +875,28 @@ module Google
937
875
 
938
876
  # Update properties of this object
939
877
  def update!(**args)
940
- @members = args[:members] if args.key?(:members)
941
- @role = args[:role] if args.key?(:role)
878
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
879
+ @policy = args[:policy] if args.key?(:policy)
942
880
  end
943
881
  end
944
882
 
945
- # Request message for KeyManagementService.Encrypt.
946
- class EncryptRequest
883
+ # Request message for KeyManagementService.Decrypt.
884
+ class DecryptRequest
947
885
  include Google::Apis::Core::Hashable
948
886
 
949
- # Optional data that, if specified, must also be provided during decryption
950
- # through DecryptRequest.additional_authenticated_data. Must be no
951
- # larger than 64KiB.
952
- # Corresponds to the JSON property `additionalAuthenticatedData`
887
+ # Required. The encrypted data originally returned in
888
+ # EncryptResponse.ciphertext.
889
+ # Corresponds to the JSON property `ciphertext`
953
890
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
954
891
  # @return [String]
955
- attr_accessor :additional_authenticated_data
892
+ attr_accessor :ciphertext
956
893
 
957
- # Required. The data to encrypt. Must be no larger than 64KiB.
958
- # Corresponds to the JSON property `plaintext`
894
+ # Optional data that must match the data originally supplied in
895
+ # EncryptRequest.additional_authenticated_data.
896
+ # Corresponds to the JSON property `additionalAuthenticatedData`
959
897
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
960
898
  # @return [String]
961
- attr_accessor :plaintext
899
+ attr_accessor :additional_authenticated_data
962
900
 
963
901
  def initialize(**args)
964
902
  update!(**args)
@@ -966,29 +904,67 @@ module Google
966
904
 
967
905
  # Update properties of this object
968
906
  def update!(**args)
907
+ @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
969
908
  @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
970
- @plaintext = args[:plaintext] if args.key?(:plaintext)
971
909
  end
972
910
  end
973
911
 
974
- # Response message for KeyManagementService.ListCryptoKeyVersions.
975
- class ListCryptoKeyVersionsResponse
912
+ # A resource that represents Google Cloud Platform location.
913
+ class Location
976
914
  include Google::Apis::Core::Hashable
977
915
 
978
- # The list of CryptoKeyVersions.
979
- # Corresponds to the JSON property `cryptoKeyVersions`
980
- # @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
981
- attr_accessor :crypto_key_versions
916
+ # The canonical id for this location. For example: `"us-east1"`.
917
+ # Corresponds to the JSON property `locationId`
918
+ # @return [String]
919
+ attr_accessor :location_id
920
+
921
+ # Service-specific metadata. For example the available capacity at the given
922
+ # location.
923
+ # Corresponds to the JSON property `metadata`
924
+ # @return [Hash<String,Object>]
925
+ attr_accessor :metadata
926
+
927
+ # Cross-service attributes for the location. For example
928
+ # `"cloud.googleapis.com/region": "us-east1"`
929
+ # Corresponds to the JSON property `labels`
930
+ # @return [Hash<String,String>]
931
+ attr_accessor :labels
932
+
933
+ # Resource name for the location, which may vary between implementations.
934
+ # For example: `"projects/example-project/locations/us-east1"`
935
+ # Corresponds to the JSON property `name`
936
+ # @return [String]
937
+ attr_accessor :name
938
+
939
+ def initialize(**args)
940
+ update!(**args)
941
+ end
942
+
943
+ # Update properties of this object
944
+ def update!(**args)
945
+ @location_id = args[:location_id] if args.key?(:location_id)
946
+ @metadata = args[:metadata] if args.key?(:metadata)
947
+ @labels = args[:labels] if args.key?(:labels)
948
+ @name = args[:name] if args.key?(:name)
949
+ end
950
+ end
951
+
952
+ # Response message for KeyManagementService.ListCryptoKeys.
953
+ class ListCryptoKeysResponse
954
+ include Google::Apis::Core::Hashable
982
955
 
983
956
  # A token to retrieve next page of results. Pass this value in
984
- # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
985
- # results.
957
+ # ListCryptoKeysRequest.page_token to retrieve the next page of results.
986
958
  # Corresponds to the JSON property `nextPageToken`
987
959
  # @return [String]
988
960
  attr_accessor :next_page_token
989
961
 
990
- # The total number of CryptoKeyVersions that matched the
991
- # query.
962
+ # The list of CryptoKeys.
963
+ # Corresponds to the JSON property `cryptoKeys`
964
+ # @return [Array<Google::Apis::CloudkmsV1::CryptoKey>]
965
+ attr_accessor :crypto_keys
966
+
967
+ # The total number of CryptoKeys that matched the query.
992
968
  # Corresponds to the JSON property `totalSize`
993
969
  # @return [Fixnum]
994
970
  attr_accessor :total_size
@@ -999,21 +975,46 @@ module Google
999
975
 
1000
976
  # Update properties of this object
1001
977
  def update!(**args)
1002
- @crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
1003
978
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
979
+ @crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys)
1004
980
  @total_size = args[:total_size] if args.key?(:total_size)
1005
981
  end
1006
982
  end
1007
983
 
1008
- # Response message for `TestIamPermissions` method.
1009
- class TestIamPermissionsResponse
984
+ # A condition to be met.
985
+ class Condition
1010
986
  include Google::Apis::Core::Hashable
1011
987
 
1012
- # A subset of `TestPermissionsRequest.permissions` that the caller is
1013
- # allowed.
1014
- # Corresponds to the JSON property `permissions`
988
+ # Trusted attributes supplied by any service that owns resources and uses
989
+ # the IAM system for access control.
990
+ # Corresponds to the JSON property `sys`
991
+ # @return [String]
992
+ attr_accessor :sys
993
+
994
+ # DEPRECATED. Use 'values' instead.
995
+ # Corresponds to the JSON property `value`
996
+ # @return [String]
997
+ attr_accessor :value
998
+
999
+ # The objects of the condition. This is mutually exclusive with 'value'.
1000
+ # Corresponds to the JSON property `values`
1015
1001
  # @return [Array<String>]
1016
- attr_accessor :permissions
1002
+ attr_accessor :values
1003
+
1004
+ # Trusted attributes supplied by the IAM system.
1005
+ # Corresponds to the JSON property `iam`
1006
+ # @return [String]
1007
+ attr_accessor :iam
1008
+
1009
+ # An operator to apply the subject with.
1010
+ # Corresponds to the JSON property `op`
1011
+ # @return [String]
1012
+ attr_accessor :op
1013
+
1014
+ # Trusted attributes discharged by the service.
1015
+ # Corresponds to the JSON property `svc`
1016
+ # @return [String]
1017
+ attr_accessor :svc
1017
1018
 
1018
1019
  def initialize(**args)
1019
1020
  update!(**args)
@@ -1021,7 +1022,12 @@ module Google
1021
1022
 
1022
1023
  # Update properties of this object
1023
1024
  def update!(**args)
1024
- @permissions = args[:permissions] if args.key?(:permissions)
1025
+ @sys = args[:sys] if args.key?(:sys)
1026
+ @value = args[:value] if args.key?(:value)
1027
+ @values = args[:values] if args.key?(:values)
1028
+ @iam = args[:iam] if args.key?(:iam)
1029
+ @op = args[:op] if args.key?(:op)
1030
+ @svc = args[:svc] if args.key?(:svc)
1025
1031
  end
1026
1032
  end
1027
1033
  end