google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -22,279 +22,279 @@ module Google
22
22
  module Apis
23
23
  module FirebaserulesV1
24
24
 
25
- class Result
25
+ class File
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class SourcePosition
31
+ class FunctionCall
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class TestCase
37
+ class ListReleasesResponse
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Ruleset
43
+ class Release
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class TestRulesetRequest
49
+ class TestRulesetResponse
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Issue
55
+ class TestResult
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ListReleasesResponse
61
+ class ListRulesetsResponse
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class File
67
+ class Arg
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class FunctionCall
73
+ class TestSuite
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class Release
79
+ class Empty
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class TestRulesetResponse
85
+ class FunctionMock
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class TestResult
91
+ class Source
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class ListRulesetsResponse
97
+ class Result
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class Arg
103
+ class SourcePosition
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class TestSuite
109
+ class TestCase
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class Empty
115
+ class TestRulesetRequest
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class FunctionMock
121
+ class Ruleset
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class Source
127
+ class Issue
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class Result
133
+ class File
134
134
  # @private
135
135
  class Representation < Google::Apis::Core::JsonRepresentation
136
- property :value, as: 'value'
137
- property :undefined, as: 'undefined', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
138
-
136
+ property :content, as: 'content'
137
+ property :fingerprint, :base64 => true, as: 'fingerprint'
138
+ property :name, as: 'name'
139
139
  end
140
140
  end
141
141
 
142
- class SourcePosition
142
+ class FunctionCall
143
143
  # @private
144
144
  class Representation < Google::Apis::Core::JsonRepresentation
145
- property :line, as: 'line'
146
- property :column, as: 'column'
147
- property :file_name, as: 'fileName'
145
+ collection :args, as: 'args'
146
+ property :function, as: 'function'
148
147
  end
149
148
  end
150
149
 
151
- class TestCase
150
+ class ListReleasesResponse
152
151
  # @private
153
152
  class Representation < Google::Apis::Core::JsonRepresentation
154
- property :resource, as: 'resource'
155
- collection :function_mocks, as: 'functionMocks', class: Google::Apis::FirebaserulesV1::FunctionMock, decorator: Google::Apis::FirebaserulesV1::FunctionMock::Representation
153
+ collection :releases, as: 'releases', class: Google::Apis::FirebaserulesV1::Release, decorator: Google::Apis::FirebaserulesV1::Release::Representation
156
154
 
157
- property :expectation, as: 'expectation'
158
- property :request, as: 'request'
155
+ property :next_page_token, as: 'nextPageToken'
159
156
  end
160
157
  end
161
158
 
162
- class Ruleset
159
+ class Release
163
160
  # @private
164
161
  class Representation < Google::Apis::Core::JsonRepresentation
165
- property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
166
-
167
162
  property :create_time, as: 'createTime'
163
+ property :update_time, as: 'updateTime'
168
164
  property :name, as: 'name'
165
+ property :ruleset_name, as: 'rulesetName'
169
166
  end
170
167
  end
171
168
 
172
- class TestRulesetRequest
169
+ class TestRulesetResponse
173
170
  # @private
174
171
  class Representation < Google::Apis::Core::JsonRepresentation
175
- property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
172
+ collection :test_results, as: 'testResults', class: Google::Apis::FirebaserulesV1::TestResult, decorator: Google::Apis::FirebaserulesV1::TestResult::Representation
176
173
 
177
- property :test_suite, as: 'testSuite', class: Google::Apis::FirebaserulesV1::TestSuite, decorator: Google::Apis::FirebaserulesV1::TestSuite::Representation
174
+ collection :issues, as: 'issues', class: Google::Apis::FirebaserulesV1::Issue, decorator: Google::Apis::FirebaserulesV1::Issue::Representation
178
175
 
179
176
  end
180
177
  end
181
178
 
182
- class Issue
179
+ class TestResult
183
180
  # @private
184
181
  class Representation < Google::Apis::Core::JsonRepresentation
185
- property :description, as: 'description'
186
- property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
182
+ property :error_position, as: 'errorPosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
187
183
 
188
- property :severity, as: 'severity'
184
+ collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation
185
+
186
+ property :state, as: 'state'
187
+ collection :debug_messages, as: 'debugMessages'
189
188
  end
190
189
  end
191
190
 
192
- class ListReleasesResponse
191
+ class ListRulesetsResponse
193
192
  # @private
194
193
  class Representation < Google::Apis::Core::JsonRepresentation
195
- collection :releases, as: 'releases', class: Google::Apis::FirebaserulesV1::Release, decorator: Google::Apis::FirebaserulesV1::Release::Representation
196
-
197
194
  property :next_page_token, as: 'nextPageToken'
195
+ collection :rulesets, as: 'rulesets', class: Google::Apis::FirebaserulesV1::Ruleset, decorator: Google::Apis::FirebaserulesV1::Ruleset::Representation
196
+
198
197
  end
199
198
  end
200
199
 
201
- class File
200
+ class Arg
202
201
  # @private
203
202
  class Representation < Google::Apis::Core::JsonRepresentation
204
- property :name, as: 'name'
205
- property :content, as: 'content'
206
- property :fingerprint, :base64 => true, as: 'fingerprint'
203
+ property :exact_value, as: 'exactValue'
204
+ property :any_value, as: 'anyValue', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
205
+
207
206
  end
208
207
  end
209
208
 
210
- class FunctionCall
209
+ class TestSuite
211
210
  # @private
212
211
  class Representation < Google::Apis::Core::JsonRepresentation
213
- collection :args, as: 'args'
214
- property :function, as: 'function'
212
+ collection :test_cases, as: 'testCases', class: Google::Apis::FirebaserulesV1::TestCase, decorator: Google::Apis::FirebaserulesV1::TestCase::Representation
213
+
215
214
  end
216
215
  end
217
216
 
218
- class Release
217
+ class Empty
219
218
  # @private
220
219
  class Representation < Google::Apis::Core::JsonRepresentation
221
- property :create_time, as: 'createTime'
222
- property :update_time, as: 'updateTime'
223
- property :name, as: 'name'
224
- property :ruleset_name, as: 'rulesetName'
225
220
  end
226
221
  end
227
222
 
228
- class TestRulesetResponse
223
+ class FunctionMock
229
224
  # @private
230
225
  class Representation < Google::Apis::Core::JsonRepresentation
231
- collection :test_results, as: 'testResults', class: Google::Apis::FirebaserulesV1::TestResult, decorator: Google::Apis::FirebaserulesV1::TestResult::Representation
226
+ collection :args, as: 'args', class: Google::Apis::FirebaserulesV1::Arg, decorator: Google::Apis::FirebaserulesV1::Arg::Representation
232
227
 
233
- collection :issues, as: 'issues', class: Google::Apis::FirebaserulesV1::Issue, decorator: Google::Apis::FirebaserulesV1::Issue::Representation
228
+ property :function, as: 'function'
229
+ property :result, as: 'result', class: Google::Apis::FirebaserulesV1::Result, decorator: Google::Apis::FirebaserulesV1::Result::Representation
234
230
 
235
231
  end
236
232
  end
237
233
 
238
- class TestResult
234
+ class Source
239
235
  # @private
240
236
  class Representation < Google::Apis::Core::JsonRepresentation
241
- collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation
242
-
243
- property :state, as: 'state'
244
- collection :debug_messages, as: 'debugMessages'
245
- property :error_position, as: 'errorPosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
237
+ collection :files, as: 'files', class: Google::Apis::FirebaserulesV1::File, decorator: Google::Apis::FirebaserulesV1::File::Representation
246
238
 
247
239
  end
248
240
  end
249
241
 
250
- class ListRulesetsResponse
242
+ class Result
251
243
  # @private
252
244
  class Representation < Google::Apis::Core::JsonRepresentation
253
- collection :rulesets, as: 'rulesets', class: Google::Apis::FirebaserulesV1::Ruleset, decorator: Google::Apis::FirebaserulesV1::Ruleset::Representation
245
+ property :value, as: 'value'
246
+ property :undefined, as: 'undefined', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
254
247
 
255
- property :next_page_token, as: 'nextPageToken'
256
248
  end
257
249
  end
258
250
 
259
- class Arg
251
+ class SourcePosition
260
252
  # @private
261
253
  class Representation < Google::Apis::Core::JsonRepresentation
262
- property :exact_value, as: 'exactValue'
263
- property :any_value, as: 'anyValue', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
264
-
254
+ property :line, as: 'line'
255
+ property :column, as: 'column'
256
+ property :file_name, as: 'fileName'
265
257
  end
266
258
  end
267
259
 
268
- class TestSuite
260
+ class TestCase
269
261
  # @private
270
262
  class Representation < Google::Apis::Core::JsonRepresentation
271
- collection :test_cases, as: 'testCases', class: Google::Apis::FirebaserulesV1::TestCase, decorator: Google::Apis::FirebaserulesV1::TestCase::Representation
263
+ property :resource, as: 'resource'
264
+ collection :function_mocks, as: 'functionMocks', class: Google::Apis::FirebaserulesV1::FunctionMock, decorator: Google::Apis::FirebaserulesV1::FunctionMock::Representation
272
265
 
266
+ property :expectation, as: 'expectation'
267
+ property :request, as: 'request'
273
268
  end
274
269
  end
275
270
 
276
- class Empty
271
+ class TestRulesetRequest
277
272
  # @private
278
273
  class Representation < Google::Apis::Core::JsonRepresentation
274
+ property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
275
+
276
+ property :test_suite, as: 'testSuite', class: Google::Apis::FirebaserulesV1::TestSuite, decorator: Google::Apis::FirebaserulesV1::TestSuite::Representation
277
+
279
278
  end
280
279
  end
281
280
 
282
- class FunctionMock
281
+ class Ruleset
283
282
  # @private
284
283
  class Representation < Google::Apis::Core::JsonRepresentation
285
- property :function, as: 'function'
286
- property :result, as: 'result', class: Google::Apis::FirebaserulesV1::Result, decorator: Google::Apis::FirebaserulesV1::Result::Representation
287
-
288
- collection :args, as: 'args', class: Google::Apis::FirebaserulesV1::Arg, decorator: Google::Apis::FirebaserulesV1::Arg::Representation
284
+ property :name, as: 'name'
285
+ property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
289
286
 
287
+ property :create_time, as: 'createTime'
290
288
  end
291
289
  end
292
290
 
293
- class Source
291
+ class Issue
294
292
  # @private
295
293
  class Representation < Google::Apis::Core::JsonRepresentation
296
- collection :files, as: 'files', class: Google::Apis::FirebaserulesV1::File, decorator: Google::Apis::FirebaserulesV1::File::Representation
294
+ property :description, as: 'description'
295
+ property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
297
296
 
297
+ property :severity, as: 'severity'
298
298
  end
299
299
  end
300
300
  end
@@ -102,157 +102,6 @@ module Google
102
102
  execute_or_queue_command(command, &block)
103
103
  end
104
104
 
105
- # Delete a `Ruleset` by resource name.
106
- # If the `Ruleset` is referenced by a `Release` the operation will fail.
107
- # @param [String] name
108
- # Resource name for the ruleset to delete.
109
- # Format: `projects/`project_id`/rulesets/`ruleset_id``
110
- # @param [String] fields
111
- # Selector specifying which fields to include in a partial response.
112
- # @param [String] quota_user
113
- # Available to use for quota purposes for server-side applications. Can be any
114
- # arbitrary string assigned to a user, but should not exceed 40 characters.
115
- # @param [Google::Apis::RequestOptions] options
116
- # Request-specific options
117
- #
118
- # @yield [result, err] Result & error if block supplied
119
- # @yieldparam result [Google::Apis::FirebaserulesV1::Empty] parsed result object
120
- # @yieldparam err [StandardError] error object if request failed
121
- #
122
- # @return [Google::Apis::FirebaserulesV1::Empty]
123
- #
124
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
125
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
126
- # @raise [Google::Apis::AuthorizationError] Authorization is required
127
- def delete_project_ruleset(name, fields: nil, quota_user: nil, options: nil, &block)
128
- command = make_simple_command(:delete, 'v1/{+name}', options)
129
- command.response_representation = Google::Apis::FirebaserulesV1::Empty::Representation
130
- command.response_class = Google::Apis::FirebaserulesV1::Empty
131
- command.params['name'] = name unless name.nil?
132
- command.query['fields'] = fields unless fields.nil?
133
- command.query['quotaUser'] = quota_user unless quota_user.nil?
134
- execute_or_queue_command(command, &block)
135
- end
136
-
137
- # Get a `Ruleset` by name including the full `Source` contents.
138
- # @param [String] name
139
- # Resource name for the ruleset to get.
140
- # Format: `projects/`project_id`/rulesets/`ruleset_id``
141
- # @param [String] fields
142
- # Selector specifying which fields to include in a partial response.
143
- # @param [String] quota_user
144
- # Available to use for quota purposes for server-side applications. Can be any
145
- # arbitrary string assigned to a user, but should not exceed 40 characters.
146
- # @param [Google::Apis::RequestOptions] options
147
- # Request-specific options
148
- #
149
- # @yield [result, err] Result & error if block supplied
150
- # @yieldparam result [Google::Apis::FirebaserulesV1::Ruleset] parsed result object
151
- # @yieldparam err [StandardError] error object if request failed
152
- #
153
- # @return [Google::Apis::FirebaserulesV1::Ruleset]
154
- #
155
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
- # @raise [Google::Apis::AuthorizationError] Authorization is required
158
- def get_project_ruleset(name, fields: nil, quota_user: nil, options: nil, &block)
159
- command = make_simple_command(:get, 'v1/{+name}', options)
160
- command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
161
- command.response_class = Google::Apis::FirebaserulesV1::Ruleset
162
- command.params['name'] = name unless name.nil?
163
- command.query['fields'] = fields unless fields.nil?
164
- command.query['quotaUser'] = quota_user unless quota_user.nil?
165
- execute_or_queue_command(command, &block)
166
- end
167
-
168
- # List `Ruleset` metadata only and optionally filter the results by `Ruleset`
169
- # name.
170
- # The full `Source` contents of a `Ruleset` may be retrieved with
171
- # GetRuleset.
172
- # @param [String] name
173
- # Resource name for the project.
174
- # Format: `projects/`project_id``
175
- # @param [String] page_token
176
- # Next page token for loading the next batch of `Ruleset` instances.
177
- # @param [Fixnum] page_size
178
- # Page size to load. Maximum of 100. Defaults to 10.
179
- # Note: `page_size` is just a hint and the service may choose to load less
180
- # than `page_size` due to the size of the output. To traverse all of the
181
- # releases, caller should iterate until the `page_token` is empty.
182
- # @param [String] filter
183
- # `Ruleset` filter. The list method supports filters with restrictions on
184
- # `Ruleset.name`.
185
- # Filters on `Ruleset.create_time` should use the `date` function which
186
- # parses strings that conform to the RFC 3339 date/time specifications.
187
- # Example: `create_time > date("2017-01-01") AND name=UUID-*`
188
- # @param [String] fields
189
- # Selector specifying which fields to include in a partial response.
190
- # @param [String] quota_user
191
- # Available to use for quota purposes for server-side applications. Can be any
192
- # arbitrary string assigned to a user, but should not exceed 40 characters.
193
- # @param [Google::Apis::RequestOptions] options
194
- # Request-specific options
195
- #
196
- # @yield [result, err] Result & error if block supplied
197
- # @yieldparam result [Google::Apis::FirebaserulesV1::ListRulesetsResponse] parsed result object
198
- # @yieldparam err [StandardError] error object if request failed
199
- #
200
- # @return [Google::Apis::FirebaserulesV1::ListRulesetsResponse]
201
- #
202
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
- # @raise [Google::Apis::AuthorizationError] Authorization is required
205
- def list_project_rulesets(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
206
- command = make_simple_command(:get, 'v1/{+name}/rulesets', options)
207
- command.response_representation = Google::Apis::FirebaserulesV1::ListRulesetsResponse::Representation
208
- command.response_class = Google::Apis::FirebaserulesV1::ListRulesetsResponse
209
- command.params['name'] = name unless name.nil?
210
- command.query['pageToken'] = page_token unless page_token.nil?
211
- command.query['pageSize'] = page_size unless page_size.nil?
212
- command.query['filter'] = filter unless filter.nil?
213
- command.query['fields'] = fields unless fields.nil?
214
- command.query['quotaUser'] = quota_user unless quota_user.nil?
215
- execute_or_queue_command(command, &block)
216
- end
217
-
218
- # Create a `Ruleset` from `Source`.
219
- # The `Ruleset` is given a unique generated name which is returned to the
220
- # caller. `Source` containing syntactic or semantics errors will result in an
221
- # error response indicating the first error encountered. For a detailed view
222
- # of `Source` issues, use TestRuleset.
223
- # @param [String] name
224
- # Resource name for Project which owns this `Ruleset`.
225
- # Format: `projects/`project_id``
226
- # @param [Google::Apis::FirebaserulesV1::Ruleset] ruleset_object
227
- # @param [String] fields
228
- # Selector specifying which fields to include in a partial response.
229
- # @param [String] quota_user
230
- # Available to use for quota purposes for server-side applications. Can be any
231
- # arbitrary string assigned to a user, but should not exceed 40 characters.
232
- # @param [Google::Apis::RequestOptions] options
233
- # Request-specific options
234
- #
235
- # @yield [result, err] Result & error if block supplied
236
- # @yieldparam result [Google::Apis::FirebaserulesV1::Ruleset] parsed result object
237
- # @yieldparam err [StandardError] error object if request failed
238
- #
239
- # @return [Google::Apis::FirebaserulesV1::Ruleset]
240
- #
241
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
- # @raise [Google::Apis::AuthorizationError] Authorization is required
244
- def create_project_ruleset(name, ruleset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
245
- command = make_simple_command(:post, 'v1/{+name}/rulesets', options)
246
- command.request_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
247
- command.request_object = ruleset_object
248
- command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
249
- command.response_class = Google::Apis::FirebaserulesV1::Ruleset
250
- command.params['name'] = name unless name.nil?
251
- command.query['fields'] = fields unless fields.nil?
252
- command.query['quotaUser'] = quota_user unless quota_user.nil?
253
- execute_or_queue_command(command, &block)
254
- end
255
-
256
105
  # Update a `Release`.
257
106
  # Only updates to the `ruleset_name` and `test_suite_name` fields will be
258
107
  # honored. `Release` rename is not supported. To create a `Release` use the
@@ -483,6 +332,157 @@ module Google
483
332
  command.query['quotaUser'] = quota_user unless quota_user.nil?
484
333
  execute_or_queue_command(command, &block)
485
334
  end
335
+
336
+ # Get a `Ruleset` by name including the full `Source` contents.
337
+ # @param [String] name
338
+ # Resource name for the ruleset to get.
339
+ # Format: `projects/`project_id`/rulesets/`ruleset_id``
340
+ # @param [String] fields
341
+ # Selector specifying which fields to include in a partial response.
342
+ # @param [String] quota_user
343
+ # Available to use for quota purposes for server-side applications. Can be any
344
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
345
+ # @param [Google::Apis::RequestOptions] options
346
+ # Request-specific options
347
+ #
348
+ # @yield [result, err] Result & error if block supplied
349
+ # @yieldparam result [Google::Apis::FirebaserulesV1::Ruleset] parsed result object
350
+ # @yieldparam err [StandardError] error object if request failed
351
+ #
352
+ # @return [Google::Apis::FirebaserulesV1::Ruleset]
353
+ #
354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
357
+ def get_project_ruleset(name, fields: nil, quota_user: nil, options: nil, &block)
358
+ command = make_simple_command(:get, 'v1/{+name}', options)
359
+ command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
360
+ command.response_class = Google::Apis::FirebaserulesV1::Ruleset
361
+ command.params['name'] = name unless name.nil?
362
+ command.query['fields'] = fields unless fields.nil?
363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
364
+ execute_or_queue_command(command, &block)
365
+ end
366
+
367
+ # List `Ruleset` metadata only and optionally filter the results by `Ruleset`
368
+ # name.
369
+ # The full `Source` contents of a `Ruleset` may be retrieved with
370
+ # GetRuleset.
371
+ # @param [String] name
372
+ # Resource name for the project.
373
+ # Format: `projects/`project_id``
374
+ # @param [String] filter
375
+ # `Ruleset` filter. The list method supports filters with restrictions on
376
+ # `Ruleset.name`.
377
+ # Filters on `Ruleset.create_time` should use the `date` function which
378
+ # parses strings that conform to the RFC 3339 date/time specifications.
379
+ # Example: `create_time > date("2017-01-01") AND name=UUID-*`
380
+ # @param [String] page_token
381
+ # Next page token for loading the next batch of `Ruleset` instances.
382
+ # @param [Fixnum] page_size
383
+ # Page size to load. Maximum of 100. Defaults to 10.
384
+ # Note: `page_size` is just a hint and the service may choose to load less
385
+ # than `page_size` due to the size of the output. To traverse all of the
386
+ # releases, caller should iterate until the `page_token` is empty.
387
+ # @param [String] fields
388
+ # Selector specifying which fields to include in a partial response.
389
+ # @param [String] quota_user
390
+ # Available to use for quota purposes for server-side applications. Can be any
391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
392
+ # @param [Google::Apis::RequestOptions] options
393
+ # Request-specific options
394
+ #
395
+ # @yield [result, err] Result & error if block supplied
396
+ # @yieldparam result [Google::Apis::FirebaserulesV1::ListRulesetsResponse] parsed result object
397
+ # @yieldparam err [StandardError] error object if request failed
398
+ #
399
+ # @return [Google::Apis::FirebaserulesV1::ListRulesetsResponse]
400
+ #
401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
404
+ def list_project_rulesets(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
405
+ command = make_simple_command(:get, 'v1/{+name}/rulesets', options)
406
+ command.response_representation = Google::Apis::FirebaserulesV1::ListRulesetsResponse::Representation
407
+ command.response_class = Google::Apis::FirebaserulesV1::ListRulesetsResponse
408
+ command.params['name'] = name unless name.nil?
409
+ command.query['filter'] = filter unless filter.nil?
410
+ command.query['pageToken'] = page_token unless page_token.nil?
411
+ command.query['pageSize'] = page_size unless page_size.nil?
412
+ command.query['fields'] = fields unless fields.nil?
413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
414
+ execute_or_queue_command(command, &block)
415
+ end
416
+
417
+ # Create a `Ruleset` from `Source`.
418
+ # The `Ruleset` is given a unique generated name which is returned to the
419
+ # caller. `Source` containing syntactic or semantics errors will result in an
420
+ # error response indicating the first error encountered. For a detailed view
421
+ # of `Source` issues, use TestRuleset.
422
+ # @param [String] name
423
+ # Resource name for Project which owns this `Ruleset`.
424
+ # Format: `projects/`project_id``
425
+ # @param [Google::Apis::FirebaserulesV1::Ruleset] ruleset_object
426
+ # @param [String] fields
427
+ # Selector specifying which fields to include in a partial response.
428
+ # @param [String] quota_user
429
+ # Available to use for quota purposes for server-side applications. Can be any
430
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
431
+ # @param [Google::Apis::RequestOptions] options
432
+ # Request-specific options
433
+ #
434
+ # @yield [result, err] Result & error if block supplied
435
+ # @yieldparam result [Google::Apis::FirebaserulesV1::Ruleset] parsed result object
436
+ # @yieldparam err [StandardError] error object if request failed
437
+ #
438
+ # @return [Google::Apis::FirebaserulesV1::Ruleset]
439
+ #
440
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
441
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
442
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
443
+ def create_project_ruleset(name, ruleset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
444
+ command = make_simple_command(:post, 'v1/{+name}/rulesets', options)
445
+ command.request_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
446
+ command.request_object = ruleset_object
447
+ command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
448
+ command.response_class = Google::Apis::FirebaserulesV1::Ruleset
449
+ command.params['name'] = name unless name.nil?
450
+ command.query['fields'] = fields unless fields.nil?
451
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
452
+ execute_or_queue_command(command, &block)
453
+ end
454
+
455
+ # Delete a `Ruleset` by resource name.
456
+ # If the `Ruleset` is referenced by a `Release` the operation will fail.
457
+ # @param [String] name
458
+ # Resource name for the ruleset to delete.
459
+ # Format: `projects/`project_id`/rulesets/`ruleset_id``
460
+ # @param [String] fields
461
+ # Selector specifying which fields to include in a partial response.
462
+ # @param [String] quota_user
463
+ # Available to use for quota purposes for server-side applications. Can be any
464
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
465
+ # @param [Google::Apis::RequestOptions] options
466
+ # Request-specific options
467
+ #
468
+ # @yield [result, err] Result & error if block supplied
469
+ # @yieldparam result [Google::Apis::FirebaserulesV1::Empty] parsed result object
470
+ # @yieldparam err [StandardError] error object if request failed
471
+ #
472
+ # @return [Google::Apis::FirebaserulesV1::Empty]
473
+ #
474
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
475
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
476
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
477
+ def delete_project_ruleset(name, fields: nil, quota_user: nil, options: nil, &block)
478
+ command = make_simple_command(:delete, 'v1/{+name}', options)
479
+ command.response_representation = Google::Apis::FirebaserulesV1::Empty::Representation
480
+ command.response_class = Google::Apis::FirebaserulesV1::Empty
481
+ command.params['name'] = name unless name.nil?
482
+ command.query['fields'] = fields unless fields.nil?
483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
484
+ execute_or_queue_command(command, &block)
485
+ end
486
486
 
487
487
  protected
488
488