Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL labels, MM updates #254

Merged
merged 10 commits into from
Apr 28, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Properties that can be accessed from the `google_access_context_manager_service_
* `update_time`: Time the AccessPolicy was updated in UTC.

* `perimeter_type`: Specifies the type of the Perimeter. There are two types: regular and bridge. Regular Service Perimeter contains resources, access levels, and restricted services. Every resource can be in at most ONE regular Service Perimeter. In addition to being in a regular service perimeter, a resource can also be in zero or more perimeter bridges. A perimeter bridge only contains resources. Cross project operations are permitted if all effected resources share some perimeter (whether bridge or regular). Perimeter Bridge does not contain access levels or services: those are governed entirely by the regular perimeter that resource is in. Perimeter Bridges are typically useful when building more complex topologies with many independent perimeters that need to share some data with a common perimeter, but should not be able to share data among themselves.
Possible values:
* PERIMETER_TYPE_REGULAR
* PERIMETER_TYPE_BRIDGE

* `status`: ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries.

Expand Down
34 changes: 33 additions & 1 deletion docs/resources/google_appengine_standard_app_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,39 @@ Properties that can be accessed from the `google_appengine_standard_app_version`

* `threadsafe`: Whether multiple requests can be dispatched to this version at once.

* `instance_class`: Instance class that is used to run this version. Valid values are AutomaticScaling F1, F2, F4, F4_1G (Only AutomaticScaling is supported at the moment)
* `instance_class`: Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G BasicScaling or ManualScaling: B1, B2, B4, B4_1G, B8 Defaults to F1 for AutomaticScaling and B2 for ManualScaling and BasicScaling. If no scaling is specified, AutomaticScaling is chosen.

* `automatic_scaling`: Automatic scaling is based on request rate, response latencies, and other application metrics.

* `max_concurrent_requests`: Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Defaults to a runtime-specific value.

* `max_idle_instances`: Maximum number of idle instances that should be maintained for this version.

* `max_pending_latency`: Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

* `min_idle_instances`: Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.

* `min_pending_latency`: Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

* `standard_scheduler_settings`: Scheduler settings for standard environment.

* `target_cpu_utilization`: Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.

* `target_throughput_utilization`: Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.

* `min_instances`: Minimum number of instances to run for this version. Set to zero to disable minInstances configuration.

* `max_instances`: Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.

* `basic_scaling`: Basic scaling creates instances when your application receives requests. Each instance will be shut down when the application becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.

* `idle_timeout`: Duration of time after the last request that an instance must wait before the instance is shut down. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.

* `max_instances`: Maximum number of instances to create for this version. Must be in the range [1.0, 200.0].

* `manual_scaling`: A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.

* `instances`: Number of instances to assign to the service at the start. **Note:** When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2 Modules API set_num_instances() you must use `lifecycle.ignore_changes = ["manual_scaling"[0].instances]` to prevent drift detection.


## GCP Permissions
Expand Down
3 changes: 3 additions & 0 deletions docs/resources/google_appengine_standard_app_versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ See [google_appengine_standard_app_version.md](google_appengine_standard_app_ver
* `runtimes`: an array of `google_appengine_standard_app_version` runtime
* `threadsaves`: an array of `google_appengine_standard_app_version` threadsafe
* `instance_classes`: an array of `google_appengine_standard_app_version` instance_class
* `automatic_scalings`: an array of `google_appengine_standard_app_version` automatic_scaling
* `basic_scalings`: an array of `google_appengine_standard_app_version` basic_scaling
* `manual_scalings`: an array of `google_appengine_standard_app_version` manual_scaling

## Filter Criteria
This resource supports all of the above properties as filter criteria, which can be used
Expand Down
65 changes: 65 additions & 0 deletions docs/resources/google_bigquery_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ Properties that can be accessed from the `google_bigquery_table` resource:
* `require_partition_filter`: If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.

* `type`: Describes the table type
Possible values:
* TABLE
* VIEW
* EXTERNAL

* `view`: The view definition.

Expand All @@ -78,6 +82,8 @@ Properties that can be accessed from the `google_bigquery_table` resource:
* `field`: If not set, the table is partitioned by pseudo column, referenced via either '_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE' as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.

* `type`: The only type supported is DAY, which will generate one partition per day.
Possible values:
* DAY

* `streaming_buffer`: Contains information regarding this table's streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.

Expand All @@ -96,10 +102,24 @@ Properties that can be accessed from the `google_bigquery_table` resource:
* `fields`: Describes the nested schema fields if the type property is set to RECORD.

* `mode`: The field mode
Possible values:
* NULLABLE
* REQUIRED
* REPEATED

* `name`: The field name

* `type`: The field data type
Possible values:
* STRING
* BYTES
* INTEGER
* FLOAT
* TIMESTAMP
* DATE
* TIME
* DATETIME
* RECORD

* `encryption_configuration`: Custom encryption configuration

Expand All @@ -112,12 +132,22 @@ Properties that can be accessed from the `google_bigquery_table` resource:
* `autodetect`: Try to detect schema and format options automatically. Any option specified explicitly will be honored.

* `compression`: The compression type of the data source
Possible values:
* GZIP
* NONE

* `ignore_unknown_values`: Indicates if BigQuery should allow extra values that are not represented in the table schema

* `max_bad_records`: The maximum number of bad records that BigQuery can ignore when reading data

* `source_format`: The data format
Possible values:
* CSV
* GOOGLE_SHEETS
* NEWLINE_DELIMITED_JSON
* AVRO
* DATASTORE_BACKUP
* BIGTABLE

* `source_uris`: The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the '*' wildcard character is not allowed.

Expand All @@ -130,10 +160,24 @@ Properties that can be accessed from the `google_bigquery_table` resource:
* `fields`: Describes the nested schema fields if the type property is set to RECORD

* `mode`: Field mode.
Possible values:
* NULLABLE
* REQUIRED
* REPEATED

* `name`: Field name

* `type`: Field data type
Possible values:
* STRING
* BYTES
* INTEGER
* FLOAT
* TIMESTAMP
* DATE
* TIME
* DATETIME
* RECORD

* `google_sheets_options`: Additional options if sourceFormat is set to GOOGLE_SHEETS.

Expand All @@ -146,6 +190,9 @@ Properties that can be accessed from the `google_bigquery_table` resource:
* `allow_quoted_newlines`: Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file

* `encoding`: The character encoding of the data
Possible values:
* UTF-8
* ISO-8859-1

* `field_delimiter`: The separator for fields in a CSV file

Expand All @@ -164,6 +211,9 @@ Properties that can be accessed from the `google_bigquery_table` resource:
* `columns`: Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs.

* `encoding`: The encoding of the values when the type is not STRING
Possible values:
* TEXT
* BINARY

* `field_name`: If the qualifier is not a valid BigQuery field identifier, a valid identifier must be provided as the column field name and is used as field name in queries.

Expand All @@ -172,14 +222,29 @@ Properties that can be accessed from the `google_bigquery_table` resource:
* `qualifier_string`: Qualifier of the column

* `type`: The type to convert the value in cells of this column
Possible values:
* BYTES
* STRING
* INTEGER
* FLOAT
* BOOLEAN

* `encoding`: The encoding of the values when the type is not STRING
Possible values:
* TEXT
* BINARY

* `family_id`: Identifier of the column family.

* `only_read_latest`: If this is set only the latest version of value are exposed for all columns in this column family

* `type`: The type to convert the value in cells of this column family
Possible values:
* BYTES
* STRING
* INTEGER
* FLOAT
* BOOLEAN

* `dataset`: Name of the dataset

Expand Down
3 changes: 3 additions & 0 deletions docs/resources/google_cloudbuild_trigger.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ Properties that can be accessed from the `google_cloudbuild_trigger` resource:
* `branch`: Regex of branches to match.

* `comment_control`: Whether to block builds on a "/gcbrun" comment from a repository owner or collaborator.
Possible values:
* COMMENTS_DISABLED
* COMMENTS_ENABLED

* `push`: filter to match changes in refs, like branches or tags. Specify only one of pullRequest or push.

Expand Down
7 changes: 7 additions & 0 deletions docs/resources/google_cloudfunctions_cloud_function.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Properties that can be accessed from the `google_cloudfunctions_cloud_function`
* `description`: User-provided description of a function.

* `status`: Status of the function deployment.
Possible values:
* CLOUD_FUNCTION_STATUS_UNSPECIFIED
* ACTOVE
* OFFLINE
* DEPLOY_IN_PROGRESS
* DELETE_IN_PROGRESS
* UNKNOWN

* `entry_point`: The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.

Expand Down
16 changes: 14 additions & 2 deletions docs/resources/google_compute_address.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ Properties that can be accessed from the `google_compute_address` resource:

* `address`: The static external IP address represented by this resource. Only IPv4 is supported. An address may only be specified for INTERNAL address types. The IP address must be inside the specified subnetwork, if any.

* `address_type`: The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL.
* `address_type`: The type of address to reserve.
Possible values:
* INTERNAL
* EXTERNAL

* `creation_timestamp`: Creation timestamp in RFC3339 text format.

Expand All @@ -66,8 +69,13 @@ Properties that can be accessed from the `google_compute_address` resource:
* `name`: Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

* `purpose`: The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources. This should only be set when using an Internal address.
Possible values:
* GCE_ENDPOINT

* `network_tier`: The networking tier used for configuring this address. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
* `network_tier`: The networking tier used for configuring this address. If this field is not specified, it is assumed to be PREMIUM.
Possible values:
* PREMIUM
* STANDARD

* `subnetwork`: The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes.

Expand All @@ -78,6 +86,10 @@ Properties that can be accessed from the `google_compute_address` resource:
* `label_fingerprint`: (Beta only) The fingerprint used for optimistic locking of this resource. Used internally during updates.

* `status`: The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available.
Possible values:
* RESERVING
* RESERVED
* IN_USE

* `region`: URL of the region where the regional address resides. This field is not applicable to global addresses.

Expand Down
6 changes: 5 additions & 1 deletion docs/resources/google_compute_autoscaler.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ Properties that can be accessed from the `google_compute_autoscaler` resource:

* `utilization_target`: The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric. For example, a good metric to use as a utilizationTarget is www.googleapis.com/compute/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.

* `utilization_target_type`: Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
* `utilization_target_type`: Defines how target utilization value is expressed for a Stackdriver Monitoring metric.
Possible values:
* GAUGE
* DELTA_PER_SECOND
* DELTA_PER_MINUTE

* `filter`: (Beta only) A filter string to be used as the filter string for a Stackdriver Monitoring TimeSeries.list API call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to determine whether the metric is exporting per-instance or per-group data. You can only use the AND operator for joining selectors. You can only use direct equality comparison operator (=) without any functions for each selector. You can specify the metric in both the filter string and in the metric field. However, if specified in both places, the metric must be identical. The monitored resource type determines what kind of values are expected for the metric. If it is a gce_instance, the autoscaler expects the metric to include a separate TimeSeries for each instance in a group. In such a case, you cannot filter on resource labels. If the resource type is any other value, the autoscaler expects this metric to contain values that apply to the entire autoscaled instance group and resource label filtering can be performed to point autoscaler at the correct TimeSeries to scale upon. This is called a per-group metric for the purpose of autoscaling. If not specified, the type defaults to gce_instance. You should provide a filter that is selective enough to pick just one TimeSeries for the autoscaled group or for each of the instances (if you are using gce_instance resource type). If multiple TimeSeries are returned upon the query execution, the autoscaler will sum their respective values to obtain its scaling value.

Expand Down
Loading