[e3d4e0a] | 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 | namespace Google\Service\CloudHealthcare\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\CloudHealthcare\ArchiveUserDataMappingRequest;
|
---|
| 21 | use Google\Service\CloudHealthcare\ArchiveUserDataMappingResponse;
|
---|
| 22 | use Google\Service\CloudHealthcare\HealthcareEmpty;
|
---|
| 23 | use Google\Service\CloudHealthcare\ListUserDataMappingsResponse;
|
---|
| 24 | use Google\Service\CloudHealthcare\UserDataMapping;
|
---|
| 25 |
|
---|
| 26 | /**
|
---|
| 27 | * The "userDataMappings" collection of methods.
|
---|
| 28 | * Typical usage is:
|
---|
| 29 | * <code>
|
---|
| 30 | * $healthcareService = new Google\Service\CloudHealthcare(...);
|
---|
| 31 | * $userDataMappings = $healthcareService->projects_locations_datasets_consentStores_userDataMappings;
|
---|
| 32 | * </code>
|
---|
| 33 | */
|
---|
| 34 | class ProjectsLocationsDatasetsConsentStoresUserDataMappings extends \Google\Service\Resource
|
---|
| 35 | {
|
---|
| 36 | /**
|
---|
| 37 | * Archives the specified User data mapping. (userDataMappings.archive)
|
---|
| 38 | *
|
---|
| 39 | * @param string $name Required. The resource name of the User data mapping to
|
---|
| 40 | * archive.
|
---|
| 41 | * @param ArchiveUserDataMappingRequest $postBody
|
---|
| 42 | * @param array $optParams Optional parameters.
|
---|
| 43 | * @return ArchiveUserDataMappingResponse
|
---|
| 44 | * @throws \Google\Service\Exception
|
---|
| 45 | */
|
---|
| 46 | public function archive($name, ArchiveUserDataMappingRequest $postBody, $optParams = [])
|
---|
| 47 | {
|
---|
| 48 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 49 | $params = array_merge($params, $optParams);
|
---|
| 50 | return $this->call('archive', [$params], ArchiveUserDataMappingResponse::class);
|
---|
| 51 | }
|
---|
| 52 | /**
|
---|
| 53 | * Creates a new User data mapping in the parent consent store.
|
---|
| 54 | * (userDataMappings.create)
|
---|
| 55 | *
|
---|
| 56 | * @param string $parent Required. Name of the consent store.
|
---|
| 57 | * @param UserDataMapping $postBody
|
---|
| 58 | * @param array $optParams Optional parameters.
|
---|
| 59 | * @return UserDataMapping
|
---|
| 60 | * @throws \Google\Service\Exception
|
---|
| 61 | */
|
---|
| 62 | public function create($parent, UserDataMapping $postBody, $optParams = [])
|
---|
| 63 | {
|
---|
| 64 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 65 | $params = array_merge($params, $optParams);
|
---|
| 66 | return $this->call('create', [$params], UserDataMapping::class);
|
---|
| 67 | }
|
---|
| 68 | /**
|
---|
| 69 | * Deletes the specified User data mapping. (userDataMappings.delete)
|
---|
| 70 | *
|
---|
| 71 | * @param string $name Required. The resource name of the User data mapping to
|
---|
| 72 | * delete.
|
---|
| 73 | * @param array $optParams Optional parameters.
|
---|
| 74 | * @return HealthcareEmpty
|
---|
| 75 | * @throws \Google\Service\Exception
|
---|
| 76 | */
|
---|
| 77 | public function delete($name, $optParams = [])
|
---|
| 78 | {
|
---|
| 79 | $params = ['name' => $name];
|
---|
| 80 | $params = array_merge($params, $optParams);
|
---|
| 81 | return $this->call('delete', [$params], HealthcareEmpty::class);
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * Gets the specified User data mapping. (userDataMappings.get)
|
---|
| 85 | *
|
---|
| 86 | * @param string $name Required. The resource name of the User data mapping to
|
---|
| 87 | * retrieve.
|
---|
| 88 | * @param array $optParams Optional parameters.
|
---|
| 89 | * @return UserDataMapping
|
---|
| 90 | * @throws \Google\Service\Exception
|
---|
| 91 | */
|
---|
| 92 | public function get($name, $optParams = [])
|
---|
| 93 | {
|
---|
| 94 | $params = ['name' => $name];
|
---|
| 95 | $params = array_merge($params, $optParams);
|
---|
| 96 | return $this->call('get', [$params], UserDataMapping::class);
|
---|
| 97 | }
|
---|
| 98 | /**
|
---|
| 99 | * Lists the User data mappings in the specified consent store.
|
---|
| 100 | * (userDataMappings.listProjectsLocationsDatasetsConsentStoresUserDataMappings)
|
---|
| 101 | *
|
---|
| 102 | * @param string $parent Required. Name of the consent store to retrieve User
|
---|
| 103 | * data mappings from.
|
---|
| 104 | * @param array $optParams Optional parameters.
|
---|
| 105 | *
|
---|
| 106 | * @opt_param string filter Optional. Restricts the User data mappings returned
|
---|
| 107 | * to those matching a filter. The following syntax is available: * A string
|
---|
| 108 | * field value can be written as text inside quotation marks, for example
|
---|
| 109 | * `"query text"`. The only valid relational operation for text fields is
|
---|
| 110 | * equality (`=`), where text is searched within the field, rather than having
|
---|
| 111 | * the field be equal to the text. For example, `"Comment = great"` returns
|
---|
| 112 | * messages with `great` in the comment field. * A number field value can be
|
---|
| 113 | * written as an integer, a decimal, or an exponential. The valid relational
|
---|
| 114 | * operators for number fields are the equality operator (`=`), along with the
|
---|
| 115 | * less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is
|
---|
| 116 | * no inequality (`!=`) operator. You can prepend the `NOT` operator to an
|
---|
| 117 | * expression to negate it. * A date field value must be written in `yyyy-mm-dd`
|
---|
| 118 | * form. Fields with date and time use the RFC3339 time format. Leading zeros
|
---|
| 119 | * are required for one-digit months and days. The valid relational operators
|
---|
| 120 | * for date fields are the equality operator (`=`) , along with the less
|
---|
| 121 | * than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no
|
---|
| 122 | * inequality (`!=`) operator. You can prepend the `NOT` operator to an
|
---|
| 123 | * expression to negate it. * Multiple field query expressions can be combined
|
---|
| 124 | * in one query by adding `AND` or `OR` operators between the expressions. If a
|
---|
| 125 | * boolean operator appears within a quoted string, it is not treated as
|
---|
| 126 | * special, it's just another part of the character string to be matched. You
|
---|
| 127 | * can prepend the `NOT` operator to an expression to negate it. The fields
|
---|
| 128 | * available for filtering are: - data_id - user_id. For example,
|
---|
| 129 | * `filter=user_id=\"user123\"`. - archived - archive_time
|
---|
| 130 | * @opt_param int pageSize Optional. Limit on the number of User data mappings
|
---|
| 131 | * to return in a single response. If not specified, 100 is used. May not be
|
---|
| 132 | * larger than 1000.
|
---|
| 133 | * @opt_param string pageToken Optional. Token to retrieve the next page of
|
---|
| 134 | * results, or empty to get the first page.
|
---|
| 135 | * @return ListUserDataMappingsResponse
|
---|
| 136 | * @throws \Google\Service\Exception
|
---|
| 137 | */
|
---|
| 138 | public function listProjectsLocationsDatasetsConsentStoresUserDataMappings($parent, $optParams = [])
|
---|
| 139 | {
|
---|
| 140 | $params = ['parent' => $parent];
|
---|
| 141 | $params = array_merge($params, $optParams);
|
---|
| 142 | return $this->call('list', [$params], ListUserDataMappingsResponse::class);
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * Updates the specified User data mapping. (userDataMappings.patch)
|
---|
| 146 | *
|
---|
| 147 | * @param string $name Resource name of the User data mapping, of the form `proj
|
---|
| 148 | * ects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores
|
---|
| 149 | * /{consent_store_id}/userDataMappings/{user_data_mapping_id}`.
|
---|
| 150 | * @param UserDataMapping $postBody
|
---|
| 151 | * @param array $optParams Optional parameters.
|
---|
| 152 | *
|
---|
| 153 | * @opt_param string updateMask Required. The update mask that applies to the
|
---|
| 154 | * resource. For the `FieldMask` definition, see
|
---|
| 155 | * https://developers.google.com/protocol-
|
---|
| 156 | * buffers/docs/reference/google.protobuf#fieldmask. Only the `data_id`,
|
---|
| 157 | * `user_id` and `resource_attributes` fields can be updated.
|
---|
| 158 | * @return UserDataMapping
|
---|
| 159 | * @throws \Google\Service\Exception
|
---|
| 160 | */
|
---|
| 161 | public function patch($name, UserDataMapping $postBody, $optParams = [])
|
---|
| 162 | {
|
---|
| 163 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 164 | $params = array_merge($params, $optParams);
|
---|
| 165 | return $this->call('patch', [$params], UserDataMapping::class);
|
---|
| 166 | }
|
---|
| 167 | }
|
---|
| 168 |
|
---|
| 169 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 170 | class_alias(ProjectsLocationsDatasetsConsentStoresUserDataMappings::class, 'Google_Service_CloudHealthcare_Resource_ProjectsLocationsDatasetsConsentStoresUserDataMappings');
|
---|