google-api-client 0.30.2 → 0.30.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +90 -0
  3. data/README.md +17 -1
  4. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  5. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +108 -0
  6. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +48 -0
  7. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +32 -6
  9. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +16 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +32 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +16 -1
  13. data/generated/google/apis/analytics_v3.rb +1 -1
  14. data/generated/google/apis/analytics_v3/classes.rb +1 -1
  15. data/generated/google/apis/analytics_v3/service.rb +1 -1
  16. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  17. data/generated/google/apis/androidmanagement_v1/classes.rb +8 -64
  18. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  19. data/generated/google/apis/androidpublisher_v1_1/classes.rb +1 -0
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +6 -4
  22. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v3/classes.rb +6 -4
  24. data/generated/google/apis/bigquery_v2.rb +1 -1
  25. data/generated/google/apis/bigquery_v2/classes.rb +243 -5
  26. data/generated/google/apis/bigquery_v2/representations.rb +77 -0
  27. data/generated/google/apis/bigquery_v2/service.rb +206 -0
  28. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  29. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +18 -76
  30. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +1 -0
  31. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -4
  32. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  33. data/generated/google/apis/bigtableadmin_v1/classes.rb +0 -72
  34. data/generated/google/apis/bigtableadmin_v1/representations.rb +0 -32
  35. data/generated/google/apis/bigtableadmin_v1/service.rb +0 -69
  36. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  37. data/generated/google/apis/bigtableadmin_v2/classes.rb +72 -0
  38. data/generated/google/apis/bigtableadmin_v2/representations.rb +32 -0
  39. data/generated/google/apis/bigtableadmin_v2/service.rb +69 -0
  40. data/generated/google/apis/cloudasset_v1.rb +1 -1
  41. data/generated/google/apis/cloudasset_v1/classes.rb +9 -75
  42. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  43. data/generated/google/apis/cloudasset_v1beta1/classes.rb +9 -75
  44. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +8 -74
  46. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  47. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +8 -74
  48. data/generated/google/apis/cloudiot_v1.rb +1 -1
  49. data/generated/google/apis/cloudiot_v1/classes.rb +8 -74
  50. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +4 -8
  52. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  53. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -5
  54. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -9
  56. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  57. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -9
  58. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  59. data/generated/google/apis/cloudscheduler_v1/classes.rb +20 -84
  60. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  61. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +20 -84
  62. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  63. data/generated/google/apis/cloudsearch_v1/classes.rb +8 -74
  64. data/generated/google/apis/cloudshell_v1.rb +1 -1
  65. data/generated/google/apis/cloudshell_v1/classes.rb +8 -74
  66. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  67. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -74
  68. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  69. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +8 -0
  70. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  71. data/generated/google/apis/cloudtrace_v2/classes.rb +8 -74
  72. data/generated/google/apis/commentanalyzer_v1alpha1.rb +2 -2
  73. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +1 -1
  74. data/generated/google/apis/composer_v1.rb +1 -1
  75. data/generated/google/apis/composer_v1/classes.rb +8 -74
  76. data/generated/google/apis/composer_v1beta1.rb +1 -1
  77. data/generated/google/apis/composer_v1beta1/classes.rb +8 -74
  78. data/generated/google/apis/compute_alpha.rb +1 -1
  79. data/generated/google/apis/compute_alpha/classes.rb +1991 -700
  80. data/generated/google/apis/compute_alpha/representations.rb +604 -154
  81. data/generated/google/apis/compute_alpha/service.rb +693 -89
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +375 -230
  84. data/generated/google/apis/compute_beta/representations.rb +2 -0
  85. data/generated/google/apis/compute_beta/service.rb +92 -6
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +1827 -239
  88. data/generated/google/apis/compute_v1/representations.rb +669 -2
  89. data/generated/google/apis/compute_v1/service.rb +1150 -6
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +104 -0
  92. data/generated/google/apis/container_v1/representations.rb +48 -0
  93. data/generated/google/apis/container_v1beta1.rb +1 -1
  94. data/generated/google/apis/container_v1beta1/classes.rb +67 -2
  95. data/generated/google/apis/container_v1beta1/representations.rb +31 -0
  96. data/generated/google/apis/content_v2.rb +1 -1
  97. data/generated/google/apis/content_v2/classes.rb +4 -0
  98. data/generated/google/apis/content_v2_1.rb +1 -1
  99. data/generated/google/apis/content_v2_1/classes.rb +41 -0
  100. data/generated/google/apis/content_v2_1/representations.rb +19 -0
  101. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  102. data/generated/google/apis/dataflow_v1b3/classes.rb +46 -74
  103. data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
  104. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  105. data/generated/google/apis/datafusion_v1beta1/classes.rb +8 -74
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +147 -64
  108. data/generated/google/apis/dataproc_v1/representations.rb +42 -0
  109. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  110. data/generated/google/apis/dataproc_v1beta2/classes.rb +8 -64
  111. data/generated/google/apis/dataproc_v1beta2/service.rb +4 -2
  112. data/generated/google/apis/dialogflow_v2.rb +2 -2
  113. data/generated/google/apis/dialogflow_v2/classes.rb +32 -32
  114. data/generated/google/apis/dialogflow_v2/representations.rb +2 -0
  115. data/generated/google/apis/dialogflow_v2/service.rb +77 -17
  116. data/generated/google/apis/dialogflow_v2beta1.rb +2 -2
  117. data/generated/google/apis/dialogflow_v2beta1/classes.rb +32 -32
  118. data/generated/google/apis/dialogflow_v2beta1/representations.rb +2 -0
  119. data/generated/google/apis/dialogflow_v2beta1/service.rb +79 -19
  120. data/generated/google/apis/dlp_v2.rb +1 -1
  121. data/generated/google/apis/dlp_v2/classes.rb +4 -3
  122. data/generated/google/apis/dns_v1beta2.rb +1 -1
  123. data/generated/google/apis/dns_v1beta2/service.rb +1 -1
  124. data/generated/google/apis/docs_v1.rb +1 -1
  125. data/generated/google/apis/docs_v1/classes.rb +0 -10
  126. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  127. data/generated/google/apis/file_v1.rb +1 -1
  128. data/generated/google/apis/file_v1/classes.rb +17 -74
  129. data/generated/google/apis/file_v1/representations.rb +1 -0
  130. data/generated/google/apis/file_v1beta1.rb +1 -1
  131. data/generated/google/apis/file_v1beta1/classes.rb +17 -74
  132. data/generated/google/apis/file_v1beta1/representations.rb +1 -0
  133. data/generated/google/apis/firebase_v1beta1.rb +44 -0
  134. data/generated/google/apis/firebase_v1beta1/classes.rb +1063 -0
  135. data/generated/google/apis/firebase_v1beta1/representations.rb +432 -0
  136. data/generated/google/apis/firebase_v1beta1/service.rb +1105 -0
  137. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  138. data/generated/google/apis/healthcare_v1alpha2/service.rb +43 -61
  139. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  140. data/generated/google/apis/healthcare_v1beta1/service.rb +43 -61
  141. data/generated/google/apis/iam_v1.rb +1 -1
  142. data/generated/google/apis/iam_v1/classes.rb +6 -0
  143. data/generated/google/apis/iam_v1/representations.rb +1 -0
  144. data/generated/google/apis/logging_v2.rb +1 -1
  145. data/generated/google/apis/ml_v1.rb +1 -1
  146. data/generated/google/apis/ml_v1/classes.rb +18 -0
  147. data/generated/google/apis/ml_v1/representations.rb +3 -0
  148. data/generated/google/apis/monitoring_v3.rb +1 -1
  149. data/generated/google/apis/monitoring_v3/classes.rb +1 -1
  150. data/generated/google/apis/people_v1.rb +1 -1
  151. data/generated/google/apis/people_v1/classes.rb +12 -111
  152. data/generated/google/apis/pubsub_v1.rb +1 -1
  153. data/generated/google/apis/pubsub_v1/classes.rb +43 -0
  154. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  155. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  156. data/generated/google/apis/remotebuildexecution_v1/classes.rb +89 -26
  157. data/generated/google/apis/remotebuildexecution_v1/representations.rb +3 -0
  158. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  159. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +89 -26
  160. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +3 -0
  161. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +15 -1
  162. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  163. data/generated/google/apis/remotebuildexecution_v2/classes.rb +103 -30
  164. data/generated/google/apis/remotebuildexecution_v2/representations.rb +3 -0
  165. data/generated/google/apis/remotebuildexecution_v2/service.rb +29 -2
  166. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  167. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -1
  168. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  169. data/generated/google/apis/servicecontrol_v1/classes.rb +64 -148
  170. data/generated/google/apis/servicecontrol_v1/representations.rb +17 -0
  171. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  172. data/generated/google/apis/servicemanagement_v1/classes.rb +8 -74
  173. data/generated/google/apis/servicemanagement_v1/service.rb +9 -1
  174. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  175. data/generated/google/apis/servicenetworking_v1/classes.rb +0 -1
  176. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  177. data/generated/google/apis/servicenetworking_v1beta/classes.rb +0 -1
  178. data/generated/google/apis/serviceusage_v1.rb +1 -1
  179. data/generated/google/apis/serviceusage_v1/classes.rb +0 -1
  180. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  181. data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -1
  182. data/generated/google/apis/spanner_v1.rb +1 -1
  183. data/generated/google/apis/spanner_v1/classes.rb +12 -111
  184. data/generated/google/apis/speech_v1.rb +1 -1
  185. data/generated/google/apis/speech_v1/classes.rb +13 -74
  186. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  187. data/generated/google/apis/speech_v1p1beta1/classes.rb +13 -74
  188. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  189. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -3
  190. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  191. data/generated/google/apis/tagmanager_v1.rb +4 -3
  192. data/generated/google/apis/tagmanager_v1/classes.rb +237 -70
  193. data/generated/google/apis/tagmanager_v1/service.rb +223 -374
  194. data/generated/google/apis/tagmanager_v2.rb +4 -3
  195. data/generated/google/apis/tagmanager_v2/classes.rb +221 -208
  196. data/generated/google/apis/tagmanager_v2/representations.rb +1 -16
  197. data/generated/google/apis/tagmanager_v2/service.rb +608 -757
  198. data/generated/google/apis/texttospeech_v1.rb +1 -1
  199. data/generated/google/apis/texttospeech_v1/classes.rb +28 -27
  200. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  201. data/generated/google/apis/texttospeech_v1beta1/classes.rb +28 -27
  202. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  203. data/generated/google/apis/toolresults_v1beta3/classes.rb +35 -0
  204. data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
  205. data/generated/google/apis/tpu_v1.rb +1 -1
  206. data/generated/google/apis/tpu_v1/classes.rb +17 -88
  207. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  208. data/generated/google/apis/tpu_v1alpha1/classes.rb +17 -88
  209. data/generated/google/apis/vault_v1.rb +1 -1
  210. data/generated/google/apis/vault_v1/classes.rb +49 -0
  211. data/generated/google/apis/vault_v1/representations.rb +18 -0
  212. data/generated/google/apis/videointelligence_v1.rb +1 -1
  213. data/generated/google/apis/videointelligence_v1/classes.rb +324 -332
  214. data/generated/google/apis/videointelligence_v1/representations.rb +102 -0
  215. data/generated/google/apis/videointelligence_v1/service.rb +217 -9
  216. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  217. data/generated/google/apis/videointelligence_v1beta2/classes.rb +279 -297
  218. data/generated/google/apis/videointelligence_v1beta2/representations.rb +102 -0
  219. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  220. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +324 -332
  221. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +102 -0
  222. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  223. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +324 -332
  224. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +102 -0
  225. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  226. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +324 -332
  227. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +102 -0
  228. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  229. data/lib/google/apis/version.rb +1 -1
  230. metadata +6 -2
@@ -0,0 +1,432 @@
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 FirebaseV1beta1
24
+
25
+ class AddFirebaseRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AdminSdkConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AndroidApp
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AndroidAppConfig
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class DefaultResources
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Empty
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class FirebaseAppInfo
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class FirebaseProject
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class IosApp
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class IosAppConfig
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListAndroidAppsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListAvailableProjectsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListFirebaseProjectsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListIosAppsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListShaCertificatesResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListWebAppsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class MessageSet
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Operation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ProjectInfo
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class SearchFirebaseAppsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ShaCertificate
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Status
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class StatusProto
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class TypedMessage
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class WebApp
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class WebAppConfig
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class AddFirebaseRequest
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :location_id, as: 'locationId'
185
+ property :region_code, as: 'regionCode'
186
+ property :time_zone, as: 'timeZone'
187
+ end
188
+ end
189
+
190
+ class AdminSdkConfig
191
+ # @private
192
+ class Representation < Google::Apis::Core::JsonRepresentation
193
+ property :database_url, as: 'databaseURL'
194
+ property :location_id, as: 'locationId'
195
+ property :project_id, as: 'projectId'
196
+ property :storage_bucket, as: 'storageBucket'
197
+ end
198
+ end
199
+
200
+ class AndroidApp
201
+ # @private
202
+ class Representation < Google::Apis::Core::JsonRepresentation
203
+ property :app_id, as: 'appId'
204
+ property :display_name, as: 'displayName'
205
+ property :name, as: 'name'
206
+ property :package_name, as: 'packageName'
207
+ property :project_id, as: 'projectId'
208
+ end
209
+ end
210
+
211
+ class AndroidAppConfig
212
+ # @private
213
+ class Representation < Google::Apis::Core::JsonRepresentation
214
+ property :config_file_contents, :base64 => true, as: 'configFileContents'
215
+ property :config_filename, as: 'configFilename'
216
+ end
217
+ end
218
+
219
+ class DefaultResources
220
+ # @private
221
+ class Representation < Google::Apis::Core::JsonRepresentation
222
+ property :hosting_site, as: 'hostingSite'
223
+ property :location_id, as: 'locationId'
224
+ property :realtime_database_instance, as: 'realtimeDatabaseInstance'
225
+ property :storage_bucket, as: 'storageBucket'
226
+ end
227
+ end
228
+
229
+ class Empty
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ end
233
+ end
234
+
235
+ class FirebaseAppInfo
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :app_id, as: 'appId'
239
+ property :display_name, as: 'displayName'
240
+ property :name, as: 'name'
241
+ property :platform, as: 'platform'
242
+ end
243
+ end
244
+
245
+ class FirebaseProject
246
+ # @private
247
+ class Representation < Google::Apis::Core::JsonRepresentation
248
+ property :display_name, as: 'displayName'
249
+ property :name, as: 'name'
250
+ property :project_id, as: 'projectId'
251
+ property :project_number, :numeric_string => true, as: 'projectNumber'
252
+ property :resources, as: 'resources', class: Google::Apis::FirebaseV1beta1::DefaultResources, decorator: Google::Apis::FirebaseV1beta1::DefaultResources::Representation
253
+
254
+ end
255
+ end
256
+
257
+ class IosApp
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :app_id, as: 'appId'
261
+ property :app_store_id, as: 'appStoreId'
262
+ property :bundle_id, as: 'bundleId'
263
+ property :display_name, as: 'displayName'
264
+ property :name, as: 'name'
265
+ property :project_id, as: 'projectId'
266
+ end
267
+ end
268
+
269
+ class IosAppConfig
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :config_file_contents, :base64 => true, as: 'configFileContents'
273
+ property :config_filename, as: 'configFilename'
274
+ end
275
+ end
276
+
277
+ class ListAndroidAppsResponse
278
+ # @private
279
+ class Representation < Google::Apis::Core::JsonRepresentation
280
+ collection :apps, as: 'apps', class: Google::Apis::FirebaseV1beta1::AndroidApp, decorator: Google::Apis::FirebaseV1beta1::AndroidApp::Representation
281
+
282
+ property :next_page_token, as: 'nextPageToken'
283
+ end
284
+ end
285
+
286
+ class ListAvailableProjectsResponse
287
+ # @private
288
+ class Representation < Google::Apis::Core::JsonRepresentation
289
+ property :next_page_token, as: 'nextPageToken'
290
+ collection :project_info, as: 'projectInfo', class: Google::Apis::FirebaseV1beta1::ProjectInfo, decorator: Google::Apis::FirebaseV1beta1::ProjectInfo::Representation
291
+
292
+ end
293
+ end
294
+
295
+ class ListFirebaseProjectsResponse
296
+ # @private
297
+ class Representation < Google::Apis::Core::JsonRepresentation
298
+ property :next_page_token, as: 'nextPageToken'
299
+ collection :results, as: 'results', class: Google::Apis::FirebaseV1beta1::FirebaseProject, decorator: Google::Apis::FirebaseV1beta1::FirebaseProject::Representation
300
+
301
+ end
302
+ end
303
+
304
+ class ListIosAppsResponse
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ collection :apps, as: 'apps', class: Google::Apis::FirebaseV1beta1::IosApp, decorator: Google::Apis::FirebaseV1beta1::IosApp::Representation
308
+
309
+ property :next_page_token, as: 'nextPageToken'
310
+ end
311
+ end
312
+
313
+ class ListShaCertificatesResponse
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ collection :certificates, as: 'certificates', class: Google::Apis::FirebaseV1beta1::ShaCertificate, decorator: Google::Apis::FirebaseV1beta1::ShaCertificate::Representation
317
+
318
+ end
319
+ end
320
+
321
+ class ListWebAppsResponse
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ collection :apps, as: 'apps', class: Google::Apis::FirebaseV1beta1::WebApp, decorator: Google::Apis::FirebaseV1beta1::WebApp::Representation
325
+
326
+ property :next_page_token, as: 'nextPageToken'
327
+ end
328
+ end
329
+
330
+ class MessageSet
331
+ # @private
332
+ class Representation < Google::Apis::Core::JsonRepresentation
333
+ end
334
+ end
335
+
336
+ class Operation
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :done, as: 'done'
340
+ property :error, as: 'error', class: Google::Apis::FirebaseV1beta1::Status, decorator: Google::Apis::FirebaseV1beta1::Status::Representation
341
+
342
+ hash :metadata, as: 'metadata'
343
+ property :name, as: 'name'
344
+ hash :response, as: 'response'
345
+ end
346
+ end
347
+
348
+ class ProjectInfo
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :display_name, as: 'displayName'
352
+ property :location_id, as: 'locationId'
353
+ property :project, as: 'project'
354
+ end
355
+ end
356
+
357
+ class SearchFirebaseAppsResponse
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ collection :apps, as: 'apps', class: Google::Apis::FirebaseV1beta1::FirebaseAppInfo, decorator: Google::Apis::FirebaseV1beta1::FirebaseAppInfo::Representation
361
+
362
+ property :next_page_token, as: 'nextPageToken'
363
+ end
364
+ end
365
+
366
+ class ShaCertificate
367
+ # @private
368
+ class Representation < Google::Apis::Core::JsonRepresentation
369
+ property :cert_type, as: 'certType'
370
+ property :name, as: 'name'
371
+ property :sha_hash, as: 'shaHash'
372
+ end
373
+ end
374
+
375
+ class Status
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ property :code, as: 'code'
379
+ collection :details, as: 'details'
380
+ property :message, as: 'message'
381
+ end
382
+ end
383
+
384
+ class StatusProto
385
+ # @private
386
+ class Representation < Google::Apis::Core::JsonRepresentation
387
+ property :canonical_code, as: 'canonicalCode'
388
+ property :code, as: 'code'
389
+ property :message, as: 'message'
390
+ property :message_set, as: 'messageSet', class: Google::Apis::FirebaseV1beta1::MessageSet, decorator: Google::Apis::FirebaseV1beta1::MessageSet::Representation
391
+
392
+ property :payload, as: 'payload', class: Google::Apis::FirebaseV1beta1::TypedMessage, decorator: Google::Apis::FirebaseV1beta1::TypedMessage::Representation
393
+
394
+ property :space, as: 'space'
395
+ end
396
+ end
397
+
398
+ class TypedMessage
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ property :message, :base64 => true, as: 'message'
402
+ property :type_id, as: 'typeId'
403
+ end
404
+ end
405
+
406
+ class WebApp
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ property :app_id, as: 'appId'
410
+ collection :app_urls, as: 'appUrls'
411
+ property :display_name, as: 'displayName'
412
+ property :name, as: 'name'
413
+ property :project_id, as: 'projectId'
414
+ end
415
+ end
416
+
417
+ class WebAppConfig
418
+ # @private
419
+ class Representation < Google::Apis::Core::JsonRepresentation
420
+ property :api_key, as: 'apiKey'
421
+ property :app_id, as: 'appId'
422
+ property :auth_domain, as: 'authDomain'
423
+ property :database_url, as: 'databaseURL'
424
+ property :location_id, as: 'locationId'
425
+ property :messaging_sender_id, as: 'messagingSenderId'
426
+ property :project_id, as: 'projectId'
427
+ property :storage_bucket, as: 'storageBucket'
428
+ end
429
+ end
430
+ end
431
+ end
432
+ end
@@ -0,0 +1,1105 @@
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 FirebaseV1beta1
23
+ # Firebase Management API
24
+ #
25
+ # The Firebase Management API enables programmatic setup and management of
26
+ # Firebase projects, including a project's Firebase resources and Firebase apps.
27
+ #
28
+ # @example
29
+ # require 'google/apis/firebase_v1beta1'
30
+ #
31
+ # Firebase = Google::Apis::FirebaseV1beta1 # Alias the module
32
+ # service = Firebase::FirebaseManagementService.new
33
+ #
34
+ # @see https://firebase.google.com
35
+ class FirebaseManagementService < 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://firebase.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Returns a list of [Google Cloud Platform (GCP) `Projects`]
52
+ # (https://cloud.google.com/resource-manager/reference/rest/v1/projects)
53
+ # that are available to have Firebase resources added to them.
54
+ # <br>
55
+ # <br>A GCP `Project` will only be returned if:
56
+ # <ol>
57
+ # <li><p>The caller has sufficient
58
+ # [Google IAM](https://cloud.google.com/iam) permissions to call
59
+ # AddFirebase.</p></li>
60
+ # <li><p>The GCP `Project` is not already a FirebaseProject.</p></li>
61
+ # <li><p>The GCP `Project` is not in an Organization which has policies
62
+ # that prevent Firebase resources from being added.</p></li>
63
+ # </ol>
64
+ # @param [Fixnum] page_size
65
+ # The maximum number of GCP `Projects` to return in the response.
66
+ # <br>
67
+ # <br>The server may return fewer than this value at its discretion.
68
+ # If no value is specified (or too large a value is specified), the server
69
+ # will impose its own limit.
70
+ # <br>
71
+ # <br>This value cannot be negative.
72
+ # @param [String] page_token
73
+ # Token returned from a previous call to `ListAvailableProjects`
74
+ # indicating where in the set of GCP `Projects` to resume listing.
75
+ # @param [String] fields
76
+ # Selector specifying which fields to include in a partial response.
77
+ # @param [String] quota_user
78
+ # Available to use for quota purposes for server-side applications. Can be any
79
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
80
+ # @param [Google::Apis::RequestOptions] options
81
+ # Request-specific options
82
+ #
83
+ # @yield [result, err] Result & error if block supplied
84
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::ListAvailableProjectsResponse] parsed result object
85
+ # @yieldparam err [StandardError] error object if request failed
86
+ #
87
+ # @return [Google::Apis::FirebaseV1beta1::ListAvailableProjectsResponse]
88
+ #
89
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
90
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
91
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
92
+ def list_available_projects(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
93
+ command = make_simple_command(:get, 'v1beta1/availableProjects', options)
94
+ command.response_representation = Google::Apis::FirebaseV1beta1::ListAvailableProjectsResponse::Representation
95
+ command.response_class = Google::Apis::FirebaseV1beta1::ListAvailableProjectsResponse
96
+ command.query['pageSize'] = page_size unless page_size.nil?
97
+ command.query['pageToken'] = page_token unless page_token.nil?
98
+ command.query['fields'] = fields unless fields.nil?
99
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
100
+ execute_or_queue_command(command, &block)
101
+ end
102
+
103
+ # Gets the latest state of a long-running operation. Clients can use this
104
+ # method to poll the operation result at intervals as recommended by the API
105
+ # service.
106
+ # @param [String] name
107
+ # The name of the operation resource.
108
+ # @param [String] fields
109
+ # Selector specifying which fields to include in a partial response.
110
+ # @param [String] quota_user
111
+ # Available to use for quota purposes for server-side applications. Can be any
112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
113
+ # @param [Google::Apis::RequestOptions] options
114
+ # Request-specific options
115
+ #
116
+ # @yield [result, err] Result & error if block supplied
117
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::Operation] parsed result object
118
+ # @yieldparam err [StandardError] error object if request failed
119
+ #
120
+ # @return [Google::Apis::FirebaseV1beta1::Operation]
121
+ #
122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
125
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
126
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
127
+ command.response_representation = Google::Apis::FirebaseV1beta1::Operation::Representation
128
+ command.response_class = Google::Apis::FirebaseV1beta1::Operation
129
+ command.params['name'] = name unless name.nil?
130
+ command.query['fields'] = fields unless fields.nil?
131
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
132
+ execute_or_queue_command(command, &block)
133
+ end
134
+
135
+ # Adds Firebase resources to the specified existing
136
+ # [Google Cloud Platform (GCP) `Project`]
137
+ # (https://cloud.google.com/resource-manager/reference/rest/v1/projects).
138
+ # <br>
139
+ # <br>Since a FirebaseProject is actually also a GCP `Project`, a
140
+ # `FirebaseProject` uses underlying GCP identifiers (most importantly,
141
+ # the `projectId`) as its own for easy interop with GCP APIs.
142
+ # <br>
143
+ # <br>The result of this call is an [`Operation`](../../v1beta1/operations).
144
+ # Poll the `Operation` to track the provisioning process by calling
145
+ # GetOperation until
146
+ # [`done`](../../v1beta1/operations#Operation.FIELDS.done) is `true`. When
147
+ # `done` is `true`, the `Operation` has either succeeded or failed. If the
148
+ # `Operation` succeeded, its
149
+ # [`response`](../../v1beta1/operations#Operation.FIELDS.response) is set to
150
+ # a FirebaseProject; if the `Operation` failed, its
151
+ # [`error`](../../v1beta1/operations#Operation.FIELDS.error) is set to a
152
+ # google.rpc.Status. The `Operation` is automatically deleted after
153
+ # completion, so there is no need to call
154
+ # DeleteOperation.
155
+ # <br>
156
+ # <br>This method does not modify any billing account information on the
157
+ # underlying GCP `Project`.
158
+ # <br>
159
+ # <br>All fields listed in the [request body](#request-body) are required.
160
+ # <br>
161
+ # <br>To call `AddFirebase`, a member must be an Editor or Owner for the
162
+ # existing GCP `Project`. Service accounts cannot call `AddFirebase`.
163
+ # @param [String] project
164
+ # The resource name of the GCP `Project` to which Firebase resources will be
165
+ # added, in the format:
166
+ # <br><code>projects/<var>projectId</var></code>
167
+ # After calling `AddFirebase`, the
168
+ # [`projectId`](https://cloud.google.com/resource-manager/reference/rest/v1/
169
+ # projects#Project.FIELDS.project_id)
170
+ # of the GCP `Project` is also the `projectId` of the FirebaseProject.
171
+ # @param [Google::Apis::FirebaseV1beta1::AddFirebaseRequest] add_firebase_request_object
172
+ # @param [String] fields
173
+ # Selector specifying which fields to include in a partial response.
174
+ # @param [String] quota_user
175
+ # Available to use for quota purposes for server-side applications. Can be any
176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
177
+ # @param [Google::Apis::RequestOptions] options
178
+ # Request-specific options
179
+ #
180
+ # @yield [result, err] Result & error if block supplied
181
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::Operation] parsed result object
182
+ # @yieldparam err [StandardError] error object if request failed
183
+ #
184
+ # @return [Google::Apis::FirebaseV1beta1::Operation]
185
+ #
186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
189
+ def add_project_firebase(project, add_firebase_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
190
+ command = make_simple_command(:post, 'v1beta1/{+project}:addFirebase', options)
191
+ command.request_representation = Google::Apis::FirebaseV1beta1::AddFirebaseRequest::Representation
192
+ command.request_object = add_firebase_request_object
193
+ command.response_representation = Google::Apis::FirebaseV1beta1::Operation::Representation
194
+ command.response_class = Google::Apis::FirebaseV1beta1::Operation
195
+ command.params['project'] = project unless project.nil?
196
+ command.query['fields'] = fields unless fields.nil?
197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
198
+ execute_or_queue_command(command, &block)
199
+ end
200
+
201
+ # Gets the FirebaseProject identified by the specified resource name.
202
+ # @param [String] name
203
+ # The fully qualified resource name of the Project, in the format:
204
+ # <br><code>projects/<var>projectId</var></code>
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [String] quota_user
208
+ # Available to use for quota purposes for server-side applications. Can be any
209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
210
+ # @param [Google::Apis::RequestOptions] options
211
+ # Request-specific options
212
+ #
213
+ # @yield [result, err] Result & error if block supplied
214
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::FirebaseProject] parsed result object
215
+ # @yieldparam err [StandardError] error object if request failed
216
+ #
217
+ # @return [Google::Apis::FirebaseV1beta1::FirebaseProject]
218
+ #
219
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
222
+ def get_project(name, fields: nil, quota_user: nil, options: nil, &block)
223
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
224
+ command.response_representation = Google::Apis::FirebaseV1beta1::FirebaseProject::Representation
225
+ command.response_class = Google::Apis::FirebaseV1beta1::FirebaseProject
226
+ command.params['name'] = name unless name.nil?
227
+ command.query['fields'] = fields unless fields.nil?
228
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
229
+ execute_or_queue_command(command, &block)
230
+ end
231
+
232
+ # Gets the configuration artifact used by servers to simplify initialization.
233
+ # <br>
234
+ # <br>Typically, this configuration is used with the Firebase Admin SDK
235
+ # [initializeApp](https://firebase.google.com/docs/admin/setup#
236
+ # initialize_the_sdk)
237
+ # command.
238
+ # @param [String] name
239
+ # The fully qualified resource name of the Project, in the format:
240
+ # <br><code>projects/<var>projectId</var>/adminSdkConfig</code>
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
243
+ # @param [String] quota_user
244
+ # Available to use for quota purposes for server-side applications. Can be any
245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
246
+ # @param [Google::Apis::RequestOptions] options
247
+ # Request-specific options
248
+ #
249
+ # @yield [result, err] Result & error if block supplied
250
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::AdminSdkConfig] parsed result object
251
+ # @yieldparam err [StandardError] error object if request failed
252
+ #
253
+ # @return [Google::Apis::FirebaseV1beta1::AdminSdkConfig]
254
+ #
255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
258
+ def get_project_admin_sdk_config(name, fields: nil, quota_user: nil, options: nil, &block)
259
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
260
+ command.response_representation = Google::Apis::FirebaseV1beta1::AdminSdkConfig::Representation
261
+ command.response_class = Google::Apis::FirebaseV1beta1::AdminSdkConfig
262
+ command.params['name'] = name unless name.nil?
263
+ command.query['fields'] = fields unless fields.nil?
264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
265
+ execute_or_queue_command(command, &block)
266
+ end
267
+
268
+ # Lists each FirebaseProject accessible to the caller.
269
+ # <br>
270
+ # <br>The elements are returned in no particular order, but they will be a
271
+ # consistent view of the Projects when additional requests are made with a
272
+ # `pageToken`.
273
+ # <br>
274
+ # <br>This method is eventually consistent with Project mutations, which
275
+ # means newly provisioned Projects and recent modifications to existing
276
+ # Projects might not be reflected in the set of Projects. The list will
277
+ # include only ACTIVE Projects.
278
+ # <br>
279
+ # <br>Use
280
+ # GetFirebaseProject
281
+ # for consistent reads as well as for additional Project details.
282
+ # @param [Fixnum] page_size
283
+ # The maximum number of Projects to return in the response.
284
+ # <br>
285
+ # <br>The server may return fewer than this at its discretion.
286
+ # If no value is specified (or too large a value is specified), the server
287
+ # will impose its own limit.
288
+ # <br>
289
+ # <br>This value cannot be negative.
290
+ # @param [String] page_token
291
+ # Token returned from a previous call to `ListFirebaseProjects` indicating
292
+ # where in the set of Projects to resume listing.
293
+ # @param [String] fields
294
+ # Selector specifying which fields to include in a partial response.
295
+ # @param [String] quota_user
296
+ # Available to use for quota purposes for server-side applications. Can be any
297
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
298
+ # @param [Google::Apis::RequestOptions] options
299
+ # Request-specific options
300
+ #
301
+ # @yield [result, err] Result & error if block supplied
302
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::ListFirebaseProjectsResponse] parsed result object
303
+ # @yieldparam err [StandardError] error object if request failed
304
+ #
305
+ # @return [Google::Apis::FirebaseV1beta1::ListFirebaseProjectsResponse]
306
+ #
307
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
308
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
309
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
310
+ def list_projects(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
311
+ command = make_simple_command(:get, 'v1beta1/projects', options)
312
+ command.response_representation = Google::Apis::FirebaseV1beta1::ListFirebaseProjectsResponse::Representation
313
+ command.response_class = Google::Apis::FirebaseV1beta1::ListFirebaseProjectsResponse
314
+ command.query['pageSize'] = page_size unless page_size.nil?
315
+ command.query['pageToken'] = page_token unless page_token.nil?
316
+ command.query['fields'] = fields unless fields.nil?
317
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
318
+ execute_or_queue_command(command, &block)
319
+ end
320
+
321
+ # Updates the attributes of the FirebaseProject identified by the
322
+ # specified resource name.
323
+ # <br>
324
+ # <br>All [query parameters](#query-parameters) are required.
325
+ # @param [String] name
326
+ # The fully qualified resource name of the Project, in the format:
327
+ # <br><code>projects/<var>projectId</var></code>
328
+ # @param [Google::Apis::FirebaseV1beta1::FirebaseProject] firebase_project_object
329
+ # @param [String] update_mask
330
+ # Specifies which fields to update.
331
+ # <br>
332
+ # <br>If this list is empty, then no state will be updated.
333
+ # <br>Note that the fields `name`, `project_id`, and `project_number` are all
334
+ # immutable.
335
+ # @param [String] fields
336
+ # Selector specifying which fields to include in a partial response.
337
+ # @param [String] quota_user
338
+ # Available to use for quota purposes for server-side applications. Can be any
339
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
340
+ # @param [Google::Apis::RequestOptions] options
341
+ # Request-specific options
342
+ #
343
+ # @yield [result, err] Result & error if block supplied
344
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::FirebaseProject] parsed result object
345
+ # @yieldparam err [StandardError] error object if request failed
346
+ #
347
+ # @return [Google::Apis::FirebaseV1beta1::FirebaseProject]
348
+ #
349
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
352
+ def patch_project(name, firebase_project_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
353
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
354
+ command.request_representation = Google::Apis::FirebaseV1beta1::FirebaseProject::Representation
355
+ command.request_object = firebase_project_object
356
+ command.response_representation = Google::Apis::FirebaseV1beta1::FirebaseProject::Representation
357
+ command.response_class = Google::Apis::FirebaseV1beta1::FirebaseProject
358
+ command.params['name'] = name unless name.nil?
359
+ command.query['updateMask'] = update_mask unless update_mask.nil?
360
+ command.query['fields'] = fields unless fields.nil?
361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
362
+ execute_or_queue_command(command, &block)
363
+ end
364
+
365
+ # A convenience method that lists all available Apps for the specified
366
+ # FirebaseProject.
367
+ # <br>
368
+ # <br>Typically, interaction with an App should be done using the
369
+ # platform-specific service, but some tool use-cases require a summary of all
370
+ # known Apps (such as for App selector interfaces).
371
+ # @param [String] parent
372
+ # The parent Project for which to list Apps, in the format:
373
+ # <br><code>projects/<var>projectId</var></code>
374
+ # @param [Fixnum] page_size
375
+ # The maximum number of Apps to return in the response.
376
+ # <br>
377
+ # <br>The server may return fewer than this value at its discretion.
378
+ # If no value is specified (or too large a value is specified), then the
379
+ # server will impose its own limit.
380
+ # <br>
381
+ # <br>This value cannot be negative.
382
+ # @param [String] page_token
383
+ # Token returned from a previous call to `SearchFirebaseApps` indicating
384
+ # where in the set of Apps to resume listing.
385
+ # @param [String] fields
386
+ # Selector specifying which fields to include in a partial response.
387
+ # @param [String] quota_user
388
+ # Available to use for quota purposes for server-side applications. Can be any
389
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
390
+ # @param [Google::Apis::RequestOptions] options
391
+ # Request-specific options
392
+ #
393
+ # @yield [result, err] Result & error if block supplied
394
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::SearchFirebaseAppsResponse] parsed result object
395
+ # @yieldparam err [StandardError] error object if request failed
396
+ #
397
+ # @return [Google::Apis::FirebaseV1beta1::SearchFirebaseAppsResponse]
398
+ #
399
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
400
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
401
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
402
+ def search_project_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
403
+ command = make_simple_command(:get, 'v1beta1/{+parent}:searchApps', options)
404
+ command.response_representation = Google::Apis::FirebaseV1beta1::SearchFirebaseAppsResponse::Representation
405
+ command.response_class = Google::Apis::FirebaseV1beta1::SearchFirebaseAppsResponse
406
+ command.params['parent'] = parent unless parent.nil?
407
+ command.query['pageSize'] = page_size unless page_size.nil?
408
+ command.query['pageToken'] = page_token unless page_token.nil?
409
+ command.query['fields'] = fields unless fields.nil?
410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
411
+ execute_or_queue_command(command, &block)
412
+ end
413
+
414
+ # Requests that a new AndroidApp be created.
415
+ # <br>
416
+ # <br>The result of this call is an `Operation` which can be used to track
417
+ # the provisioning process. The `Operation` is automatically deleted after
418
+ # completion, so there is no need to call `DeleteOperation`.
419
+ # @param [String] parent
420
+ # The parent Project for which to list Apps, in the format:
421
+ # <br><code>projects/<var>projectId</var></code>
422
+ # @param [Google::Apis::FirebaseV1beta1::AndroidApp] android_app_object
423
+ # @param [String] fields
424
+ # Selector specifying which fields to include in a partial response.
425
+ # @param [String] quota_user
426
+ # Available to use for quota purposes for server-side applications. Can be any
427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
428
+ # @param [Google::Apis::RequestOptions] options
429
+ # Request-specific options
430
+ #
431
+ # @yield [result, err] Result & error if block supplied
432
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::Operation] parsed result object
433
+ # @yieldparam err [StandardError] error object if request failed
434
+ #
435
+ # @return [Google::Apis::FirebaseV1beta1::Operation]
436
+ #
437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
440
+ def create_project_android_app(parent, android_app_object = nil, fields: nil, quota_user: nil, options: nil, &block)
441
+ command = make_simple_command(:post, 'v1beta1/{+parent}/androidApps', options)
442
+ command.request_representation = Google::Apis::FirebaseV1beta1::AndroidApp::Representation
443
+ command.request_object = android_app_object
444
+ command.response_representation = Google::Apis::FirebaseV1beta1::Operation::Representation
445
+ command.response_class = Google::Apis::FirebaseV1beta1::Operation
446
+ command.params['parent'] = parent unless parent.nil?
447
+ command.query['fields'] = fields unless fields.nil?
448
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
449
+ execute_or_queue_command(command, &block)
450
+ end
451
+
452
+ # Gets the AndroidApp identified by the specified resource name.
453
+ # @param [String] name
454
+ # The fully qualified resource name of the App, in the format:
455
+ # <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var></code>
456
+ # <br>As an <var>appId</var> is a unique identifier, the Unique Resource
457
+ # from Sub-Collection access pattern may be used here, in the format:
458
+ # <br><code>projects/-/androidApps/<var>appId</var></code>
459
+ # @param [String] fields
460
+ # Selector specifying which fields to include in a partial response.
461
+ # @param [String] quota_user
462
+ # Available to use for quota purposes for server-side applications. Can be any
463
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
464
+ # @param [Google::Apis::RequestOptions] options
465
+ # Request-specific options
466
+ #
467
+ # @yield [result, err] Result & error if block supplied
468
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::AndroidApp] parsed result object
469
+ # @yieldparam err [StandardError] error object if request failed
470
+ #
471
+ # @return [Google::Apis::FirebaseV1beta1::AndroidApp]
472
+ #
473
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
474
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
475
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
476
+ def get_project_android_app(name, fields: nil, quota_user: nil, options: nil, &block)
477
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
478
+ command.response_representation = Google::Apis::FirebaseV1beta1::AndroidApp::Representation
479
+ command.response_class = Google::Apis::FirebaseV1beta1::AndroidApp
480
+ command.params['name'] = name unless name.nil?
481
+ command.query['fields'] = fields unless fields.nil?
482
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
483
+ execute_or_queue_command(command, &block)
484
+ end
485
+
486
+ # Gets the configuration artifact associated with the specified
487
+ # AndroidApp.
488
+ # @param [String] name
489
+ # The resource name of the App configuration to download, in the format:
490
+ # <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var>/config</
491
+ # code>
492
+ # <br>As an <var>appId</var> is a unique identifier, the Unique Resource
493
+ # from Sub-Collection access pattern may be used here, in the format:
494
+ # <br><code>projects/-/androidApps/<var>appId</var></code>
495
+ # @param [String] fields
496
+ # Selector specifying which fields to include in a partial response.
497
+ # @param [String] quota_user
498
+ # Available to use for quota purposes for server-side applications. Can be any
499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
500
+ # @param [Google::Apis::RequestOptions] options
501
+ # Request-specific options
502
+ #
503
+ # @yield [result, err] Result & error if block supplied
504
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::AndroidAppConfig] parsed result object
505
+ # @yieldparam err [StandardError] error object if request failed
506
+ #
507
+ # @return [Google::Apis::FirebaseV1beta1::AndroidAppConfig]
508
+ #
509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
512
+ def get_project_android_app_config(name, fields: nil, quota_user: nil, options: nil, &block)
513
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
514
+ command.response_representation = Google::Apis::FirebaseV1beta1::AndroidAppConfig::Representation
515
+ command.response_class = Google::Apis::FirebaseV1beta1::AndroidAppConfig
516
+ command.params['name'] = name unless name.nil?
517
+ command.query['fields'] = fields unless fields.nil?
518
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
519
+ execute_or_queue_command(command, &block)
520
+ end
521
+
522
+ # Lists each AndroidApp associated with the specified parent Project.
523
+ # <br>
524
+ # <br>The elements are returned in no particular order, but will be a
525
+ # consistent view of the Apps when additional requests are made with a
526
+ # `pageToken`.
527
+ # @param [String] parent
528
+ # The parent Project for which to list Apps, in the format:
529
+ # <br><code>projects/<var>projectId</var></code>
530
+ # @param [Fixnum] page_size
531
+ # The maximum number of Apps to return in the response.
532
+ # <br>
533
+ # <br>The server may return fewer than this at its discretion.
534
+ # If no value is specified (or too large a value is specified), then the
535
+ # server will impose its own limit.
536
+ # @param [String] page_token
537
+ # Token returned from a previous call to `ListAndroidApps` indicating where
538
+ # in the set of Apps to resume listing.
539
+ # @param [String] fields
540
+ # Selector specifying which fields to include in a partial response.
541
+ # @param [String] quota_user
542
+ # Available to use for quota purposes for server-side applications. Can be any
543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
544
+ # @param [Google::Apis::RequestOptions] options
545
+ # Request-specific options
546
+ #
547
+ # @yield [result, err] Result & error if block supplied
548
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::ListAndroidAppsResponse] parsed result object
549
+ # @yieldparam err [StandardError] error object if request failed
550
+ #
551
+ # @return [Google::Apis::FirebaseV1beta1::ListAndroidAppsResponse]
552
+ #
553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
556
+ def list_project_android_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
557
+ command = make_simple_command(:get, 'v1beta1/{+parent}/androidApps', options)
558
+ command.response_representation = Google::Apis::FirebaseV1beta1::ListAndroidAppsResponse::Representation
559
+ command.response_class = Google::Apis::FirebaseV1beta1::ListAndroidAppsResponse
560
+ command.params['parent'] = parent unless parent.nil?
561
+ command.query['pageSize'] = page_size unless page_size.nil?
562
+ command.query['pageToken'] = page_token unless page_token.nil?
563
+ command.query['fields'] = fields unless fields.nil?
564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
565
+ execute_or_queue_command(command, &block)
566
+ end
567
+
568
+ # Updates the attributes of the AndroidApp identified by the specified
569
+ # resource name.
570
+ # @param [String] name
571
+ # The fully qualified resource name of the App, in the format:
572
+ # <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var></code>
573
+ # @param [Google::Apis::FirebaseV1beta1::AndroidApp] android_app_object
574
+ # @param [String] update_mask
575
+ # Specifies which fields to update.
576
+ # <br>Note that the fields `name`, `appId`, `projectId`, and `packageName`
577
+ # are all immutable.
578
+ # @param [String] fields
579
+ # Selector specifying which fields to include in a partial response.
580
+ # @param [String] quota_user
581
+ # Available to use for quota purposes for server-side applications. Can be any
582
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
583
+ # @param [Google::Apis::RequestOptions] options
584
+ # Request-specific options
585
+ #
586
+ # @yield [result, err] Result & error if block supplied
587
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::AndroidApp] parsed result object
588
+ # @yieldparam err [StandardError] error object if request failed
589
+ #
590
+ # @return [Google::Apis::FirebaseV1beta1::AndroidApp]
591
+ #
592
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
593
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
594
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
595
+ def patch_project_android_app(name, android_app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
596
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
597
+ command.request_representation = Google::Apis::FirebaseV1beta1::AndroidApp::Representation
598
+ command.request_object = android_app_object
599
+ command.response_representation = Google::Apis::FirebaseV1beta1::AndroidApp::Representation
600
+ command.response_class = Google::Apis::FirebaseV1beta1::AndroidApp
601
+ command.params['name'] = name unless name.nil?
602
+ command.query['updateMask'] = update_mask unless update_mask.nil?
603
+ command.query['fields'] = fields unless fields.nil?
604
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
605
+ execute_or_queue_command(command, &block)
606
+ end
607
+
608
+ # Adds a SHA certificate to the specified AndroidApp.
609
+ # @param [String] parent
610
+ # The parent App to which a SHA certificate will be added, in the format:
611
+ # <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var></code>
612
+ # <br>As an <var>appId</var> is a unique identifier, the Unique Resource
613
+ # from Sub-Collection access pattern may be used here, in the format:
614
+ # <br><code>projects/-/androidApps/<var>appId</var></code>
615
+ # @param [Google::Apis::FirebaseV1beta1::ShaCertificate] sha_certificate_object
616
+ # @param [String] fields
617
+ # Selector specifying which fields to include in a partial response.
618
+ # @param [String] quota_user
619
+ # Available to use for quota purposes for server-side applications. Can be any
620
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
621
+ # @param [Google::Apis::RequestOptions] options
622
+ # Request-specific options
623
+ #
624
+ # @yield [result, err] Result & error if block supplied
625
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::ShaCertificate] parsed result object
626
+ # @yieldparam err [StandardError] error object if request failed
627
+ #
628
+ # @return [Google::Apis::FirebaseV1beta1::ShaCertificate]
629
+ #
630
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
631
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
632
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
633
+ def create_project_android_app_sha(parent, sha_certificate_object = nil, fields: nil, quota_user: nil, options: nil, &block)
634
+ command = make_simple_command(:post, 'v1beta1/{+parent}/sha', options)
635
+ command.request_representation = Google::Apis::FirebaseV1beta1::ShaCertificate::Representation
636
+ command.request_object = sha_certificate_object
637
+ command.response_representation = Google::Apis::FirebaseV1beta1::ShaCertificate::Representation
638
+ command.response_class = Google::Apis::FirebaseV1beta1::ShaCertificate
639
+ command.params['parent'] = parent unless parent.nil?
640
+ command.query['fields'] = fields unless fields.nil?
641
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
642
+ execute_or_queue_command(command, &block)
643
+ end
644
+
645
+ # Removes a SHA certificate from the specified AndroidApp.
646
+ # @param [String] name
647
+ # The fully qualified resource name of the `sha-key`, in the format:
648
+ # <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var>/sha/<var>
649
+ # shaHash</var></code>
650
+ # @param [String] fields
651
+ # Selector specifying which fields to include in a partial response.
652
+ # @param [String] quota_user
653
+ # Available to use for quota purposes for server-side applications. Can be any
654
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
655
+ # @param [Google::Apis::RequestOptions] options
656
+ # Request-specific options
657
+ #
658
+ # @yield [result, err] Result & error if block supplied
659
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::Empty] parsed result object
660
+ # @yieldparam err [StandardError] error object if request failed
661
+ #
662
+ # @return [Google::Apis::FirebaseV1beta1::Empty]
663
+ #
664
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
665
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
666
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
667
+ def delete_project_android_app_sha(name, fields: nil, quota_user: nil, options: nil, &block)
668
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
669
+ command.response_representation = Google::Apis::FirebaseV1beta1::Empty::Representation
670
+ command.response_class = Google::Apis::FirebaseV1beta1::Empty
671
+ command.params['name'] = name unless name.nil?
672
+ command.query['fields'] = fields unless fields.nil?
673
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
674
+ execute_or_queue_command(command, &block)
675
+ end
676
+
677
+ # Returns the list of SHA-1 and SHA-256 certificates for the specified
678
+ # AndroidApp.
679
+ # @param [String] parent
680
+ # The parent App for which to list SHA certificates, in the format:
681
+ # <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var></code>
682
+ # <br>As an <var>appId</var> is a unique identifier, the Unique Resource
683
+ # from Sub-Collection access pattern may be used here, in the format:
684
+ # <br><code>projects/-/androidApps/<var>appId</var></code>
685
+ # @param [String] fields
686
+ # Selector specifying which fields to include in a partial response.
687
+ # @param [String] quota_user
688
+ # Available to use for quota purposes for server-side applications. Can be any
689
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
690
+ # @param [Google::Apis::RequestOptions] options
691
+ # Request-specific options
692
+ #
693
+ # @yield [result, err] Result & error if block supplied
694
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::ListShaCertificatesResponse] parsed result object
695
+ # @yieldparam err [StandardError] error object if request failed
696
+ #
697
+ # @return [Google::Apis::FirebaseV1beta1::ListShaCertificatesResponse]
698
+ #
699
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
700
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
701
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
702
+ def list_project_android_app_shas(parent, fields: nil, quota_user: nil, options: nil, &block)
703
+ command = make_simple_command(:get, 'v1beta1/{+parent}/sha', options)
704
+ command.response_representation = Google::Apis::FirebaseV1beta1::ListShaCertificatesResponse::Representation
705
+ command.response_class = Google::Apis::FirebaseV1beta1::ListShaCertificatesResponse
706
+ command.params['parent'] = parent unless parent.nil?
707
+ command.query['fields'] = fields unless fields.nil?
708
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
709
+ execute_or_queue_command(command, &block)
710
+ end
711
+
712
+ # Requests that a new IosApp be created.
713
+ # <br>
714
+ # <br>The result of this call is an `Operation` which can be used to track
715
+ # the provisioning process. The `Operation` is automatically deleted after
716
+ # completion, so there is no need to call `DeleteOperation`.
717
+ # @param [String] parent
718
+ # The parent Project for which to list Apps, in the format:
719
+ # <br><code>projects/<var>projectId</var></code>
720
+ # @param [Google::Apis::FirebaseV1beta1::IosApp] ios_app_object
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # @param [Google::Apis::RequestOptions] options
727
+ # Request-specific options
728
+ #
729
+ # @yield [result, err] Result & error if block supplied
730
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::Operation] parsed result object
731
+ # @yieldparam err [StandardError] error object if request failed
732
+ #
733
+ # @return [Google::Apis::FirebaseV1beta1::Operation]
734
+ #
735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
738
+ def create_project_ios_app(parent, ios_app_object = nil, fields: nil, quota_user: nil, options: nil, &block)
739
+ command = make_simple_command(:post, 'v1beta1/{+parent}/iosApps', options)
740
+ command.request_representation = Google::Apis::FirebaseV1beta1::IosApp::Representation
741
+ command.request_object = ios_app_object
742
+ command.response_representation = Google::Apis::FirebaseV1beta1::Operation::Representation
743
+ command.response_class = Google::Apis::FirebaseV1beta1::Operation
744
+ command.params['parent'] = parent unless parent.nil?
745
+ command.query['fields'] = fields unless fields.nil?
746
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
747
+ execute_or_queue_command(command, &block)
748
+ end
749
+
750
+ # Gets the IosApp identified by the specified resource name.
751
+ # @param [String] name
752
+ # The fully qualified resource name of the App, in the format:
753
+ # <code>projects/<var>projectId</var>/iosApps/<var>appId</var></code>
754
+ # <br>As an <var>appId</var> is a unique identifier, the Unique Resource
755
+ # from Sub-Collection access pattern may be used here, in the format:
756
+ # <br><code>projects/-/iosApps/<var>appId</var></code>
757
+ # @param [String] fields
758
+ # Selector specifying which fields to include in a partial response.
759
+ # @param [String] quota_user
760
+ # Available to use for quota purposes for server-side applications. Can be any
761
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
762
+ # @param [Google::Apis::RequestOptions] options
763
+ # Request-specific options
764
+ #
765
+ # @yield [result, err] Result & error if block supplied
766
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::IosApp] parsed result object
767
+ # @yieldparam err [StandardError] error object if request failed
768
+ #
769
+ # @return [Google::Apis::FirebaseV1beta1::IosApp]
770
+ #
771
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
772
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
773
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
774
+ def get_project_ios_app(name, fields: nil, quota_user: nil, options: nil, &block)
775
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
776
+ command.response_representation = Google::Apis::FirebaseV1beta1::IosApp::Representation
777
+ command.response_class = Google::Apis::FirebaseV1beta1::IosApp
778
+ command.params['name'] = name unless name.nil?
779
+ command.query['fields'] = fields unless fields.nil?
780
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
781
+ execute_or_queue_command(command, &block)
782
+ end
783
+
784
+ # Gets the configuration artifact associated with the specified IosApp.
785
+ # @param [String] name
786
+ # The resource name of the App configuration to download, in the format:
787
+ # <br><code>projects/<var>projectId</var>/iosApps/<var>appId</var>/config</code>
788
+ # <br>As an <var>appId</var> is a unique identifier, the Unique Resource
789
+ # from Sub-Collection access pattern may be used here, in the format:
790
+ # <br><code>projects/-/iosApps/<var>appId</var></code>
791
+ # @param [String] fields
792
+ # Selector specifying which fields to include in a partial response.
793
+ # @param [String] quota_user
794
+ # Available to use for quota purposes for server-side applications. Can be any
795
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
796
+ # @param [Google::Apis::RequestOptions] options
797
+ # Request-specific options
798
+ #
799
+ # @yield [result, err] Result & error if block supplied
800
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::IosAppConfig] parsed result object
801
+ # @yieldparam err [StandardError] error object if request failed
802
+ #
803
+ # @return [Google::Apis::FirebaseV1beta1::IosAppConfig]
804
+ #
805
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
806
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
807
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
808
+ def get_project_ios_app_config(name, fields: nil, quota_user: nil, options: nil, &block)
809
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
810
+ command.response_representation = Google::Apis::FirebaseV1beta1::IosAppConfig::Representation
811
+ command.response_class = Google::Apis::FirebaseV1beta1::IosAppConfig
812
+ command.params['name'] = name unless name.nil?
813
+ command.query['fields'] = fields unless fields.nil?
814
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
815
+ execute_or_queue_command(command, &block)
816
+ end
817
+
818
+ # Lists each IosApp associated with the specified parent Project.
819
+ # <br>
820
+ # <br>The elements are returned in no particular order, but will be a
821
+ # consistent view of the Apps when additional requests are made with a
822
+ # `pageToken`.
823
+ # @param [String] parent
824
+ # The parent Project for which to list Apps, in the format:
825
+ # <br><code>projects/<var>projectId</var></code>
826
+ # @param [Fixnum] page_size
827
+ # The maximum number of Apps to return in the response.
828
+ # <br>
829
+ # <br>The server may return fewer than this at its discretion.
830
+ # If no value is specified (or too large a value is specified), the server
831
+ # will impose its own limit.
832
+ # @param [String] page_token
833
+ # Token returned from a previous call to `ListIosApps` indicating where in
834
+ # the set of Apps to resume listing.
835
+ # @param [String] fields
836
+ # Selector specifying which fields to include in a partial response.
837
+ # @param [String] quota_user
838
+ # Available to use for quota purposes for server-side applications. Can be any
839
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
840
+ # @param [Google::Apis::RequestOptions] options
841
+ # Request-specific options
842
+ #
843
+ # @yield [result, err] Result & error if block supplied
844
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::ListIosAppsResponse] parsed result object
845
+ # @yieldparam err [StandardError] error object if request failed
846
+ #
847
+ # @return [Google::Apis::FirebaseV1beta1::ListIosAppsResponse]
848
+ #
849
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
852
+ def list_project_ios_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
853
+ command = make_simple_command(:get, 'v1beta1/{+parent}/iosApps', options)
854
+ command.response_representation = Google::Apis::FirebaseV1beta1::ListIosAppsResponse::Representation
855
+ command.response_class = Google::Apis::FirebaseV1beta1::ListIosAppsResponse
856
+ command.params['parent'] = parent unless parent.nil?
857
+ command.query['pageSize'] = page_size unless page_size.nil?
858
+ command.query['pageToken'] = page_token unless page_token.nil?
859
+ command.query['fields'] = fields unless fields.nil?
860
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
861
+ execute_or_queue_command(command, &block)
862
+ end
863
+
864
+ # Updates the attributes of the IosApp identified by the specified
865
+ # resource name.
866
+ # @param [String] name
867
+ # The fully qualified resource name of the App, in the format:
868
+ # <br><code>projects/<var>projectId</var>/iosApps/<var>appId</var></code>
869
+ # @param [Google::Apis::FirebaseV1beta1::IosApp] ios_app_object
870
+ # @param [String] update_mask
871
+ # Specifies which fields to update.
872
+ # <br>Note that the fields `name`, `appId`, `projectId`, and `bundleId`
873
+ # are all immutable.
874
+ # @param [String] fields
875
+ # Selector specifying which fields to include in a partial response.
876
+ # @param [String] quota_user
877
+ # Available to use for quota purposes for server-side applications. Can be any
878
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
879
+ # @param [Google::Apis::RequestOptions] options
880
+ # Request-specific options
881
+ #
882
+ # @yield [result, err] Result & error if block supplied
883
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::IosApp] parsed result object
884
+ # @yieldparam err [StandardError] error object if request failed
885
+ #
886
+ # @return [Google::Apis::FirebaseV1beta1::IosApp]
887
+ #
888
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
889
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
890
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
891
+ def patch_project_ios_app(name, ios_app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
892
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
893
+ command.request_representation = Google::Apis::FirebaseV1beta1::IosApp::Representation
894
+ command.request_object = ios_app_object
895
+ command.response_representation = Google::Apis::FirebaseV1beta1::IosApp::Representation
896
+ command.response_class = Google::Apis::FirebaseV1beta1::IosApp
897
+ command.params['name'] = name unless name.nil?
898
+ command.query['updateMask'] = update_mask unless update_mask.nil?
899
+ command.query['fields'] = fields unless fields.nil?
900
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
901
+ execute_or_queue_command(command, &block)
902
+ end
903
+
904
+ # Requests that a new WebApp be created.
905
+ # <br>
906
+ # <br>The result of this call is an `Operation` which can be used to track
907
+ # the provisioning process. The `Operation` is automatically deleted after
908
+ # completion, so there is no need to call `DeleteOperation`.
909
+ # @param [String] parent
910
+ # The parent Project for which to list Apps, in the format:
911
+ # <br><code>projects/<var>projectId</var></code>
912
+ # @param [Google::Apis::FirebaseV1beta1::WebApp] web_app_object
913
+ # @param [String] fields
914
+ # Selector specifying which fields to include in a partial response.
915
+ # @param [String] quota_user
916
+ # Available to use for quota purposes for server-side applications. Can be any
917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
918
+ # @param [Google::Apis::RequestOptions] options
919
+ # Request-specific options
920
+ #
921
+ # @yield [result, err] Result & error if block supplied
922
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::Operation] parsed result object
923
+ # @yieldparam err [StandardError] error object if request failed
924
+ #
925
+ # @return [Google::Apis::FirebaseV1beta1::Operation]
926
+ #
927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
930
+ def create_project_web_app(parent, web_app_object = nil, fields: nil, quota_user: nil, options: nil, &block)
931
+ command = make_simple_command(:post, 'v1beta1/{+parent}/webApps', options)
932
+ command.request_representation = Google::Apis::FirebaseV1beta1::WebApp::Representation
933
+ command.request_object = web_app_object
934
+ command.response_representation = Google::Apis::FirebaseV1beta1::Operation::Representation
935
+ command.response_class = Google::Apis::FirebaseV1beta1::Operation
936
+ command.params['parent'] = parent unless parent.nil?
937
+ command.query['fields'] = fields unless fields.nil?
938
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
939
+ execute_or_queue_command(command, &block)
940
+ end
941
+
942
+ # Gets the WebApp identified by the specified resource name.
943
+ # @param [String] name
944
+ # The fully qualified resource name of the App, in the format:
945
+ # <br><code>projects/<var>projectId</var>/webApps/<var>appId</var></code>
946
+ # <br>As an <var>appId</var> is a unique identifier, the Unique Resource
947
+ # from Sub-Collection access pattern may be used here, in the format:
948
+ # <br><code>projects/-/webApps/<var>appId</var></code>
949
+ # @param [String] fields
950
+ # Selector specifying which fields to include in a partial response.
951
+ # @param [String] quota_user
952
+ # Available to use for quota purposes for server-side applications. Can be any
953
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
954
+ # @param [Google::Apis::RequestOptions] options
955
+ # Request-specific options
956
+ #
957
+ # @yield [result, err] Result & error if block supplied
958
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::WebApp] parsed result object
959
+ # @yieldparam err [StandardError] error object if request failed
960
+ #
961
+ # @return [Google::Apis::FirebaseV1beta1::WebApp]
962
+ #
963
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
964
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
965
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
966
+ def get_project_web_app(name, fields: nil, quota_user: nil, options: nil, &block)
967
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
968
+ command.response_representation = Google::Apis::FirebaseV1beta1::WebApp::Representation
969
+ command.response_class = Google::Apis::FirebaseV1beta1::WebApp
970
+ command.params['name'] = name unless name.nil?
971
+ command.query['fields'] = fields unless fields.nil?
972
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
973
+ execute_or_queue_command(command, &block)
974
+ end
975
+
976
+ # Gets the configuration artifact associated with the specified WebApp.
977
+ # @param [String] name
978
+ # The resource name of the App configuration to download, in the format:
979
+ # <br><code>projects/<var>projectId</var>/webApps/<var>appId</var>/config</code>
980
+ # <br>As an <var>appId</var> is a unique identifier, the Unique Resource
981
+ # from Sub-Collection access pattern may be used here, in the format:
982
+ # <br><code>projects/-/webApps/<var>appId</var></code>
983
+ # @param [String] fields
984
+ # Selector specifying which fields to include in a partial response.
985
+ # @param [String] quota_user
986
+ # Available to use for quota purposes for server-side applications. Can be any
987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
988
+ # @param [Google::Apis::RequestOptions] options
989
+ # Request-specific options
990
+ #
991
+ # @yield [result, err] Result & error if block supplied
992
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::WebAppConfig] parsed result object
993
+ # @yieldparam err [StandardError] error object if request failed
994
+ #
995
+ # @return [Google::Apis::FirebaseV1beta1::WebAppConfig]
996
+ #
997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1000
+ def get_project_web_app_config(name, fields: nil, quota_user: nil, options: nil, &block)
1001
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1002
+ command.response_representation = Google::Apis::FirebaseV1beta1::WebAppConfig::Representation
1003
+ command.response_class = Google::Apis::FirebaseV1beta1::WebAppConfig
1004
+ command.params['name'] = name unless name.nil?
1005
+ command.query['fields'] = fields unless fields.nil?
1006
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1007
+ execute_or_queue_command(command, &block)
1008
+ end
1009
+
1010
+ # Lists each WebApp associated with the specified parent Project.
1011
+ # <br>
1012
+ # <br>The elements are returned in no particular order, but will be a
1013
+ # consistent view of the Apps when additional requests are made with a
1014
+ # `pageToken`.
1015
+ # @param [String] parent
1016
+ # The parent Project for which to list Apps, in the format:
1017
+ # <br><code>projects/<var>projectId</var></code>
1018
+ # @param [Fixnum] page_size
1019
+ # The maximum number of Apps to return in the response.
1020
+ # <br>
1021
+ # <br>The server may return fewer than this value at its discretion.
1022
+ # If no value is specified (or too large a value is specified), then the
1023
+ # server will impose its own limit.
1024
+ # @param [String] page_token
1025
+ # Token returned from a previous call to `ListWebApps` indicating where in
1026
+ # the set of Apps to resume listing.
1027
+ # @param [String] fields
1028
+ # Selector specifying which fields to include in a partial response.
1029
+ # @param [String] quota_user
1030
+ # Available to use for quota purposes for server-side applications. Can be any
1031
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1032
+ # @param [Google::Apis::RequestOptions] options
1033
+ # Request-specific options
1034
+ #
1035
+ # @yield [result, err] Result & error if block supplied
1036
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::ListWebAppsResponse] parsed result object
1037
+ # @yieldparam err [StandardError] error object if request failed
1038
+ #
1039
+ # @return [Google::Apis::FirebaseV1beta1::ListWebAppsResponse]
1040
+ #
1041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1044
+ def list_project_web_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1045
+ command = make_simple_command(:get, 'v1beta1/{+parent}/webApps', options)
1046
+ command.response_representation = Google::Apis::FirebaseV1beta1::ListWebAppsResponse::Representation
1047
+ command.response_class = Google::Apis::FirebaseV1beta1::ListWebAppsResponse
1048
+ command.params['parent'] = parent unless parent.nil?
1049
+ command.query['pageSize'] = page_size unless page_size.nil?
1050
+ command.query['pageToken'] = page_token unless page_token.nil?
1051
+ command.query['fields'] = fields unless fields.nil?
1052
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1053
+ execute_or_queue_command(command, &block)
1054
+ end
1055
+
1056
+ # Updates the attributes of the WebApp identified by the specified
1057
+ # resource name.
1058
+ # @param [String] name
1059
+ # The fully qualified resource name of the App, for example:
1060
+ # <br><code>projects/<var>projectId</var>/webApps/<var>appId</var></code>
1061
+ # @param [Google::Apis::FirebaseV1beta1::WebApp] web_app_object
1062
+ # @param [String] update_mask
1063
+ # Specifies which fields to update.
1064
+ # <br>Note that the fields `name`, `appId`, and `projectId` are all
1065
+ # immutable.
1066
+ # @param [String] fields
1067
+ # Selector specifying which fields to include in a partial response.
1068
+ # @param [String] quota_user
1069
+ # Available to use for quota purposes for server-side applications. Can be any
1070
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1071
+ # @param [Google::Apis::RequestOptions] options
1072
+ # Request-specific options
1073
+ #
1074
+ # @yield [result, err] Result & error if block supplied
1075
+ # @yieldparam result [Google::Apis::FirebaseV1beta1::WebApp] parsed result object
1076
+ # @yieldparam err [StandardError] error object if request failed
1077
+ #
1078
+ # @return [Google::Apis::FirebaseV1beta1::WebApp]
1079
+ #
1080
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1081
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1082
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1083
+ def patch_project_web_app(name, web_app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1084
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1085
+ command.request_representation = Google::Apis::FirebaseV1beta1::WebApp::Representation
1086
+ command.request_object = web_app_object
1087
+ command.response_representation = Google::Apis::FirebaseV1beta1::WebApp::Representation
1088
+ command.response_class = Google::Apis::FirebaseV1beta1::WebApp
1089
+ command.params['name'] = name unless name.nil?
1090
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1091
+ command.query['fields'] = fields unless fields.nil?
1092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1093
+ execute_or_queue_command(command, &block)
1094
+ end
1095
+
1096
+ protected
1097
+
1098
+ def apply_command_defaults(command)
1099
+ command.query['key'] = key unless key.nil?
1100
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1101
+ end
1102
+ end
1103
+ end
1104
+ end
1105
+ end