PageRenderTime 57ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/vendor/google/apiclient-services/src/Google/Service/CloudHealthcare/Resource/ProjectsLocationsDatasetsHl7V2Stores.php

https://gitlab.com/efabian/maya
PHP | 187 lines | 52 code | 1 blank | 134 comment | 0 complexity | 7ba1855c384e1dd5447742c248de6c4c MD5 | raw file
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * The "hl7V2Stores" collection of methods.
  19. * Typical usage is:
  20. * <code>
  21. * $healthcareService = new Google_Service_CloudHealthcare(...);
  22. * $hl7V2Stores = $healthcareService->hl7V2Stores;
  23. * </code>
  24. */
  25. class Google_Service_CloudHealthcare_Resource_ProjectsLocationsDatasetsHl7V2Stores extends Google_Service_Resource
  26. {
  27. /**
  28. * Creates a new HL7v2 store within the parent dataset. (hl7V2Stores.create)
  29. *
  30. * @param string $parent The name of the dataset this HL7v2 store belongs to.
  31. * @param Google_Service_CloudHealthcare_Hl7V2Store $postBody
  32. * @param array $optParams Optional parameters.
  33. *
  34. * @opt_param string hl7V2StoreId The ID of the HL7v2 store that is being
  35. * created. The string must match the following regex:
  36. * `[\p{L}\p{N}_\-\.]{1,256}`.
  37. * @return Google_Service_CloudHealthcare_Hl7V2Store
  38. */
  39. public function create($parent, Google_Service_CloudHealthcare_Hl7V2Store $postBody, $optParams = array())
  40. {
  41. $params = array('parent' => $parent, 'postBody' => $postBody);
  42. $params = array_merge($params, $optParams);
  43. return $this->call('create', array($params), "Google_Service_CloudHealthcare_Hl7V2Store");
  44. }
  45. /**
  46. * Deletes the specified HL7v2 store and removes all messages that it contains.
  47. * (hl7V2Stores.delete)
  48. *
  49. * @param string $name The resource name of the HL7v2 store to delete.
  50. * @param array $optParams Optional parameters.
  51. * @return Google_Service_CloudHealthcare_HealthcareEmpty
  52. */
  53. public function delete($name, $optParams = array())
  54. {
  55. $params = array('name' => $name);
  56. $params = array_merge($params, $optParams);
  57. return $this->call('delete', array($params), "Google_Service_CloudHealthcare_HealthcareEmpty");
  58. }
  59. /**
  60. * Gets the specified HL7v2 store. (hl7V2Stores.get)
  61. *
  62. * @param string $name The resource name of the HL7v2 store to get.
  63. * @param array $optParams Optional parameters.
  64. * @return Google_Service_CloudHealthcare_Hl7V2Store
  65. */
  66. public function get($name, $optParams = array())
  67. {
  68. $params = array('name' => $name);
  69. $params = array_merge($params, $optParams);
  70. return $this->call('get', array($params), "Google_Service_CloudHealthcare_Hl7V2Store");
  71. }
  72. /**
  73. * Gets the access control policy for a resource. Returns an empty policy if the
  74. * resource exists and does not have a policy set. (hl7V2Stores.getIamPolicy)
  75. *
  76. * @param string $resource REQUIRED: The resource for which the policy is being
  77. * requested. See the operation documentation for the appropriate value for this
  78. * field.
  79. * @param array $optParams Optional parameters.
  80. *
  81. * @opt_param int options.requestedPolicyVersion Optional. The policy format
  82. * version to be returned.
  83. *
  84. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
  85. * rejected.
  86. *
  87. * Requests for policies with any conditional bindings must specify version 3.
  88. * Policies without any conditional bindings may specify any valid value or
  89. * leave the field unset.
  90. *
  91. * To learn which resources support conditions in their IAM policies, see the
  92. * [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
  93. * policies).
  94. * @return Google_Service_CloudHealthcare_Policy
  95. */
  96. public function getIamPolicy($resource, $optParams = array())
  97. {
  98. $params = array('resource' => $resource);
  99. $params = array_merge($params, $optParams);
  100. return $this->call('getIamPolicy', array($params), "Google_Service_CloudHealthcare_Policy");
  101. }
  102. /**
  103. * Lists the HL7v2 stores in the given dataset.
  104. * (hl7V2Stores.listProjectsLocationsDatasetsHl7V2Stores)
  105. *
  106. * @param string $parent Name of the dataset.
  107. * @param array $optParams Optional parameters.
  108. *
  109. * @opt_param string filter Restricts stores returned to those matching a
  110. * filter. Syntax:
  111. * https://cloud.google.com/appengine/docs/standard/python/search/query_strings
  112. * Only filtering on labels is supported. For example, `labels.key=value`.
  113. * @opt_param int pageSize Limit on the number of HL7v2 stores to return in a
  114. * single response. If zero the default page size of 100 is used.
  115. * @opt_param string pageToken The next_page_token value returned from the
  116. * previous List request, if any.
  117. * @return Google_Service_CloudHealthcare_ListHl7V2StoresResponse
  118. */
  119. public function listProjectsLocationsDatasetsHl7V2Stores($parent, $optParams = array())
  120. {
  121. $params = array('parent' => $parent);
  122. $params = array_merge($params, $optParams);
  123. return $this->call('list', array($params), "Google_Service_CloudHealthcare_ListHl7V2StoresResponse");
  124. }
  125. /**
  126. * Updates the HL7v2 store. (hl7V2Stores.patch)
  127. *
  128. * @param string $name Resource name of the HL7v2 store, of the form
  129. * `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.
  130. * @param Google_Service_CloudHealthcare_Hl7V2Store $postBody
  131. * @param array $optParams Optional parameters.
  132. *
  133. * @opt_param string updateMask The update mask applies to the resource. For the
  134. * `FieldMask` definition, see https://developers.google.com/protocol-
  135. * buffers/docs/reference/google.protobuf#fieldmask
  136. * @return Google_Service_CloudHealthcare_Hl7V2Store
  137. */
  138. public function patch($name, Google_Service_CloudHealthcare_Hl7V2Store $postBody, $optParams = array())
  139. {
  140. $params = array('name' => $name, 'postBody' => $postBody);
  141. $params = array_merge($params, $optParams);
  142. return $this->call('patch', array($params), "Google_Service_CloudHealthcare_Hl7V2Store");
  143. }
  144. /**
  145. * Sets the access control policy on the specified resource. Replaces any
  146. * existing policy.
  147. *
  148. * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
  149. * (hl7V2Stores.setIamPolicy)
  150. *
  151. * @param string $resource REQUIRED: The resource for which the policy is being
  152. * specified. See the operation documentation for the appropriate value for this
  153. * field.
  154. * @param Google_Service_CloudHealthcare_SetIamPolicyRequest $postBody
  155. * @param array $optParams Optional parameters.
  156. * @return Google_Service_CloudHealthcare_Policy
  157. */
  158. public function setIamPolicy($resource, Google_Service_CloudHealthcare_SetIamPolicyRequest $postBody, $optParams = array())
  159. {
  160. $params = array('resource' => $resource, 'postBody' => $postBody);
  161. $params = array_merge($params, $optParams);
  162. return $this->call('setIamPolicy', array($params), "Google_Service_CloudHealthcare_Policy");
  163. }
  164. /**
  165. * Returns permissions that a caller has on the specified resource. If the
  166. * resource does not exist, this will return an empty set of permissions, not a
  167. * `NOT_FOUND` error.
  168. *
  169. * Note: This operation is designed to be used for building permission-aware UIs
  170. * and command-line tools, not for authorization checking. This operation may
  171. * "fail open" without warning. (hl7V2Stores.testIamPermissions)
  172. *
  173. * @param string $resource REQUIRED: The resource for which the policy detail is
  174. * being requested. See the operation documentation for the appropriate value
  175. * for this field.
  176. * @param Google_Service_CloudHealthcare_TestIamPermissionsRequest $postBody
  177. * @param array $optParams Optional parameters.
  178. * @return Google_Service_CloudHealthcare_TestIamPermissionsResponse
  179. */
  180. public function testIamPermissions($resource, Google_Service_CloudHealthcare_TestIamPermissionsRequest $postBody, $optParams = array())
  181. {
  182. $params = array('resource' => $resource, 'postBody' => $postBody);
  183. $params = array_merge($params, $optParams);
  184. return $this->call('testIamPermissions', array($params), "Google_Service_CloudHealthcare_TestIamPermissionsResponse");
  185. }
  186. }