google-api-client 0.51.0 → 0.53.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (418) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +0 -14
  3. data/CHANGELOG.md +106 -0
  4. data/OVERVIEW.md +36 -27
  5. data/generated/google/apis/accesscontextmanager_v1/classes.rb +326 -0
  6. data/generated/google/apis/accesscontextmanager_v1/representations.rb +139 -0
  7. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  8. data/generated/google/apis/admin_datatransfer_v1/classes.rb +6 -16
  9. data/generated/google/apis/admin_datatransfer_v1/service.rb +3 -3
  10. data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
  11. data/generated/google/apis/admin_directory_v1/classes.rb +453 -321
  12. data/generated/google/apis/admin_directory_v1/representations.rb +15 -15
  13. data/generated/google/apis/admin_directory_v1/service.rb +325 -185
  14. data/generated/google/apis/admin_directory_v1.rb +2 -2
  15. data/generated/google/apis/admin_reports_v1/classes.rb +48 -43
  16. data/generated/google/apis/admin_reports_v1/service.rb +198 -179
  17. data/generated/google/apis/admin_reports_v1.rb +2 -2
  18. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  19. data/generated/google/apis/analytics_v3/service.rb +1 -1
  20. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +10 -2
  21. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +1 -0
  22. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +17 -13
  23. data/generated/google/apis/analyticsadmin_v1alpha.rb +2 -2
  24. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +11 -11
  25. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  26. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  27. data/generated/google/apis/apigateway_v1/classes.rb +1116 -0
  28. data/generated/google/apis/apigateway_v1/representations.rb +442 -0
  29. data/generated/google/apis/apigateway_v1/service.rb +1172 -0
  30. data/{lib/google/apis/generator/templates/classes.rb.tmpl → generated/google/apis/apigateway_v1.rb} +14 -9
  31. data/generated/google/apis/apigateway_v1beta/classes.rb +22 -17
  32. data/generated/google/apis/apigateway_v1beta/representations.rb +1 -1
  33. data/generated/google/apis/apigateway_v1beta.rb +1 -1
  34. data/generated/google/apis/apigee_v1/classes.rb +95 -22
  35. data/generated/google/apis/apigee_v1/representations.rb +42 -0
  36. data/generated/google/apis/apigee_v1/service.rb +256 -48
  37. data/generated/google/apis/apigee_v1.rb +1 -1
  38. data/generated/google/apis/appengine_v1/classes.rb +7 -0
  39. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  40. data/generated/google/apis/appengine_v1.rb +1 -1
  41. data/generated/google/apis/artifactregistry_v1/classes.rb +242 -0
  42. data/generated/google/apis/artifactregistry_v1/representations.rb +116 -0
  43. data/generated/google/apis/artifactregistry_v1/service.rb +210 -0
  44. data/generated/google/apis/artifactregistry_v1.rb +38 -0
  45. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +0 -120
  46. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +0 -62
  47. data/generated/google/apis/artifactregistry_v1beta1/service.rb +4 -1
  48. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  49. data/generated/google/apis/artifactregistry_v1beta2/classes.rb +0 -120
  50. data/generated/google/apis/artifactregistry_v1beta2/representations.rb +0 -62
  51. data/generated/google/apis/artifactregistry_v1beta2/service.rb +4 -1
  52. data/generated/google/apis/artifactregistry_v1beta2.rb +1 -1
  53. data/generated/google/apis/chat_v1/service.rb +132 -0
  54. data/generated/google/apis/chat_v1.rb +1 -1
  55. data/generated/google/apis/cloudasset_v1/classes.rb +326 -0
  56. data/generated/google/apis/cloudasset_v1/representations.rb +139 -0
  57. data/generated/google/apis/cloudasset_v1.rb +1 -1
  58. data/generated/google/apis/cloudasset_v1beta1/classes.rb +326 -0
  59. data/generated/google/apis/cloudasset_v1beta1/representations.rb +139 -0
  60. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  61. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +326 -0
  62. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +139 -0
  63. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  64. data/generated/google/apis/cloudbuild_v1/classes.rb +3 -3
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +3 -3
  67. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  68. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +3 -3
  69. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  70. data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -0
  71. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  72. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  73. data/generated/google/apis/cloudidentity_v1/classes.rb +240 -0
  74. data/generated/google/apis/cloudidentity_v1/representations.rb +125 -0
  75. data/generated/google/apis/cloudidentity_v1/service.rb +202 -2
  76. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  77. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1 -1
  78. data/generated/google/apis/cloudidentity_v1beta1/service.rb +8 -2
  79. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  80. data/generated/google/apis/cloudkms_v1/classes.rb +0 -6
  81. data/generated/google/apis/cloudkms_v1/representations.rb +0 -1
  82. data/generated/google/apis/cloudkms_v1.rb +1 -1
  83. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +0 -26
  84. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +0 -24
  85. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  86. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +0 -26
  87. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +0 -24
  88. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +0 -26
  90. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +0 -24
  91. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +0 -26
  93. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +0 -24
  94. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  95. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +19 -0
  96. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +2 -0
  97. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +12 -2
  98. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  99. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +59 -0
  100. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +19 -0
  101. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  102. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +102 -0
  103. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +35 -0
  104. data/generated/google/apis/cloudtasks_v2beta3/service.rb +16 -2
  105. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  106. data/generated/google/apis/composer_v1beta1/classes.rb +64 -0
  107. data/generated/google/apis/composer_v1beta1/representations.rb +18 -0
  108. data/generated/google/apis/composer_v1beta1.rb +1 -1
  109. data/generated/google/apis/compute_alpha/classes.rb +1071 -341
  110. data/generated/google/apis/compute_alpha/representations.rb +248 -19
  111. data/generated/google/apis/compute_alpha/service.rb +291 -15
  112. data/generated/google/apis/compute_alpha.rb +1 -1
  113. data/generated/google/apis/compute_beta/classes.rb +926 -283
  114. data/generated/google/apis/compute_beta/representations.rb +221 -18
  115. data/generated/google/apis/compute_beta/service.rb +24 -15
  116. data/generated/google/apis/compute_beta.rb +1 -1
  117. data/generated/google/apis/compute_v1/classes.rb +419 -158
  118. data/generated/google/apis/compute_v1/representations.rb +55 -0
  119. data/generated/google/apis/compute_v1/service.rb +9 -7
  120. data/generated/google/apis/compute_v1.rb +1 -1
  121. data/generated/google/apis/container_v1/classes.rb +55 -16
  122. data/generated/google/apis/container_v1/representations.rb +17 -0
  123. data/generated/google/apis/container_v1/service.rb +4 -2
  124. data/generated/google/apis/container_v1.rb +1 -1
  125. data/generated/google/apis/container_v1beta1/classes.rb +31 -20
  126. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  127. data/generated/google/apis/container_v1beta1/service.rb +6 -2
  128. data/generated/google/apis/container_v1beta1.rb +1 -1
  129. data/generated/google/apis/content_v2_1/classes.rb +450 -7
  130. data/generated/google/apis/content_v2_1/representations.rb +188 -0
  131. data/generated/google/apis/content_v2_1/service.rb +116 -0
  132. data/generated/google/apis/content_v2_1.rb +1 -1
  133. data/generated/google/apis/datacatalog_v1beta1/classes.rb +6 -0
  134. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  135. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  136. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  137. data/generated/google/apis/datalabeling_v1beta1.rb +1 -1
  138. data/generated/google/apis/datamigration_v1beta1/classes.rb +0 -6
  139. data/generated/google/apis/datamigration_v1beta1/representations.rb +0 -1
  140. data/generated/google/apis/datamigration_v1beta1.rb +1 -1
  141. data/generated/google/apis/dataproc_v1/classes.rb +29 -1
  142. data/generated/google/apis/dataproc_v1/representations.rb +14 -0
  143. data/generated/google/apis/dataproc_v1/service.rb +42 -0
  144. data/generated/google/apis/dataproc_v1.rb +1 -1
  145. data/generated/google/apis/dataproc_v1beta2/classes.rb +29 -1
  146. data/generated/google/apis/dataproc_v1beta2/representations.rb +14 -0
  147. data/generated/google/apis/dataproc_v1beta2/service.rb +42 -0
  148. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  149. data/generated/google/apis/deploymentmanager_alpha/classes.rb +276 -644
  150. data/generated/google/apis/deploymentmanager_alpha/representations.rb +10 -143
  151. data/generated/google/apis/deploymentmanager_alpha/service.rb +247 -398
  152. data/generated/google/apis/deploymentmanager_alpha.rb +6 -5
  153. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -25
  154. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  155. data/generated/google/apis/deploymentmanager_v2beta/service.rb +8 -40
  156. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  157. data/generated/google/apis/dialogflow_v2/classes.rb +4339 -284
  158. data/generated/google/apis/dialogflow_v2/representations.rb +2090 -211
  159. data/generated/google/apis/dialogflow_v2.rb +1 -1
  160. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4341 -286
  161. data/generated/google/apis/dialogflow_v2beta1/representations.rb +2097 -218
  162. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  163. data/generated/google/apis/dialogflow_v3/classes.rb +11752 -0
  164. data/generated/google/apis/dialogflow_v3/representations.rb +5158 -0
  165. data/generated/google/apis/dialogflow_v3/service.rb +3414 -0
  166. data/generated/google/apis/{bigqueryreservation_v1alpha2.rb → dialogflow_v3.rb} +13 -12
  167. data/generated/google/apis/dialogflow_v3beta1/classes.rb +5147 -1554
  168. data/generated/google/apis/dialogflow_v3beta1/representations.rb +1966 -221
  169. data/generated/google/apis/dialogflow_v3beta1/service.rb +581 -0
  170. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  171. data/generated/google/apis/dlp_v2/service.rb +297 -10
  172. data/generated/google/apis/dlp_v2.rb +1 -1
  173. data/generated/google/apis/dns_v1/classes.rb +65 -0
  174. data/generated/google/apis/dns_v1/representations.rb +32 -0
  175. data/generated/google/apis/dns_v1.rb +1 -1
  176. data/generated/google/apis/documentai_v1beta2/classes.rb +217 -186
  177. data/generated/google/apis/documentai_v1beta2/representations.rb +107 -24
  178. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  179. data/generated/google/apis/documentai_v1beta3/classes.rb +238 -201
  180. data/generated/google/apis/documentai_v1beta3/representations.rb +107 -24
  181. data/generated/google/apis/documentai_v1beta3/service.rb +81 -2
  182. data/generated/google/apis/documentai_v1beta3.rb +1 -1
  183. data/generated/google/apis/eventarc_v1beta1/classes.rb +8 -9
  184. data/generated/google/apis/eventarc_v1beta1/service.rb +25 -5
  185. data/generated/google/apis/eventarc_v1beta1.rb +1 -1
  186. data/generated/google/apis/file_v1/classes.rb +61 -0
  187. data/generated/google/apis/file_v1/representations.rb +19 -0
  188. data/generated/google/apis/file_v1.rb +1 -1
  189. data/generated/google/apis/gameservices_v1/service.rb +14 -14
  190. data/generated/google/apis/gameservices_v1.rb +1 -1
  191. data/generated/google/apis/gameservices_v1beta/service.rb +14 -14
  192. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  193. data/generated/google/apis/genomics_v2alpha1/classes.rb +11 -7
  194. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  195. data/generated/google/apis/healthcare_v1/classes.rb +0 -6
  196. data/generated/google/apis/healthcare_v1/representations.rb +0 -1
  197. data/generated/google/apis/healthcare_v1/service.rb +13 -12
  198. data/generated/google/apis/healthcare_v1.rb +1 -1
  199. data/generated/google/apis/healthcare_v1beta1/classes.rb +45 -19
  200. data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -1
  201. data/generated/google/apis/healthcare_v1beta1/service.rb +37 -37
  202. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  203. data/generated/google/apis/iap_v1/classes.rb +0 -6
  204. data/generated/google/apis/iap_v1/representations.rb +0 -1
  205. data/generated/google/apis/iap_v1.rb +1 -1
  206. data/generated/google/apis/iap_v1beta1/classes.rb +0 -6
  207. data/generated/google/apis/iap_v1beta1/representations.rb +0 -1
  208. data/generated/google/apis/iap_v1beta1.rb +1 -1
  209. data/generated/google/apis/localservices_v1.rb +4 -1
  210. data/generated/google/apis/manufacturers_v1/classes.rb +2 -2
  211. data/generated/google/apis/manufacturers_v1.rb +1 -1
  212. data/generated/google/apis/metastore_v1beta/classes.rb +1151 -0
  213. data/generated/google/apis/metastore_v1beta/representations.rb +479 -0
  214. data/generated/google/apis/metastore_v1beta/service.rb +800 -0
  215. data/{lib/google/apis/core/logging.rb → generated/google/apis/metastore_v1beta.rb} +15 -10
  216. data/generated/google/apis/ml_v1/classes.rb +51 -18
  217. data/generated/google/apis/ml_v1/representations.rb +16 -0
  218. data/generated/google/apis/ml_v1.rb +1 -1
  219. data/generated/google/apis/monitoring_v3/classes.rb +10 -6
  220. data/generated/google/apis/monitoring_v3.rb +1 -1
  221. data/generated/google/apis/notebooks_v1/classes.rb +13 -0
  222. data/generated/google/apis/notebooks_v1/representations.rb +12 -0
  223. data/generated/google/apis/notebooks_v1/service.rb +34 -0
  224. data/generated/google/apis/notebooks_v1.rb +1 -1
  225. data/generated/google/apis/privateca_v1beta1/classes.rb +2 -1
  226. data/generated/google/apis/privateca_v1beta1.rb +1 -1
  227. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  228. data/generated/google/apis/recommendationengine_v1beta1/service.rb +2 -1
  229. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  230. data/generated/google/apis/recommender_v1beta1/service.rb +317 -0
  231. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  232. data/generated/google/apis/redis_v1/classes.rb +2 -2
  233. data/generated/google/apis/redis_v1.rb +1 -1
  234. data/generated/google/apis/redis_v1beta1/classes.rb +2 -2
  235. data/generated/google/apis/redis_v1beta1.rb +1 -1
  236. data/generated/google/apis/safebrowsing_v4/classes.rb +277 -277
  237. data/generated/google/apis/safebrowsing_v4/representations.rb +128 -128
  238. data/generated/google/apis/safebrowsing_v4/service.rb +44 -44
  239. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  240. data/generated/google/apis/searchconsole_v1/classes.rb +7 -0
  241. data/generated/google/apis/searchconsole_v1/representations.rb +1 -0
  242. data/generated/google/apis/searchconsole_v1.rb +1 -1
  243. data/generated/google/apis/securitycenter_v1/classes.rb +18 -10
  244. data/generated/google/apis/securitycenter_v1/representations.rb +1 -0
  245. data/generated/google/apis/securitycenter_v1/service.rb +30 -30
  246. data/generated/google/apis/securitycenter_v1.rb +1 -1
  247. data/generated/google/apis/securitycenter_v1beta1/classes.rb +7 -0
  248. data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -0
  249. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  250. data/generated/google/apis/securitycenter_v1beta2/classes.rb +7 -0
  251. data/generated/google/apis/securitycenter_v1beta2/representations.rb +1 -0
  252. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  253. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +11 -10
  254. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  255. data/generated/google/apis/servicecontrol_v1/service.rb +2 -2
  256. data/generated/google/apis/servicecontrol_v1.rb +3 -3
  257. data/generated/google/apis/servicecontrol_v2/service.rb +2 -2
  258. data/generated/google/apis/servicecontrol_v2.rb +3 -3
  259. data/generated/google/apis/servicedirectory_v1/classes.rb +721 -0
  260. data/generated/google/apis/servicedirectory_v1/representations.rb +304 -0
  261. data/generated/google/apis/servicedirectory_v1/service.rb +957 -0
  262. data/{lib/google/apis/generator/templates/representations.rb.tmpl → generated/google/apis/servicedirectory_v1.rb} +15 -12
  263. data/generated/google/apis/servicemanagement_v1/classes.rb +11 -10
  264. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  265. data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
  266. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  267. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
  268. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  269. data/generated/google/apis/serviceusage_v1/classes.rb +11 -10
  270. data/generated/google/apis/serviceusage_v1.rb +1 -1
  271. data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -10
  272. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  273. data/generated/google/apis/slides_v1/classes.rb +9 -3
  274. data/generated/google/apis/slides_v1.rb +1 -1
  275. data/generated/google/apis/speech_v1p1beta1/classes.rb +0 -22
  276. data/generated/google/apis/speech_v1p1beta1/representations.rb +0 -2
  277. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  278. data/generated/google/apis/sqladmin_v1beta4/classes.rb +7 -7
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +4 -1
  280. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  281. data/generated/google/apis/storagetransfer_v1/classes.rb +25 -0
  282. data/generated/google/apis/storagetransfer_v1/representations.rb +3 -0
  283. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  284. data/generated/google/apis/testing_v1/classes.rb +1 -1
  285. data/generated/google/apis/testing_v1.rb +1 -1
  286. data/generated/google/apis/trafficdirector_v2/service.rb +1 -1
  287. data/generated/google/apis/trafficdirector_v2.rb +2 -2
  288. data/generated/google/apis/transcoder_v1beta1/classes.rb +12 -2
  289. data/generated/google/apis/transcoder_v1beta1/representations.rb +1 -0
  290. data/generated/google/apis/transcoder_v1beta1.rb +1 -1
  291. data/generated/google/apis/translate_v3/classes.rb +1 -1
  292. data/generated/google/apis/translate_v3.rb +1 -1
  293. data/generated/google/apis/translate_v3beta1/classes.rb +1 -1
  294. data/generated/google/apis/translate_v3beta1.rb +1 -1
  295. data/generated/google/apis/webmasters_v3/classes.rb +8 -0
  296. data/generated/google/apis/webmasters_v3/representations.rb +1 -0
  297. data/generated/google/apis/workflows_v1beta/classes.rb +4 -4
  298. data/generated/google/apis/workflows_v1beta.rb +1 -1
  299. data/generated/google/apis/youtube_v3/classes.rb +18 -143
  300. data/generated/google/apis/youtube_v3/representations.rb +0 -57
  301. data/generated/google/apis/youtube_v3/service.rb +0 -43
  302. data/generated/google/apis/youtube_v3.rb +1 -1
  303. data/lib/google/apis/version.rb +1 -23
  304. metadata +39 -267
  305. data/.github/CONTRIBUTING.md +0 -31
  306. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -36
  307. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -21
  308. data/.github/ISSUE_TEMPLATE/support_request.md +0 -7
  309. data/.github/workflows/autoapprove.yml +0 -49
  310. data/.github/workflows/release-please.yml +0 -79
  311. data/.gitignore +0 -23
  312. data/.kokoro/build.bat +0 -11
  313. data/.kokoro/build.sh +0 -4
  314. data/.kokoro/continuous/common.cfg +0 -25
  315. data/.kokoro/continuous/linux.cfg +0 -25
  316. data/.kokoro/continuous/osx.cfg +0 -8
  317. data/.kokoro/continuous/post.cfg +0 -30
  318. data/.kokoro/continuous/windows.cfg +0 -29
  319. data/.kokoro/osx.sh +0 -4
  320. data/.kokoro/presubmit/common.cfg +0 -24
  321. data/.kokoro/presubmit/linux.cfg +0 -24
  322. data/.kokoro/presubmit/osx.cfg +0 -8
  323. data/.kokoro/presubmit/windows.cfg +0 -29
  324. data/.kokoro/release.cfg +0 -94
  325. data/.kokoro/trampoline.bat +0 -10
  326. data/.kokoro/trampoline.sh +0 -4
  327. data/.repo-metadata.json +0 -5
  328. data/.rspec +0 -2
  329. data/.rubocop.yml +0 -12
  330. data/.rubocop_todo.yml +0 -63
  331. data/CODE_OF_CONDUCT.md +0 -43
  332. data/Gemfile +0 -55
  333. data/MIGRATING.md +0 -215
  334. data/README.md +0 -402
  335. data/Rakefile +0 -131
  336. data/api_list_config.yaml +0 -9
  337. data/api_names.yaml +0 -1082
  338. data/bin/generate-api +0 -194
  339. data/docs/api-keys.md +0 -20
  340. data/docs/auth.md +0 -53
  341. data/docs/client-secrets.md +0 -69
  342. data/docs/getting-started.md +0 -340
  343. data/docs/installation.md +0 -0
  344. data/docs/logging.md +0 -34
  345. data/docs/media-upload.md +0 -25
  346. data/docs/oauth-installed.md +0 -191
  347. data/docs/oauth-server.md +0 -133
  348. data/docs/oauth-web.md +0 -280
  349. data/docs/oauth.md +0 -268
  350. data/docs/pagination.md +0 -29
  351. data/docs/performance.md +0 -25
  352. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -426
  353. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -195
  354. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -622
  355. data/google-api-client.gemspec +0 -36
  356. data/lib/google/api_client/auth/installed_app.rb +0 -143
  357. data/lib/google/api_client/auth/key_utils.rb +0 -94
  358. data/lib/google/api_client/auth/storage.rb +0 -104
  359. data/lib/google/api_client/auth/storages/file_store.rb +0 -57
  360. data/lib/google/api_client/auth/storages/redis_store.rb +0 -59
  361. data/lib/google/api_client/client_secrets.rb +0 -176
  362. data/lib/google/apis/core/api_command.rb +0 -209
  363. data/lib/google/apis/core/base_service.rb +0 -447
  364. data/lib/google/apis/core/batch.rb +0 -236
  365. data/lib/google/apis/core/composite_io.rb +0 -97
  366. data/lib/google/apis/core/download.rb +0 -118
  367. data/lib/google/apis/core/hashable.rb +0 -44
  368. data/lib/google/apis/core/http_command.rb +0 -447
  369. data/lib/google/apis/core/json_representation.rb +0 -153
  370. data/lib/google/apis/core/multipart.rb +0 -135
  371. data/lib/google/apis/core/upload.rb +0 -273
  372. data/lib/google/apis/errors.rb +0 -89
  373. data/lib/google/apis/generator/annotator.rb +0 -339
  374. data/lib/google/apis/generator/helpers.rb +0 -76
  375. data/lib/google/apis/generator/model.rb +0 -187
  376. data/lib/google/apis/generator/template.rb +0 -124
  377. data/lib/google/apis/generator/templates/_class.tmpl +0 -43
  378. data/lib/google/apis/generator/templates/_method.tmpl +0 -92
  379. data/lib/google/apis/generator/templates/_representation.tmpl +0 -51
  380. data/lib/google/apis/generator/templates/_representation_stub.tmpl +0 -17
  381. data/lib/google/apis/generator/templates/_representation_type.tmpl +0 -10
  382. data/lib/google/apis/generator/templates/module.rb.tmpl +0 -40
  383. data/lib/google/apis/generator/templates/service.rb.tmpl +0 -61
  384. data/lib/google/apis/generator.rb +0 -71
  385. data/lib/google/apis/options.rb +0 -116
  386. data/lib/google/apis.rb +0 -58
  387. data/rakelib/devsite/devsite_builder.rb +0 -126
  388. data/rakelib/devsite/link_checker.rb +0 -64
  389. data/rakelib/devsite/repo_metadata.rb +0 -56
  390. data/rakelib/metrics.rake +0 -22
  391. data/rakelib/rubocop.rake +0 -10
  392. data/rakelib/spec.rake +0 -11
  393. data/rakelib/yard.rake +0 -11
  394. data/samples/cli/.env +0 -4
  395. data/samples/cli/Gemfile +0 -7
  396. data/samples/cli/README.md +0 -51
  397. data/samples/cli/google-api-samples +0 -32
  398. data/samples/cli/lib/base_cli.rb +0 -95
  399. data/samples/cli/lib/samples/adsense.rb +0 -99
  400. data/samples/cli/lib/samples/analytics.rb +0 -80
  401. data/samples/cli/lib/samples/androidpublisher.rb +0 -47
  402. data/samples/cli/lib/samples/bigquery.rb +0 -101
  403. data/samples/cli/lib/samples/calendar.rb +0 -83
  404. data/samples/cli/lib/samples/drive.rb +0 -82
  405. data/samples/cli/lib/samples/gmail.rb +0 -157
  406. data/samples/cli/lib/samples/pubsub.rb +0 -114
  407. data/samples/cli/lib/samples/sheets.rb +0 -61
  408. data/samples/cli/lib/samples/translate.rb +0 -44
  409. data/samples/cli/lib/samples/vision.rb +0 -69
  410. data/samples/cli/lib/samples/you_tube.rb +0 -47
  411. data/samples/web/Gemfile +0 -9
  412. data/samples/web/README.md +0 -44
  413. data/samples/web/app.rb +0 -120
  414. data/samples/web/views/calendar.erb +0 -34
  415. data/samples/web/views/drive.erb +0 -33
  416. data/samples/web/views/home.erb +0 -34
  417. data/samples/web/views/layout.erb +0 -40
  418. data/synth.py +0 -40
@@ -0,0 +1,957 @@
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 ServicedirectoryV1
23
+ # Service Directory API
24
+ #
25
+ # Service Directory is a platform for discovering, publishing, and connecting
26
+ # services.
27
+ #
28
+ # @example
29
+ # require 'google/apis/servicedirectory_v1'
30
+ #
31
+ # Servicedirectory = Google::Apis::ServicedirectoryV1 # Alias the module
32
+ # service = Servicedirectory::ServiceDirectoryService.new
33
+ #
34
+ # @see https://cloud.google.com/service-directory
35
+ class ServiceDirectoryService < 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://servicedirectory.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Gets information about a location.
52
+ # @param [String] name
53
+ # Resource name for the location.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Location] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::ServicedirectoryV1::Location]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v1/{+name}', options)
73
+ command.response_representation = Google::Apis::ServicedirectoryV1::Location::Representation
74
+ command.response_class = Google::Apis::ServicedirectoryV1::Location
75
+ command.params['name'] = name unless name.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # Lists information about the supported locations for this service.
82
+ # @param [String] name
83
+ # The resource that owns the locations collection, if applicable.
84
+ # @param [String] filter
85
+ # The standard list filter.
86
+ # @param [Fixnum] page_size
87
+ # The standard list page size.
88
+ # @param [String] page_token
89
+ # The standard list page token.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::ListLocationsResponse] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::ServicedirectoryV1::ListLocationsResponse]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
109
+ command.response_representation = Google::Apis::ServicedirectoryV1::ListLocationsResponse::Representation
110
+ command.response_class = Google::Apis::ServicedirectoryV1::ListLocationsResponse
111
+ command.params['name'] = name unless name.nil?
112
+ command.query['filter'] = filter unless filter.nil?
113
+ command.query['pageSize'] = page_size unless page_size.nil?
114
+ command.query['pageToken'] = page_token unless page_token.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Creates a namespace, and returns the new Namespace.
121
+ # @param [String] parent
122
+ # Required. The resource name of the project and location the namespace will be
123
+ # created in.
124
+ # @param [Google::Apis::ServicedirectoryV1::Namespace] namespace_object
125
+ # @param [String] namespace_id
126
+ # Required. The Resource ID must be 1-63 characters long, and comply with
127
+ # RFC1035. Specifically, the name must be 1-63 characters long and match the
128
+ # regular expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first
129
+ # character must be a lowercase letter, and all following characters must be a
130
+ # dash, lowercase letter, or digit, except the last character, which cannot be a
131
+ # dash.
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
134
+ # @param [String] quota_user
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # @param [Google::Apis::RequestOptions] options
138
+ # Request-specific options
139
+ #
140
+ # @yield [result, err] Result & error if block supplied
141
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Namespace] parsed result object
142
+ # @yieldparam err [StandardError] error object if request failed
143
+ #
144
+ # @return [Google::Apis::ServicedirectoryV1::Namespace]
145
+ #
146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
149
+ def create_project_location_namespace(parent, namespace_object = nil, namespace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:post, 'v1/{+parent}/namespaces', options)
151
+ command.request_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
152
+ command.request_object = namespace_object
153
+ command.response_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
154
+ command.response_class = Google::Apis::ServicedirectoryV1::Namespace
155
+ command.params['parent'] = parent unless parent.nil?
156
+ command.query['namespaceId'] = namespace_id unless namespace_id.nil?
157
+ command.query['fields'] = fields unless fields.nil?
158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
159
+ execute_or_queue_command(command, &block)
160
+ end
161
+
162
+ # Deletes a namespace. This also deletes all services and endpoints in the
163
+ # namespace.
164
+ # @param [String] name
165
+ # Required. The name of the namespace to delete.
166
+ # @param [String] fields
167
+ # Selector specifying which fields to include in a partial response.
168
+ # @param [String] quota_user
169
+ # Available to use for quota purposes for server-side applications. Can be any
170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
171
+ # @param [Google::Apis::RequestOptions] options
172
+ # Request-specific options
173
+ #
174
+ # @yield [result, err] Result & error if block supplied
175
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Empty] parsed result object
176
+ # @yieldparam err [StandardError] error object if request failed
177
+ #
178
+ # @return [Google::Apis::ServicedirectoryV1::Empty]
179
+ #
180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
183
+ def delete_project_location_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
184
+ command = make_simple_command(:delete, 'v1/{+name}', options)
185
+ command.response_representation = Google::Apis::ServicedirectoryV1::Empty::Representation
186
+ command.response_class = Google::Apis::ServicedirectoryV1::Empty
187
+ command.params['name'] = name unless name.nil?
188
+ command.query['fields'] = fields unless fields.nil?
189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
190
+ execute_or_queue_command(command, &block)
191
+ end
192
+
193
+ # Gets a namespace.
194
+ # @param [String] name
195
+ # Required. The name of the namespace to retrieve.
196
+ # @param [String] fields
197
+ # Selector specifying which fields to include in a partial response.
198
+ # @param [String] quota_user
199
+ # Available to use for quota purposes for server-side applications. Can be any
200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
201
+ # @param [Google::Apis::RequestOptions] options
202
+ # Request-specific options
203
+ #
204
+ # @yield [result, err] Result & error if block supplied
205
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Namespace] parsed result object
206
+ # @yieldparam err [StandardError] error object if request failed
207
+ #
208
+ # @return [Google::Apis::ServicedirectoryV1::Namespace]
209
+ #
210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
213
+ def get_project_location_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
214
+ command = make_simple_command(:get, 'v1/{+name}', options)
215
+ command.response_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
216
+ command.response_class = Google::Apis::ServicedirectoryV1::Namespace
217
+ command.params['name'] = name unless name.nil?
218
+ command.query['fields'] = fields unless fields.nil?
219
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
220
+ execute_or_queue_command(command, &block)
221
+ end
222
+
223
+ # Gets the IAM Policy for a resource (namespace or service only).
224
+ # @param [String] resource
225
+ # REQUIRED: The resource for which the policy is being requested. See the
226
+ # operation documentation for the appropriate value for this field.
227
+ # @param [Google::Apis::ServicedirectoryV1::GetIamPolicyRequest] get_iam_policy_request_object
228
+ # @param [String] fields
229
+ # Selector specifying which fields to include in a partial response.
230
+ # @param [String] quota_user
231
+ # Available to use for quota purposes for server-side applications. Can be any
232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
233
+ # @param [Google::Apis::RequestOptions] options
234
+ # Request-specific options
235
+ #
236
+ # @yield [result, err] Result & error if block supplied
237
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Policy] parsed result object
238
+ # @yieldparam err [StandardError] error object if request failed
239
+ #
240
+ # @return [Google::Apis::ServicedirectoryV1::Policy]
241
+ #
242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
245
+ def get_namespace_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
246
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
247
+ command.request_representation = Google::Apis::ServicedirectoryV1::GetIamPolicyRequest::Representation
248
+ command.request_object = get_iam_policy_request_object
249
+ command.response_representation = Google::Apis::ServicedirectoryV1::Policy::Representation
250
+ command.response_class = Google::Apis::ServicedirectoryV1::Policy
251
+ command.params['resource'] = resource unless resource.nil?
252
+ command.query['fields'] = fields unless fields.nil?
253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
254
+ execute_or_queue_command(command, &block)
255
+ end
256
+
257
+ # Lists all namespaces.
258
+ # @param [String] parent
259
+ # Required. The resource name of the project and location whose namespaces we'd
260
+ # like to list.
261
+ # @param [String] filter
262
+ # Optional. The filter to list result by. General filter string syntax: () can
263
+ # be "name", or "labels." for map field. can be "<, >, <=, >=, !=, =, :". Of
264
+ # which ":" means HAS, and is roughly the same as "=". must be the same data
265
+ # type as field. can be "AND, OR, NOT". Examples of valid filters: * "labels.
266
+ # owner" returns Namespaces that have a label with the key "owner" this is the
267
+ # same as "labels:owner". * "labels.protocol=gRPC" returns Namespaces that have
268
+ # key/value "protocol=gRPC". * "name>projects/my-project/locations/us-east/
269
+ # namespaces/namespace-c" returns Namespaces that have name that is
270
+ # alphabetically later than the string, so "namespace-e" will be returned but "
271
+ # namespace-a" will not be. * "labels.owner!=sd AND labels.foo=bar" returns
272
+ # Namespaces that have "owner" in label key but value is not "sd" AND have key/
273
+ # value foo=bar. * "doesnotexist.foo=bar" returns an empty list. Note that
274
+ # Namespace doesn't have a field called "doesnotexist". Since the filter does
275
+ # not match any Namespaces, it returns no results.
276
+ # @param [String] order_by
277
+ # Optional. The order to list result by. General order by string syntax: () (,)
278
+ # allows values `"name"` ascending or descending order by . If this is left
279
+ # blank, "asc" is used. Note that an empty order_by string result in default
280
+ # order, which is order by name in ascending order.
281
+ # @param [Fixnum] page_size
282
+ # Optional. The maximum number of items to return.
283
+ # @param [String] page_token
284
+ # Optional. The next_page_token value returned from a previous List request, if
285
+ # any.
286
+ # @param [String] fields
287
+ # Selector specifying which fields to include in a partial response.
288
+ # @param [String] quota_user
289
+ # Available to use for quota purposes for server-side applications. Can be any
290
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
291
+ # @param [Google::Apis::RequestOptions] options
292
+ # Request-specific options
293
+ #
294
+ # @yield [result, err] Result & error if block supplied
295
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::ListNamespacesResponse] parsed result object
296
+ # @yieldparam err [StandardError] error object if request failed
297
+ #
298
+ # @return [Google::Apis::ServicedirectoryV1::ListNamespacesResponse]
299
+ #
300
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
301
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
302
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
303
+ def list_project_location_namespaces(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
304
+ command = make_simple_command(:get, 'v1/{+parent}/namespaces', options)
305
+ command.response_representation = Google::Apis::ServicedirectoryV1::ListNamespacesResponse::Representation
306
+ command.response_class = Google::Apis::ServicedirectoryV1::ListNamespacesResponse
307
+ command.params['parent'] = parent unless parent.nil?
308
+ command.query['filter'] = filter unless filter.nil?
309
+ command.query['orderBy'] = order_by unless order_by.nil?
310
+ command.query['pageSize'] = page_size unless page_size.nil?
311
+ command.query['pageToken'] = page_token unless page_token.nil?
312
+ command.query['fields'] = fields unless fields.nil?
313
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
314
+ execute_or_queue_command(command, &block)
315
+ end
316
+
317
+ # Updates a namespace.
318
+ # @param [String] name
319
+ # Immutable. The resource name for the namespace in the format 'projects/*/
320
+ # locations/*/namespaces/*'.
321
+ # @param [Google::Apis::ServicedirectoryV1::Namespace] namespace_object
322
+ # @param [String] update_mask
323
+ # Required. List of fields to be updated in this request.
324
+ # @param [String] fields
325
+ # Selector specifying which fields to include in a partial response.
326
+ # @param [String] quota_user
327
+ # Available to use for quota purposes for server-side applications. Can be any
328
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
329
+ # @param [Google::Apis::RequestOptions] options
330
+ # Request-specific options
331
+ #
332
+ # @yield [result, err] Result & error if block supplied
333
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Namespace] parsed result object
334
+ # @yieldparam err [StandardError] error object if request failed
335
+ #
336
+ # @return [Google::Apis::ServicedirectoryV1::Namespace]
337
+ #
338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
341
+ def patch_project_location_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
342
+ command = make_simple_command(:patch, 'v1/{+name}', options)
343
+ command.request_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
344
+ command.request_object = namespace_object
345
+ command.response_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
346
+ command.response_class = Google::Apis::ServicedirectoryV1::Namespace
347
+ command.params['name'] = name unless name.nil?
348
+ command.query['updateMask'] = update_mask unless update_mask.nil?
349
+ command.query['fields'] = fields unless fields.nil?
350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
351
+ execute_or_queue_command(command, &block)
352
+ end
353
+
354
+ # Sets the IAM Policy for a resource (namespace or service only).
355
+ # @param [String] resource
356
+ # REQUIRED: The resource for which the policy is being specified. See the
357
+ # operation documentation for the appropriate value for this field.
358
+ # @param [Google::Apis::ServicedirectoryV1::SetIamPolicyRequest] set_iam_policy_request_object
359
+ # @param [String] fields
360
+ # Selector specifying which fields to include in a partial response.
361
+ # @param [String] quota_user
362
+ # Available to use for quota purposes for server-side applications. Can be any
363
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
364
+ # @param [Google::Apis::RequestOptions] options
365
+ # Request-specific options
366
+ #
367
+ # @yield [result, err] Result & error if block supplied
368
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Policy] parsed result object
369
+ # @yieldparam err [StandardError] error object if request failed
370
+ #
371
+ # @return [Google::Apis::ServicedirectoryV1::Policy]
372
+ #
373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
376
+ def set_namespace_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
377
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
378
+ command.request_representation = Google::Apis::ServicedirectoryV1::SetIamPolicyRequest::Representation
379
+ command.request_object = set_iam_policy_request_object
380
+ command.response_representation = Google::Apis::ServicedirectoryV1::Policy::Representation
381
+ command.response_class = Google::Apis::ServicedirectoryV1::Policy
382
+ command.params['resource'] = resource unless resource.nil?
383
+ command.query['fields'] = fields unless fields.nil?
384
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
385
+ execute_or_queue_command(command, &block)
386
+ end
387
+
388
+ # Tests IAM permissions for a resource (namespace or service only).
389
+ # @param [String] resource
390
+ # REQUIRED: The resource for which the policy detail is being requested. See the
391
+ # operation documentation for the appropriate value for this field.
392
+ # @param [Google::Apis::ServicedirectoryV1::TestIamPermissionsRequest] test_iam_permissions_request_object
393
+ # @param [String] fields
394
+ # Selector specifying which fields to include in a partial response.
395
+ # @param [String] quota_user
396
+ # Available to use for quota purposes for server-side applications. Can be any
397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
398
+ # @param [Google::Apis::RequestOptions] options
399
+ # Request-specific options
400
+ #
401
+ # @yield [result, err] Result & error if block supplied
402
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse] parsed result object
403
+ # @yieldparam err [StandardError] error object if request failed
404
+ #
405
+ # @return [Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse]
406
+ #
407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
410
+ def test_namespace_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
411
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
412
+ command.request_representation = Google::Apis::ServicedirectoryV1::TestIamPermissionsRequest::Representation
413
+ command.request_object = test_iam_permissions_request_object
414
+ command.response_representation = Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse::Representation
415
+ command.response_class = Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse
416
+ command.params['resource'] = resource unless resource.nil?
417
+ command.query['fields'] = fields unless fields.nil?
418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
419
+ execute_or_queue_command(command, &block)
420
+ end
421
+
422
+ # Creates a service, and returns the new Service.
423
+ # @param [String] parent
424
+ # Required. The resource name of the namespace this service will belong to.
425
+ # @param [Google::Apis::ServicedirectoryV1::Service] service_object
426
+ # @param [String] service_id
427
+ # Required. The Resource ID must be 1-63 characters long, and comply with
428
+ # RFC1035. Specifically, the name must be 1-63 characters long and match the
429
+ # regular expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first
430
+ # character must be a lowercase letter, and all following characters must be a
431
+ # dash, lowercase letter, or digit, except the last character, which cannot be a
432
+ # dash.
433
+ # @param [String] fields
434
+ # Selector specifying which fields to include in a partial response.
435
+ # @param [String] quota_user
436
+ # Available to use for quota purposes for server-side applications. Can be any
437
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
438
+ # @param [Google::Apis::RequestOptions] options
439
+ # Request-specific options
440
+ #
441
+ # @yield [result, err] Result & error if block supplied
442
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Service] parsed result object
443
+ # @yieldparam err [StandardError] error object if request failed
444
+ #
445
+ # @return [Google::Apis::ServicedirectoryV1::Service]
446
+ #
447
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
448
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
449
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
450
+ def create_project_location_namespace_service(parent, service_object = nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
451
+ command = make_simple_command(:post, 'v1/{+parent}/services', options)
452
+ command.request_representation = Google::Apis::ServicedirectoryV1::Service::Representation
453
+ command.request_object = service_object
454
+ command.response_representation = Google::Apis::ServicedirectoryV1::Service::Representation
455
+ command.response_class = Google::Apis::ServicedirectoryV1::Service
456
+ command.params['parent'] = parent unless parent.nil?
457
+ command.query['serviceId'] = service_id unless service_id.nil?
458
+ command.query['fields'] = fields unless fields.nil?
459
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
460
+ execute_or_queue_command(command, &block)
461
+ end
462
+
463
+ # Deletes a service. This also deletes all endpoints associated with the service.
464
+ # @param [String] name
465
+ # Required. The name of the service to delete.
466
+ # @param [String] fields
467
+ # Selector specifying which fields to include in a partial response.
468
+ # @param [String] quota_user
469
+ # Available to use for quota purposes for server-side applications. Can be any
470
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
471
+ # @param [Google::Apis::RequestOptions] options
472
+ # Request-specific options
473
+ #
474
+ # @yield [result, err] Result & error if block supplied
475
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Empty] parsed result object
476
+ # @yieldparam err [StandardError] error object if request failed
477
+ #
478
+ # @return [Google::Apis::ServicedirectoryV1::Empty]
479
+ #
480
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
483
+ def delete_project_location_namespace_service(name, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:delete, 'v1/{+name}', options)
485
+ command.response_representation = Google::Apis::ServicedirectoryV1::Empty::Representation
486
+ command.response_class = Google::Apis::ServicedirectoryV1::Empty
487
+ command.params['name'] = name unless name.nil?
488
+ command.query['fields'] = fields unless fields.nil?
489
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
490
+ execute_or_queue_command(command, &block)
491
+ end
492
+
493
+ # Gets a service.
494
+ # @param [String] name
495
+ # Required. The name of the service to get.
496
+ # @param [String] fields
497
+ # Selector specifying which fields to include in a partial response.
498
+ # @param [String] quota_user
499
+ # Available to use for quota purposes for server-side applications. Can be any
500
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
501
+ # @param [Google::Apis::RequestOptions] options
502
+ # Request-specific options
503
+ #
504
+ # @yield [result, err] Result & error if block supplied
505
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Service] parsed result object
506
+ # @yieldparam err [StandardError] error object if request failed
507
+ #
508
+ # @return [Google::Apis::ServicedirectoryV1::Service]
509
+ #
510
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
511
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
512
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
513
+ def get_project_location_namespace_service(name, fields: nil, quota_user: nil, options: nil, &block)
514
+ command = make_simple_command(:get, 'v1/{+name}', options)
515
+ command.response_representation = Google::Apis::ServicedirectoryV1::Service::Representation
516
+ command.response_class = Google::Apis::ServicedirectoryV1::Service
517
+ command.params['name'] = name unless name.nil?
518
+ command.query['fields'] = fields unless fields.nil?
519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
520
+ execute_or_queue_command(command, &block)
521
+ end
522
+
523
+ # Gets the IAM Policy for a resource (namespace or service only).
524
+ # @param [String] resource
525
+ # REQUIRED: The resource for which the policy is being requested. See the
526
+ # operation documentation for the appropriate value for this field.
527
+ # @param [Google::Apis::ServicedirectoryV1::GetIamPolicyRequest] get_iam_policy_request_object
528
+ # @param [String] fields
529
+ # Selector specifying which fields to include in a partial response.
530
+ # @param [String] quota_user
531
+ # Available to use for quota purposes for server-side applications. Can be any
532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
533
+ # @param [Google::Apis::RequestOptions] options
534
+ # Request-specific options
535
+ #
536
+ # @yield [result, err] Result & error if block supplied
537
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Policy] parsed result object
538
+ # @yieldparam err [StandardError] error object if request failed
539
+ #
540
+ # @return [Google::Apis::ServicedirectoryV1::Policy]
541
+ #
542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
545
+ def get_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
546
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
547
+ command.request_representation = Google::Apis::ServicedirectoryV1::GetIamPolicyRequest::Representation
548
+ command.request_object = get_iam_policy_request_object
549
+ command.response_representation = Google::Apis::ServicedirectoryV1::Policy::Representation
550
+ command.response_class = Google::Apis::ServicedirectoryV1::Policy
551
+ command.params['resource'] = resource unless resource.nil?
552
+ command.query['fields'] = fields unless fields.nil?
553
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
554
+ execute_or_queue_command(command, &block)
555
+ end
556
+
557
+ # Lists all services belonging to a namespace.
558
+ # @param [String] parent
559
+ # Required. The resource name of the namespace whose services we'd like to list.
560
+ # @param [String] filter
561
+ # Optional. The filter to list result by. General filter string syntax: () can
562
+ # be "name", or "metadata." for map field. can be "<, >, <=, >=, !=, =, :". Of
563
+ # which ":" means HAS, and is roughly the same as "=". must be the same data
564
+ # type as field. can be "AND, OR, NOT". Examples of valid filters: * "metadata.
565
+ # owner" returns Services that have a label with the key "owner" this is the
566
+ # same as "metadata:owner". * "metadata.protocol=gRPC" returns Services that
567
+ # have key/value "protocol=gRPC". * "name>projects/my-project/locations/us-east/
568
+ # namespaces/my-namespace/services/service-c" returns Services that have name
569
+ # that is alphabetically later than the string, so "service-e" will be returned
570
+ # but "service-a" will not be. * "metadata.owner!=sd AND metadata.foo=bar"
571
+ # returns Services that have "owner" in label key but value is not "sd" AND have
572
+ # key/value foo=bar. * "doesnotexist.foo=bar" returns an empty list. Note that
573
+ # Service doesn't have a field called "doesnotexist". Since the filter does not
574
+ # match any Services, it returns no results.
575
+ # @param [String] order_by
576
+ # Optional. The order to list result by.
577
+ # @param [Fixnum] page_size
578
+ # Optional. The maximum number of items to return.
579
+ # @param [String] page_token
580
+ # Optional. The next_page_token value returned from a previous List request, if
581
+ # any.
582
+ # @param [String] fields
583
+ # Selector specifying which fields to include in a partial response.
584
+ # @param [String] quota_user
585
+ # Available to use for quota purposes for server-side applications. Can be any
586
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
587
+ # @param [Google::Apis::RequestOptions] options
588
+ # Request-specific options
589
+ #
590
+ # @yield [result, err] Result & error if block supplied
591
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::ListServicesResponse] parsed result object
592
+ # @yieldparam err [StandardError] error object if request failed
593
+ #
594
+ # @return [Google::Apis::ServicedirectoryV1::ListServicesResponse]
595
+ #
596
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
597
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
598
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
599
+ def list_project_location_namespace_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
600
+ command = make_simple_command(:get, 'v1/{+parent}/services', options)
601
+ command.response_representation = Google::Apis::ServicedirectoryV1::ListServicesResponse::Representation
602
+ command.response_class = Google::Apis::ServicedirectoryV1::ListServicesResponse
603
+ command.params['parent'] = parent unless parent.nil?
604
+ command.query['filter'] = filter unless filter.nil?
605
+ command.query['orderBy'] = order_by unless order_by.nil?
606
+ command.query['pageSize'] = page_size unless page_size.nil?
607
+ command.query['pageToken'] = page_token unless page_token.nil?
608
+ command.query['fields'] = fields unless fields.nil?
609
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
610
+ execute_or_queue_command(command, &block)
611
+ end
612
+
613
+ # Updates a service.
614
+ # @param [String] name
615
+ # Immutable. The resource name for the service in the format 'projects/*/
616
+ # locations/*/namespaces/*/services/*'.
617
+ # @param [Google::Apis::ServicedirectoryV1::Service] service_object
618
+ # @param [String] update_mask
619
+ # Required. List of fields to be updated in this request.
620
+ # @param [String] fields
621
+ # Selector specifying which fields to include in a partial response.
622
+ # @param [String] quota_user
623
+ # Available to use for quota purposes for server-side applications. Can be any
624
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
625
+ # @param [Google::Apis::RequestOptions] options
626
+ # Request-specific options
627
+ #
628
+ # @yield [result, err] Result & error if block supplied
629
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Service] parsed result object
630
+ # @yieldparam err [StandardError] error object if request failed
631
+ #
632
+ # @return [Google::Apis::ServicedirectoryV1::Service]
633
+ #
634
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
635
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
636
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
637
+ def patch_project_location_namespace_service(name, service_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
638
+ command = make_simple_command(:patch, 'v1/{+name}', options)
639
+ command.request_representation = Google::Apis::ServicedirectoryV1::Service::Representation
640
+ command.request_object = service_object
641
+ command.response_representation = Google::Apis::ServicedirectoryV1::Service::Representation
642
+ command.response_class = Google::Apis::ServicedirectoryV1::Service
643
+ command.params['name'] = name unless name.nil?
644
+ command.query['updateMask'] = update_mask unless update_mask.nil?
645
+ command.query['fields'] = fields unless fields.nil?
646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
647
+ execute_or_queue_command(command, &block)
648
+ end
649
+
650
+ # Returns a service and its associated endpoints. Resolving a service is not
651
+ # considered an active developer method.
652
+ # @param [String] name
653
+ # Required. The name of the service to resolve.
654
+ # @param [Google::Apis::ServicedirectoryV1::ResolveServiceRequest] resolve_service_request_object
655
+ # @param [String] fields
656
+ # Selector specifying which fields to include in a partial response.
657
+ # @param [String] quota_user
658
+ # Available to use for quota purposes for server-side applications. Can be any
659
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
660
+ # @param [Google::Apis::RequestOptions] options
661
+ # Request-specific options
662
+ #
663
+ # @yield [result, err] Result & error if block supplied
664
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::ResolveServiceResponse] parsed result object
665
+ # @yieldparam err [StandardError] error object if request failed
666
+ #
667
+ # @return [Google::Apis::ServicedirectoryV1::ResolveServiceResponse]
668
+ #
669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
672
+ def resolve_service(name, resolve_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
673
+ command = make_simple_command(:post, 'v1/{+name}:resolve', options)
674
+ command.request_representation = Google::Apis::ServicedirectoryV1::ResolveServiceRequest::Representation
675
+ command.request_object = resolve_service_request_object
676
+ command.response_representation = Google::Apis::ServicedirectoryV1::ResolveServiceResponse::Representation
677
+ command.response_class = Google::Apis::ServicedirectoryV1::ResolveServiceResponse
678
+ command.params['name'] = name unless name.nil?
679
+ command.query['fields'] = fields unless fields.nil?
680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
681
+ execute_or_queue_command(command, &block)
682
+ end
683
+
684
+ # Sets the IAM Policy for a resource (namespace or service only).
685
+ # @param [String] resource
686
+ # REQUIRED: The resource for which the policy is being specified. See the
687
+ # operation documentation for the appropriate value for this field.
688
+ # @param [Google::Apis::ServicedirectoryV1::SetIamPolicyRequest] set_iam_policy_request_object
689
+ # @param [String] fields
690
+ # Selector specifying which fields to include in a partial response.
691
+ # @param [String] quota_user
692
+ # Available to use for quota purposes for server-side applications. Can be any
693
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
694
+ # @param [Google::Apis::RequestOptions] options
695
+ # Request-specific options
696
+ #
697
+ # @yield [result, err] Result & error if block supplied
698
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Policy] parsed result object
699
+ # @yieldparam err [StandardError] error object if request failed
700
+ #
701
+ # @return [Google::Apis::ServicedirectoryV1::Policy]
702
+ #
703
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
704
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
705
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
706
+ def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
707
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
708
+ command.request_representation = Google::Apis::ServicedirectoryV1::SetIamPolicyRequest::Representation
709
+ command.request_object = set_iam_policy_request_object
710
+ command.response_representation = Google::Apis::ServicedirectoryV1::Policy::Representation
711
+ command.response_class = Google::Apis::ServicedirectoryV1::Policy
712
+ command.params['resource'] = resource unless resource.nil?
713
+ command.query['fields'] = fields unless fields.nil?
714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
715
+ execute_or_queue_command(command, &block)
716
+ end
717
+
718
+ # Tests IAM permissions for a resource (namespace or service only).
719
+ # @param [String] resource
720
+ # REQUIRED: The resource for which the policy detail is being requested. See the
721
+ # operation documentation for the appropriate value for this field.
722
+ # @param [Google::Apis::ServicedirectoryV1::TestIamPermissionsRequest] test_iam_permissions_request_object
723
+ # @param [String] fields
724
+ # Selector specifying which fields to include in a partial response.
725
+ # @param [String] quota_user
726
+ # Available to use for quota purposes for server-side applications. Can be any
727
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
728
+ # @param [Google::Apis::RequestOptions] options
729
+ # Request-specific options
730
+ #
731
+ # @yield [result, err] Result & error if block supplied
732
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse] parsed result object
733
+ # @yieldparam err [StandardError] error object if request failed
734
+ #
735
+ # @return [Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse]
736
+ #
737
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
738
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
739
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
740
+ def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
741
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
742
+ command.request_representation = Google::Apis::ServicedirectoryV1::TestIamPermissionsRequest::Representation
743
+ command.request_object = test_iam_permissions_request_object
744
+ command.response_representation = Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse::Representation
745
+ command.response_class = Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse
746
+ command.params['resource'] = resource unless resource.nil?
747
+ command.query['fields'] = fields unless fields.nil?
748
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
749
+ execute_or_queue_command(command, &block)
750
+ end
751
+
752
+ # Creates a endpoint, and returns the new Endpoint.
753
+ # @param [String] parent
754
+ # Required. The resource name of the service that this endpoint provides.
755
+ # @param [Google::Apis::ServicedirectoryV1::Endpoint] endpoint_object
756
+ # @param [String] endpoint_id
757
+ # Required. The Resource ID must be 1-63 characters long, and comply with
758
+ # RFC1035. Specifically, the name must be 1-63 characters long and match the
759
+ # regular expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first
760
+ # character must be a lowercase letter, and all following characters must be a
761
+ # dash, lowercase letter, or digit, except the last character, which cannot be a
762
+ # dash.
763
+ # @param [String] fields
764
+ # Selector specifying which fields to include in a partial response.
765
+ # @param [String] quota_user
766
+ # Available to use for quota purposes for server-side applications. Can be any
767
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
768
+ # @param [Google::Apis::RequestOptions] options
769
+ # Request-specific options
770
+ #
771
+ # @yield [result, err] Result & error if block supplied
772
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Endpoint] parsed result object
773
+ # @yieldparam err [StandardError] error object if request failed
774
+ #
775
+ # @return [Google::Apis::ServicedirectoryV1::Endpoint]
776
+ #
777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
780
+ def create_project_location_namespace_service_endpoint(parent, endpoint_object = nil, endpoint_id: nil, fields: nil, quota_user: nil, options: nil, &block)
781
+ command = make_simple_command(:post, 'v1/{+parent}/endpoints', options)
782
+ command.request_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
783
+ command.request_object = endpoint_object
784
+ command.response_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
785
+ command.response_class = Google::Apis::ServicedirectoryV1::Endpoint
786
+ command.params['parent'] = parent unless parent.nil?
787
+ command.query['endpointId'] = endpoint_id unless endpoint_id.nil?
788
+ command.query['fields'] = fields unless fields.nil?
789
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
790
+ execute_or_queue_command(command, &block)
791
+ end
792
+
793
+ # Deletes a endpoint.
794
+ # @param [String] name
795
+ # Required. The name of the endpoint to delete.
796
+ # @param [String] fields
797
+ # Selector specifying which fields to include in a partial response.
798
+ # @param [String] quota_user
799
+ # Available to use for quota purposes for server-side applications. Can be any
800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
801
+ # @param [Google::Apis::RequestOptions] options
802
+ # Request-specific options
803
+ #
804
+ # @yield [result, err] Result & error if block supplied
805
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Empty] parsed result object
806
+ # @yieldparam err [StandardError] error object if request failed
807
+ #
808
+ # @return [Google::Apis::ServicedirectoryV1::Empty]
809
+ #
810
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
811
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
812
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
813
+ def delete_project_location_namespace_service_endpoint(name, fields: nil, quota_user: nil, options: nil, &block)
814
+ command = make_simple_command(:delete, 'v1/{+name}', options)
815
+ command.response_representation = Google::Apis::ServicedirectoryV1::Empty::Representation
816
+ command.response_class = Google::Apis::ServicedirectoryV1::Empty
817
+ command.params['name'] = name unless name.nil?
818
+ command.query['fields'] = fields unless fields.nil?
819
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
820
+ execute_or_queue_command(command, &block)
821
+ end
822
+
823
+ # Gets a endpoint.
824
+ # @param [String] name
825
+ # Required. The name of the endpoint to get.
826
+ # @param [String] fields
827
+ # Selector specifying which fields to include in a partial response.
828
+ # @param [String] quota_user
829
+ # Available to use for quota purposes for server-side applications. Can be any
830
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
831
+ # @param [Google::Apis::RequestOptions] options
832
+ # Request-specific options
833
+ #
834
+ # @yield [result, err] Result & error if block supplied
835
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Endpoint] parsed result object
836
+ # @yieldparam err [StandardError] error object if request failed
837
+ #
838
+ # @return [Google::Apis::ServicedirectoryV1::Endpoint]
839
+ #
840
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
841
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
842
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
843
+ def get_project_location_namespace_service_endpoint(name, fields: nil, quota_user: nil, options: nil, &block)
844
+ command = make_simple_command(:get, 'v1/{+name}', options)
845
+ command.response_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
846
+ command.response_class = Google::Apis::ServicedirectoryV1::Endpoint
847
+ command.params['name'] = name unless name.nil?
848
+ command.query['fields'] = fields unless fields.nil?
849
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
850
+ execute_or_queue_command(command, &block)
851
+ end
852
+
853
+ # Lists all endpoints.
854
+ # @param [String] parent
855
+ # Required. The resource name of the service whose endpoints we'd like to list.
856
+ # @param [String] filter
857
+ # Optional. The filter to list result by. General filter string syntax: () can
858
+ # be "name", "address", "port" or "metadata." for map field. can be "<, >, <=, >=
859
+ # , !=, =, :". Of which ":" means HAS, and is roughly the same as "=". must be
860
+ # the same data type as field. can be "AND, OR, NOT". Examples of valid filters:
861
+ # * "metadata.owner" returns Endpoints that have a label with the key "owner"
862
+ # this is the same as "metadata:owner". * "metadata.protocol=gRPC" returns
863
+ # Endpoints that have key/value "protocol=gRPC". * "address=192.108.1.105"
864
+ # returns Endpoints that have this address. * "port>8080" returns Endpoints that
865
+ # have port number larger than 8080. * "name>projects/my-project/locations/us-
866
+ # east/namespaces/my-namespace/services/my-service/endpoints/endpoint-c" returns
867
+ # Endpoints that have name that is alphabetically later than the string, so "
868
+ # endpoint-e" will be returned but "endpoint-a" will not be. * "metadata.owner!=
869
+ # sd AND metadata.foo=bar" returns Endpoints that have "owner" in label key but
870
+ # value is not "sd" AND have key/value foo=bar. * "doesnotexist.foo=bar" returns
871
+ # an empty list. Note that Endpoint doesn't have a field called "doesnotexist".
872
+ # Since the filter does not match any Endpoints, it returns no results.
873
+ # @param [String] order_by
874
+ # Optional. The order to list result by.
875
+ # @param [Fixnum] page_size
876
+ # Optional. The maximum number of items to return.
877
+ # @param [String] page_token
878
+ # Optional. The next_page_token value returned from a previous List request, if
879
+ # any.
880
+ # @param [String] fields
881
+ # Selector specifying which fields to include in a partial response.
882
+ # @param [String] quota_user
883
+ # Available to use for quota purposes for server-side applications. Can be any
884
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
885
+ # @param [Google::Apis::RequestOptions] options
886
+ # Request-specific options
887
+ #
888
+ # @yield [result, err] Result & error if block supplied
889
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::ListEndpointsResponse] parsed result object
890
+ # @yieldparam err [StandardError] error object if request failed
891
+ #
892
+ # @return [Google::Apis::ServicedirectoryV1::ListEndpointsResponse]
893
+ #
894
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
895
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
896
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
897
+ def list_project_location_namespace_service_endpoints(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
898
+ command = make_simple_command(:get, 'v1/{+parent}/endpoints', options)
899
+ command.response_representation = Google::Apis::ServicedirectoryV1::ListEndpointsResponse::Representation
900
+ command.response_class = Google::Apis::ServicedirectoryV1::ListEndpointsResponse
901
+ command.params['parent'] = parent unless parent.nil?
902
+ command.query['filter'] = filter unless filter.nil?
903
+ command.query['orderBy'] = order_by unless order_by.nil?
904
+ command.query['pageSize'] = page_size unless page_size.nil?
905
+ command.query['pageToken'] = page_token unless page_token.nil?
906
+ command.query['fields'] = fields unless fields.nil?
907
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
908
+ execute_or_queue_command(command, &block)
909
+ end
910
+
911
+ # Updates a endpoint.
912
+ # @param [String] name
913
+ # Immutable. The resource name for the endpoint in the format 'projects/*/
914
+ # locations/*/namespaces/*/services/*/endpoints/*'.
915
+ # @param [Google::Apis::ServicedirectoryV1::Endpoint] endpoint_object
916
+ # @param [String] update_mask
917
+ # Required. List of fields to be updated in this request.
918
+ # @param [String] fields
919
+ # Selector specifying which fields to include in a partial response.
920
+ # @param [String] quota_user
921
+ # Available to use for quota purposes for server-side applications. Can be any
922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
923
+ # @param [Google::Apis::RequestOptions] options
924
+ # Request-specific options
925
+ #
926
+ # @yield [result, err] Result & error if block supplied
927
+ # @yieldparam result [Google::Apis::ServicedirectoryV1::Endpoint] parsed result object
928
+ # @yieldparam err [StandardError] error object if request failed
929
+ #
930
+ # @return [Google::Apis::ServicedirectoryV1::Endpoint]
931
+ #
932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
935
+ def patch_project_location_namespace_service_endpoint(name, endpoint_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
936
+ command = make_simple_command(:patch, 'v1/{+name}', options)
937
+ command.request_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
938
+ command.request_object = endpoint_object
939
+ command.response_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
940
+ command.response_class = Google::Apis::ServicedirectoryV1::Endpoint
941
+ command.params['name'] = name unless name.nil?
942
+ command.query['updateMask'] = update_mask unless update_mask.nil?
943
+ command.query['fields'] = fields unless fields.nil?
944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
945
+ execute_or_queue_command(command, &block)
946
+ end
947
+
948
+ protected
949
+
950
+ def apply_command_defaults(command)
951
+ command.query['key'] = key unless key.nil?
952
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
953
+ end
954
+ end
955
+ end
956
+ end
957
+ end