Skip to content

Commit

Permalink
rename filenames
Browse files Browse the repository at this point in the history
Signed-off-by: balasubramanian-s <balasubramanian.s@progress.com>
  • Loading branch information
balasubramanian-s committed Jul 11, 2024
1 parent 6c6bb1d commit 312d511
Show file tree
Hide file tree
Showing 31 changed files with 334 additions and 334 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
+++

title = "google_dataproc_metastore_project_location_service Resource"
title = "google_dataproc_metastore_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"
title = "google_dataproc_metastore_service"
identifier = "inspec/resources/gcp/google_dataproc_metastore_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.
Use the `google_dataproc_metastore_service` InSpec audit resource to test the properties of a test a Google Service.

## Installation
{{% inspec_gcp_install %}}

## Syntax
A `google_dataproc_metastore_project_location_service` is used to test a Google ProjectLocationService resource
A `google_dataproc_metastore_service` is used to test a Google Service resource

## Examples
```
describe google_dataproc_metastore_project_location_service(name: ' value_name') do
describe google_dataproc_metastore_service(name: ' value_name') do
it { should exist }
its('name') { should cmp 'value_name' }
its('create_time') { should cmp 'value_createtime' }
Expand All @@ -40,16 +40,16 @@ describe google_dataproc_metastore_project_location_service(name: ' value_name')
end
describe google_dataproc_metastore_project_location_service(name: "does_not_exit") do
describe google_dataproc_metastore_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 that can be accessed from the `google_dataproc_metastore_service` resource:

## Properties
Properties that can be accessed from the `google_dataproc_metastore_project_location_service` resource:
Properties that can be accessed from the `google_dataproc_metastore_service` resource:


* `hive_metastore_config`: Specifies configuration information specific to running Hive metastore software as the metastore service.
Expand Down
94 changes: 94 additions & 0 deletions docs/resources/google_dataproc_metastore_services.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
+++

title = "google_dataproc_metastore_services Resource"
platform = "gcp"
draft = false
gh_repo = "inspec-gcp"


[menu.inspec]

title = "google_dataproc_metastore_services"
identifier = "inspec/resources/gcp/google_dataproc_metastore_services Resource"
parent = "inspec/resources/gcp"
+++

Use the `google_dataproc_metastore_services` InSpec audit resource to test the properties of a test a Google Service.

## Installation
{{% inspec_gcp_install %}}

## Syntax
A `google_dataproc_metastore_services` is used to test a Google Service resource

## Examples
```
describe google_dataproc_metastore_services(parent: ' value_parent') do
it { should exist }
end
```

## Parameters
Properties that can be accessed from the `google_dataproc_metastore_services` resource:

See [google_dataproc_metastore_service.md](google_dataproc_metastore_service.md) for more detailed information
* `hive_metastore_configs`: an array of `google_dataproc_metastore_service` hive_metastore_config
* `names`: an array of `google_dataproc_metastore_service` name
* `create_times`: an array of `google_dataproc_metastore_service` create_time
* `update_times`: an array of `google_dataproc_metastore_service` update_time
* `labels`: an array of `google_dataproc_metastore_service` labels
* `networks`: an array of `google_dataproc_metastore_service` network
* `endpoint_uris`: an array of `google_dataproc_metastore_service` endpoint_uri
* `ports`: an array of `google_dataproc_metastore_service` port
* `states`: an array of `google_dataproc_metastore_service` state
* `state_messages`: an array of `google_dataproc_metastore_service` state_message
* `artifact_gcs_uris`: an array of `google_dataproc_metastore_service` artifact_gcs_uri
* `tiers`: an array of `google_dataproc_metastore_service` tier
* `metadata_integrations`: an array of `google_dataproc_metastore_service` metadata_integration
* `maintenance_windows`: an array of `google_dataproc_metastore_service` maintenance_window
* `uids`: an array of `google_dataproc_metastore_service` uid
* `metadata_management_activities`: an array of `google_dataproc_metastore_service` metadata_management_activity
* `release_channels`: an array of `google_dataproc_metastore_service` release_channel
* `encryption_configs`: an array of `google_dataproc_metastore_service` encryption_config
* `network_configs`: an array of `google_dataproc_metastore_service` network_config
* `database_types`: an array of `google_dataproc_metastore_service` database_type
* `telemetry_configs`: an array of `google_dataproc_metastore_service` telemetry_config
* `scaling_configs`: an array of `google_dataproc_metastore_service` scaling_config
* `scheduled_backups`: an array of `google_dataproc_metastore_service` scheduled_backup
* `deletion_protections`: an array of `google_dataproc_metastore_service` deletion_protection
## Properties
Properties that can be accessed from the `google_dataproc_metastore_services` resource:

See [google_dataproc_metastore_service.md](google_dataproc_metastore_service.md) for more detailed information
* `hive_metastore_configs`: an array of `google_dataproc_metastore_service` hive_metastore_config
* `names`: an array of `google_dataproc_metastore_service` name
* `create_times`: an array of `google_dataproc_metastore_service` create_time
* `update_times`: an array of `google_dataproc_metastore_service` update_time
* `labels`: an array of `google_dataproc_metastore_service` labels
* `networks`: an array of `google_dataproc_metastore_service` network
* `endpoint_uris`: an array of `google_dataproc_metastore_service` endpoint_uri
* `ports`: an array of `google_dataproc_metastore_service` port
* `states`: an array of `google_dataproc_metastore_service` state
* `state_messages`: an array of `google_dataproc_metastore_service` state_message
* `artifact_gcs_uris`: an array of `google_dataproc_metastore_service` artifact_gcs_uri
* `tiers`: an array of `google_dataproc_metastore_service` tier
* `metadata_integrations`: an array of `google_dataproc_metastore_service` metadata_integration
* `maintenance_windows`: an array of `google_dataproc_metastore_service` maintenance_window
* `uids`: an array of `google_dataproc_metastore_service` uid
* `metadata_management_activities`: an array of `google_dataproc_metastore_service` metadata_management_activity
* `release_channels`: an array of `google_dataproc_metastore_service` release_channel
* `encryption_configs`: an array of `google_dataproc_metastore_service` encryption_config
* `network_configs`: an array of `google_dataproc_metastore_service` network_config
* `database_types`: an array of `google_dataproc_metastore_service` database_type
* `telemetry_configs`: an array of `google_dataproc_metastore_service` telemetry_config
* `scaling_configs`: an array of `google_dataproc_metastore_service` scaling_config
* `scheduled_backups`: an array of `google_dataproc_metastore_service` scheduled_backup
* `deletion_protections`: an array of `google_dataproc_metastore_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.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
module GoogleInSpec
module DataprocMetastore
module Property
class ProjectLocationServiceEncryptionConfig
class ServiceEncryptionConfig
attr_reader :kms_key

def initialize(args = nil, parent_identifier = nil)
Expand All @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil)
end

def to_s
"#{@parent_identifier} ProjectLocationServiceEncryptionConfig"
"#{@parent_identifier} ServiceEncryptionConfig"
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
# CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------
require 'google/dataprocmetastore/property/projectlocationservice_hive_metastore_config_auxiliary_versions'
require 'google/dataprocmetastore/property/projectlocationservice_hive_metastore_config_config_overrides'
require 'google/dataprocmetastore/property/projectlocationservice_hive_metastore_config_kerberos_config'
require 'google/dataprocmetastore/property/projectlocationservice_hive_metastore_config_kerberos_config_keytab'
require 'google/dataprocmetastore/property/service_hive_metastore_config_auxiliary_versions'
require 'google/dataprocmetastore/property/service_hive_metastore_config_config_overrides'
require 'google/dataprocmetastore/property/service_hive_metastore_config_kerberos_config'
require 'google/dataprocmetastore/property/service_hive_metastore_config_kerberos_config_keytab'
module GoogleInSpec
module DataprocMetastore
module Property
class ProjectLocationServiceHiveMetastoreConfig
class ServiceHiveMetastoreConfig
attr_reader :version

attr_reader :config_overrides
Expand All @@ -35,14 +35,14 @@ def initialize(args = nil, parent_identifier = nil)
return if args.nil?
@parent_identifier = parent_identifier
@version = args['version']
@config_overrides = GoogleInSpec::DataprocMetastore::Property::ProjectLocationServiceHiveMetastoreConfigConfigOverrides.new(args['configOverrides'], to_s)
@kerberos_config = GoogleInSpec::DataprocMetastore::Property::ProjectLocationServiceHiveMetastoreConfigKerberosConfig.new(args['kerberosConfig'], to_s)
@config_overrides = GoogleInSpec::DataprocMetastore::Property::ServiceHiveMetastoreConfigConfigOverrides.new(args['configOverrides'], to_s)
@kerberos_config = GoogleInSpec::DataprocMetastore::Property::ServiceHiveMetastoreConfigKerberosConfig.new(args['kerberosConfig'], to_s)
@endpoint_protocol = args['endpointProtocol']
@auxiliary_versions = GoogleInSpec::DataprocMetastore::Property::ProjectLocationServiceHiveMetastoreConfigAuxiliaryVersions.new(args['auxiliaryVersions'], to_s)
@auxiliary_versions = GoogleInSpec::DataprocMetastore::Property::ServiceHiveMetastoreConfigAuxiliaryVersions.new(args['auxiliaryVersions'], to_s)
end

def to_s
"#{@parent_identifier} ProjectLocationServiceHiveMetastoreConfig"
"#{@parent_identifier} ServiceHiveMetastoreConfig"
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
module GoogleInSpec
module DataprocMetastore
module Property
class ProjectLocationServiceHiveMetastoreConfigConfigOverrides
class ServiceHiveMetastoreConfigAuxiliaryVersions
attr_reader :additional_properties

def initialize(args = nil, parent_identifier = nil)
Expand All @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil)
end

def to_s
"#{@parent_identifier} ProjectLocationServiceHiveMetastoreConfigConfigOverrides"
"#{@parent_identifier} ServiceHiveMetastoreConfigAuxiliaryVersions"
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
module GoogleInSpec
module DataprocMetastore
module Property
class ProjectLocationServiceHiveMetastoreConfigAuxiliaryVersions
class ServiceHiveMetastoreConfigConfigOverrides
attr_reader :additional_properties

def initialize(args = nil, parent_identifier = nil)
Expand All @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil)
end

def to_s
"#{@parent_identifier} ProjectLocationServiceHiveMetastoreConfigAuxiliaryVersions"
"#{@parent_identifier} ServiceHiveMetastoreConfigConfigOverrides"
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------
require 'google/dataprocmetastore/property/projectlocationservice_hive_metastore_config_kerberos_config_keytab'
require 'google/dataprocmetastore/property/service_hive_metastore_config_kerberos_config_keytab'
module GoogleInSpec
module DataprocMetastore
module Property
class ProjectLocationServiceHiveMetastoreConfigKerberosConfig
class ServiceHiveMetastoreConfigKerberosConfig
attr_reader :keytab

attr_reader :principal
Expand All @@ -27,13 +27,13 @@ class ProjectLocationServiceHiveMetastoreConfigKerberosConfig
def initialize(args = nil, parent_identifier = nil)
return if args.nil?
@parent_identifier = parent_identifier
@keytab = GoogleInSpec::DataprocMetastore::Property::ProjectLocationServiceHiveMetastoreConfigKerberosConfigKeytab.new(args['keytab'], to_s)
@keytab = GoogleInSpec::DataprocMetastore::Property::ServiceHiveMetastoreConfigKerberosConfigKeytab.new(args['keytab'], to_s)
@principal = args['principal']
@krb5_config_gcs_uri = args['krb5ConfigGcsUri']
end

def to_s
"#{@parent_identifier} ProjectLocationServiceHiveMetastoreConfigKerberosConfig"
"#{@parent_identifier} ServiceHiveMetastoreConfigKerberosConfig"
end
end
end
Expand Down
Loading

0 comments on commit 312d511

Please sign in to comment.