-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Healthcare beta API and associated resources and iam (#3870)
Signed-off-by: Modular Magician <[email protected]>
- Loading branch information
1 parent
292f8ea
commit 7a53a61
Showing
17 changed files
with
503 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package google | ||
|
||
// Magic Modules doesn't let us remove files - blank out beta-only common-compile files for now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
--- | ||
layout: "google" | ||
page_title: "Google: google_healthcare_dataset_iam" | ||
sidebar_current: "docs-google-healthcare-dataset-iam" | ||
description: |- | ||
Collection of resources to manage IAM policy for a Google Cloud Healthcare dataset. | ||
--- | ||
|
||
# IAM policy for Google Cloud Healthcare dataset | ||
|
||
~> **Warning:** These resources are in beta, and should be used with the terraform-provider-google-beta provider. | ||
See [Provider Versions](https://terraform.io/docs/providers/google/provider_versions.html) for more details on beta resources. | ||
|
||
Three different resources help you manage your IAM policy for Healthcare dataset. Each of these resources serves a different use case: | ||
|
||
* `google_healthcare_dataset_iam_policy`: Authoritative. Sets the IAM policy for the dataset and replaces any existing policy already attached. | ||
* `google_healthcare_dataset_iam_binding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the dataset are preserved. | ||
* `google_healthcare_dataset_iam_member`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the dataset are preserved. | ||
|
||
~> **Note:** `google_healthcare_dataset_iam_policy` **cannot** be used in conjunction with `google_healthcare_dataset_iam_binding` and `google_healthcare_dataset_iam_member` or they will fight over what your policy should be. | ||
|
||
~> **Note:** `google_healthcare_dataset_iam_binding` resources **can be** used in conjunction with `google_healthcare_dataset_iam_member` resources **only if** they do not grant privilege to the same role. | ||
|
||
## google\_healthcare\_dataset\_iam\_policy | ||
|
||
```hcl | ||
data "google_iam_policy" "admin" { | ||
binding { | ||
role = "roles/editor" | ||
members = [ | ||
"user:[email protected]", | ||
] | ||
} | ||
} | ||
resource "google_healthcare_dataset_iam_policy" "dataset" { | ||
dataset_id = "your-dataset-id" | ||
policy_data = "${data.google_iam_policy.admin.policy_data}" | ||
} | ||
``` | ||
|
||
## google\_healthcare\_dataset\_iam\_binding | ||
|
||
```hcl | ||
resource "google_healthcare_dataset_iam_binding" "dataset" { | ||
dataset_id = "your-dataset-id" | ||
role = "roles/editor" | ||
members = [ | ||
"user:[email protected]", | ||
] | ||
} | ||
``` | ||
|
||
## google\_healthcare\_dataset\_iam\_member | ||
|
||
```hcl | ||
resource "google_healthcare_dataset_iam_member" "dataset" { | ||
dataset_id = "your-dataset-id" | ||
role = "roles/editor" | ||
member = "user:[email protected]" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `dataset_id` - (Required) The dataset ID, in the form | ||
`{project_id}/{location_name}/{dataset_name}` or | ||
`{location_name}/{dataset_name}`. In the second form, the provider's | ||
project setting will be used as a fallback. | ||
|
||
* `member/members` - (Required) Identities that will be granted the privilege in `role`. | ||
Each entry can have one of the following values: | ||
* **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. | ||
* **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. | ||
* **user:{emailid}**: An email address that represents a specific Google account. For example, [email protected] or [email protected]. | ||
* **serviceAccount:{emailid}**: An email address that represents a service account. For example, [email protected]. | ||
* **group:{emailid}**: An email address that represents a Google group. For example, [email protected]. | ||
* **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. | ||
|
||
* `role` - (Required) The role that should be applied. Only one | ||
`google_healthcare_dataset_iam_binding` can be used per role. Note that custom roles must be of the format | ||
`[projects|organizations]/{parent-name}/roles/{role-name}`. | ||
|
||
* `policy_data` - (Required only by `google_healthcare_dataset_iam_policy`) The policy data generated by | ||
a `google_iam_policy` data source. | ||
|
||
## Attributes Reference | ||
|
||
In addition to the arguments listed above, the following computed attributes are | ||
exported: | ||
|
||
* `etag` - (Computed) The etag of the dataset's IAM policy. | ||
|
||
## Import | ||
|
||
IAM member imports use space-delimited identifiers; the resource in question, the role, and the account. This member resource can be imported using the `dataset_id`, role, and account e.g. | ||
|
||
``` | ||
$ terraform import google_healthcare_dataset_iam_member.dataset_iam "your-project-id/location-name/dataset-name roles/viewer user:[email protected]" | ||
``` | ||
|
||
IAM binding imports use space-delimited identifiers; the resource in question and the role. This binding resource can be imported using the `dataset_id` and role, e.g. | ||
|
||
``` | ||
$ terraform import google_healthcare_dataset_iam_binding.dataset_iam "your-project-id/location-name/dataset-name roles/viewer" | ||
``` | ||
|
||
IAM policy imports use the identifier of the resource in question. This policy resource can be imported using the `dataset_id`, role, and account e.g. | ||
|
||
``` | ||
$ terraform import google_healthcare_dataset_iam_policy.dataset_iam your-project-id/location-name/dataset-name | ||
``` |
116 changes: 116 additions & 0 deletions
116
website/docs/r/healthcare_dicom_store_iam.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
--- | ||
layout: "google" | ||
page_title: "Google: google_healthcare_dicom_store_iam" | ||
sidebar_current: "docs-google-healthcare-dicom-store-iam" | ||
description: |- | ||
Collection of resources to manage IAM policy for a Google Cloud Healthcare DICOM store. | ||
--- | ||
|
||
# IAM policy for Google Cloud Healthcare DICOM store | ||
|
||
~> **Warning:** These resources are in beta, and should be used with the terraform-provider-google-beta provider. | ||
See [Provider Versions](https://terraform.io/docs/providers/google/provider_versions.html) for more details on beta resources. | ||
|
||
Three different resources help you manage your IAM policy for Healthcare DICOM store. Each of these resources serves a different use case: | ||
|
||
* `google_healthcare_dicom_store_iam_policy`: Authoritative. Sets the IAM policy for the DICOM store and replaces any existing policy already attached. | ||
* `google_healthcare_dicom_store_iam_binding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the DICOM store are preserved. | ||
* `google_healthcare_dicom_store_iam_member`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the DICOM store are preserved. | ||
|
||
~> **Note:** `google_healthcare_dicom_store_iam_policy` **cannot** be used in conjunction with `google_healthcare_dicom_store_iam_binding` and `google_healthcare_dicom_store_iam_member` or they will fight over what your policy should be. | ||
|
||
~> **Note:** `google_healthcare_dicom_store_iam_binding` resources **can be** used in conjunction with `google_healthcare_dicom_store_iam_member` resources **only if** they do not grant privilege to the same role. | ||
|
||
## google\_healthcare\_dicom\_store\_iam\_policy | ||
|
||
```hcl | ||
data "google_iam_policy" "admin" { | ||
binding { | ||
role = "roles/editor" | ||
members = [ | ||
"user:[email protected]", | ||
] | ||
} | ||
} | ||
resource "google_healthcare_dicom_store_iam_policy" "dicom_store" { | ||
dicom_store_id = "your-dicom-store-id" | ||
policy_data = "${data.google_iam_policy.admin.policy_data}" | ||
} | ||
``` | ||
|
||
## google\_healthcare\_dicom\_store\_iam\_binding | ||
|
||
```hcl | ||
resource "google_healthcare_dicom_store_iam_binding" "dicom_store" { | ||
dicom_store_id = "your-dicom-store-id" | ||
role = "roles/editor" | ||
members = [ | ||
"user:[email protected]", | ||
] | ||
} | ||
``` | ||
|
||
## google\_healthcare\_dicom\_store\_iam\_member | ||
|
||
```hcl | ||
resource "google_healthcare_dicom_store_iam_member" "dicom_store" { | ||
dicom_store_id = "your-dicom-store-id" | ||
role = "roles/editor" | ||
member = "user:[email protected]" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `dicom_store_id` - (Required) The DICOM store ID, in the form | ||
`{project_id}/{location_name}/{dataset_name}/{dicom_store_name}` or | ||
`{location_name}/{dataset_name}/{dicom_store_name}`. In the second form, the provider's | ||
project setting will be used as a fallback. | ||
|
||
* `member/members` - (Required) Identities that will be granted the privilege in `role`. | ||
Each entry can have one of the following values: | ||
* **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. | ||
* **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. | ||
* **user:{emailid}**: An email address that represents a specific Google account. For example, [email protected] or [email protected]. | ||
* **serviceAccount:{emailid}**: An email address that represents a service account. For example, [email protected]. | ||
* **group:{emailid}**: An email address that represents a Google group. For example, [email protected]. | ||
* **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. | ||
|
||
* `role` - (Required) The role that should be applied. Only one | ||
`google_healthcare_dicom_store_iam_binding` can be used per role. Note that custom roles must be of the format | ||
`[projects|organizations]/{parent-name}/roles/{role-name}`. | ||
|
||
* `policy_data` - (Required only by `google_healthcare_dicom_store_iam_policy`) The policy data generated by | ||
a `google_iam_policy` data source. | ||
|
||
## Attributes Reference | ||
|
||
In addition to the arguments listed above, the following computed attributes are | ||
exported: | ||
|
||
* `etag` - (Computed) The etag of the DICOM store's IAM policy. | ||
|
||
## Import | ||
|
||
IAM member imports use space-delimited identifiers; the resource in question, the role, and the account. This member resource can be imported using the `dicom_store_id`, role, and account e.g. | ||
|
||
``` | ||
$ terraform import google_healthcare_dicom_store_iam_member.dicom_store_iam "your-project-id/location-name/dataset-name/dicom-store-name roles/viewer user:[email protected]" | ||
``` | ||
|
||
IAM binding imports use space-delimited identifiers; the resource in question and the role. This binding resource can be imported using the `dicom_store_id` and role, e.g. | ||
|
||
``` | ||
$ terraform import google_healthcare_dicom_store_iam_binding.dicom_store_iam "your-project-id/location-name/dataset-name/dicom-store-name roles/viewer" | ||
``` | ||
|
||
IAM policy imports use the identifier of the resource in question. This policy resource can be imported using the `dicom_store_id`, role, and account e.g. | ||
|
||
``` | ||
$ terraform import google_healthcare_dicom_store_iam_policy.dicom_store_iam your-project-id/location-name/dataset-name/dicom-store-name | ||
``` |
Oops, something went wrong.