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\Operation;
|
---|
21 | use Google\Service\CloudHealthcare\SetBlobStorageSettingsRequest;
|
---|
22 | use Google\Service\CloudHealthcare\StudyMetrics;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * The "studies" collection of methods.
|
---|
26 | * Typical usage is:
|
---|
27 | * <code>
|
---|
28 | * $healthcareService = new Google\Service\CloudHealthcare(...);
|
---|
29 | * $studies = $healthcareService->projects_locations_datasets_dicomStores_dicomWeb_studies;
|
---|
30 | * </code>
|
---|
31 | */
|
---|
32 | class ProjectsLocationsDatasetsDicomStoresDicomWebStudies extends \Google\Service\Resource
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * GetStudyMetrics returns metrics for a study. (studies.getStudyMetrics)
|
---|
36 | *
|
---|
37 | * @param string $study Required. The study resource path. For example, `project
|
---|
38 | * s/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dic
|
---|
39 | * om_store_id}/dicomWeb/studies/{study_uid}`.
|
---|
40 | * @param array $optParams Optional parameters.
|
---|
41 | * @return StudyMetrics
|
---|
42 | * @throws \Google\Service\Exception
|
---|
43 | */
|
---|
44 | public function getStudyMetrics($study, $optParams = [])
|
---|
45 | {
|
---|
46 | $params = ['study' => $study];
|
---|
47 | $params = array_merge($params, $optParams);
|
---|
48 | return $this->call('getStudyMetrics', [$params], StudyMetrics::class);
|
---|
49 | }
|
---|
50 | /**
|
---|
51 | * SetBlobStorageSettings sets the blob storage settings of the specified
|
---|
52 | * resources. (studies.setBlobStorageSettings)
|
---|
53 | *
|
---|
54 | * @param string $resource Required. The path of the resource to update the blob
|
---|
55 | * storage settings in the format of `projects/{projectID}/locations/{locationID
|
---|
56 | * }/datasets/{datasetID}/dicomStores/{dicomStoreID}/dicomWeb/studies/{studyUID}
|
---|
57 | * `, `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomSto
|
---|
58 | * res/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or `proj
|
---|
59 | * ects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores/{dic
|
---|
60 | * omStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/{instance
|
---|
61 | * UID}`. If `filter_config` is specified, set the value of `resource` to the
|
---|
62 | * resource name of a DICOM store in the format `projects/{projectID}/locations/
|
---|
63 | * {locationID}/datasets/{datasetID}/dicomStores/{dicomStoreID}`.
|
---|
64 | * @param SetBlobStorageSettingsRequest $postBody
|
---|
65 | * @param array $optParams Optional parameters.
|
---|
66 | * @return Operation
|
---|
67 | * @throws \Google\Service\Exception
|
---|
68 | */
|
---|
69 | public function setBlobStorageSettings($resource, SetBlobStorageSettingsRequest $postBody, $optParams = [])
|
---|
70 | {
|
---|
71 | $params = ['resource' => $resource, 'postBody' => $postBody];
|
---|
72 | $params = array_merge($params, $optParams);
|
---|
73 | return $this->call('setBlobStorageSettings', [$params], Operation::class);
|
---|
74 | }
|
---|
75 | }
|
---|
76 |
|
---|
77 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
78 | class_alias(ProjectsLocationsDatasetsDicomStoresDicomWebStudies::class, 'Google_Service_CloudHealthcare_Resource_ProjectsLocationsDatasetsDicomStoresDicomWebStudies');
|
---|