-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically generated by magic modules for service: metastore_v1 an…
…d resource: Projects__locations__service. This commit includes the following changes: - Singular Resource - Plural Resource - Documentation updates - Terraform configuration - Integration tests Signed-off-by: Samir <85890442+sa-progress@users.noreply.github.com>
- Loading branch information
1 parent
d1ad6eb
commit 6c6bb1d
Showing
29 changed files
with
1,662 additions
and
0 deletions.
There are no files selected for viewing
293 changes: 293 additions & 0 deletions
293
docs/resources/google_dataproc_metastore_project_location_service.md
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,293 @@ | ||
+++ | ||
|
||
title = "google_dataproc_metastore_project_location_service Resource" | ||
platform = "gcp" | ||
draft = false | ||
gh_repo = "inspec-gcp" | ||
|
||
|
||
[menu.inspec] | ||
|
||
title = "google_dataproc_metastore_project_location_service" | ||
identifier = "inspec/resources/gcp/google_dataproc_metastore_project_location_service Resource" | ||
parent = "inspec/resources/gcp" | ||
+++ | ||
|
||
Use the `google_dataproc_metastore_project_location_service` InSpec audit resource to test the properties of a test a Google ProjectLocationService. | ||
|
||
## Installation | ||
{{% inspec_gcp_install %}} | ||
|
||
## Syntax | ||
A `google_dataproc_metastore_project_location_service` is used to test a Google ProjectLocationService resource | ||
|
||
## Examples | ||
``` | ||
describe google_dataproc_metastore_project_location_service(name: ' value_name') do | ||
it { should exist } | ||
its('name') { should cmp 'value_name' } | ||
its('create_time') { should cmp 'value_createtime' } | ||
its('update_time') { should cmp 'value_updatetime' } | ||
its('network') { should cmp 'value_network' } | ||
its('endpoint_uri') { should cmp 'value_endpointuri' } | ||
its('state') { should cmp 'value_state' } | ||
its('state_message') { should cmp 'value_statemessage' } | ||
its('artifact_gcs_uri') { should cmp 'value_artifactgcsuri' } | ||
its('tier') { should cmp 'value_tier' } | ||
its('uid') { should cmp 'value_uid' } | ||
its('release_channel') { should cmp 'value_releasechannel' } | ||
its('database_type') { should cmp 'value_databasetype' } | ||
end | ||
describe google_dataproc_metastore_project_location_service(name: "does_not_exit") do | ||
it { should_not exist } | ||
end | ||
``` | ||
|
||
## Parameters | ||
Properties that can be accessed from the `google_dataproc_metastore_project_location_service` resource: | ||
|
||
## Properties | ||
Properties that can be accessed from the `google_dataproc_metastore_project_location_service` resource: | ||
|
||
|
||
* `hive_metastore_config`: Specifies configuration information specific to running Hive metastore software as the metastore service. | ||
|
||
* `version`: Immutable. The Hive metastore schema version. | ||
|
||
* `config_overrides`: A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in hive-site.xml). The mappings override system defaults (some keys cannot be overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's AuxiliaryVersionConfig. | ||
|
||
* `additional_properties`: | ||
|
||
* `kerberos_config`: Configuration information for a Kerberos principal. | ||
|
||
* `keytab`: A securely stored value. | ||
|
||
* `cloud_secret`: The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number}/secrets/{secret_id}/versions/{version_id}. | ||
|
||
* `principal`: A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format. | ||
|
||
* `krb5_config_gcs_uri`: A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly. | ||
|
||
* `endpoint_protocol`: The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT. | ||
Possible values: | ||
* ENDPOINT_PROTOCOL_UNSPECIFIED | ||
* THRIFT | ||
* GRPC | ||
|
||
* `auxiliary_versions`: A mapping of Hive metastore version to the auxiliary version configuration. When specified, a secondary Hive metastore service is created along with the primary service. All auxiliary versions must be less than the service's primary version. The key is the auxiliary service name and it must match the regular expression a-z?. This means that the first character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen. | ||
|
||
* `additional_properties`: Configuration information for the auxiliary service versions. | ||
|
||
* `name`: Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}. | ||
|
||
* `create_time`: Output only. The time when the metastore service was created. | ||
|
||
* `update_time`: Output only. The time when the metastore service was last updated. | ||
|
||
* `labels`: User-defined labels for the metastore service. | ||
|
||
* `additional_properties`: | ||
|
||
* `network`: Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:projects/{project_number}/global/networks/{network_id}. | ||
|
||
* `endpoint_uri`: Output only. The URI of the endpoint used to access the metastore service. | ||
|
||
* `port`: The TCP port at which the metastore service is reached. Default: 9083. | ||
|
||
* `state`: Output only. The current state of the metastore service. | ||
Possible values: | ||
* STATE_UNSPECIFIED | ||
* CREATING | ||
* ACTIVE | ||
* SUSPENDING | ||
* SUSPENDED | ||
* UPDATING | ||
* DELETING | ||
* ERROR | ||
* MIGRATING | ||
|
||
* `state_message`: Output only. Additional information about the current state of the metastore service, if available. | ||
|
||
* `artifact_gcs_uri`: Output only. A Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored. | ||
|
||
* `tier`: The tier of the service. | ||
Possible values: | ||
* TIER_UNSPECIFIED | ||
* DEVELOPER | ||
* ENTERPRISE | ||
|
||
* `metadata_integration`: Specifies how metastore metadata should be integrated with external services. | ||
|
||
* `data_catalog_config`: Specifies how metastore metadata should be integrated with the Data Catalog service. | ||
|
||
* `enabled`: Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog. | ||
|
||
* `dataplex_config`: Specifies how metastore metadata should be integrated with the Dataplex service. | ||
|
||
* `lake_resources`: A reference to the Lake resources that this metastore service is attached to. The key is the lake resource name. Example: projects/{project_number}/locations/{location_id}/lakes/{lake_id}. | ||
|
||
* `additional_properties`: Represents a Lake resource | ||
|
||
* `maintenance_window`: Maintenance window. This specifies when Dataproc Metastore may perform system maintenance operation to the service. | ||
|
||
* `hour_of_day`: The hour of day (0-23) when the window starts. | ||
|
||
* `day_of_week`: The day of week, when the window starts. | ||
Possible values: | ||
* DAY_OF_WEEK_UNSPECIFIED | ||
* MONDAY | ||
* TUESDAY | ||
* WEDNESDAY | ||
* THURSDAY | ||
* FRIDAY | ||
* SATURDAY | ||
* SUNDAY | ||
|
||
* `uid`: Output only. The globally unique resource identifier of the metastore service. | ||
|
||
* `metadata_management_activity`: The metadata management activities of the metastore service. | ||
|
||
* `metadata_exports`: Output only. The latest metadata exports of the metastore service. | ||
|
||
* `destination_gcs_uri`: Output only. A Cloud Storage URI of a folder that metadata are exported to, in the form of gs:////, where is automatically generated. | ||
|
||
* `start_time`: Output only. The time when the export started. | ||
|
||
* `end_time`: Output only. The time when the export ended. | ||
|
||
* `state`: Output only. The current state of the export. | ||
Possible values: | ||
* STATE_UNSPECIFIED | ||
* RUNNING | ||
* SUCCEEDED | ||
* FAILED | ||
* CANCELLED | ||
|
||
* `database_dump_type`: Output only. The type of the database dump. | ||
Possible values: | ||
* TYPE_UNSPECIFIED | ||
* MYSQL | ||
* AVRO | ||
|
||
* `restores`: Output only. The latest restores of the metastore service. | ||
|
||
* `start_time`: Output only. The time when the restore started. | ||
|
||
* `end_time`: Output only. The time when the restore ended. | ||
|
||
* `state`: Output only. The current state of the restore. | ||
Possible values: | ||
* STATE_UNSPECIFIED | ||
* RUNNING | ||
* SUCCEEDED | ||
* FAILED | ||
* CANCELLED | ||
|
||
* `backup`: Output only. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}. | ||
|
||
* `type`: Output only. The type of restore. | ||
Possible values: | ||
* RESTORE_TYPE_UNSPECIFIED | ||
* FULL | ||
* METADATA_ONLY | ||
|
||
* `details`: Output only. The restore details containing the revision of the service to be restored to, in format of JSON. | ||
|
||
* `backup_location`: Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///. | ||
|
||
* `release_channel`: Immutable. The release channel of the service. If unspecified, defaults to STABLE. | ||
Possible values: | ||
* RELEASE_CHANNEL_UNSPECIFIED | ||
* CANARY | ||
* STABLE | ||
|
||
* `encryption_config`: Encryption settings for the service. | ||
|
||
* `kms_key`: The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}. | ||
|
||
* `network_config`: Network configuration for the Dataproc Metastore service. | ||
|
||
* `consumers`: Immutable. The consumer-side network configuration for the Dataproc Metastore instance. | ||
|
||
* `subnetwork`: Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id} | ||
|
||
* `endpoint_uri`: Output only. The URI of the endpoint used to access the metastore service. | ||
|
||
* `endpoint_location`: Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}. | ||
|
||
* `custom_routes_enabled`: Enables custom routes to be imported and exported for the Dataproc Metastore service's peered VPC network. | ||
|
||
* `database_type`: Immutable. The database type that the Metastore service stores its data. | ||
Possible values: | ||
* DATABASE_TYPE_UNSPECIFIED | ||
* MYSQL | ||
* SPANNER | ||
|
||
* `telemetry_config`: Telemetry Configuration for the Dataproc Metastore service. | ||
|
||
* `log_format`: The output format of the Dataproc Metastore service's logs. | ||
Possible values: | ||
* LOG_FORMAT_UNSPECIFIED | ||
* LEGACY | ||
* JSON | ||
|
||
* `scaling_config`: Represents the scaling configuration of a metastore service. | ||
|
||
* `instance_size`: An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) | ||
Possible values: | ||
* INSTANCE_SIZE_UNSPECIFIED | ||
* EXTRA_SMALL | ||
* SMALL | ||
* MEDIUM | ||
* LARGE | ||
* EXTRA_LARGE | ||
|
||
* `scaling_factor`: Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0. | ||
|
||
* `autoscaling_config`: Represents the autoscaling configuration of a metastore service. | ||
|
||
* `autoscaling_factor`: Output only. The scaling factor of a service with autoscaling enabled. | ||
|
||
* `autoscaling_enabled`: Optional. Whether or not autoscaling is enabled for this service. | ||
|
||
* `limit_config`: Represents the autoscaling limit configuration of a metastore service. | ||
|
||
* `max_scaling_factor`: Optional. The highest scaling factor that the service should be autoscaled to. | ||
|
||
* `min_scaling_factor`: Optional. The lowest scaling factor that the service should be autoscaled to. | ||
|
||
* `scheduled_backup`: This specifies the configuration of scheduled backup. | ||
|
||
* `enabled`: Optional. Defines whether the scheduled backup is enabled. The default value is false. | ||
|
||
* `cron_schedule`: Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups. | ||
|
||
* `time_zone`: Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC. | ||
|
||
* `next_scheduled_time`: Output only. The time when the next backups execution is scheduled to start. | ||
|
||
* `backup_location`: Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will be stored below it. | ||
|
||
* `latest_backup`: The details of the latest scheduled backup. | ||
|
||
* `backup_id`: Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress. | ||
|
||
* `start_time`: Output only. The time when the backup was started. | ||
|
||
* `state`: Output only. The current state of the backup. | ||
Possible values: | ||
* STATE_UNSPECIFIED | ||
* IN_PROGRESS | ||
* SUCCEEDED | ||
* FAILED | ||
|
||
* `duration`: Output only. The duration of the backup completion. | ||
|
||
* `deletion_protection`: Optional. Indicates if the dataproc metastore should be protected against accidental deletions. | ||
|
||
|
||
## GCP Permissions | ||
|
||
Ensure the [Dataproc Metastore API](https://console.cloud.google.com/apis/library/metastore.googleapis.com) is enabled for the current project. |
94 changes: 94 additions & 0 deletions
94
docs/resources/google_dataproc_metastore_project_location_services.md
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,94 @@ | ||
+++ | ||
|
||
title = "google_dataproc_metastore_project_location_services Resource" | ||
platform = "gcp" | ||
draft = false | ||
gh_repo = "inspec-gcp" | ||
|
||
|
||
[menu.inspec] | ||
|
||
title = "google_dataproc_metastore_project_location_services" | ||
identifier = "inspec/resources/gcp/google_dataproc_metastore_project_location_services Resource" | ||
parent = "inspec/resources/gcp" | ||
+++ | ||
|
||
Use the `google_dataproc_metastore_project_location_services` InSpec audit resource to test the properties of a test a Google ProjectLocationService. | ||
|
||
## Installation | ||
{{% inspec_gcp_install %}} | ||
|
||
## Syntax | ||
A `google_dataproc_metastore_project_location_services` is used to test a Google ProjectLocationService resource | ||
|
||
## Examples | ||
``` | ||
describe google_dataproc_metastore_project_location_services(parent: ' value_parent') do | ||
it { should exist } | ||
end | ||
``` | ||
|
||
## Parameters | ||
Properties that can be accessed from the `google_dataproc_metastore_project_location_services` resource: | ||
|
||
See [google_dataproc_metastore_project_location_service.md](google_dataproc_metastore_project_location_service.md) for more detailed information | ||
* `hive_metastore_configs`: an array of `google_dataproc_metastore_project_location_service` hive_metastore_config | ||
* `names`: an array of `google_dataproc_metastore_project_location_service` name | ||
* `create_times`: an array of `google_dataproc_metastore_project_location_service` create_time | ||
* `update_times`: an array of `google_dataproc_metastore_project_location_service` update_time | ||
* `labels`: an array of `google_dataproc_metastore_project_location_service` labels | ||
* `networks`: an array of `google_dataproc_metastore_project_location_service` network | ||
* `endpoint_uris`: an array of `google_dataproc_metastore_project_location_service` endpoint_uri | ||
* `ports`: an array of `google_dataproc_metastore_project_location_service` port | ||
* `states`: an array of `google_dataproc_metastore_project_location_service` state | ||
* `state_messages`: an array of `google_dataproc_metastore_project_location_service` state_message | ||
* `artifact_gcs_uris`: an array of `google_dataproc_metastore_project_location_service` artifact_gcs_uri | ||
* `tiers`: an array of `google_dataproc_metastore_project_location_service` tier | ||
* `metadata_integrations`: an array of `google_dataproc_metastore_project_location_service` metadata_integration | ||
* `maintenance_windows`: an array of `google_dataproc_metastore_project_location_service` maintenance_window | ||
* `uids`: an array of `google_dataproc_metastore_project_location_service` uid | ||
* `metadata_management_activities`: an array of `google_dataproc_metastore_project_location_service` metadata_management_activity | ||
* `release_channels`: an array of `google_dataproc_metastore_project_location_service` release_channel | ||
* `encryption_configs`: an array of `google_dataproc_metastore_project_location_service` encryption_config | ||
* `network_configs`: an array of `google_dataproc_metastore_project_location_service` network_config | ||
* `database_types`: an array of `google_dataproc_metastore_project_location_service` database_type | ||
* `telemetry_configs`: an array of `google_dataproc_metastore_project_location_service` telemetry_config | ||
* `scaling_configs`: an array of `google_dataproc_metastore_project_location_service` scaling_config | ||
* `scheduled_backups`: an array of `google_dataproc_metastore_project_location_service` scheduled_backup | ||
* `deletion_protections`: an array of `google_dataproc_metastore_project_location_service` deletion_protection | ||
## Properties | ||
Properties that can be accessed from the `google_dataproc_metastore_project_location_services` resource: | ||
|
||
See [google_dataproc_metastore_project_location_service.md](google_dataproc_metastore_project_location_service.md) for more detailed information | ||
* `hive_metastore_configs`: an array of `google_dataproc_metastore_project_location_service` hive_metastore_config | ||
* `names`: an array of `google_dataproc_metastore_project_location_service` name | ||
* `create_times`: an array of `google_dataproc_metastore_project_location_service` create_time | ||
* `update_times`: an array of `google_dataproc_metastore_project_location_service` update_time | ||
* `labels`: an array of `google_dataproc_metastore_project_location_service` labels | ||
* `networks`: an array of `google_dataproc_metastore_project_location_service` network | ||
* `endpoint_uris`: an array of `google_dataproc_metastore_project_location_service` endpoint_uri | ||
* `ports`: an array of `google_dataproc_metastore_project_location_service` port | ||
* `states`: an array of `google_dataproc_metastore_project_location_service` state | ||
* `state_messages`: an array of `google_dataproc_metastore_project_location_service` state_message | ||
* `artifact_gcs_uris`: an array of `google_dataproc_metastore_project_location_service` artifact_gcs_uri | ||
* `tiers`: an array of `google_dataproc_metastore_project_location_service` tier | ||
* `metadata_integrations`: an array of `google_dataproc_metastore_project_location_service` metadata_integration | ||
* `maintenance_windows`: an array of `google_dataproc_metastore_project_location_service` maintenance_window | ||
* `uids`: an array of `google_dataproc_metastore_project_location_service` uid | ||
* `metadata_management_activities`: an array of `google_dataproc_metastore_project_location_service` metadata_management_activity | ||
* `release_channels`: an array of `google_dataproc_metastore_project_location_service` release_channel | ||
* `encryption_configs`: an array of `google_dataproc_metastore_project_location_service` encryption_config | ||
* `network_configs`: an array of `google_dataproc_metastore_project_location_service` network_config | ||
* `database_types`: an array of `google_dataproc_metastore_project_location_service` database_type | ||
* `telemetry_configs`: an array of `google_dataproc_metastore_project_location_service` telemetry_config | ||
* `scaling_configs`: an array of `google_dataproc_metastore_project_location_service` scaling_config | ||
* `scheduled_backups`: an array of `google_dataproc_metastore_project_location_service` scheduled_backup | ||
* `deletion_protections`: an array of `google_dataproc_metastore_project_location_service` deletion_protection | ||
|
||
## Filter Criteria | ||
This resource supports all of the above properties as filter criteria, which can be used | ||
with `where` as a block or a method. | ||
|
||
## GCP Permissions | ||
|
||
Ensure the [Dataproc Metastore API](https://console.cloud.google.com/apis/library/metastore.googleapis.com) is enabled for the current project. |
Oops, something went wrong.