Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6ed9768

Browse filesBrowse files
noerogTakashi Matsuodandhlee
authored
healthcare API: formatting fixes and cleanup (GoogleCloudPlatform#5691)
* healthcare API: formatting fixes and cleanup * fix a description in README * fix de-id test * update license header * fix datasets_test.py license header * running nox again Co-authored-by: Takashi Matsuo <tmatsuo@google.com> Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>
1 parent caa50b8 commit 6ed9768
Copy full SHA for 6ed9768

File tree

Expand file treeCollapse file tree

3 files changed

+412
-323
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+412
-323
lines changed

‎healthcare/api-client/v1/datasets/README.rst

Copy file name to clipboardExpand all lines: healthcare/api-client/v1/datasets/README.rst
+38-19Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,39 @@ To run this sample:
8686
8787
$ python datasets.py
8888
89-
usage: datasets.py [-h] [--project_id PROJECT_ID]
90-
[--cloud_region CLOUD_REGION] [--dataset_id DATASET_ID]
91-
[--time_zone TIME_ZONE]
89+
usage: datasets.py [-h] [--project_id PROJECT_ID] [--location LOCATION]
90+
[--dataset_id DATASET_ID] [--time_zone TIME_ZONE]
9291
[--destination_dataset_id DESTINATION_DATASET_ID]
93-
[--keeplist_tags KEEPLIST_TAGS] [--member MEMBER]
94-
[--role ROLE]
92+
[--member MEMBER] [--role ROLE]
9593
{create-dataset,delete-dataset,get-dataset,list-datasets,patch-dataset,get_iam_policy,set_iam_policy,deidentify-dataset}
9694
...
9795
9896
positional arguments:
9997
{create-dataset,delete-dataset,get-dataset,list-datasets,patch-dataset,get_iam_policy,set_iam_policy,deidentify-dataset}
100-
create-dataset Creates a dataset.
101-
delete-dataset Deletes a dataset.
102-
get-dataset Gets any metadata associated with a dataset.
103-
list-datasets Lists the datasets in the project.
104-
patch-dataset Updates dataset metadata.
105-
get_iam_policy Gets the IAM policy for the specified dataset.
98+
create-dataset Creates a dataset. See
99+
https://github.com/GoogleCloudPlatform/python-docs-
100+
samples/tree/master/healthcare/api-client/v1/datasets
101+
before running the sample.
102+
delete-dataset Deletes a dataset. See
103+
https://github.com/GoogleCloudPlatform/python-docs-
104+
samples/tree/master/healthcare/api-client/v1/datasets
105+
before running the sample.
106+
get-dataset Gets any metadata associated with a dataset. See
107+
https://github.com/GoogleCloudPlatform/python-docs-
108+
samples/tree/master/healthcare/api-client/v1/datasets
109+
before running the sample.
110+
list-datasets Lists the datasets in the project. See
111+
https://github.com/GoogleCloudPlatform/python-docs-
112+
samples/tree/master/healthcare/api-client/v1/datasets
113+
before running the sample.
114+
patch-dataset Updates dataset metadata. See
115+
https://github.com/GoogleCloudPlatform/python-docs-
116+
samples/tree/master/healthcare/api-client/v1/datasets
117+
before running the sample.
118+
get_iam_policy Gets the IAM policy for the specified dataset. See
119+
https://github.com/GoogleCloudPlatform/python-docs-
120+
samples/tree/master/healthcare/api-client/v1/datasets
121+
before running the sample.
106122
set_iam_policy Sets the IAM policy for the specified dataset. A
107123
single member will be assigned a single role. A member
108124
can be any of: - allUsers, that is, anyone -
@@ -114,26 +130,29 @@ To run this sample:
114130
'serviceAccount:my-other-
115131
app@appspot.gserviceaccount.com' A role can be any IAM
116132
role, such as 'roles/viewer', 'roles/owner', or
117-
'roles/editor'
118-
deidentify-dataset Creates a new dataset containing de-identified data
119-
from the source dataset.
133+
'roles/editor' See
134+
https://github.com/GoogleCloudPlatform/python-docs-
135+
samples/tree/master/healthcare/api-client/v1/datasets
136+
before running the sample.
137+
deidentify-dataset Uses a DICOM tag keeplist to create a new dataset
138+
containing de-identified DICOM data from the source
139+
dataset. See
140+
https://github.com/GoogleCloudPlatform/python-docs-
141+
samples/tree/master/healthcare/api-client/v1/datasets
142+
before running the sample.
120143
121144
optional arguments:
122145
-h, --help show this help message and exit
123146
--project_id PROJECT_ID
124147
GCP project name
125-
--cloud_region CLOUD_REGION
126-
GCP cloud region
148+
--location LOCATION GCP cloud region
127149
--dataset_id DATASET_ID
128150
Name of dataset
129151
--time_zone TIME_ZONE
130152
The default timezone used by a dataset
131153
--destination_dataset_id DESTINATION_DATASET_ID
132154
The name of the new dataset where the de-identified
133155
data will be written
134-
--keeplist_tags KEEPLIST_TAGS
135-
The data to keeplist, for example "PatientID" or
136-
"StudyInstanceUID"
137156
--member MEMBER Member to add to IAM policy (e.g.
138157
"domain:example.com")
139158
--role ROLE IAM Role to give to member (e.g. "roles/viewer")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.