google-api-client 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  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 +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/kms/
27
27
  module CloudkmsV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170301'
29
+ REVISION = '20170320'
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,6 +22,78 @@ module Google
22
22
  module Apis
23
23
  module CloudkmsV1
24
24
 
25
+ # A resource that represents Google Cloud Platform location.
26
+ class Location
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Resource name for the location, which may vary between implementations.
30
+ # For example: `"projects/example-project/locations/us-east1"`
31
+ # Corresponds to the JSON property `name`
32
+ # @return [String]
33
+ attr_accessor :name
34
+
35
+ # The canonical id for this location. For example: `"us-east1"`.
36
+ # Corresponds to the JSON property `locationId`
37
+ # @return [String]
38
+ attr_accessor :location_id
39
+
40
+ # Service-specific metadata. For example the available capacity at the given
41
+ # location.
42
+ # Corresponds to the JSON property `metadata`
43
+ # @return [Hash<String,Object>]
44
+ attr_accessor :metadata
45
+
46
+ # Cross-service attributes for the location. For example
47
+ # `"cloud.googleapis.com/region": "us-east1"`
48
+ # Corresponds to the JSON property `labels`
49
+ # @return [Hash<String,String>]
50
+ attr_accessor :labels
51
+
52
+ def initialize(**args)
53
+ update!(**args)
54
+ end
55
+
56
+ # Update properties of this object
57
+ def update!(**args)
58
+ @name = args[:name] if args.key?(:name)
59
+ @location_id = args[:location_id] if args.key?(:location_id)
60
+ @metadata = args[:metadata] if args.key?(:metadata)
61
+ @labels = args[:labels] if args.key?(:labels)
62
+ end
63
+ end
64
+
65
+ # Response message for KeyManagementService.ListCryptoKeys.
66
+ class ListCryptoKeysResponse
67
+ include Google::Apis::Core::Hashable
68
+
69
+ # A token to retrieve next page of results. Pass this value in
70
+ # ListCryptoKeysRequest.page_token to retrieve the next page of results.
71
+ # Corresponds to the JSON property `nextPageToken`
72
+ # @return [String]
73
+ attr_accessor :next_page_token
74
+
75
+ # The list of CryptoKeys.
76
+ # Corresponds to the JSON property `cryptoKeys`
77
+ # @return [Array<Google::Apis::CloudkmsV1::CryptoKey>]
78
+ attr_accessor :crypto_keys
79
+
80
+ # The total number of CryptoKeys that matched the query.
81
+ # Corresponds to the JSON property `totalSize`
82
+ # @return [Fixnum]
83
+ attr_accessor :total_size
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
92
+ @crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys)
93
+ @total_size = args[:total_size] if args.key?(:total_size)
94
+ end
95
+ end
96
+
25
97
  # A condition to be met.
26
98
  class Condition
27
99
  include Google::Apis::Core::Hashable
@@ -36,27 +108,27 @@ module Google
36
108
  # @return [String]
37
109
  attr_accessor :svc
38
110
 
111
+ # DEPRECATED. Use 'values' instead.
112
+ # Corresponds to the JSON property `value`
113
+ # @return [String]
114
+ attr_accessor :value
115
+
39
116
  # Trusted attributes supplied by any service that owns resources and uses
40
117
  # the IAM system for access control.
41
118
  # Corresponds to the JSON property `sys`
42
119
  # @return [String]
43
120
  attr_accessor :sys
44
121
 
45
- # DEPRECATED. Use 'values' instead.
46
- # Corresponds to the JSON property `value`
122
+ # Trusted attributes supplied by the IAM system.
123
+ # Corresponds to the JSON property `iam`
47
124
  # @return [String]
48
- attr_accessor :value
125
+ attr_accessor :iam
49
126
 
50
127
  # The objects of the condition. This is mutually exclusive with 'value'.
51
128
  # Corresponds to the JSON property `values`
52
129
  # @return [Array<String>]
53
130
  attr_accessor :values
54
131
 
55
- # Trusted attributes supplied by the IAM system.
56
- # Corresponds to the JSON property `iam`
57
- # @return [String]
58
- attr_accessor :iam
59
-
60
132
  def initialize(**args)
61
133
  update!(**args)
62
134
  end
@@ -65,10 +137,10 @@ module Google
65
137
  def update!(**args)
66
138
  @op = args[:op] if args.key?(:op)
67
139
  @svc = args[:svc] if args.key?(:svc)
68
- @sys = args[:sys] if args.key?(:sys)
69
140
  @value = args[:value] if args.key?(:value)
70
- @values = args[:values] if args.key?(:values)
141
+ @sys = args[:sys] if args.key?(:sys)
71
142
  @iam = args[:iam] if args.key?(:iam)
143
+ @values = args[:values] if args.key?(:values)
72
144
  end
73
145
  end
74
146
 
@@ -181,31 +253,6 @@ module Google
181
253
  end
182
254
  end
183
255
 
184
- # The response message for Locations.ListLocations.
185
- class ListLocationsResponse
186
- include Google::Apis::Core::Hashable
187
-
188
- # A list of locations that matches the specified filter in the request.
189
- # Corresponds to the JSON property `locations`
190
- # @return [Array<Google::Apis::CloudkmsV1::Location>]
191
- attr_accessor :locations
192
-
193
- # The standard List next-page token.
194
- # Corresponds to the JSON property `nextPageToken`
195
- # @return [String]
196
- attr_accessor :next_page_token
197
-
198
- def initialize(**args)
199
- update!(**args)
200
- end
201
-
202
- # Update properties of this object
203
- def update!(**args)
204
- @locations = args[:locations] if args.key?(:locations)
205
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
206
- end
207
- end
208
-
209
256
  # Defines an Identity and Access Management (IAM) policy. It is used to
210
257
  # specify access control policies for Cloud Platform resources.
211
258
  # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@@ -299,19 +346,19 @@ module Google
299
346
  end
300
347
  end
301
348
 
302
- # Response message for KeyManagementService.Encrypt.
303
- class EncryptResponse
349
+ # The response message for Locations.ListLocations.
350
+ class ListLocationsResponse
304
351
  include Google::Apis::Core::Hashable
305
352
 
306
- # The encrypted data.
307
- # Corresponds to the JSON property `ciphertext`
308
- # @return [String]
309
- attr_accessor :ciphertext
353
+ # A list of locations that matches the specified filter in the request.
354
+ # Corresponds to the JSON property `locations`
355
+ # @return [Array<Google::Apis::CloudkmsV1::Location>]
356
+ attr_accessor :locations
310
357
 
311
- # The resource name of the CryptoKeyVersion used in encryption.
312
- # Corresponds to the JSON property `name`
358
+ # The standard List next-page token.
359
+ # Corresponds to the JSON property `nextPageToken`
313
360
  # @return [String]
314
- attr_accessor :name
361
+ attr_accessor :next_page_token
315
362
 
316
363
  def initialize(**args)
317
364
  update!(**args)
@@ -319,8 +366,8 @@ module Google
319
366
 
320
367
  # Update properties of this object
321
368
  def update!(**args)
322
- @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
323
- @name = args[:name] if args.key?(:name)
369
+ @locations = args[:locations] if args.key?(:locations)
370
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
324
371
  end
325
372
  end
326
373
 
@@ -328,36 +375,41 @@ module Google
328
375
  class KeyRing
329
376
  include Google::Apis::Core::Hashable
330
377
 
331
- # Output only. The time at which this KeyRing was created.
332
- # Corresponds to the JSON property `createTime`
333
- # @return [String]
334
- attr_accessor :create_time
335
-
336
378
  # Output only. The resource name for the KeyRing in the format
337
379
  # `projects/*/locations/*/keyRings/*`.
338
380
  # Corresponds to the JSON property `name`
339
381
  # @return [String]
340
382
  attr_accessor :name
341
383
 
384
+ # Output only. The time at which this KeyRing was created.
385
+ # Corresponds to the JSON property `createTime`
386
+ # @return [String]
387
+ attr_accessor :create_time
388
+
342
389
  def initialize(**args)
343
390
  update!(**args)
344
391
  end
345
392
 
346
393
  # Update properties of this object
347
394
  def update!(**args)
348
- @create_time = args[:create_time] if args.key?(:create_time)
349
395
  @name = args[:name] if args.key?(:name)
396
+ @create_time = args[:create_time] if args.key?(:create_time)
350
397
  end
351
398
  end
352
399
 
353
- # Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.
354
- class UpdateCryptoKeyPrimaryVersionRequest
400
+ # Response message for KeyManagementService.Encrypt.
401
+ class EncryptResponse
355
402
  include Google::Apis::Core::Hashable
356
403
 
357
- # The id of the child CryptoKeyVersion to use as primary.
358
- # Corresponds to the JSON property `cryptoKeyVersionId`
404
+ # The resource name of the CryptoKeyVersion used in encryption.
405
+ # Corresponds to the JSON property `name`
359
406
  # @return [String]
360
- attr_accessor :crypto_key_version_id
407
+ attr_accessor :name
408
+
409
+ # The encrypted data.
410
+ # Corresponds to the JSON property `ciphertext`
411
+ # @return [String]
412
+ attr_accessor :ciphertext
361
413
 
362
414
  def initialize(**args)
363
415
  update!(**args)
@@ -365,7 +417,8 @@ module Google
365
417
 
366
418
  # Update properties of this object
367
419
  def update!(**args)
368
- @crypto_key_version_id = args[:crypto_key_version_id] if args.key?(:crypto_key_version_id)
420
+ @name = args[:name] if args.key?(:name)
421
+ @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
369
422
  end
370
423
  end
371
424
 
@@ -382,16 +435,22 @@ module Google
382
435
  end
383
436
  end
384
437
 
385
- # Write a Data Access (Gin) log
386
- class DataAccessOptions
438
+ # Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.
439
+ class UpdateCryptoKeyPrimaryVersionRequest
387
440
  include Google::Apis::Core::Hashable
388
441
 
442
+ # The id of the child CryptoKeyVersion to use as primary.
443
+ # Corresponds to the JSON property `cryptoKeyVersionId`
444
+ # @return [String]
445
+ attr_accessor :crypto_key_version_id
446
+
389
447
  def initialize(**args)
390
448
  update!(**args)
391
449
  end
392
450
 
393
451
  # Update properties of this object
394
452
  def update!(**args)
453
+ @crypto_key_version_id = args[:crypto_key_version_id] if args.key?(:crypto_key_version_id)
395
454
  end
396
455
  end
397
456
 
@@ -427,9 +486,22 @@ module Google
427
486
  end
428
487
  end
429
488
 
489
+ # Write a Data Access (Gin) log
490
+ class DataAccessOptions
491
+ include Google::Apis::Core::Hashable
492
+
493
+ def initialize(**args)
494
+ update!(**args)
495
+ end
496
+
497
+ # Update properties of this object
498
+ def update!(**args)
499
+ end
500
+ end
501
+
430
502
  # Specifies the audit configuration for a service.
431
- # It consists of which permission types are logged, and what identities, if
432
- # any, are exempted from logging.
503
+ # The configuration determines which permission types are logged, and what
504
+ # identities, if any, are exempted from logging.
433
505
  # An AuditConifg must have one or more AuditLogConfigs.
434
506
  # If there are AuditConfigs for both `allServices` and a specific service,
435
507
  # the union of the two AuditConfigs is used for that service: the log_types
@@ -477,13 +549,8 @@ module Google
477
549
  class AuditConfig
478
550
  include Google::Apis::Core::Hashable
479
551
 
480
- #
481
- # Corresponds to the JSON property `exemptedMembers`
482
- # @return [Array<String>]
483
- attr_accessor :exempted_members
484
-
485
552
  # Specifies a service that will be enabled for audit logging.
486
- # For example, `resourcemanager`, `storage`, `compute`.
553
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
487
554
  # `allServices` is a special value that covers all services.
488
555
  # Corresponds to the JSON property `service`
489
556
  # @return [String]
@@ -495,15 +562,20 @@ module Google
495
562
  # @return [Array<Google::Apis::CloudkmsV1::AuditLogConfig>]
496
563
  attr_accessor :audit_log_configs
497
564
 
565
+ #
566
+ # Corresponds to the JSON property `exemptedMembers`
567
+ # @return [Array<String>]
568
+ attr_accessor :exempted_members
569
+
498
570
  def initialize(**args)
499
571
  update!(**args)
500
572
  end
501
573
 
502
574
  # Update properties of this object
503
575
  def update!(**args)
504
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
505
576
  @service = args[:service] if args.key?(:service)
506
577
  @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
578
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
507
579
  end
508
580
  end
509
581
 
@@ -515,6 +587,18 @@ module Google
515
587
  class CryptoKeyVersion
516
588
  include Google::Apis::Core::Hashable
517
589
 
590
+ # Output only. The time this CryptoKeyVersion's key material is scheduled
591
+ # for destruction. Only present if state is
592
+ # DESTROY_SCHEDULED.
593
+ # Corresponds to the JSON property `destroyTime`
594
+ # @return [String]
595
+ attr_accessor :destroy_time
596
+
597
+ # Output only. The time at which this CryptoKeyVersion was created.
598
+ # Corresponds to the JSON property `createTime`
599
+ # @return [String]
600
+ attr_accessor :create_time
601
+
518
602
  # The current state of the CryptoKeyVersion.
519
603
  # Corresponds to the JSON property `state`
520
604
  # @return [String]
@@ -533,29 +617,17 @@ module Google
533
617
  # @return [String]
534
618
  attr_accessor :destroy_event_time
535
619
 
536
- # Output only. The time this CryptoKeyVersion's key material is scheduled
537
- # for destruction. Only present if state is
538
- # DESTROY_SCHEDULED.
539
- # Corresponds to the JSON property `destroyTime`
540
- # @return [String]
541
- attr_accessor :destroy_time
542
-
543
- # Output only. The time at which this CryptoKeyVersion was created.
544
- # Corresponds to the JSON property `createTime`
545
- # @return [String]
546
- attr_accessor :create_time
547
-
548
620
  def initialize(**args)
549
621
  update!(**args)
550
622
  end
551
623
 
552
624
  # Update properties of this object
553
625
  def update!(**args)
626
+ @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
627
+ @create_time = args[:create_time] if args.key?(:create_time)
554
628
  @state = args[:state] if args.key?(:state)
555
629
  @name = args[:name] if args.key?(:name)
556
630
  @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
557
- @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
558
- @create_time = args[:create_time] if args.key?(:create_time)
559
631
  end
560
632
  end
561
633
 
@@ -616,11 +688,6 @@ module Google
616
688
  class EncryptRequest
617
689
  include Google::Apis::Core::Hashable
618
690
 
619
- # Required. The data to encrypt. Must be no larger than 64KiB.
620
- # Corresponds to the JSON property `plaintext`
621
- # @return [String]
622
- attr_accessor :plaintext
623
-
624
691
  # Optional data that, if specified, must also be provided during decryption
625
692
  # through DecryptRequest.additional_authenticated_data. Must be no
626
693
  # larger than 64KiB.
@@ -628,14 +695,19 @@ module Google
628
695
  # @return [String]
629
696
  attr_accessor :additional_authenticated_data
630
697
 
698
+ # Required. The data to encrypt. Must be no larger than 64KiB.
699
+ # Corresponds to the JSON property `plaintext`
700
+ # @return [String]
701
+ attr_accessor :plaintext
702
+
631
703
  def initialize(**args)
632
704
  update!(**args)
633
705
  end
634
706
 
635
707
  # Update properties of this object
636
708
  def update!(**args)
637
- @plaintext = args[:plaintext] if args.key?(:plaintext)
638
709
  @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
710
+ @plaintext = args[:plaintext] if args.key?(:plaintext)
639
711
  end
640
712
  end
641
713
 
@@ -706,68 +778,6 @@ module Google
706
778
  end
707
779
  end
708
780
 
709
- # A rule to be applied in a Policy.
710
- class Rule
711
- include Google::Apis::Core::Hashable
712
-
713
- # If one or more 'not_in' clauses are specified, the rule matches
714
- # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
715
- # The format for in and not_in entries is the same as for members in a
716
- # Binding (see google/iam/v1/policy.proto).
717
- # Corresponds to the JSON property `notIn`
718
- # @return [Array<String>]
719
- attr_accessor :not_in
720
-
721
- # Human-readable description of the rule.
722
- # Corresponds to the JSON property `description`
723
- # @return [String]
724
- attr_accessor :description
725
-
726
- # Additional restrictions that must be met
727
- # Corresponds to the JSON property `conditions`
728
- # @return [Array<Google::Apis::CloudkmsV1::Condition>]
729
- attr_accessor :conditions
730
-
731
- # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
732
- # that match the LOG action.
733
- # Corresponds to the JSON property `logConfig`
734
- # @return [Array<Google::Apis::CloudkmsV1::LogConfig>]
735
- attr_accessor :log_config
736
-
737
- # If one or more 'in' clauses are specified, the rule matches if
738
- # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
739
- # Corresponds to the JSON property `in`
740
- # @return [Array<String>]
741
- attr_accessor :in
742
-
743
- # A permission is a string of form '<service>.<resource type>.<verb>'
744
- # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
745
- # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
746
- # Corresponds to the JSON property `permissions`
747
- # @return [Array<String>]
748
- attr_accessor :permissions
749
-
750
- # Required
751
- # Corresponds to the JSON property `action`
752
- # @return [String]
753
- attr_accessor :action
754
-
755
- def initialize(**args)
756
- update!(**args)
757
- end
758
-
759
- # Update properties of this object
760
- def update!(**args)
761
- @not_in = args[:not_in] if args.key?(:not_in)
762
- @description = args[:description] if args.key?(:description)
763
- @conditions = args[:conditions] if args.key?(:conditions)
764
- @log_config = args[:log_config] if args.key?(:log_config)
765
- @in = args[:in] if args.key?(:in)
766
- @permissions = args[:permissions] if args.key?(:permissions)
767
- @action = args[:action] if args.key?(:action)
768
- end
769
- end
770
-
771
781
  # A CryptoKey represents a logical key that can be used for cryptographic
772
782
  # operations.
773
783
  # A CryptoKey is made up of one or more versions, which
@@ -834,27 +844,77 @@ module Google
834
844
  end
835
845
  end
836
846
 
847
+ # A rule to be applied in a Policy.
848
+ class Rule
849
+ include Google::Apis::Core::Hashable
850
+
851
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
852
+ # that match the LOG action.
853
+ # Corresponds to the JSON property `logConfig`
854
+ # @return [Array<Google::Apis::CloudkmsV1::LogConfig>]
855
+ attr_accessor :log_config
856
+
857
+ # If one or more 'in' clauses are specified, the rule matches if
858
+ # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
859
+ # Corresponds to the JSON property `in`
860
+ # @return [Array<String>]
861
+ attr_accessor :in
862
+
863
+ # A permission is a string of form '<service>.<resource type>.<verb>'
864
+ # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
865
+ # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
866
+ # Corresponds to the JSON property `permissions`
867
+ # @return [Array<String>]
868
+ attr_accessor :permissions
869
+
870
+ # Required
871
+ # Corresponds to the JSON property `action`
872
+ # @return [String]
873
+ attr_accessor :action
874
+
875
+ # If one or more 'not_in' clauses are specified, the rule matches
876
+ # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
877
+ # The format for in and not_in entries is the same as for members in a
878
+ # Binding (see google/iam/v1/policy.proto).
879
+ # Corresponds to the JSON property `notIn`
880
+ # @return [Array<String>]
881
+ attr_accessor :not_in
882
+
883
+ # Human-readable description of the rule.
884
+ # Corresponds to the JSON property `description`
885
+ # @return [String]
886
+ attr_accessor :description
887
+
888
+ # Additional restrictions that must be met
889
+ # Corresponds to the JSON property `conditions`
890
+ # @return [Array<Google::Apis::CloudkmsV1::Condition>]
891
+ attr_accessor :conditions
892
+
893
+ def initialize(**args)
894
+ update!(**args)
895
+ end
896
+
897
+ # Update properties of this object
898
+ def update!(**args)
899
+ @log_config = args[:log_config] if args.key?(:log_config)
900
+ @in = args[:in] if args.key?(:in)
901
+ @permissions = args[:permissions] if args.key?(:permissions)
902
+ @action = args[:action] if args.key?(:action)
903
+ @not_in = args[:not_in] if args.key?(:not_in)
904
+ @description = args[:description] if args.key?(:description)
905
+ @conditions = args[:conditions] if args.key?(:conditions)
906
+ end
907
+ end
908
+
837
909
  # Specifies what kind of log the caller must write
838
- # Increment a streamz counter with the specified metric and field names.
839
- # Metric names should start with a '/', generally be lowercase-only,
840
- # and end in "_count". Field names should not contain an initial slash.
841
- # The actual exported metric names will have "/iam/policy" prepended.
842
- # Field names correspond to IAM request parameters and field values are
843
- # their respective values.
844
- # At present the only supported field names are
845
- # - "iam_principal", corresponding to IAMContext.principal;
846
- # - "" (empty string), resulting in one aggretated counter with no field.
847
- # Examples:
848
- # counter ` metric: "/debug_access_count" field: "iam_principal" `
849
- # ==> increment counter /iam/policy/backend_debug_access_count
850
- # `iam_principal=[value of IAMContext.principal]`
851
- # At this time we do not support:
852
- # * multiple field names (though this may be supported in the future)
853
- # * decrementing the counter
854
- # * incrementing it by anything other than 1
855
910
  class LogConfig
856
911
  include Google::Apis::Core::Hashable
857
912
 
913
+ # Write a Cloud Audit log
914
+ # Corresponds to the JSON property `cloudAudit`
915
+ # @return [Google::Apis::CloudkmsV1::CloudAuditOptions]
916
+ attr_accessor :cloud_audit
917
+
858
918
  # Options for counters
859
919
  # Corresponds to the JSON property `counter`
860
920
  # @return [Google::Apis::CloudkmsV1::CounterOptions]
@@ -865,20 +925,15 @@ module Google
865
925
  # @return [Google::Apis::CloudkmsV1::DataAccessOptions]
866
926
  attr_accessor :data_access
867
927
 
868
- # Write a Cloud Audit log
869
- # Corresponds to the JSON property `cloudAudit`
870
- # @return [Google::Apis::CloudkmsV1::CloudAuditOptions]
871
- attr_accessor :cloud_audit
872
-
873
928
  def initialize(**args)
874
929
  update!(**args)
875
930
  end
876
931
 
877
932
  # Update properties of this object
878
933
  def update!(**args)
934
+ @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
879
935
  @counter = args[:counter] if args.key?(:counter)
880
936
  @data_access = args[:data_access] if args.key?(:data_access)
881
- @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
882
937
  end
883
938
  end
884
939
 
@@ -887,8 +942,8 @@ module Google
887
942
  include Google::Apis::Core::Hashable
888
943
 
889
944
  # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
890
- # the fields in the mask will be modified. If no mask is provided, a default
891
- # mask is used:
945
+ # the fields in the mask will be modified. If no mask is provided, the
946
+ # following default mask is used:
892
947
  # paths: "bindings, etag"
893
948
  # This field is only used by Cloud IAM.
894
949
  # Corresponds to the JSON property `updateMask`
@@ -962,78 +1017,6 @@ module Google
962
1017
  @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
963
1018
  end
964
1019
  end
965
-
966
- # A resource that represents Google Cloud Platform location.
967
- class Location
968
- include Google::Apis::Core::Hashable
969
-
970
- # Resource name for the location, which may vary between implementations.
971
- # For example: `"projects/example-project/locations/us-east1"`
972
- # Corresponds to the JSON property `name`
973
- # @return [String]
974
- attr_accessor :name
975
-
976
- # The canonical id for this location. For example: `"us-east1"`.
977
- # Corresponds to the JSON property `locationId`
978
- # @return [String]
979
- attr_accessor :location_id
980
-
981
- # Service-specific metadata. For example the available capacity at the given
982
- # location.
983
- # Corresponds to the JSON property `metadata`
984
- # @return [Hash<String,Object>]
985
- attr_accessor :metadata
986
-
987
- # Cross-service attributes for the location. For example
988
- # `"cloud.googleapis.com/region": "us-east1"`
989
- # Corresponds to the JSON property `labels`
990
- # @return [Hash<String,String>]
991
- attr_accessor :labels
992
-
993
- def initialize(**args)
994
- update!(**args)
995
- end
996
-
997
- # Update properties of this object
998
- def update!(**args)
999
- @name = args[:name] if args.key?(:name)
1000
- @location_id = args[:location_id] if args.key?(:location_id)
1001
- @metadata = args[:metadata] if args.key?(:metadata)
1002
- @labels = args[:labels] if args.key?(:labels)
1003
- end
1004
- end
1005
-
1006
- # Response message for KeyManagementService.ListCryptoKeys.
1007
- class ListCryptoKeysResponse
1008
- include Google::Apis::Core::Hashable
1009
-
1010
- # A token to retrieve next page of results. Pass this value in
1011
- # ListCryptoKeysRequest.page_token to retrieve the next page of results.
1012
- # Corresponds to the JSON property `nextPageToken`
1013
- # @return [String]
1014
- attr_accessor :next_page_token
1015
-
1016
- # The list of CryptoKeys.
1017
- # Corresponds to the JSON property `cryptoKeys`
1018
- # @return [Array<Google::Apis::CloudkmsV1::CryptoKey>]
1019
- attr_accessor :crypto_keys
1020
-
1021
- # The total number of CryptoKeys that matched the query.
1022
- # Corresponds to the JSON property `totalSize`
1023
- # @return [Fixnum]
1024
- attr_accessor :total_size
1025
-
1026
- def initialize(**args)
1027
- update!(**args)
1028
- end
1029
-
1030
- # Update properties of this object
1031
- def update!(**args)
1032
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1033
- @crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys)
1034
- @total_size = args[:total_size] if args.key?(:total_size)
1035
- end
1036
- end
1037
1020
  end
1038
1021
  end
1039
1022
  end