google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -0,0 +1,35 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/cloudfunctions_v1/service.rb'
16
+ require 'google/apis/cloudfunctions_v1/classes.rb'
17
+ require 'google/apis/cloudfunctions_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Functions API
22
+ #
23
+ # API for managing lightweight user-provided functions executed in response to
24
+ # events.
25
+ #
26
+ # @see https://cloud.google.com/functions
27
+ module CloudfunctionsV1
28
+ VERSION = 'V1'
29
+ REVISION = '20170328'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,98 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudfunctionsV1
24
+
25
+ # A resource that represents Google Cloud Platform location.
26
+ class Location
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Service-specific metadata. For example the available capacity at the given
30
+ # location.
31
+ # Corresponds to the JSON property `metadata`
32
+ # @return [Hash<String,Object>]
33
+ attr_accessor :metadata
34
+
35
+ # Cross-service attributes for the location. For example
36
+ # `"cloud.googleapis.com/region": "us-east1"`
37
+ # Corresponds to the JSON property `labels`
38
+ # @return [Hash<String,String>]
39
+ attr_accessor :labels
40
+
41
+ # Resource name for the location, which may vary between implementations.
42
+ # For example: `"projects/example-project/locations/us-east1"`
43
+ # Corresponds to the JSON property `name`
44
+ # @return [String]
45
+ attr_accessor :name
46
+
47
+ # The canonical id for this location. For example: `"us-east1"`.
48
+ # Corresponds to the JSON property `locationId`
49
+ # @return [String]
50
+ attr_accessor :location_id
51
+
52
+ def initialize(**args)
53
+ update!(**args)
54
+ end
55
+
56
+ # Update properties of this object
57
+ def update!(**args)
58
+ @metadata = args[:metadata] if args.key?(:metadata)
59
+ @labels = args[:labels] if args.key?(:labels)
60
+ @name = args[:name] if args.key?(:name)
61
+ @location_id = args[:location_id] if args.key?(:location_id)
62
+ end
63
+ end
64
+
65
+ # Metadata describing an Operation
66
+ class OperationMetadataV1Beta2
67
+ include Google::Apis::Core::Hashable
68
+
69
+ # Target of the operation - for example
70
+ # projects/project-1/locations/region-1/functions/function-1
71
+ # Corresponds to the JSON property `target`
72
+ # @return [String]
73
+ attr_accessor :target
74
+
75
+ # The original request that started the operation.
76
+ # Corresponds to the JSON property `request`
77
+ # @return [Hash<String,Object>]
78
+ attr_accessor :request
79
+
80
+ # Type of operation.
81
+ # Corresponds to the JSON property `type`
82
+ # @return [String]
83
+ attr_accessor :type
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @target = args[:target] if args.key?(:target)
92
+ @request = args[:request] if args.key?(:request)
93
+ @type = args[:type] if args.key?(:type)
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,57 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudfunctionsV1
24
+
25
+ class Location
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class OperationMetadataV1Beta2
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Location
38
+ # @private
39
+ class Representation < Google::Apis::Core::JsonRepresentation
40
+ hash :metadata, as: 'metadata'
41
+ hash :labels, as: 'labels'
42
+ property :name, as: 'name'
43
+ property :location_id, as: 'locationId'
44
+ end
45
+ end
46
+
47
+ class OperationMetadataV1Beta2
48
+ # @private
49
+ class Representation < Google::Apis::Core::JsonRepresentation
50
+ property :target, as: 'target'
51
+ hash :request, as: 'request'
52
+ property :type, as: 'type'
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,89 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module CloudfunctionsV1
23
+ # Google Cloud Functions API
24
+ #
25
+ # API for managing lightweight user-provided functions executed in response to
26
+ # events.
27
+ #
28
+ # @example
29
+ # require 'google/apis/cloudfunctions_v1'
30
+ #
31
+ # Cloudfunctions = Google::Apis::CloudfunctionsV1 # Alias the module
32
+ # service = Cloudfunctions::CloudFunctionsService.new
33
+ #
34
+ # @see https://cloud.google.com/functions
35
+ class CloudFunctionsService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://cloudfunctions.googleapis.com/', '')
48
+ end
49
+
50
+ # Get information about a location.
51
+ # @param [String] name
52
+ # Resource name for the location.
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
55
+ # @param [String] quota_user
56
+ # Available to use for quota purposes for server-side applications. Can be any
57
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
58
+ # @param [Google::Apis::RequestOptions] options
59
+ # Request-specific options
60
+ #
61
+ # @yield [result, err] Result & error if block supplied
62
+ # @yieldparam result [Google::Apis::CloudfunctionsV1::Location] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::CloudfunctionsV1::Location]
66
+ #
67
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
70
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
71
+ command = make_simple_command(:get, 'v1/{+name}', options)
72
+ command.response_representation = Google::Apis::CloudfunctionsV1::Location::Representation
73
+ command.response_class = Google::Apis::CloudfunctionsV1::Location
74
+ command.params['name'] = name unless name.nil?
75
+ command.query['fields'] = fields unless fields.nil?
76
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
77
+ execute_or_queue_command(command, &block)
78
+ end
79
+
80
+ protected
81
+
82
+ def apply_command_defaults(command)
83
+ command.query['key'] = key unless key.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ end
86
+ end
87
+ end
88
+ end
89
+ end
@@ -22,78 +22,6 @@ 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
-
97
25
  # A condition to be met.
98
26
  class Condition
99
27
  include Google::Apis::Core::Hashable
@@ -108,27 +36,27 @@ module Google
108
36
  # @return [String]
109
37
  attr_accessor :svc
110
38
 
111
- # DEPRECATED. Use 'values' instead.
112
- # Corresponds to the JSON property `value`
113
- # @return [String]
114
- attr_accessor :value
115
-
116
39
  # Trusted attributes supplied by any service that owns resources and uses
117
40
  # the IAM system for access control.
118
41
  # Corresponds to the JSON property `sys`
119
42
  # @return [String]
120
43
  attr_accessor :sys
121
44
 
122
- # Trusted attributes supplied by the IAM system.
123
- # Corresponds to the JSON property `iam`
45
+ # DEPRECATED. Use 'values' instead.
46
+ # Corresponds to the JSON property `value`
124
47
  # @return [String]
125
- attr_accessor :iam
48
+ attr_accessor :value
126
49
 
127
50
  # The objects of the condition. This is mutually exclusive with 'value'.
128
51
  # Corresponds to the JSON property `values`
129
52
  # @return [Array<String>]
130
53
  attr_accessor :values
131
54
 
55
+ # Trusted attributes supplied by the IAM system.
56
+ # Corresponds to the JSON property `iam`
57
+ # @return [String]
58
+ attr_accessor :iam
59
+
132
60
  def initialize(**args)
133
61
  update!(**args)
134
62
  end
@@ -137,10 +65,10 @@ module Google
137
65
  def update!(**args)
138
66
  @op = args[:op] if args.key?(:op)
139
67
  @svc = args[:svc] if args.key?(:svc)
140
- @value = args[:value] if args.key?(:value)
141
68
  @sys = args[:sys] if args.key?(:sys)
142
- @iam = args[:iam] if args.key?(:iam)
69
+ @value = args[:value] if args.key?(:value)
143
70
  @values = args[:values] if args.key?(:values)
71
+ @iam = args[:iam] if args.key?(:iam)
144
72
  end
145
73
  end
146
74
 
@@ -218,6 +146,7 @@ module Google
218
146
 
219
147
  # The decrypted data originally supplied in EncryptRequest.plaintext.
220
148
  # Corresponds to the JSON property `plaintext`
149
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
221
150
  # @return [String]
222
151
  attr_accessor :plaintext
223
152
 
@@ -253,6 +182,83 @@ module Google
253
182
  end
254
183
  end
255
184
 
185
+ # A KeyRing is a toplevel logical grouping of CryptoKeys.
186
+ class KeyRing
187
+ include Google::Apis::Core::Hashable
188
+
189
+ # Output only. The resource name for the KeyRing in the format
190
+ # `projects/*/locations/*/keyRings/*`.
191
+ # Corresponds to the JSON property `name`
192
+ # @return [String]
193
+ attr_accessor :name
194
+
195
+ # Output only. The time at which this KeyRing was created.
196
+ # Corresponds to the JSON property `createTime`
197
+ # @return [String]
198
+ attr_accessor :create_time
199
+
200
+ def initialize(**args)
201
+ update!(**args)
202
+ end
203
+
204
+ # Update properties of this object
205
+ def update!(**args)
206
+ @name = args[:name] if args.key?(:name)
207
+ @create_time = args[:create_time] if args.key?(:create_time)
208
+ end
209
+ end
210
+
211
+ # Response message for KeyManagementService.Encrypt.
212
+ class EncryptResponse
213
+ include Google::Apis::Core::Hashable
214
+
215
+ # The encrypted data.
216
+ # Corresponds to the JSON property `ciphertext`
217
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
218
+ # @return [String]
219
+ attr_accessor :ciphertext
220
+
221
+ # The resource name of the CryptoKeyVersion used in encryption.
222
+ # Corresponds to the JSON property `name`
223
+ # @return [String]
224
+ attr_accessor :name
225
+
226
+ def initialize(**args)
227
+ update!(**args)
228
+ end
229
+
230
+ # Update properties of this object
231
+ def update!(**args)
232
+ @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
233
+ @name = args[:name] if args.key?(:name)
234
+ end
235
+ end
236
+
237
+ # The response message for Locations.ListLocations.
238
+ class ListLocationsResponse
239
+ include Google::Apis::Core::Hashable
240
+
241
+ # A list of locations that matches the specified filter in the request.
242
+ # Corresponds to the JSON property `locations`
243
+ # @return [Array<Google::Apis::CloudkmsV1::Location>]
244
+ attr_accessor :locations
245
+
246
+ # The standard List next-page token.
247
+ # Corresponds to the JSON property `nextPageToken`
248
+ # @return [String]
249
+ attr_accessor :next_page_token
250
+
251
+ def initialize(**args)
252
+ update!(**args)
253
+ end
254
+
255
+ # Update properties of this object
256
+ def update!(**args)
257
+ @locations = args[:locations] if args.key?(:locations)
258
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
259
+ end
260
+ end
261
+
256
262
  # Defines an Identity and Access Management (IAM) policy. It is used to
257
263
  # specify access control policies for Cloud Platform resources.
258
264
  # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@@ -282,19 +288,6 @@ module Google
282
288
  class Policy
283
289
  include Google::Apis::Core::Hashable
284
290
 
285
- # `etag` is used for optimistic concurrency control as a way to help
286
- # prevent simultaneous updates of a policy from overwriting each other.
287
- # It is strongly suggested that systems make use of the `etag` in the
288
- # read-modify-write cycle to perform policy updates in order to avoid race
289
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
290
- # systems are expected to put that etag in the request to `setIamPolicy` to
291
- # ensure that their change will be applied to the same version of the policy.
292
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
293
- # policy is overwritten blindly.
294
- # Corresponds to the JSON property `etag`
295
- # @return [String]
296
- attr_accessor :etag
297
-
298
291
  #
299
292
  # Corresponds to the JSON property `iamOwned`
300
293
  # @return [Boolean]
@@ -331,94 +324,32 @@ module Google
331
324
  # @return [Array<Google::Apis::CloudkmsV1::Binding>]
332
325
  attr_accessor :bindings
333
326
 
327
+ # `etag` is used for optimistic concurrency control as a way to help
328
+ # prevent simultaneous updates of a policy from overwriting each other.
329
+ # It is strongly suggested that systems make use of the `etag` in the
330
+ # read-modify-write cycle to perform policy updates in order to avoid race
331
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
332
+ # systems are expected to put that etag in the request to `setIamPolicy` to
333
+ # ensure that their change will be applied to the same version of the policy.
334
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
335
+ # policy is overwritten blindly.
336
+ # Corresponds to the JSON property `etag`
337
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
338
+ # @return [String]
339
+ attr_accessor :etag
340
+
334
341
  def initialize(**args)
335
342
  update!(**args)
336
343
  end
337
344
 
338
345
  # Update properties of this object
339
346
  def update!(**args)
340
- @etag = args[:etag] if args.key?(:etag)
341
347
  @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
342
348
  @rules = args[:rules] if args.key?(:rules)
343
349
  @version = args[:version] if args.key?(:version)
344
350
  @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
345
351
  @bindings = args[:bindings] if args.key?(:bindings)
346
- end
347
- end
348
-
349
- # The response message for Locations.ListLocations.
350
- class ListLocationsResponse
351
- include Google::Apis::Core::Hashable
352
-
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
357
-
358
- # The standard List next-page token.
359
- # Corresponds to the JSON property `nextPageToken`
360
- # @return [String]
361
- attr_accessor :next_page_token
362
-
363
- def initialize(**args)
364
- update!(**args)
365
- end
366
-
367
- # Update properties of this object
368
- def update!(**args)
369
- @locations = args[:locations] if args.key?(:locations)
370
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
371
- end
372
- end
373
-
374
- # A KeyRing is a toplevel logical grouping of CryptoKeys.
375
- class KeyRing
376
- include Google::Apis::Core::Hashable
377
-
378
- # Output only. The resource name for the KeyRing in the format
379
- # `projects/*/locations/*/keyRings/*`.
380
- # Corresponds to the JSON property `name`
381
- # @return [String]
382
- attr_accessor :name
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
-
389
- def initialize(**args)
390
- update!(**args)
391
- end
392
-
393
- # Update properties of this object
394
- def update!(**args)
395
- @name = args[:name] if args.key?(:name)
396
- @create_time = args[:create_time] if args.key?(:create_time)
397
- end
398
- end
399
-
400
- # Response message for KeyManagementService.Encrypt.
401
- class EncryptResponse
402
- include Google::Apis::Core::Hashable
403
-
404
- # The resource name of the CryptoKeyVersion used in encryption.
405
- # Corresponds to the JSON property `name`
406
- # @return [String]
407
- attr_accessor :name
408
-
409
- # The encrypted data.
410
- # Corresponds to the JSON property `ciphertext`
411
- # @return [String]
412
- attr_accessor :ciphertext
413
-
414
- def initialize(**args)
415
- update!(**args)
416
- end
417
-
418
- # Update properties of this object
419
- def update!(**args)
420
- @name = args[:name] if args.key?(:name)
421
- @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
352
+ @etag = args[:etag] if args.key?(:etag)
422
353
  end
423
354
  end
424
355
 
@@ -587,18 +518,6 @@ module Google
587
518
  class CryptoKeyVersion
588
519
  include Google::Apis::Core::Hashable
589
520
 
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
-
602
521
  # The current state of the CryptoKeyVersion.
603
522
  # Corresponds to the JSON property `state`
604
523
  # @return [String]
@@ -617,17 +536,29 @@ module Google
617
536
  # @return [String]
618
537
  attr_accessor :destroy_event_time
619
538
 
539
+ # Output only. The time this CryptoKeyVersion's key material is scheduled
540
+ # for destruction. Only present if state is
541
+ # DESTROY_SCHEDULED.
542
+ # Corresponds to the JSON property `destroyTime`
543
+ # @return [String]
544
+ attr_accessor :destroy_time
545
+
546
+ # Output only. The time at which this CryptoKeyVersion was created.
547
+ # Corresponds to the JSON property `createTime`
548
+ # @return [String]
549
+ attr_accessor :create_time
550
+
620
551
  def initialize(**args)
621
552
  update!(**args)
622
553
  end
623
554
 
624
555
  # Update properties of this object
625
556
  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)
628
557
  @state = args[:state] if args.key?(:state)
629
558
  @name = args[:name] if args.key?(:name)
630
559
  @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
560
+ @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
561
+ @create_time = args[:create_time] if args.key?(:create_time)
631
562
  end
632
563
  end
633
564
 
@@ -688,26 +619,28 @@ module Google
688
619
  class EncryptRequest
689
620
  include Google::Apis::Core::Hashable
690
621
 
622
+ # Required. The data to encrypt. Must be no larger than 64KiB.
623
+ # Corresponds to the JSON property `plaintext`
624
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
625
+ # @return [String]
626
+ attr_accessor :plaintext
627
+
691
628
  # Optional data that, if specified, must also be provided during decryption
692
629
  # through DecryptRequest.additional_authenticated_data. Must be no
693
630
  # larger than 64KiB.
694
631
  # Corresponds to the JSON property `additionalAuthenticatedData`
632
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
695
633
  # @return [String]
696
634
  attr_accessor :additional_authenticated_data
697
635
 
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
-
703
636
  def initialize(**args)
704
637
  update!(**args)
705
638
  end
706
639
 
707
640
  # Update properties of this object
708
641
  def update!(**args)
709
- @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
710
642
  @plaintext = args[:plaintext] if args.key?(:plaintext)
643
+ @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
711
644
  end
712
645
  end
713
646
 
@@ -715,6 +648,11 @@ module Google
715
648
  class ListCryptoKeyVersionsResponse
716
649
  include Google::Apis::Core::Hashable
717
650
 
651
+ # The list of CryptoKeyVersions.
652
+ # Corresponds to the JSON property `cryptoKeyVersions`
653
+ # @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
654
+ attr_accessor :crypto_key_versions
655
+
718
656
  # A token to retrieve next page of results. Pass this value in
719
657
  # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
720
658
  # results.
@@ -728,20 +666,15 @@ module Google
728
666
  # @return [Fixnum]
729
667
  attr_accessor :total_size
730
668
 
731
- # The list of CryptoKeyVersions.
732
- # Corresponds to the JSON property `cryptoKeyVersions`
733
- # @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
734
- attr_accessor :crypto_key_versions
735
-
736
669
  def initialize(**args)
737
670
  update!(**args)
738
671
  end
739
672
 
740
673
  # Update properties of this object
741
674
  def update!(**args)
675
+ @crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
742
676
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
743
677
  @total_size = args[:total_size] if args.key?(:total_size)
744
- @crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
745
678
  end
746
679
  end
747
680
 
@@ -778,6 +711,68 @@ module Google
778
711
  end
779
712
  end
780
713
 
714
+ # A rule to be applied in a Policy.
715
+ class Rule
716
+ include Google::Apis::Core::Hashable
717
+
718
+ # If one or more 'not_in' clauses are specified, the rule matches
719
+ # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
720
+ # The format for in and not_in entries is the same as for members in a
721
+ # Binding (see google/iam/v1/policy.proto).
722
+ # Corresponds to the JSON property `notIn`
723
+ # @return [Array<String>]
724
+ attr_accessor :not_in
725
+
726
+ # Human-readable description of the rule.
727
+ # Corresponds to the JSON property `description`
728
+ # @return [String]
729
+ attr_accessor :description
730
+
731
+ # Additional restrictions that must be met
732
+ # Corresponds to the JSON property `conditions`
733
+ # @return [Array<Google::Apis::CloudkmsV1::Condition>]
734
+ attr_accessor :conditions
735
+
736
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
737
+ # that match the LOG action.
738
+ # Corresponds to the JSON property `logConfig`
739
+ # @return [Array<Google::Apis::CloudkmsV1::LogConfig>]
740
+ attr_accessor :log_config
741
+
742
+ # If one or more 'in' clauses are specified, the rule matches if
743
+ # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
744
+ # Corresponds to the JSON property `in`
745
+ # @return [Array<String>]
746
+ attr_accessor :in
747
+
748
+ # A permission is a string of form '<service>.<resource type>.<verb>'
749
+ # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
750
+ # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
751
+ # Corresponds to the JSON property `permissions`
752
+ # @return [Array<String>]
753
+ attr_accessor :permissions
754
+
755
+ # Required
756
+ # Corresponds to the JSON property `action`
757
+ # @return [String]
758
+ attr_accessor :action
759
+
760
+ def initialize(**args)
761
+ update!(**args)
762
+ end
763
+
764
+ # Update properties of this object
765
+ def update!(**args)
766
+ @not_in = args[:not_in] if args.key?(:not_in)
767
+ @description = args[:description] if args.key?(:description)
768
+ @conditions = args[:conditions] if args.key?(:conditions)
769
+ @log_config = args[:log_config] if args.key?(:log_config)
770
+ @in = args[:in] if args.key?(:in)
771
+ @permissions = args[:permissions] if args.key?(:permissions)
772
+ @action = args[:action] if args.key?(:action)
773
+ end
774
+ end
775
+
781
776
  # A CryptoKey represents a logical key that can be used for cryptographic
782
777
  # operations.
783
778
  # A CryptoKey is made up of one or more versions, which
@@ -844,68 +839,6 @@ module Google
844
839
  end
845
840
  end
846
841
 
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
-
909
842
  # Specifies what kind of log the caller must write
910
843
  class LogConfig
911
844
  include Google::Apis::Core::Hashable
@@ -941,15 +874,6 @@ module Google
941
874
  class SetIamPolicyRequest
942
875
  include Google::Apis::Core::Hashable
943
876
 
944
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
945
- # the fields in the mask will be modified. If no mask is provided, the
946
- # following default mask is used:
947
- # paths: "bindings, etag"
948
- # This field is only used by Cloud IAM.
949
- # Corresponds to the JSON property `updateMask`
950
- # @return [String]
951
- attr_accessor :update_mask
952
-
953
877
  # Defines an Identity and Access Management (IAM) policy. It is used to
954
878
  # specify access control policies for Cloud Platform resources.
955
879
  # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@@ -980,14 +904,23 @@ module Google
980
904
  # @return [Google::Apis::CloudkmsV1::Policy]
981
905
  attr_accessor :policy
982
906
 
907
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
908
+ # the fields in the mask will be modified. If no mask is provided, the
909
+ # following default mask is used:
910
+ # paths: "bindings, etag"
911
+ # This field is only used by Cloud IAM.
912
+ # Corresponds to the JSON property `updateMask`
913
+ # @return [String]
914
+ attr_accessor :update_mask
915
+
983
916
  def initialize(**args)
984
917
  update!(**args)
985
918
  end
986
919
 
987
920
  # Update properties of this object
988
921
  def update!(**args)
989
- @update_mask = args[:update_mask] if args.key?(:update_mask)
990
922
  @policy = args[:policy] if args.key?(:policy)
923
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
991
924
  end
992
925
  end
993
926
 
@@ -998,12 +931,14 @@ module Google
998
931
  # Required. The encrypted data originally returned in
999
932
  # EncryptResponse.ciphertext.
1000
933
  # Corresponds to the JSON property `ciphertext`
934
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1001
935
  # @return [String]
1002
936
  attr_accessor :ciphertext
1003
937
 
1004
938
  # Optional data that must match the data originally supplied in
1005
939
  # EncryptRequest.additional_authenticated_data.
1006
940
  # Corresponds to the JSON property `additionalAuthenticatedData`
941
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1007
942
  # @return [String]
1008
943
  attr_accessor :additional_authenticated_data
1009
944
 
@@ -1017,6 +952,78 @@ module Google
1017
952
  @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
1018
953
  end
1019
954
  end
955
+
956
+ # A resource that represents Google Cloud Platform location.
957
+ class Location
958
+ include Google::Apis::Core::Hashable
959
+
960
+ # Cross-service attributes for the location. For example
961
+ # `"cloud.googleapis.com/region": "us-east1"`
962
+ # Corresponds to the JSON property `labels`
963
+ # @return [Hash<String,String>]
964
+ attr_accessor :labels
965
+
966
+ # Resource name for the location, which may vary between implementations.
967
+ # For example: `"projects/example-project/locations/us-east1"`
968
+ # Corresponds to the JSON property `name`
969
+ # @return [String]
970
+ attr_accessor :name
971
+
972
+ # The canonical id for this location. For example: `"us-east1"`.
973
+ # Corresponds to the JSON property `locationId`
974
+ # @return [String]
975
+ attr_accessor :location_id
976
+
977
+ # Service-specific metadata. For example the available capacity at the given
978
+ # location.
979
+ # Corresponds to the JSON property `metadata`
980
+ # @return [Hash<String,Object>]
981
+ attr_accessor :metadata
982
+
983
+ def initialize(**args)
984
+ update!(**args)
985
+ end
986
+
987
+ # Update properties of this object
988
+ def update!(**args)
989
+ @labels = args[:labels] if args.key?(:labels)
990
+ @name = args[:name] if args.key?(:name)
991
+ @location_id = args[:location_id] if args.key?(:location_id)
992
+ @metadata = args[:metadata] if args.key?(:metadata)
993
+ end
994
+ end
995
+
996
+ # Response message for KeyManagementService.ListCryptoKeys.
997
+ class ListCryptoKeysResponse
998
+ include Google::Apis::Core::Hashable
999
+
1000
+ # A token to retrieve next page of results. Pass this value in
1001
+ # ListCryptoKeysRequest.page_token to retrieve the next page of results.
1002
+ # Corresponds to the JSON property `nextPageToken`
1003
+ # @return [String]
1004
+ attr_accessor :next_page_token
1005
+
1006
+ # The list of CryptoKeys.
1007
+ # Corresponds to the JSON property `cryptoKeys`
1008
+ # @return [Array<Google::Apis::CloudkmsV1::CryptoKey>]
1009
+ attr_accessor :crypto_keys
1010
+
1011
+ # The total number of CryptoKeys that matched the query.
1012
+ # Corresponds to the JSON property `totalSize`
1013
+ # @return [Fixnum]
1014
+ attr_accessor :total_size
1015
+
1016
+ def initialize(**args)
1017
+ update!(**args)
1018
+ end
1019
+
1020
+ # Update properties of this object
1021
+ def update!(**args)
1022
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1023
+ @crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys)
1024
+ @total_size = args[:total_size] if args.key?(:total_size)
1025
+ end
1026
+ end
1020
1027
  end
1021
1028
  end
1022
1029
  end