Skip to content

Commit

Permalink
Add docs for the id field (#3040) (#1697)
Browse files Browse the repository at this point in the history
* Add docs for the id field

* fix typo

* fix spacing

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Jan 30, 2020
1 parent 4ef00d4 commit 62665a3
Show file tree
Hide file tree
Showing 114 changed files with 244 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/3040.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
provider: added documentation for the `id` field for many resources, including format
```
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ The `os_constraints` block supports:
(Required)
The operating system type of the device.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `{{name}}`


## Timeouts

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `{{name}}`

* `name` -
Resource name of the AccessPolicy. Format: {policy_id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ The `status` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `{{name}}`

* `create_time` -
Time the AccessPolicy was created in UTC.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ The `dispatch_rules` block supports:
If it is not provided, the provider project is used.


## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `{{project}}`


## Timeouts

Expand Down
1 change: 1 addition & 0 deletions website/docs/r/app_engine_domain_mapping.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ The `ssl_settings` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `apps/{{project}}/domainMappings/{{domain_name}}`

* `name` -
Full path to the DomainMapping resource in the API. Example: apps/myapp/domainMapping/example.com.
Expand Down
6 changes: 6 additions & 0 deletions website/docs/r/app_engine_firewall_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ The following arguments are supported:
If it is not provided, the provider project is used.


## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `apps/{{project}}/firewall/ingressRules/{{priority}}`


## Timeouts

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ The `entrypoint` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `apps/{{project}}/services/{{service}}/versions/{{version_id}}`

* `name` -
Full path to the Version resource in the API. Example, "v1".
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/bigquery_data_transfer_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `{{name}}`

* `name` -
The resource name of the transfer config. Transfer config names have the
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/bigquery_dataset.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ The `default_encryption_configuration` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/datasets/{{dataset_id}}`

* `creation_time` -
The time when this dataset was created, in milliseconds since the
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/bigtable_app_profile.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ The `single_cluster_routing` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/instances/{{instance}}/appProfiles/{{app_profile_id}}`

* `name` -
The unique name of the requested app profile. Values are of the form `projects/<project>/instances/<instance>/appProfiles/<appProfileId>`.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/billing_budget.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ The `all_updates_rule` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `{{name}}`

* `name` -
Resource name of the budget. The resource name
Expand Down
6 changes: 6 additions & 0 deletions website/docs/r/binary_authorization_attestor.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ The `pkix_public_key` block supports:
If it is not provided, the provider project is used.


## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/attestors/{{name}}`


## Timeouts

Expand Down
6 changes: 6 additions & 0 deletions website/docs/r/binary_authorization_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ The `cluster_admission_rules` block supports:
(Required)
The action when a pod creation is denied by the admission rule.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}`


## Timeouts

Expand Down
1 change: 1 addition & 0 deletions website/docs/r/cloud_run_domain_mapping.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ The `metadata` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `locations/{{location}}/namespaces/{{project}}/domainmappings/{{name}}`

* `status` -
The current status of the DomainMapping. Structure is documented below.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/cloud_run_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ The `metadata` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `locations/{{location}}/namespaces/{{project}}/services/{{name}}`

* `status` -
The current status of the Service. Structure is documented below.
Expand Down
6 changes: 6 additions & 0 deletions website/docs/r/cloud_scheduler_job.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,12 @@ The `oidc_token` block supports:
Audience to be used when generating OIDC token. If not specified,
the URI specified in target will be used.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/locations/{{region}}/jobs/{{name}}`


## Timeouts

Expand Down
6 changes: 6 additions & 0 deletions website/docs/r/cloud_tasks_queue.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ The `retry_config` block supports:
then increases linearly, and finally retries retries at intervals of maxBackoff
up to maxAttempts times.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/locations/{{location}}/queues/{{name}}`


## Timeouts

Expand Down
1 change: 1 addition & 0 deletions website/docs/r/cloudbuild_trigger.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ The `volumes` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/triggers/{{trigger_id}}`

* `trigger_id` -
The unique identifier for the trigger.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_address.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/regions/{{region}}/addresses/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_autoscaler.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ The `load_balancing_utilization` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/zones/{{zone}}/autoscalers/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_backend_bucket.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ The `cdn_policy` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/backendBuckets/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ The following arguments are supported:
If it is not provided, the provider project is used.


## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/backendBuckets/{{backend_bucket}}`


## Timeouts

Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_backend_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ The `log_config` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/backendServices/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ The following arguments are supported:
If it is not provided, the provider project is used.


## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/backendServices/{{backend_service}}`


## Timeouts

Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_disk.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ The `source_snapshot_encryption_key` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/zones/{{zone}}/disks/{{name}}`

* `label_fingerprint` -
The fingerprint used for optimistic locking of this resource. Used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ The following arguments are supported:
If it is not provided, the provider project is used.


## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `{{project}}/{{zone}}/{{disk}}/{{name}}`


## Timeouts

Expand Down
7 changes: 7 additions & 0 deletions website/docs/r/compute_external_vpn_gateway.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ The `interface` block supports:
your on-premise gateway or another Cloud provider’s VPN gateway,
it cannot be an IP address from Google Compute Engine.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/externalVpnGateways/{{name}}`
* `self_link` - The URI of the created resource.


## Timeouts

Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_firewall.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ The `deny` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/firewalls/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_forwarding_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/regions/{{region}}/forwardingRules/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_global_address.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/addresses/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ The `filter_labels` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/forwardingRules/{{name}}`

* `label_fingerprint` -
The fingerprint used for optimistic locking of this resource. Used
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_ha_vpn_gateway.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/regions/{{region}}/vpnGateways/{{name}}`

* `vpn_interfaces` -
A list of interfaces on this VPN gateway. Structure is documented below.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_health_check.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ The `http2_health_check` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/healthChecks/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_http_health_check.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/httpHealthChecks/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_https_health_check.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/httpsHealthChecks/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_image.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ The `raw_disk` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/images/{{name}}`

* `archive_size_bytes` -
Size of the image tar.gz archive stored in Google Cloud Storage (in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/regions/{{region}}/interconnectAttachments/{{name}}`

* `cloud_router_ip_address` -
IPv4 address + prefix length to be configured on Cloud Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ The `managed` block supports:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/sslCertificates/{{name}}`

* `creation_timestamp` -
Creation timestamp in RFC3339 text format.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/compute_network.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ immediately after network creation. Defaults to `false`.

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/global/networks/{{name}}`

* `gateway_ipv4` -
The gateway address for default routing out of the network. This value
Expand Down
6 changes: 6 additions & 0 deletions website/docs/r/compute_network_endpoint.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ The following arguments are supported:
If it is not provided, the provider project is used.


## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `{{project}}/{{zone}}/{{network_endpoint_group}}/{{instance}}/{{ip_address}}/{{port}}`


## Timeouts

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ The following arguments are supported:

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `projects/{{project}}/zones/{{zone}}/networkEndpointGroups/{{name}}`

* `size` -
Number of network endpoints in the network endpoint group.
Expand Down
Loading

0 comments on commit 62665a3

Please sign in to comment.