From c51359d34a50cdf55a92aad3787f1fb63a25c1f1 Mon Sep 17 00:00:00 2001 From: Samir <85890442+sa-progress@users.noreply.github.com> Date: Mon, 24 Jun 2024 18:31:54 +0530 Subject: [PATCH 1/3] Automatically generated by magic modules for service: dataproc_v1 and resource: Projects__regions__job. 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> --- .../google_dataproc_project_region_job.md | 393 ++++++++++++++++++ .../google_dataproc_project_region_jobs.md | 90 ++++ ...ojectregionjob_driver_scheduling_config.rb | 37 ++ .../property/projectregionjob_flink_job.rb | 55 +++ ...ojectregionjob_flink_job_logging_config.rb | 35 ++ ...nk_job_logging_config_driver_log_levels.rb | 34 ++ .../projectregionjob_flink_job_properties.rb | 34 ++ .../property/projectregionjob_hadoop_job.rb | 58 +++ ...jectregionjob_hadoop_job_logging_config.rb | 35 ++ ...op_job_logging_config_driver_log_levels.rb | 34 ++ .../projectregionjob_hadoop_job_properties.rb | 34 ++ .../property/projectregionjob_hive_job.rb | 52 +++ .../projectregionjob_hive_job_properties.rb | 34 ++ .../projectregionjob_hive_job_query_list.rb | 34 ++ ...jectregionjob_hive_job_script_variables.rb | 34 ++ .../property/projectregionjob_labels.rb | 34 ++ .../property/projectregionjob_pig_job.rb | 57 +++ ...projectregionjob_pig_job_logging_config.rb | 35 ++ ...ig_job_logging_config_driver_log_levels.rb | 34 ++ .../projectregionjob_pig_job_properties.rb | 34 ++ .../projectregionjob_pig_job_query_list.rb | 34 ++ ...ojectregionjob_pig_job_script_variables.rb | 34 ++ .../property/projectregionjob_placement.rb | 41 ++ ...ojectregionjob_placement_cluster_labels.rb | 34 ++ .../property/projectregionjob_presto_job.rb | 56 +++ ...jectregionjob_presto_job_logging_config.rb | 35 ++ ...to_job_logging_config_driver_log_levels.rb | 34 ++ .../projectregionjob_presto_job_properties.rb | 34 ++ .../projectregionjob_presto_job_query_list.rb | 34 ++ .../property/projectregionjob_pyspark_job.rb | 58 +++ ...ectregionjob_pyspark_job_logging_config.rb | 35 ++ ...rk_job_logging_config_driver_log_levels.rb | 34 ++ ...projectregionjob_pyspark_job_properties.rb | 34 ++ .../property/projectregionjob_reference.rb | 37 ++ .../property/projectregionjob_scheduling.rb | 37 ++ .../property/projectregionjob_spark_job.rb | 58 +++ ...ojectregionjob_spark_job_logging_config.rb | 35 ++ ...rk_job_logging_config_driver_log_levels.rb | 34 ++ .../projectregionjob_spark_job_properties.rb | 34 ++ .../property/projectregionjob_spark_r_job.rb | 52 +++ ...ectregionjob_spark_r_job_logging_config.rb | 35 ++ ..._r_job_logging_config_driver_log_levels.rb | 34 ++ ...projectregionjob_spark_r_job_properties.rb | 34 ++ .../projectregionjob_spark_sql_job.rb | 54 +++ ...tregionjob_spark_sql_job_logging_config.rb | 35 ++ ...ql_job_logging_config_driver_log_levels.rb | 34 ++ ...ojectregionjob_spark_sql_job_properties.rb | 34 ++ ...ojectregionjob_spark_sql_job_query_list.rb | 34 ++ ...egionjob_spark_sql_job_script_variables.rb | 34 ++ .../property/projectregionjob_status.rb | 43 ++ .../projectregionjob_status_history.rb | 51 +++ .../property/projectregionjob_trino_job.rb | 56 +++ ...ojectregionjob_trino_job_logging_config.rb | 35 ++ ...no_job_logging_config_driver_log_levels.rb | 34 ++ .../projectregionjob_trino_job_properties.rb | 34 ++ .../projectregionjob_trino_job_query_list.rb | 34 ++ .../projectregionjob_yarn_applications.rb | 51 +++ .../google_dataproc_project_region_job.rb | 152 +++++++ .../google_dataproc_project_region_jobs.rb | 121 ++++++ .../google_dataproc_project_region_job.rb | 42 ++ .../google_dataproc_project_region_jobs.rb | 34 ++ 61 files changed, 2986 insertions(+) create mode 100644 docs/resources/google_dataproc_project_region_job.md create mode 100644 docs/resources/google_dataproc_project_region_jobs.md create mode 100644 libraries/google/dataproc/property/projectregionjob_driver_scheduling_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_flink_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_flink_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_flink_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_hadoop_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_hadoop_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_hive_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_hive_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_hive_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_hive_job_script_variables.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_labels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pig_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pig_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pig_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pig_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pig_job_script_variables.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_placement.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_placement_cluster_labels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_presto_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_presto_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_presto_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_presto_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pyspark_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_pyspark_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_reference.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_scheduling.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_r_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_r_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_script_variables.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_status.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_status_history.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_trino_job.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_trino_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_trino_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_trino_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectregionjob_yarn_applications.rb create mode 100644 libraries/google_dataproc_project_region_job.rb create mode 100644 libraries/google_dataproc_project_region_jobs.rb create mode 100644 test/integration/verify/controls/google_dataproc_project_region_job.rb create mode 100644 test/integration/verify/controls/google_dataproc_project_region_jobs.rb diff --git a/docs/resources/google_dataproc_project_region_job.md b/docs/resources/google_dataproc_project_region_job.md new file mode 100644 index 00000000..f6ad21a5 --- /dev/null +++ b/docs/resources/google_dataproc_project_region_job.md @@ -0,0 +1,393 @@ ++++ + +title = "google_dataproc_project_region_job Resource" +platform = "gcp" +draft = false +gh_repo = "inspec-gcp" + + +[menu.inspec] + +title = "google_dataproc_project_region_job" +identifier = "inspec/resources/gcp/google_dataproc_project_region_job Resource" +parent = "inspec/resources/gcp" ++++ + +Use the `google_dataproc_project_region_job` InSpec audit resource to test the properties of a test a Google ProjectRegionJob. + +## Installation +{{% inspec_gcp_install %}} + +## Syntax +A `google_dataproc_project_region_job` is used to test a Google ProjectRegionJob resource + +## Examples +``` +describe google_dataproc_project_region_job(jobId: ' ', projectId: ' ', region: ' value_region') do + it { should exist } + its('driver_output_resource_uri') { should cmp 'value_driveroutputresourceuri' } + its('driver_control_files_uri') { should cmp 'value_drivercontrolfilesuri' } + its('job_uuid') { should cmp 'value_jobuuid' } + +end + +describe google_dataproc_project_region_job(jobId: ' ', projectId: ' ', region: ' value_region') do + it { should_not exist } +end +``` + +## Parameters +Properties that can be accessed from the `google_dataproc_project_region_job` resource: + +## Properties +Properties that can be accessed from the `google_dataproc_project_region_job` resource: + + + * `reference`: Encapsulates the full scoping used to reference a job. + + * `project_id`: Optional. The ID of the Google Cloud Platform project that the job belongs to. If specified, must match the request project ID. + + * `job_id`: Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server. + + * `placement`: Dataproc job config. + + * `cluster_name`: Required. The name of the cluster where the job will be submitted. + + * `cluster_uuid`: Output only. A cluster UUID generated by the Dataproc service when the job is submitted. + + * `cluster_labels`: Optional. Cluster labels to identify a cluster where the job will be submitted. + + * `additional_properties`: + + * `hadoop_job`: A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). + + * `main_jar_file_uri`: The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' + + * `main_class`: The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris. + + * `args`: Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision might occur that causes an incorrect job submission. + + * `jar_file_uris`: Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. + + * `file_uris`: Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. + + * `archive_uris`: Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. + + * `properties`: Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code. + + * `additional_properties`: + + * `logging_config`: The runtime logging config of the job. + + * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' + + * `additional_properties`: + + * `spark_job`: A Dataproc job for running Apache Spark (https://spark.apache.org/) applications on YARN. + + * `main_jar_file_uri`: The HCFS URI of the jar file that contains the main class. + + * `main_class`: The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in SparkJob.jar_file_uris. + + * `args`: Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. + + * `jar_file_uris`: Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. + + * `file_uris`: Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks. + + * `archive_uris`: Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. + + * `properties`: Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. + + * `additional_properties`: + + * `logging_config`: The runtime logging config of the job. + + * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' + + * `additional_properties`: + + * `pyspark_job`: A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. + + * `main_python_file_uri`: Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. + + * `args`: Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. + + * `python_file_uris`: Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. + + * `jar_file_uris`: Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. + + * `file_uris`: Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks. + + * `archive_uris`: Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. + + * `properties`: Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. + + * `additional_properties`: + + * `logging_config`: The runtime logging config of the job. + + * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' + + * `additional_properties`: + + * `hive_job`: A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. + + * `query_file_uri`: The HCFS URI of the script that contains Hive queries. + + * `query_list`: A list of queries to run on a cluster. + + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + + * `continue_on_failure`: Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. + + * `script_variables`: Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). + + * `additional_properties`: + + * `properties`: Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. + + * `additional_properties`: + + * `jar_file_uris`: Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. + + * `pig_job`: A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. + + * `query_file_uri`: The HCFS URI of the script that contains the Pig queries. + + * `query_list`: A list of queries to run on a cluster. + + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + + * `continue_on_failure`: Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. + + * `script_variables`: Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). + + * `additional_properties`: + + * `properties`: Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. + + * `additional_properties`: + + * `jar_file_uris`: Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. + + * `logging_config`: The runtime logging config of the job. + + * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' + + * `additional_properties`: + + * `spark_r_job`: A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. + + * `main_r_file_uri`: Required. The HCFS URI of the main R file to use as the driver. Must be a .R file. + + * `args`: Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. + + * `file_uris`: Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks. + + * `archive_uris`: Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. + + * `properties`: Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. + + * `additional_properties`: + + * `logging_config`: The runtime logging config of the job. + + * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' + + * `additional_properties`: + + * `spark_sql_job`: A Dataproc job for running Apache Spark SQL (https://spark.apache.org/sql/) queries. + + * `query_file_uri`: The HCFS URI of the script that contains SQL queries. + + * `query_list`: A list of queries to run on a cluster. + + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + + * `script_variables`: Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). + + * `additional_properties`: + + * `properties`: Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API might be overwritten. + + * `additional_properties`: + + * `jar_file_uris`: Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. + + * `logging_config`: The runtime logging config of the job. + + * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' + + * `additional_properties`: + + * `presto_job`: A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. + + * `query_file_uri`: The HCFS URI of the script that contains SQL queries. + + * `query_list`: A list of queries to run on a cluster. + + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + + * `continue_on_failure`: Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. + + * `output_format`: Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats + + * `client_tags`: Optional. Presto client tags to attach to this query + + * `properties`: Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI + + * `additional_properties`: + + * `logging_config`: The runtime logging config of the job. + + * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' + + * `additional_properties`: + + * `trino_job`: A Dataproc job for running Trino (https://trino.io/) queries. IMPORTANT: The Dataproc Trino Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/trino) must be enabled when the cluster is created to submit a Trino job to the cluster. + + * `query_file_uri`: The HCFS URI of the script that contains SQL queries. + + * `query_list`: A list of queries to run on a cluster. + + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + + * `continue_on_failure`: Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. + + * `output_format`: Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats + + * `client_tags`: Optional. Trino client tags to attach to this query + + * `properties`: Optional. A mapping of property names to values. Used to set Trino session properties (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI + + * `additional_properties`: + + * `logging_config`: The runtime logging config of the job. + + * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' + + * `additional_properties`: + + * `flink_job`: A Dataproc job for running Apache Flink applications on YARN. + + * `main_jar_file_uri`: The HCFS URI of the jar file that contains the main class. + + * `main_class`: The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jarFileUris. + + * `args`: Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision might occur that causes an incorrect job submission. + + * `jar_file_uris`: Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Flink driver and tasks. + + * `savepoint_uri`: Optional. HCFS URI of the savepoint, which contains the last saved progress for starting the current job. + + * `properties`: Optional. A mapping of property names to values, used to configure Flink. Properties that conflict with values set by the Dataproc API might beoverwritten. Can include properties set in/etc/flink/conf/flink-defaults.conf and classes in user code. + + * `additional_properties`: + + * `logging_config`: The runtime logging config of the job. + + * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' + + * `additional_properties`: + + * `status`: Dataproc job status. + + * `state`: Output only. A state message specifying the overall job state. + Possible values: + * STATE_UNSPECIFIED + * PENDING + * SETUP_DONE + * RUNNING + * CANCEL_PENDING + * CANCEL_STARTED + * CANCELLED + * DONE + * ERROR + * ATTEMPT_FAILURE + + * `details`: Optional. Output only. Job state details, such as an error description if the state is ERROR. + + * `state_start_time`: Output only. The time when this state was entered. + + * `substate`: Output only. Additional state information, which includes status reported by the agent. + Possible values: + * UNSPECIFIED + * SUBMITTED + * QUEUED + * STALE_STATUS + + * `status_history`: Output only. The previous job status. + + * `state`: Output only. A state message specifying the overall job state. + Possible values: + * STATE_UNSPECIFIED + * PENDING + * SETUP_DONE + * RUNNING + * CANCEL_PENDING + * CANCEL_STARTED + * CANCELLED + * DONE + * ERROR + * ATTEMPT_FAILURE + + * `details`: Optional. Output only. Job state details, such as an error description if the state is ERROR. + + * `state_start_time`: Output only. The time when this state was entered. + + * `substate`: Output only. Additional state information, which includes status reported by the agent. + Possible values: + * UNSPECIFIED + * SUBMITTED + * QUEUED + * STALE_STATUS + + * `yarn_applications`: Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It might be changed before final release. + + * `name`: Required. The application name. + + * `state`: Required. The application state. + Possible values: + * STATE_UNSPECIFIED + * NEW + * NEW_SAVING + * SUBMITTED + * ACCEPTED + * RUNNING + * FINISHED + * FAILED + * KILLED + + * `progress`: Required. The numerical progress of the application, from 1 to 100. + + * `tracking_url`: Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. + + * `driver_output_resource_uri`: Output only. A URI pointing to the location of the stdout of the job's driver program. + + * `driver_control_files_uri`: Output only. If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri. + + * `labels`: Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job. + + * `additional_properties`: + + * `scheduling`: Job scheduling options. + + * `max_failures_per_hour`: Optional. Maximum number of times per hour a driver can be restarted as a result of driver exiting with non-zero code before job is reported failed.A job might be reported as thrashing if the driver exits with a non-zero code four times within a 10-minute window.Maximum value is 10.Note: This restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). + + * `max_failures_total`: Optional. Maximum total number of times a driver can be restarted as a result of the driver exiting with a non-zero code. After the maximum number is reached, the job will be reported as failed.Maximum value is 240.Note: Currently, this restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template). + + * `job_uuid`: Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time. + + * `done`: Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled. + + * `driver_scheduling_config`: Driver scheduling configuration. + + * `memory_mb`: Required. The amount of memory in MB the driver is requesting. + + * `vcores`: Required. The number of vCPUs the driver is requesting. + + +## GCP Permissions + +Ensure the [Cloud Dataproc API](https://console.cloud.google.com/apis/library/dataproc.googleapis.com) is enabled for the current project. diff --git a/docs/resources/google_dataproc_project_region_jobs.md b/docs/resources/google_dataproc_project_region_jobs.md new file mode 100644 index 00000000..02353bfb --- /dev/null +++ b/docs/resources/google_dataproc_project_region_jobs.md @@ -0,0 +1,90 @@ ++++ + +title = "google_dataproc_project_region_jobs Resource" +platform = "gcp" +draft = false +gh_repo = "inspec-gcp" + + +[menu.inspec] + +title = "google_dataproc_project_region_jobs" +identifier = "inspec/resources/gcp/google_dataproc_project_region_jobs Resource" +parent = "inspec/resources/gcp" ++++ + +Use the `google_dataproc_project_region_jobs` InSpec audit resource to test the properties of a test a Google ProjectRegionJob. + +## Installation +{{% inspec_gcp_install %}} + +## Syntax +A `google_dataproc_project_region_jobs` is used to test a Google ProjectRegionJob resource + +## Examples +``` + describe google_dataproc_project_region_jobs() do + it { should exist } + end +``` + +## Parameters +Properties that can be accessed from the `google_dataproc_project_region_jobs` resource: + +See [google_dataproc_project_region_job.md](google_dataproc_project_region_job.md) for more detailed information +* `references`: an array of `google_dataproc_project_region_job` reference +* `placements`: an array of `google_dataproc_project_region_job` placement +* `hadoop_jobs`: an array of `google_dataproc_project_region_job` hadoop_job +* `spark_jobs`: an array of `google_dataproc_project_region_job` spark_job +* `pyspark_jobs`: an array of `google_dataproc_project_region_job` pyspark_job +* `hive_jobs`: an array of `google_dataproc_project_region_job` hive_job +* `pig_jobs`: an array of `google_dataproc_project_region_job` pig_job +* `spark_r_jobs`: an array of `google_dataproc_project_region_job` spark_r_job +* `spark_sql_jobs`: an array of `google_dataproc_project_region_job` spark_sql_job +* `presto_jobs`: an array of `google_dataproc_project_region_job` presto_job +* `trino_jobs`: an array of `google_dataproc_project_region_job` trino_job +* `flink_jobs`: an array of `google_dataproc_project_region_job` flink_job +* `statuses`: an array of `google_dataproc_project_region_job` status +* `status_histories`: an array of `google_dataproc_project_region_job` status_history +* `yarn_applications`: an array of `google_dataproc_project_region_job` yarn_applications +* `driver_output_resource_uris`: an array of `google_dataproc_project_region_job` driver_output_resource_uri +* `driver_control_files_uris`: an array of `google_dataproc_project_region_job` driver_control_files_uri +* `labels`: an array of `google_dataproc_project_region_job` labels +* `schedulings`: an array of `google_dataproc_project_region_job` scheduling +* `job_uuids`: an array of `google_dataproc_project_region_job` job_uuid +* `dones`: an array of `google_dataproc_project_region_job` done +* `driver_scheduling_configs`: an array of `google_dataproc_project_region_job` driver_scheduling_config +## Properties +Properties that can be accessed from the `google_dataproc_project_region_jobs` resource: + +See [google_dataproc_project_region_job.md](google_dataproc_project_region_job.md) for more detailed information +* `references`: an array of `google_dataproc_project_region_job` reference +* `placements`: an array of `google_dataproc_project_region_job` placement +* `hadoop_jobs`: an array of `google_dataproc_project_region_job` hadoop_job +* `spark_jobs`: an array of `google_dataproc_project_region_job` spark_job +* `pyspark_jobs`: an array of `google_dataproc_project_region_job` pyspark_job +* `hive_jobs`: an array of `google_dataproc_project_region_job` hive_job +* `pig_jobs`: an array of `google_dataproc_project_region_job` pig_job +* `spark_r_jobs`: an array of `google_dataproc_project_region_job` spark_r_job +* `spark_sql_jobs`: an array of `google_dataproc_project_region_job` spark_sql_job +* `presto_jobs`: an array of `google_dataproc_project_region_job` presto_job +* `trino_jobs`: an array of `google_dataproc_project_region_job` trino_job +* `flink_jobs`: an array of `google_dataproc_project_region_job` flink_job +* `statuses`: an array of `google_dataproc_project_region_job` status +* `status_histories`: an array of `google_dataproc_project_region_job` status_history +* `yarn_applications`: an array of `google_dataproc_project_region_job` yarn_applications +* `driver_output_resource_uris`: an array of `google_dataproc_project_region_job` driver_output_resource_uri +* `driver_control_files_uris`: an array of `google_dataproc_project_region_job` driver_control_files_uri +* `labels`: an array of `google_dataproc_project_region_job` labels +* `schedulings`: an array of `google_dataproc_project_region_job` scheduling +* `job_uuids`: an array of `google_dataproc_project_region_job` job_uuid +* `dones`: an array of `google_dataproc_project_region_job` done +* `driver_scheduling_configs`: an array of `google_dataproc_project_region_job` driver_scheduling_config + +## 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 [Cloud Dataproc API](https://console.cloud.google.com/apis/library/dataproc.googleapis.com) is enabled for the current project. diff --git a/libraries/google/dataproc/property/projectregionjob_driver_scheduling_config.rb b/libraries/google/dataproc/property/projectregionjob_driver_scheduling_config.rb new file mode 100644 index 00000000..f61272e8 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_driver_scheduling_config.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobDriverSchedulingConfig + attr_reader :memory_mb + + attr_reader :vcores + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @memory_mb = args['memoryMb'] + @vcores = args['vcores'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobDriverSchedulingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_flink_job.rb b/libraries/google/dataproc/property/projectregionjob_flink_job.rb new file mode 100644 index 00000000..4a32065d --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_flink_job.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_flink_job_logging_config' +require 'google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_flink_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobFlinkJob + attr_reader :main_jar_file_uri + + attr_reader :main_class + + attr_reader :args + + attr_reader :jar_file_uris + + attr_reader :savepoint_uri + + attr_reader :properties + + attr_reader :logging_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @main_jar_file_uri = args['mainJarFileUri'] + @main_class = args['mainClass'] + @args = args['args'] + @jar_file_uris = args['jarFileUris'] + @savepoint_uri = args['savepointUri'] + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobFlinkJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config.rb new file mode 100644 index 00000000..c4e2a9e5 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobFlinkJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobFlinkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..a2f594f8 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobFlinkJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobFlinkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_flink_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_flink_job_properties.rb new file mode 100644 index 00000000..032753c6 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_flink_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobFlinkJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobFlinkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_hadoop_job.rb b/libraries/google/dataproc/property/projectregionjob_hadoop_job.rb new file mode 100644 index 00000000..a4723a0a --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_hadoop_job.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config' +require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_hadoop_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobHadoopJob + attr_reader :main_jar_file_uri + + attr_reader :main_class + + attr_reader :args + + attr_reader :jar_file_uris + + attr_reader :file_uris + + attr_reader :archive_uris + + attr_reader :properties + + attr_reader :logging_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @main_jar_file_uri = args['mainJarFileUri'] + @main_class = args['mainClass'] + @args = args['args'] + @jar_file_uris = args['jarFileUris'] + @file_uris = args['fileUris'] + @archive_uris = args['archiveUris'] + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobHadoopJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config.rb new file mode 100644 index 00000000..ad1887a9 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobHadoopJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobHadoopJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..807f9fd4 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobHadoopJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobHadoopJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_hadoop_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_hadoop_job_properties.rb new file mode 100644 index 00000000..9e45d54c --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_hadoop_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobHadoopJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobHadoopJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_hive_job.rb b/libraries/google/dataproc/property/projectregionjob_hive_job.rb new file mode 100644 index 00000000..ead86495 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_hive_job.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_hive_job_properties' +require 'google/dataproc/property/projectregionjob_hive_job_query_list' +require 'google/dataproc/property/projectregionjob_hive_job_script_variables' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobHiveJob + attr_reader :query_file_uri + + attr_reader :query_list + + attr_reader :continue_on_failure + + attr_reader :script_variables + + attr_reader :properties + + attr_reader :jar_file_uris + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @query_file_uri = args['queryFileUri'] + @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJobQueryList.new(args['queryList'], to_s) + @continue_on_failure = args['continueOnFailure'] + @script_variables = GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJobProperties.new(args['properties'], to_s) + @jar_file_uris = args['jarFileUris'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobHiveJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_hive_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_hive_job_properties.rb new file mode 100644 index 00000000..a3d8fb8d --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_hive_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobHiveJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobHiveJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_hive_job_query_list.rb b/libraries/google/dataproc/property/projectregionjob_hive_job_query_list.rb new file mode 100644 index 00000000..4b6682c9 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_hive_job_query_list.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobHiveJobQueryList + attr_reader :queries + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @queries = args['queries'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobHiveJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_hive_job_script_variables.rb b/libraries/google/dataproc/property/projectregionjob_hive_job_script_variables.rb new file mode 100644 index 00000000..2f8a0893 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_hive_job_script_variables.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobHiveJobScriptVariables + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobHiveJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_labels.rb b/libraries/google/dataproc/property/projectregionjob_labels.rb new file mode 100644 index 00000000..99f87c98 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_labels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobLabels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job.rb b/libraries/google/dataproc/property/projectregionjob_pig_job.rb new file mode 100644 index 00000000..e06776ac --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pig_job.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_pig_job_logging_config' +require 'google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_pig_job_properties' +require 'google/dataproc/property/projectregionjob_pig_job_query_list' +require 'google/dataproc/property/projectregionjob_pig_job_script_variables' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPigJob + attr_reader :query_file_uri + + attr_reader :query_list + + attr_reader :continue_on_failure + + attr_reader :script_variables + + attr_reader :properties + + attr_reader :jar_file_uris + + attr_reader :logging_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @query_file_uri = args['queryFileUri'] + @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobQueryList.new(args['queryList'], to_s) + @continue_on_failure = args['continueOnFailure'] + @script_variables = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobProperties.new(args['properties'], to_s) + @jar_file_uris = args['jarFileUris'] + @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPigJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config.rb new file mode 100644 index 00000000..9c321d27 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPigJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPigJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..8168b468 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPigJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPigJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_pig_job_properties.rb new file mode 100644 index 00000000..1251387d --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pig_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPigJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPigJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_query_list.rb b/libraries/google/dataproc/property/projectregionjob_pig_job_query_list.rb new file mode 100644 index 00000000..cc93fbb9 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pig_job_query_list.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPigJobQueryList + attr_reader :queries + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @queries = args['queries'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPigJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_script_variables.rb b/libraries/google/dataproc/property/projectregionjob_pig_job_script_variables.rb new file mode 100644 index 00000000..8c762e59 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pig_job_script_variables.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPigJobScriptVariables + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPigJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_placement.rb b/libraries/google/dataproc/property/projectregionjob_placement.rb new file mode 100644 index 00000000..289207ea --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_placement.rb @@ -0,0 +1,41 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_placement_cluster_labels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPlacement + attr_reader :cluster_name + + attr_reader :cluster_uuid + + attr_reader :cluster_labels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @cluster_name = args['clusterName'] + @cluster_uuid = args['clusterUuid'] + @cluster_labels = GoogleInSpec::Dataproc::Property::ProjectRegionJobPlacementClusterLabels.new(args['clusterLabels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPlacement" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_placement_cluster_labels.rb b/libraries/google/dataproc/property/projectregionjob_placement_cluster_labels.rb new file mode 100644 index 00000000..688e2051 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_placement_cluster_labels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPlacementClusterLabels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPlacementClusterLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job.rb b/libraries/google/dataproc/property/projectregionjob_presto_job.rb new file mode 100644 index 00000000..675b1837 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_presto_job.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_presto_job_logging_config' +require 'google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_presto_job_properties' +require 'google/dataproc/property/projectregionjob_presto_job_query_list' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPrestoJob + attr_reader :query_file_uri + + attr_reader :query_list + + attr_reader :continue_on_failure + + attr_reader :output_format + + attr_reader :client_tags + + attr_reader :properties + + attr_reader :logging_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @query_file_uri = args['queryFileUri'] + @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJobQueryList.new(args['queryList'], to_s) + @continue_on_failure = args['continueOnFailure'] + @output_format = args['outputFormat'] + @client_tags = args['clientTags'] + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPrestoJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config.rb new file mode 100644 index 00000000..769063b9 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPrestoJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPrestoJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..3638a62b --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPrestoJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPrestoJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_presto_job_properties.rb new file mode 100644 index 00000000..c70e9b01 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_presto_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPrestoJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPrestoJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job_query_list.rb b/libraries/google/dataproc/property/projectregionjob_presto_job_query_list.rb new file mode 100644 index 00000000..7923fe43 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_presto_job_query_list.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPrestoJobQueryList + attr_reader :queries + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @queries = args['queries'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPrestoJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pyspark_job.rb b/libraries/google/dataproc/property/projectregionjob_pyspark_job.rb new file mode 100644 index 00000000..fc676f47 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pyspark_job.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config' +require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_pyspark_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPysparkJob + attr_reader :main_python_file_uri + + attr_reader :args + + attr_reader :python_file_uris + + attr_reader :jar_file_uris + + attr_reader :file_uris + + attr_reader :archive_uris + + attr_reader :properties + + attr_reader :logging_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @main_python_file_uri = args['mainPythonFileUri'] + @args = args['args'] + @python_file_uris = args['pythonFileUris'] + @jar_file_uris = args['jarFileUris'] + @file_uris = args['fileUris'] + @archive_uris = args['archiveUris'] + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPysparkJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config.rb new file mode 100644 index 00000000..c35f5af7 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPysparkJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPysparkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..0599d495 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPysparkJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPysparkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pyspark_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_pyspark_job_properties.rb new file mode 100644 index 00000000..4a252c78 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_pyspark_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobPysparkJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobPysparkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_reference.rb b/libraries/google/dataproc/property/projectregionjob_reference.rb new file mode 100644 index 00000000..a2e09e4f --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_reference.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobReference + attr_reader :project_id + + attr_reader :job_id + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @project_id = args['projectId'] + @job_id = args['jobId'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobReference" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_scheduling.rb b/libraries/google/dataproc/property/projectregionjob_scheduling.rb new file mode 100644 index 00000000..b7bf7e5f --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_scheduling.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobScheduling + attr_reader :max_failures_per_hour + + attr_reader :max_failures_total + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @max_failures_per_hour = args['maxFailuresPerHour'] + @max_failures_total = args['maxFailuresTotal'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobScheduling" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_job.rb b/libraries/google/dataproc/property/projectregionjob_spark_job.rb new file mode 100644 index 00000000..74756489 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_job.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_spark_job_logging_config' +require 'google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_spark_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkJob + attr_reader :main_jar_file_uri + + attr_reader :main_class + + attr_reader :args + + attr_reader :jar_file_uris + + attr_reader :file_uris + + attr_reader :archive_uris + + attr_reader :properties + + attr_reader :logging_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @main_jar_file_uri = args['mainJarFileUri'] + @main_class = args['mainClass'] + @args = args['args'] + @jar_file_uris = args['jarFileUris'] + @file_uris = args['fileUris'] + @archive_uris = args['archiveUris'] + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config.rb new file mode 100644 index 00000000..73324ca2 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..3a78d5c4 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_spark_job_properties.rb new file mode 100644 index 00000000..2de8d3fb --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_r_job.rb b/libraries/google/dataproc/property/projectregionjob_spark_r_job.rb new file mode 100644 index 00000000..b6ba40dc --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_r_job.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config' +require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_spark_r_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkRJob + attr_reader :main_r_file_uri + + attr_reader :args + + attr_reader :file_uris + + attr_reader :archive_uris + + attr_reader :properties + + attr_reader :logging_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @main_r_file_uri = args['mainRFileUri'] + @args = args['args'] + @file_uris = args['fileUris'] + @archive_uris = args['archiveUris'] + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkRJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config.rb new file mode 100644 index 00000000..bdda4d6a --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkRJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkRJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..093eb84c --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkRJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkRJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_r_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_spark_r_job_properties.rb new file mode 100644 index 00000000..955861dd --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_r_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkRJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkRJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job.rb new file mode 100644 index 00000000..0279e920 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_sql_job.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config' +require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_spark_sql_job_properties' +require 'google/dataproc/property/projectregionjob_spark_sql_job_query_list' +require 'google/dataproc/property/projectregionjob_spark_sql_job_script_variables' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkSqlJob + attr_reader :query_file_uri + + attr_reader :query_list + + attr_reader :script_variables + + attr_reader :properties + + attr_reader :jar_file_uris + + attr_reader :logging_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @query_file_uri = args['queryFileUri'] + @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobQueryList.new(args['queryList'], to_s) + @script_variables = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobProperties.new(args['properties'], to_s) + @jar_file_uris = args['jarFileUris'] + @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkSqlJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config.rb new file mode 100644 index 00000000..b79b51be --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkSqlJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkSqlJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..d544f76c --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkSqlJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkSqlJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_properties.rb new file mode 100644 index 00000000..e1133e1f --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkSqlJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkSqlJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_query_list.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_query_list.rb new file mode 100644 index 00000000..15e9594d --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_query_list.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkSqlJobQueryList + attr_reader :queries + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @queries = args['queries'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkSqlJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_script_variables.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_script_variables.rb new file mode 100644 index 00000000..cb9f5dff --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_script_variables.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobSparkSqlJobScriptVariables + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobSparkSqlJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_status.rb b/libraries/google/dataproc/property/projectregionjob_status.rb new file mode 100644 index 00000000..9d5bec04 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_status.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobStatus + attr_reader :state + + attr_reader :details + + attr_reader :state_start_time + + attr_reader :substate + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @state = args['state'] + @details = args['details'] + @state_start_time = args['stateStartTime'] + @substate = args['substate'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobStatus" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_status_history.rb b/libraries/google/dataproc/property/projectregionjob_status_history.rb new file mode 100644 index 00000000..bb4f5c54 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_status_history.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobStatusHistory + attr_reader :state + + attr_reader :details + + attr_reader :state_start_time + + attr_reader :substate + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @state = args['state'] + @details = args['details'] + @state_start_time = args['stateStartTime'] + @substate = args['substate'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobStatusHistory" + end + end + + class ProjectRegionJobStatusHistoryArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectRegionJobStatusHistory.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectRegionJobStatusHistory.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job.rb b/libraries/google/dataproc/property/projectregionjob_trino_job.rb new file mode 100644 index 00000000..f377c806 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_trino_job.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_trino_job_logging_config' +require 'google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_trino_job_properties' +require 'google/dataproc/property/projectregionjob_trino_job_query_list' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobTrinoJob + attr_reader :query_file_uri + + attr_reader :query_list + + attr_reader :continue_on_failure + + attr_reader :output_format + + attr_reader :client_tags + + attr_reader :properties + + attr_reader :logging_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @query_file_uri = args['queryFileUri'] + @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJobQueryList.new(args['queryList'], to_s) + @continue_on_failure = args['continueOnFailure'] + @output_format = args['outputFormat'] + @client_tags = args['clientTags'] + @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobTrinoJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config.rb new file mode 100644 index 00000000..40eb64e1 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobTrinoJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectRegionJobTrinoJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..4e7ea8d4 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobTrinoJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobTrinoJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_trino_job_properties.rb new file mode 100644 index 00000000..f345564c --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_trino_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobTrinoJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobTrinoJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job_query_list.rb b/libraries/google/dataproc/property/projectregionjob_trino_job_query_list.rb new file mode 100644 index 00000000..e6c286f5 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_trino_job_query_list.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobTrinoJobQueryList + attr_reader :queries + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @queries = args['queries'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobTrinoJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_yarn_applications.rb b/libraries/google/dataproc/property/projectregionjob_yarn_applications.rb new file mode 100644 index 00000000..6ca1def2 --- /dev/null +++ b/libraries/google/dataproc/property/projectregionjob_yarn_applications.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class ProjectRegionJobYarnApplications + attr_reader :name + + attr_reader :state + + attr_reader :progress + + attr_reader :tracking_url + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @name = args['name'] + @state = args['state'] + @progress = args['progress'] + @tracking_url = args['trackingUrl'] + end + + def to_s + "#{@parent_identifier} ProjectRegionJobYarnApplications" + end + end + + class ProjectRegionJobYarnApplicationsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectRegionJobYarnApplications.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectRegionJobYarnApplications.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google_dataproc_project_region_job.rb b/libraries/google_dataproc_project_region_job.rb new file mode 100644 index 00000000..add1bd38 --- /dev/null +++ b/libraries/google_dataproc_project_region_job.rb @@ -0,0 +1,152 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'gcp_backend' +require 'google/dataproc/property/projectregionjob_driver_scheduling_config' +require 'google/dataproc/property/projectregionjob_flink_job' +require 'google/dataproc/property/projectregionjob_flink_job_logging_config' +require 'google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_flink_job_properties' +require 'google/dataproc/property/projectregionjob_hadoop_job' +require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config' +require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_hadoop_job_properties' +require 'google/dataproc/property/projectregionjob_hive_job' +require 'google/dataproc/property/projectregionjob_hive_job_properties' +require 'google/dataproc/property/projectregionjob_hive_job_query_list' +require 'google/dataproc/property/projectregionjob_hive_job_script_variables' +require 'google/dataproc/property/projectregionjob_labels' +require 'google/dataproc/property/projectregionjob_pig_job' +require 'google/dataproc/property/projectregionjob_pig_job_logging_config' +require 'google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_pig_job_properties' +require 'google/dataproc/property/projectregionjob_pig_job_query_list' +require 'google/dataproc/property/projectregionjob_pig_job_script_variables' +require 'google/dataproc/property/projectregionjob_placement' +require 'google/dataproc/property/projectregionjob_placement_cluster_labels' +require 'google/dataproc/property/projectregionjob_presto_job' +require 'google/dataproc/property/projectregionjob_presto_job_logging_config' +require 'google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_presto_job_properties' +require 'google/dataproc/property/projectregionjob_presto_job_query_list' +require 'google/dataproc/property/projectregionjob_pyspark_job' +require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config' +require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_pyspark_job_properties' +require 'google/dataproc/property/projectregionjob_reference' +require 'google/dataproc/property/projectregionjob_scheduling' +require 'google/dataproc/property/projectregionjob_spark_job' +require 'google/dataproc/property/projectregionjob_spark_job_logging_config' +require 'google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_spark_job_properties' +require 'google/dataproc/property/projectregionjob_spark_r_job' +require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config' +require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_spark_r_job_properties' +require 'google/dataproc/property/projectregionjob_spark_sql_job' +require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config' +require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_spark_sql_job_properties' +require 'google/dataproc/property/projectregionjob_spark_sql_job_query_list' +require 'google/dataproc/property/projectregionjob_spark_sql_job_script_variables' +require 'google/dataproc/property/projectregionjob_status' +require 'google/dataproc/property/projectregionjob_status_history' +require 'google/dataproc/property/projectregionjob_trino_job' +require 'google/dataproc/property/projectregionjob_trino_job_logging_config' +require 'google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectregionjob_trino_job_properties' +require 'google/dataproc/property/projectregionjob_trino_job_query_list' +require 'google/dataproc/property/projectregionjob_yarn_applications' + +# A provider to manage Dataproc resources. +class DataprocProjectRegionJob < GcpResourceBase + name 'google_dataproc_project_region_job' + desc 'ProjectRegionJob' + supports platform: 'gcp' + + attr_reader :params + attr_reader :reference + attr_reader :placement + attr_reader :hadoop_job + attr_reader :spark_job + attr_reader :pyspark_job + attr_reader :hive_job + attr_reader :pig_job + attr_reader :spark_r_job + attr_reader :spark_sql_job + attr_reader :presto_job + attr_reader :trino_job + attr_reader :flink_job + attr_reader :status + attr_reader :status_history + attr_reader :yarn_applications + attr_reader :driver_output_resource_uri + attr_reader :driver_control_files_uri + attr_reader :labels + attr_reader :scheduling + attr_reader :job_uuid + attr_reader :done + attr_reader :driver_scheduling_config + + def initialize(params) + super(params.merge({ use_http_transport: true })) + @params = params + @fetched = @connection.fetch(product_url(params[:beta]), resource_base_url, params, 'Get') + parse unless @fetched.nil? + end + + def parse + @reference = GoogleInSpec::Dataproc::Property::ProjectRegionJobReference.new(@fetched['reference'], to_s) + @placement = GoogleInSpec::Dataproc::Property::ProjectRegionJobPlacement.new(@fetched['placement'], to_s) + @hadoop_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJob.new(@fetched['hadoopJob'], to_s) + @spark_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJob.new(@fetched['sparkJob'], to_s) + @pyspark_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJob.new(@fetched['pysparkJob'], to_s) + @hive_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJob.new(@fetched['hiveJob'], to_s) + @pig_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJob.new(@fetched['pigJob'], to_s) + @spark_r_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJob.new(@fetched['sparkRJob'], to_s) + @spark_sql_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJob.new(@fetched['sparkSqlJob'], to_s) + @presto_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJob.new(@fetched['prestoJob'], to_s) + @trino_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJob.new(@fetched['trinoJob'], to_s) + @flink_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJob.new(@fetched['flinkJob'], to_s) + @status = GoogleInSpec::Dataproc::Property::ProjectRegionJobStatus.new(@fetched['status'], to_s) + @status_history = GoogleInSpec::Dataproc::Property::ProjectRegionJobStatusHistoryArray.parse(@fetched['statusHistory'], to_s) + @yarn_applications = GoogleInSpec::Dataproc::Property::ProjectRegionJobYarnApplicationsArray.parse(@fetched['yarnApplications'], to_s) + @driver_output_resource_uri = @fetched['driverOutputResourceUri'] + @driver_control_files_uri = @fetched['driverControlFilesUri'] + @labels = GoogleInSpec::Dataproc::Property::ProjectRegionJobLabels.new(@fetched['labels'], to_s) + @scheduling = GoogleInSpec::Dataproc::Property::ProjectRegionJobScheduling.new(@fetched['scheduling'], to_s) + @job_uuid = @fetched['jobUuid'] + @done = @fetched['done'] + @driver_scheduling_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobDriverSchedulingConfig.new(@fetched['driverSchedulingConfig'], to_s) + end + + def exists? + !@fetched.nil? + end + + def to_s + "ProjectRegionJob #{@params[:jobId]}" + end + + private + + def product_url(_ = nil) + 'https://dataproc.googleapis.com/v1/' + end + + def resource_base_url + 'projects/{{project_id}}/regions/{{region}}/jobs/{{job_id}}' + end +end diff --git a/libraries/google_dataproc_project_region_jobs.rb b/libraries/google_dataproc_project_region_jobs.rb new file mode 100644 index 00000000..04fe7815 --- /dev/null +++ b/libraries/google_dataproc_project_region_jobs.rb @@ -0,0 +1,121 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'gcp_backend' +class DataprocProjectRegionJobs < GcpResourceBase + name 'google_dataproc_project_region_jobs' + desc 'ProjectRegionJob plural resource' + supports platform: 'gcp' + + attr_reader :table + + filter_table_config = FilterTable.create + + filter_table_config.add(:references, field: :reference) + filter_table_config.add(:placements, field: :placement) + filter_table_config.add(:hadoop_jobs, field: :hadoop_job) + filter_table_config.add(:spark_jobs, field: :spark_job) + filter_table_config.add(:pyspark_jobs, field: :pyspark_job) + filter_table_config.add(:hive_jobs, field: :hive_job) + filter_table_config.add(:pig_jobs, field: :pig_job) + filter_table_config.add(:spark_r_jobs, field: :spark_r_job) + filter_table_config.add(:spark_sql_jobs, field: :spark_sql_job) + filter_table_config.add(:presto_jobs, field: :presto_job) + filter_table_config.add(:trino_jobs, field: :trino_job) + filter_table_config.add(:flink_jobs, field: :flink_job) + filter_table_config.add(:statuses, field: :status) + filter_table_config.add(:status_histories, field: :status_history) + filter_table_config.add(:yarn_applications, field: :yarn_applications) + filter_table_config.add(:driver_output_resource_uris, field: :driver_output_resource_uri) + filter_table_config.add(:driver_control_files_uris, field: :driver_control_files_uri) + filter_table_config.add(:labels, field: :labels) + filter_table_config.add(:schedulings, field: :scheduling) + filter_table_config.add(:job_uuids, field: :job_uuid) + filter_table_config.add(:dones, field: :done) + filter_table_config.add(:driver_scheduling_configs, field: :driver_scheduling_config) + + filter_table_config.connect(self, :table) + + def initialize(params = {}) + super(params.merge({ use_http_transport: true })) + @params = params + @table = fetch_wrapped_resource('projectRegionJobs') + end + + def fetch_wrapped_resource(wrap_path) + # fetch_resource returns an array of responses (to handle pagination) + result = @connection.fetch_all(product_url, resource_base_url, @params, 'Get') + return if result.nil? + + # Conversion of string -> object hash to symbol -> object hash that InSpec needs + converted = [] + result.each do |response| + next if response.nil? || !response.key?(wrap_path) + response[wrap_path].each do |hash| + hash_with_symbols = {} + hash.each_key do |key| + name, value = transform(key, hash) + hash_with_symbols[name] = value + end + converted.push(hash_with_symbols) + end + end + + converted + end + + def transform(key, value) + return transformers[key].call(value) if transformers.key?(key) + + [key.to_sym, value] + end + + def transformers + { + 'reference' => ->(obj) { [:reference, GoogleInSpec::Dataproc::Property::ProjectRegionJobReference.new(obj['reference'], to_s)] }, + 'placement' => ->(obj) { [:placement, GoogleInSpec::Dataproc::Property::ProjectRegionJobPlacement.new(obj['placement'], to_s)] }, + 'hadoopJob' => ->(obj) { [:hadoop_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJob.new(obj['hadoopJob'], to_s)] }, + 'sparkJob' => ->(obj) { [:spark_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJob.new(obj['sparkJob'], to_s)] }, + 'pysparkJob' => ->(obj) { [:pyspark_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJob.new(obj['pysparkJob'], to_s)] }, + 'hiveJob' => ->(obj) { [:hive_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJob.new(obj['hiveJob'], to_s)] }, + 'pigJob' => ->(obj) { [:pig_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJob.new(obj['pigJob'], to_s)] }, + 'sparkRJob' => ->(obj) { [:spark_r_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJob.new(obj['sparkRJob'], to_s)] }, + 'sparkSqlJob' => ->(obj) { [:spark_sql_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJob.new(obj['sparkSqlJob'], to_s)] }, + 'prestoJob' => ->(obj) { [:presto_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJob.new(obj['prestoJob'], to_s)] }, + 'trinoJob' => ->(obj) { [:trino_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJob.new(obj['trinoJob'], to_s)] }, + 'flinkJob' => ->(obj) { [:flink_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJob.new(obj['flinkJob'], to_s)] }, + 'status' => ->(obj) { [:status, GoogleInSpec::Dataproc::Property::ProjectRegionJobStatus.new(obj['status'], to_s)] }, + 'statusHistory' => ->(obj) { [:status_history, GoogleInSpec::Dataproc::Property::ProjectRegionJobStatusHistoryArray.parse(obj['statusHistory'], to_s)] }, + 'yarnApplications' => ->(obj) { [:yarn_applications, GoogleInSpec::Dataproc::Property::ProjectRegionJobYarnApplicationsArray.parse(obj['yarnApplications'], to_s)] }, + 'driverOutputResourceUri' => ->(obj) { [:driver_output_resource_uri, obj['driverOutputResourceUri']] }, + 'driverControlFilesUri' => ->(obj) { [:driver_control_files_uri, obj['driverControlFilesUri']] }, + 'labels' => ->(obj) { [:labels, GoogleInSpec::Dataproc::Property::ProjectRegionJobLabels.new(obj['labels'], to_s)] }, + 'scheduling' => ->(obj) { [:scheduling, GoogleInSpec::Dataproc::Property::ProjectRegionJobScheduling.new(obj['scheduling'], to_s)] }, + 'jobUuid' => ->(obj) { [:job_uuid, obj['jobUuid']] }, + 'done' => ->(obj) { [:done, obj['done']] }, + 'driverSchedulingConfig' => ->(obj) { [:driver_scheduling_config, GoogleInSpec::Dataproc::Property::ProjectRegionJobDriverSchedulingConfig.new(obj['driverSchedulingConfig'], to_s)] }, + } + end + + private + + def product_url(_ = nil) + 'https://dataproc.googleapis.com/v1/' + end + + def resource_base_url + 'projects/{{projectId}}/regions/{{region}}/jobs' + end +end diff --git a/test/integration/verify/controls/google_dataproc_project_region_job.rb b/test/integration/verify/controls/google_dataproc_project_region_job.rb new file mode 100644 index 00000000..86a8a158 --- /dev/null +++ b/test/integration/verify/controls/google_dataproc_project_region_job.rb @@ -0,0 +1,42 @@ +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- + +title 'Test GCP google_dataproc_project_region_job resource.' + +gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') + + project_region_job = input('project_region_job', value: { + "job_id": "value_jobid", + "project_id": "value_projectid", + "region": "value_region", + "driver_output_resource_uri": "value_driveroutputresourceuri", + "driver_control_files_uri": "value_drivercontrolfilesuri", + "job_uuid": "value_jobuuid" +}, description: 'project_region_job description') +control 'google_dataproc_project_region_job-1.0' do + impact 1.0 + title 'google_dataproc_project_region_job resource test' + + describe google_dataproc_project_region_job(jobId: project_region_job['jobId'], projectId: project_region_job['projectId'], region: project_region_job['region']) do + it { should exist } + its('driver_output_resource_uri') { should cmp project_region_job['driver_output_resource_uri'] } + its('driver_control_files_uri') { should cmp project_region_job['driver_control_files_uri'] } + its('job_uuid') { should cmp project_region_job['job_uuid'] } + + end + + describe google_dataproc_project_region_job(jobId: project_region_job['jobId'], projectId: project_region_job['projectId'], region: project_region_job['region']) do + it { should_not exist } + end +end diff --git a/test/integration/verify/controls/google_dataproc_project_region_jobs.rb b/test/integration/verify/controls/google_dataproc_project_region_jobs.rb new file mode 100644 index 00000000..bbd853b7 --- /dev/null +++ b/test/integration/verify/controls/google_dataproc_project_region_jobs.rb @@ -0,0 +1,34 @@ +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- + +title 'Test GCP google_dataproc_project_region_jobs resource.' + +gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') + + project_region_job = input('project_region_job', value: { + "job_id": "value_jobid", + "project_id": "value_projectid", + "region": "value_region", + "driver_output_resource_uri": "value_driveroutputresourceuri", + "driver_control_files_uri": "value_drivercontrolfilesuri", + "job_uuid": "value_jobuuid" +}, description: 'project_region_job description') +control 'google_dataproc_project_region_jobs-1.0' do + impact 1.0 + title 'google_dataproc_project_region_jobs resource test' + + describe google_dataproc_project_region_jobs() do + it { should exist } + end +end From 331e08d96bed6bc4ab12027eb41a198c4fe22d99 Mon Sep 17 00:00:00 2001 From: balasubramanian-s Date: Wed, 26 Jun 2024 11:33:58 +0530 Subject: [PATCH 2/3] rename properties Signed-off-by: balasubramanian-s --- .../google_dataproc_project_region_job.md | 18 +- .../google_dataproc_project_region_jobs.md | 108 ++++++------ ...fig.rb => job_driver_scheduling_config.rb} | 4 +- ...egionjob_flink_job.rb => job_flink_job.rb} | 14 +- ...fig.rb => job_flink_job_logging_config.rb} | 8 +- ...k_job_logging_config_driver_log_levels.rb} | 4 +- ..._labels.rb => job_flink_job_properties.rb} | 4 +- ...gionjob_spark_job.rb => job_hadoop_job.rb} | 14 +- ...ig.rb => job_hadoop_job_logging_config.rb} | 8 +- ...op_job_logging_config_driver_log_levels.rb | 34 ++++ ...erties.rb => job_hadoop_job_properties.rb} | 4 +- ...tregionjob_hive_job.rb => job_hive_job.rb} | 16 +- ...operties.rb => job_hive_job_properties.rb} | 4 +- ...ery_list.rb => job_hive_job_query_list.rb} | 4 +- ...es.rb => job_hive_job_script_variables.rb} | 4 +- .../google/dataproc/property/job_labels.rb | 34 ++++ ...ectregionjob_pig_job.rb => job_pig_job.rb} | 22 +-- ...onfig.rb => job_pig_job_logging_config.rb} | 8 +- ...g_job_logging_config_driver_log_levels.rb} | 4 +- .../property/job_pig_job_properties.rb | 34 ++++ ...uery_list.rb => job_pig_job_query_list.rb} | 4 +- .../property/job_pig_job_script_variables.rb | 34 ++++ ...egionjob_placement.rb => job_placement.rb} | 8 +- .../property/job_placement_cluster_labels.rb | 34 ++++ ...gionjob_trino_job.rb => job_presto_job.rb} | 18 +- ...ig.rb => job_presto_job_logging_config.rb} | 8 +- ...to_job_logging_config_driver_log_levels.rb | 34 ++++ .../property/job_presto_job_properties.rb | 34 ++++ ...y_list.rb => job_presto_job_query_list.rb} | 4 +- ...njob_pyspark_job.rb => job_pyspark_job.rb} | 14 +- .../job_pyspark_job_logging_config.rb | 35 ++++ ...rk_job_logging_config_driver_log_levels.rb | 34 ++++ .../property/job_pyspark_job_properties.rb | 34 ++++ ...egionjob_reference.rb => job_reference.rb} | 4 +- ...ionjob_scheduling.rb => job_scheduling.rb} | 4 +- ...gionjob_hadoop_job.rb => job_spark_job.rb} | 14 +- .../property/job_spark_job_logging_config.rb | 35 ++++ ...rk_job_logging_config_driver_log_levels.rb | 34 ++++ .../property/job_spark_job_properties.rb | 34 ++++ ...njob_spark_r_job.rb => job_spark_r_job.rb} | 14 +- .../job_spark_r_job_logging_config.rb | 35 ++++ ..._r_job_logging_config_driver_log_levels.rb | 34 ++++ .../property/job_spark_r_job_properties.rb | 34 ++++ ..._spark_sql_job.rb => job_spark_sql_job.rb} | 22 +-- .../job_spark_sql_job_logging_config.rb | 35 ++++ ...ql_job_logging_config_driver_log_levels.rb | 34 ++++ .../property/job_spark_sql_job_properties.rb | 34 ++++ ...ist.rb => job_spark_sql_job_query_list.rb} | 4 +- .../job_spark_sql_job_script_variables.rb | 34 ++++ ...ojectregionjob_status.rb => job_status.rb} | 4 +- ...tatus_history.rb => job_status_history.rb} | 10 +- ...gionjob_presto_job.rb => job_trino_job.rb} | 18 +- .../property/job_trino_job_logging_config.rb | 35 ++++ ...no_job_logging_config_driver_log_levels.rb | 34 ++++ .../property/job_trino_job_properties.rb | 34 ++++ .../property/job_trino_job_query_list.rb | 34 ++++ ...plications.rb => job_yarn_applications.rb} | 10 +- ...nk_job_logging_config_driver_log_levels.rb | 34 ---- ...jectregionjob_hadoop_job_logging_config.rb | 35 ---- ...op_job_logging_config_driver_log_levels.rb | 34 ---- ...ig_job_logging_config_driver_log_levels.rb | 34 ---- ...ojectregionjob_pig_job_script_variables.rb | 34 ---- ...ojectregionjob_placement_cluster_labels.rb | 34 ---- ...jectregionjob_presto_job_logging_config.rb | 35 ---- ...to_job_logging_config_driver_log_levels.rb | 34 ---- .../projectregionjob_presto_job_properties.rb | 34 ---- ...ectregionjob_pyspark_job_logging_config.rb | 35 ---- ...rk_job_logging_config_driver_log_levels.rb | 34 ---- ...projectregionjob_pyspark_job_properties.rb | 34 ---- ...rk_job_logging_config_driver_log_levels.rb | 34 ---- .../projectregionjob_spark_job_properties.rb | 34 ---- ...ectregionjob_spark_r_job_logging_config.rb | 35 ---- ..._r_job_logging_config_driver_log_levels.rb | 34 ---- ...projectregionjob_spark_r_job_properties.rb | 34 ---- ...tregionjob_spark_sql_job_logging_config.rb | 35 ---- ...ql_job_logging_config_driver_log_levels.rb | 34 ---- ...ojectregionjob_spark_sql_job_properties.rb | 34 ---- ...ojectregionjob_spark_sql_job_query_list.rb | 34 ---- ...egionjob_spark_sql_job_script_variables.rb | 34 ---- ...no_job_logging_config_driver_log_levels.rb | 34 ---- .../projectregionjob_trino_job_properties.rb | 34 ---- .../google_dataproc_project_region_job.rb | 154 +++++++++--------- .../google_dataproc_project_region_jobs.rb | 46 +++--- ...t_region_job.rb => google_dataproc_job.rb} | 20 +-- ...region_jobs.rb => google_dataproc_jobs.rb} | 12 +- 85 files changed, 1141 insertions(+), 1141 deletions(-) rename libraries/google/dataproc/property/{projectregionjob_driver_scheduling_config.rb => job_driver_scheduling_config.rb} (89%) rename libraries/google/dataproc/property/{projectregionjob_flink_job.rb => job_flink_job.rb} (69%) rename libraries/google/dataproc/property/{projectregionjob_pig_job_logging_config.rb => job_flink_job_logging_config.rb} (76%) rename libraries/google/dataproc/property/{projectregionjob_hive_job_script_variables.rb => job_flink_job_logging_config_driver_log_levels.rb} (88%) rename libraries/google/dataproc/property/{projectregionjob_labels.rb => job_flink_job_properties.rb} (91%) rename libraries/google/dataproc/property/{projectregionjob_spark_job.rb => job_hadoop_job.rb} (70%) rename libraries/google/dataproc/property/{projectregionjob_spark_job_logging_config.rb => job_hadoop_job_logging_config.rb} (76%) create mode 100644 libraries/google/dataproc/property/job_hadoop_job_logging_config_driver_log_levels.rb rename libraries/google/dataproc/property/{projectregionjob_pig_job_properties.rb => job_hadoop_job_properties.rb} (89%) rename libraries/google/dataproc/property/{projectregionjob_hive_job.rb => job_hive_job.rb} (67%) rename libraries/google/dataproc/property/{projectregionjob_hive_job_properties.rb => job_hive_job_properties.rb} (89%) rename libraries/google/dataproc/property/{projectregionjob_pig_job_query_list.rb => job_hive_job_query_list.rb} (89%) rename libraries/google/dataproc/property/{projectregionjob_flink_job_properties.rb => job_hive_job_script_variables.rb} (89%) create mode 100644 libraries/google/dataproc/property/job_labels.rb rename libraries/google/dataproc/property/{projectregionjob_pig_job.rb => job_pig_job.rb} (59%) rename libraries/google/dataproc/property/{projectregionjob_flink_job_logging_config.rb => job_pig_job_logging_config.rb} (76%) rename libraries/google/dataproc/property/{projectregionjob_hadoop_job_properties.rb => job_pig_job_logging_config_driver_log_levels.rb} (88%) create mode 100644 libraries/google/dataproc/property/job_pig_job_properties.rb rename libraries/google/dataproc/property/{projectregionjob_hive_job_query_list.rb => job_pig_job_query_list.rb} (89%) create mode 100644 libraries/google/dataproc/property/job_pig_job_script_variables.rb rename libraries/google/dataproc/property/{projectregionjob_placement.rb => job_placement.rb} (77%) create mode 100644 libraries/google/dataproc/property/job_placement_cluster_labels.rb rename libraries/google/dataproc/property/{projectregionjob_trino_job.rb => job_presto_job.rb} (62%) rename libraries/google/dataproc/property/{projectregionjob_trino_job_logging_config.rb => job_presto_job_logging_config.rb} (76%) create mode 100644 libraries/google/dataproc/property/job_presto_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/job_presto_job_properties.rb rename libraries/google/dataproc/property/{projectregionjob_trino_job_query_list.rb => job_presto_job_query_list.rb} (89%) rename libraries/google/dataproc/property/{projectregionjob_pyspark_job.rb => job_pyspark_job.rb} (70%) create mode 100644 libraries/google/dataproc/property/job_pyspark_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/job_pyspark_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/job_pyspark_job_properties.rb rename libraries/google/dataproc/property/{projectregionjob_reference.rb => job_reference.rb} (91%) rename libraries/google/dataproc/property/{projectregionjob_scheduling.rb => job_scheduling.rb} (91%) rename libraries/google/dataproc/property/{projectregionjob_hadoop_job.rb => job_spark_job.rb} (69%) create mode 100644 libraries/google/dataproc/property/job_spark_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/job_spark_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/job_spark_job_properties.rb rename libraries/google/dataproc/property/{projectregionjob_spark_r_job.rb => job_spark_r_job.rb} (67%) create mode 100644 libraries/google/dataproc/property/job_spark_r_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/job_spark_r_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/job_spark_r_job_properties.rb rename libraries/google/dataproc/property/{projectregionjob_spark_sql_job.rb => job_spark_sql_job.rb} (55%) create mode 100644 libraries/google/dataproc/property/job_spark_sql_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/job_spark_sql_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/job_spark_sql_job_properties.rb rename libraries/google/dataproc/property/{projectregionjob_presto_job_query_list.rb => job_spark_sql_job_query_list.rb} (88%) create mode 100644 libraries/google/dataproc/property/job_spark_sql_job_script_variables.rb rename libraries/google/dataproc/property/{projectregionjob_status.rb => job_status.rb} (92%) rename libraries/google/dataproc/property/{projectregionjob_status_history.rb => job_status_history.rb} (78%) rename libraries/google/dataproc/property/{projectregionjob_presto_job.rb => job_trino_job.rb} (62%) create mode 100644 libraries/google/dataproc/property/job_trino_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/job_trino_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/job_trino_job_properties.rb create mode 100644 libraries/google/dataproc/property/job_trino_job_query_list.rb rename libraries/google/dataproc/property/{projectregionjob_yarn_applications.rb => job_yarn_applications.rb} (77%) delete mode 100644 libraries/google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_pig_job_script_variables.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_placement_cluster_labels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_presto_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_presto_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_pyspark_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_r_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_query_list.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_spark_sql_job_script_variables.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectregionjob_trino_job_properties.rb rename test/integration/verify/controls/{google_dataproc_project_region_job.rb => google_dataproc_job.rb} (53%) rename test/integration/verify/controls/{google_dataproc_project_region_jobs.rb => google_dataproc_jobs.rb} (74%) diff --git a/docs/resources/google_dataproc_project_region_job.md b/docs/resources/google_dataproc_project_region_job.md index f6ad21a5..5f1c552a 100644 --- a/docs/resources/google_dataproc_project_region_job.md +++ b/docs/resources/google_dataproc_project_region_job.md @@ -1,6 +1,6 @@ +++ -title = "google_dataproc_project_region_job Resource" +title = "google_dataproc_job Resource" platform = "gcp" draft = false gh_repo = "inspec-gcp" @@ -8,22 +8,22 @@ gh_repo = "inspec-gcp" [menu.inspec] -title = "google_dataproc_project_region_job" -identifier = "inspec/resources/gcp/google_dataproc_project_region_job Resource" +title = "google_dataproc_job" +identifier = "inspec/resources/gcp/google_dataproc_job Resource" parent = "inspec/resources/gcp" +++ -Use the `google_dataproc_project_region_job` InSpec audit resource to test the properties of a test a Google ProjectRegionJob. +Use the `google_dataproc_job` InSpec audit resource to test the properties of a test a Google Job. ## Installation {{% inspec_gcp_install %}} ## Syntax -A `google_dataproc_project_region_job` is used to test a Google ProjectRegionJob resource +A `google_dataproc_job` is used to test a Google Job resource ## Examples ``` -describe google_dataproc_project_region_job(jobId: ' ', projectId: ' ', region: ' value_region') do +describe google_dataproc_job(jobId: ' ', projectId: ' ', region: ' value_region') do it { should exist } its('driver_output_resource_uri') { should cmp 'value_driveroutputresourceuri' } its('driver_control_files_uri') { should cmp 'value_drivercontrolfilesuri' } @@ -31,16 +31,16 @@ describe google_dataproc_project_region_job(jobId: ' ', projectId: ' ', region: end -describe google_dataproc_project_region_job(jobId: ' ', projectId: ' ', region: ' value_region') do +describe google_dataproc_job(jobId: ' ', projectId: ' ', region: ' value_region') do it { should_not exist } end ``` ## Parameters -Properties that can be accessed from the `google_dataproc_project_region_job` resource: +Properties that can be accessed from the `google_dataproc_job` resource: ## Properties -Properties that can be accessed from the `google_dataproc_project_region_job` resource: +Properties that can be accessed from the `google_dataproc_job` resource: * `reference`: Encapsulates the full scoping used to reference a job. diff --git a/docs/resources/google_dataproc_project_region_jobs.md b/docs/resources/google_dataproc_project_region_jobs.md index 02353bfb..5730698e 100644 --- a/docs/resources/google_dataproc_project_region_jobs.md +++ b/docs/resources/google_dataproc_project_region_jobs.md @@ -1,6 +1,6 @@ +++ -title = "google_dataproc_project_region_jobs Resource" +title = "google_dataproc_jobs Resource" platform = "gcp" draft = false gh_repo = "inspec-gcp" @@ -8,78 +8,78 @@ gh_repo = "inspec-gcp" [menu.inspec] -title = "google_dataproc_project_region_jobs" -identifier = "inspec/resources/gcp/google_dataproc_project_region_jobs Resource" +title = "google_dataproc_jobs" +identifier = "inspec/resources/gcp/google_dataproc_jobs Resource" parent = "inspec/resources/gcp" +++ -Use the `google_dataproc_project_region_jobs` InSpec audit resource to test the properties of a test a Google ProjectRegionJob. +Use the `google_dataproc_jobs` InSpec audit resource to test the properties of a test a Google Job. ## Installation {{% inspec_gcp_install %}} ## Syntax -A `google_dataproc_project_region_jobs` is used to test a Google ProjectRegionJob resource +A `google_dataproc_jobs` is used to test a Google Job resource ## Examples ``` - describe google_dataproc_project_region_jobs() do + describe google_dataproc_jobs() do it { should exist } end ``` ## Parameters -Properties that can be accessed from the `google_dataproc_project_region_jobs` resource: +Properties that can be accessed from the `google_dataproc_jobs` resource: -See [google_dataproc_project_region_job.md](google_dataproc_project_region_job.md) for more detailed information -* `references`: an array of `google_dataproc_project_region_job` reference -* `placements`: an array of `google_dataproc_project_region_job` placement -* `hadoop_jobs`: an array of `google_dataproc_project_region_job` hadoop_job -* `spark_jobs`: an array of `google_dataproc_project_region_job` spark_job -* `pyspark_jobs`: an array of `google_dataproc_project_region_job` pyspark_job -* `hive_jobs`: an array of `google_dataproc_project_region_job` hive_job -* `pig_jobs`: an array of `google_dataproc_project_region_job` pig_job -* `spark_r_jobs`: an array of `google_dataproc_project_region_job` spark_r_job -* `spark_sql_jobs`: an array of `google_dataproc_project_region_job` spark_sql_job -* `presto_jobs`: an array of `google_dataproc_project_region_job` presto_job -* `trino_jobs`: an array of `google_dataproc_project_region_job` trino_job -* `flink_jobs`: an array of `google_dataproc_project_region_job` flink_job -* `statuses`: an array of `google_dataproc_project_region_job` status -* `status_histories`: an array of `google_dataproc_project_region_job` status_history -* `yarn_applications`: an array of `google_dataproc_project_region_job` yarn_applications -* `driver_output_resource_uris`: an array of `google_dataproc_project_region_job` driver_output_resource_uri -* `driver_control_files_uris`: an array of `google_dataproc_project_region_job` driver_control_files_uri -* `labels`: an array of `google_dataproc_project_region_job` labels -* `schedulings`: an array of `google_dataproc_project_region_job` scheduling -* `job_uuids`: an array of `google_dataproc_project_region_job` job_uuid -* `dones`: an array of `google_dataproc_project_region_job` done -* `driver_scheduling_configs`: an array of `google_dataproc_project_region_job` driver_scheduling_config +See [google_dataproc_job.md](google_dataproc_job.md) for more detailed information +* `references`: an array of `google_dataproc_job` reference +* `placements`: an array of `google_dataproc_job` placement +* `hadoop_jobs`: an array of `google_dataproc_job` hadoop_job +* `spark_jobs`: an array of `google_dataproc_job` spark_job +* `pyspark_jobs`: an array of `google_dataproc_job` pyspark_job +* `hive_jobs`: an array of `google_dataproc_job` hive_job +* `pig_jobs`: an array of `google_dataproc_job` pig_job +* `spark_r_jobs`: an array of `google_dataproc_job` spark_r_job +* `spark_sql_jobs`: an array of `google_dataproc_job` spark_sql_job +* `presto_jobs`: an array of `google_dataproc_job` presto_job +* `trino_jobs`: an array of `google_dataproc_job` trino_job +* `flink_jobs`: an array of `google_dataproc_job` flink_job +* `statuses`: an array of `google_dataproc_job` status +* `status_histories`: an array of `google_dataproc_job` status_history +* `yarn_applications`: an array of `google_dataproc_job` yarn_applications +* `driver_output_resource_uris`: an array of `google_dataproc_job` driver_output_resource_uri +* `driver_control_files_uris`: an array of `google_dataproc_job` driver_control_files_uri +* `labels`: an array of `google_dataproc_job` labels +* `schedulings`: an array of `google_dataproc_job` scheduling +* `job_uuids`: an array of `google_dataproc_job` job_uuid +* `dones`: an array of `google_dataproc_job` done +* `driver_scheduling_configs`: an array of `google_dataproc_job` driver_scheduling_config ## Properties -Properties that can be accessed from the `google_dataproc_project_region_jobs` resource: +Properties that can be accessed from the `google_dataproc_jobs` resource: -See [google_dataproc_project_region_job.md](google_dataproc_project_region_job.md) for more detailed information -* `references`: an array of `google_dataproc_project_region_job` reference -* `placements`: an array of `google_dataproc_project_region_job` placement -* `hadoop_jobs`: an array of `google_dataproc_project_region_job` hadoop_job -* `spark_jobs`: an array of `google_dataproc_project_region_job` spark_job -* `pyspark_jobs`: an array of `google_dataproc_project_region_job` pyspark_job -* `hive_jobs`: an array of `google_dataproc_project_region_job` hive_job -* `pig_jobs`: an array of `google_dataproc_project_region_job` pig_job -* `spark_r_jobs`: an array of `google_dataproc_project_region_job` spark_r_job -* `spark_sql_jobs`: an array of `google_dataproc_project_region_job` spark_sql_job -* `presto_jobs`: an array of `google_dataproc_project_region_job` presto_job -* `trino_jobs`: an array of `google_dataproc_project_region_job` trino_job -* `flink_jobs`: an array of `google_dataproc_project_region_job` flink_job -* `statuses`: an array of `google_dataproc_project_region_job` status -* `status_histories`: an array of `google_dataproc_project_region_job` status_history -* `yarn_applications`: an array of `google_dataproc_project_region_job` yarn_applications -* `driver_output_resource_uris`: an array of `google_dataproc_project_region_job` driver_output_resource_uri -* `driver_control_files_uris`: an array of `google_dataproc_project_region_job` driver_control_files_uri -* `labels`: an array of `google_dataproc_project_region_job` labels -* `schedulings`: an array of `google_dataproc_project_region_job` scheduling -* `job_uuids`: an array of `google_dataproc_project_region_job` job_uuid -* `dones`: an array of `google_dataproc_project_region_job` done -* `driver_scheduling_configs`: an array of `google_dataproc_project_region_job` driver_scheduling_config +See [google_dataproc_job.md](google_dataproc_job.md) for more detailed information +* `references`: an array of `google_dataproc_job` reference +* `placements`: an array of `google_dataproc_job` placement +* `hadoop_jobs`: an array of `google_dataproc_job` hadoop_job +* `spark_jobs`: an array of `google_dataproc_job` spark_job +* `pyspark_jobs`: an array of `google_dataproc_job` pyspark_job +* `hive_jobs`: an array of `google_dataproc_job` hive_job +* `pig_jobs`: an array of `google_dataproc_job` pig_job +* `spark_r_jobs`: an array of `google_dataproc_job` spark_r_job +* `spark_sql_jobs`: an array of `google_dataproc_job` spark_sql_job +* `presto_jobs`: an array of `google_dataproc_job` presto_job +* `trino_jobs`: an array of `google_dataproc_job` trino_job +* `flink_jobs`: an array of `google_dataproc_job` flink_job +* `statuses`: an array of `google_dataproc_job` status +* `status_histories`: an array of `google_dataproc_job` status_history +* `yarn_applications`: an array of `google_dataproc_job` yarn_applications +* `driver_output_resource_uris`: an array of `google_dataproc_job` driver_output_resource_uri +* `driver_control_files_uris`: an array of `google_dataproc_job` driver_control_files_uri +* `labels`: an array of `google_dataproc_job` labels +* `schedulings`: an array of `google_dataproc_job` scheduling +* `job_uuids`: an array of `google_dataproc_job` job_uuid +* `dones`: an array of `google_dataproc_job` done +* `driver_scheduling_configs`: an array of `google_dataproc_job` driver_scheduling_config ## Filter Criteria This resource supports all of the above properties as filter criteria, which can be used diff --git a/libraries/google/dataproc/property/projectregionjob_driver_scheduling_config.rb b/libraries/google/dataproc/property/job_driver_scheduling_config.rb similarity index 89% rename from libraries/google/dataproc/property/projectregionjob_driver_scheduling_config.rb rename to libraries/google/dataproc/property/job_driver_scheduling_config.rb index f61272e8..52070eb1 100644 --- a/libraries/google/dataproc/property/projectregionjob_driver_scheduling_config.rb +++ b/libraries/google/dataproc/property/job_driver_scheduling_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobDriverSchedulingConfig + class JobDriverSchedulingConfig attr_reader :memory_mb attr_reader :vcores @@ -29,7 +29,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobDriverSchedulingConfig" + "#{@parent_identifier} JobDriverSchedulingConfig" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_flink_job.rb b/libraries/google/dataproc/property/job_flink_job.rb similarity index 69% rename from libraries/google/dataproc/property/projectregionjob_flink_job.rb rename to libraries/google/dataproc/property/job_flink_job.rb index 4a32065d..13cf220a 100644 --- a/libraries/google/dataproc/property/projectregionjob_flink_job.rb +++ b/libraries/google/dataproc/property/job_flink_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_flink_job_logging_config' -require 'google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_flink_job_properties' +require 'google/dataproc/property/job_flink_job_logging_config' +require 'google/dataproc/property/job_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_flink_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobFlinkJob + class JobFlinkJob attr_reader :main_jar_file_uri attr_reader :main_class @@ -42,12 +42,12 @@ def initialize(args = nil, parent_identifier = nil) @args = args['args'] @jar_file_uris = args['jarFileUris'] @savepoint_uri = args['savepointUri'] - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobFlinkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::JobFlinkJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobFlinkJob" + "#{@parent_identifier} JobFlinkJob" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config.rb b/libraries/google/dataproc/property/job_flink_job_logging_config.rb similarity index 76% rename from libraries/google/dataproc/property/projectregionjob_pig_job_logging_config.rb rename to libraries/google/dataproc/property/job_flink_job_logging_config.rb index 9c321d27..25889e25 100644 --- a/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config.rb +++ b/libraries/google/dataproc/property/job_flink_job_logging_config.rb @@ -13,21 +13,21 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_flink_job_logging_config_driver_log_levels' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobPigJobLoggingConfig + class JobFlinkJobLoggingConfig attr_reader :driver_log_levels def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + @driver_log_levels = GoogleInSpec::Dataproc::Property::JobFlinkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobPigJobLoggingConfig" + "#{@parent_identifier} JobFlinkJobLoggingConfig" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_hive_job_script_variables.rb b/libraries/google/dataproc/property/job_flink_job_logging_config_driver_log_levels.rb similarity index 88% rename from libraries/google/dataproc/property/projectregionjob_hive_job_script_variables.rb rename to libraries/google/dataproc/property/job_flink_job_logging_config_driver_log_levels.rb index 2f8a0893..205e1ac8 100644 --- a/libraries/google/dataproc/property/projectregionjob_hive_job_script_variables.rb +++ b/libraries/google/dataproc/property/job_flink_job_logging_config_driver_log_levels.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobHiveJobScriptVariables + class JobFlinkJobLoggingConfigDriverLogLevels attr_reader :additional_properties def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobHiveJobScriptVariables" + "#{@parent_identifier} JobFlinkJobLoggingConfigDriverLogLevels" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_labels.rb b/libraries/google/dataproc/property/job_flink_job_properties.rb similarity index 91% rename from libraries/google/dataproc/property/projectregionjob_labels.rb rename to libraries/google/dataproc/property/job_flink_job_properties.rb index 99f87c98..6dfd1ef7 100644 --- a/libraries/google/dataproc/property/projectregionjob_labels.rb +++ b/libraries/google/dataproc/property/job_flink_job_properties.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobLabels + class JobFlinkJobProperties attr_reader :additional_properties def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobLabels" + "#{@parent_identifier} JobFlinkJobProperties" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_job.rb b/libraries/google/dataproc/property/job_hadoop_job.rb similarity index 70% rename from libraries/google/dataproc/property/projectregionjob_spark_job.rb rename to libraries/google/dataproc/property/job_hadoop_job.rb index 74756489..38074065 100644 --- a/libraries/google/dataproc/property/projectregionjob_spark_job.rb +++ b/libraries/google/dataproc/property/job_hadoop_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_spark_job_logging_config' -require 'google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_spark_job_properties' +require 'google/dataproc/property/job_hadoop_job_logging_config' +require 'google/dataproc/property/job_hadoop_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_hadoop_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobSparkJob + class JobHadoopJob attr_reader :main_jar_file_uri attr_reader :main_class @@ -45,12 +45,12 @@ def initialize(args = nil, parent_identifier = nil) @jar_file_uris = args['jarFileUris'] @file_uris = args['fileUris'] @archive_uris = args['archiveUris'] - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobHadoopJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::JobHadoopJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobSparkJob" + "#{@parent_identifier} JobHadoopJob" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config.rb b/libraries/google/dataproc/property/job_hadoop_job_logging_config.rb similarity index 76% rename from libraries/google/dataproc/property/projectregionjob_spark_job_logging_config.rb rename to libraries/google/dataproc/property/job_hadoop_job_logging_config.rb index 73324ca2..2b73f343 100644 --- a/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config.rb +++ b/libraries/google/dataproc/property/job_hadoop_job_logging_config.rb @@ -13,21 +13,21 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_hadoop_job_logging_config_driver_log_levels' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobSparkJobLoggingConfig + class JobHadoopJobLoggingConfig attr_reader :driver_log_levels def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + @driver_log_levels = GoogleInSpec::Dataproc::Property::JobHadoopJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobSparkJobLoggingConfig" + "#{@parent_identifier} JobHadoopJobLoggingConfig" end end end diff --git a/libraries/google/dataproc/property/job_hadoop_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/job_hadoop_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..f915d1e6 --- /dev/null +++ b/libraries/google/dataproc/property/job_hadoop_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobHadoopJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobHadoopJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_properties.rb b/libraries/google/dataproc/property/job_hadoop_job_properties.rb similarity index 89% rename from libraries/google/dataproc/property/projectregionjob_pig_job_properties.rb rename to libraries/google/dataproc/property/job_hadoop_job_properties.rb index 1251387d..8df86db9 100644 --- a/libraries/google/dataproc/property/projectregionjob_pig_job_properties.rb +++ b/libraries/google/dataproc/property/job_hadoop_job_properties.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobPigJobProperties + class JobHadoopJobProperties attr_reader :additional_properties def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobPigJobProperties" + "#{@parent_identifier} JobHadoopJobProperties" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_hive_job.rb b/libraries/google/dataproc/property/job_hive_job.rb similarity index 67% rename from libraries/google/dataproc/property/projectregionjob_hive_job.rb rename to libraries/google/dataproc/property/job_hive_job.rb index ead86495..6ce2449f 100644 --- a/libraries/google/dataproc/property/projectregionjob_hive_job.rb +++ b/libraries/google/dataproc/property/job_hive_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_hive_job_properties' -require 'google/dataproc/property/projectregionjob_hive_job_query_list' -require 'google/dataproc/property/projectregionjob_hive_job_script_variables' +require 'google/dataproc/property/job_hive_job_properties' +require 'google/dataproc/property/job_hive_job_query_list' +require 'google/dataproc/property/job_hive_job_script_variables' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobHiveJob + class JobHiveJob attr_reader :query_file_uri attr_reader :query_list @@ -36,15 +36,15 @@ def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier @query_file_uri = args['queryFileUri'] - @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJobQueryList.new(args['queryList'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::JobHiveJobQueryList.new(args['queryList'], to_s) @continue_on_failure = args['continueOnFailure'] - @script_variables = GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJobScriptVariables.new(args['scriptVariables'], to_s) - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJobProperties.new(args['properties'], to_s) + @script_variables = GoogleInSpec::Dataproc::Property::JobHiveJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobHiveJobProperties.new(args['properties'], to_s) @jar_file_uris = args['jarFileUris'] end def to_s - "#{@parent_identifier} ProjectRegionJobHiveJob" + "#{@parent_identifier} JobHiveJob" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_hive_job_properties.rb b/libraries/google/dataproc/property/job_hive_job_properties.rb similarity index 89% rename from libraries/google/dataproc/property/projectregionjob_hive_job_properties.rb rename to libraries/google/dataproc/property/job_hive_job_properties.rb index a3d8fb8d..c3446bd4 100644 --- a/libraries/google/dataproc/property/projectregionjob_hive_job_properties.rb +++ b/libraries/google/dataproc/property/job_hive_job_properties.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobHiveJobProperties + class JobHiveJobProperties attr_reader :additional_properties def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobHiveJobProperties" + "#{@parent_identifier} JobHiveJobProperties" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_query_list.rb b/libraries/google/dataproc/property/job_hive_job_query_list.rb similarity index 89% rename from libraries/google/dataproc/property/projectregionjob_pig_job_query_list.rb rename to libraries/google/dataproc/property/job_hive_job_query_list.rb index cc93fbb9..b642ffbe 100644 --- a/libraries/google/dataproc/property/projectregionjob_pig_job_query_list.rb +++ b/libraries/google/dataproc/property/job_hive_job_query_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobPigJobQueryList + class JobHiveJobQueryList attr_reader :queries def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobPigJobQueryList" + "#{@parent_identifier} JobHiveJobQueryList" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_flink_job_properties.rb b/libraries/google/dataproc/property/job_hive_job_script_variables.rb similarity index 89% rename from libraries/google/dataproc/property/projectregionjob_flink_job_properties.rb rename to libraries/google/dataproc/property/job_hive_job_script_variables.rb index 032753c6..ad56d792 100644 --- a/libraries/google/dataproc/property/projectregionjob_flink_job_properties.rb +++ b/libraries/google/dataproc/property/job_hive_job_script_variables.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobFlinkJobProperties + class JobHiveJobScriptVariables attr_reader :additional_properties def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobFlinkJobProperties" + "#{@parent_identifier} JobHiveJobScriptVariables" end end end diff --git a/libraries/google/dataproc/property/job_labels.rb b/libraries/google/dataproc/property/job_labels.rb new file mode 100644 index 00000000..24747573 --- /dev/null +++ b/libraries/google/dataproc/property/job_labels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobLabels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job.rb b/libraries/google/dataproc/property/job_pig_job.rb similarity index 59% rename from libraries/google/dataproc/property/projectregionjob_pig_job.rb rename to libraries/google/dataproc/property/job_pig_job.rb index e06776ac..faeaa2a7 100644 --- a/libraries/google/dataproc/property/projectregionjob_pig_job.rb +++ b/libraries/google/dataproc/property/job_pig_job.rb @@ -13,15 +13,15 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_pig_job_logging_config' -require 'google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_pig_job_properties' -require 'google/dataproc/property/projectregionjob_pig_job_query_list' -require 'google/dataproc/property/projectregionjob_pig_job_script_variables' +require 'google/dataproc/property/job_pig_job_logging_config' +require 'google/dataproc/property/job_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_pig_job_properties' +require 'google/dataproc/property/job_pig_job_query_list' +require 'google/dataproc/property/job_pig_job_script_variables' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobPigJob + class JobPigJob attr_reader :query_file_uri attr_reader :query_list @@ -40,16 +40,16 @@ def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier @query_file_uri = args['queryFileUri'] - @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobQueryList.new(args['queryList'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::JobPigJobQueryList.new(args['queryList'], to_s) @continue_on_failure = args['continueOnFailure'] - @script_variables = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobScriptVariables.new(args['scriptVariables'], to_s) - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobProperties.new(args['properties'], to_s) + @script_variables = GoogleInSpec::Dataproc::Property::JobPigJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobPigJobProperties.new(args['properties'], to_s) @jar_file_uris = args['jarFileUris'] - @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJobLoggingConfig.new(args['loggingConfig'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::JobPigJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobPigJob" + "#{@parent_identifier} JobPigJob" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config.rb b/libraries/google/dataproc/property/job_pig_job_logging_config.rb similarity index 76% rename from libraries/google/dataproc/property/projectregionjob_flink_job_logging_config.rb rename to libraries/google/dataproc/property/job_pig_job_logging_config.rb index c4e2a9e5..5f411148 100644 --- a/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config.rb +++ b/libraries/google/dataproc/property/job_pig_job_logging_config.rb @@ -13,21 +13,21 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_pig_job_logging_config_driver_log_levels' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobFlinkJobLoggingConfig + class JobPigJobLoggingConfig attr_reader :driver_log_levels def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + @driver_log_levels = GoogleInSpec::Dataproc::Property::JobPigJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobFlinkJobLoggingConfig" + "#{@parent_identifier} JobPigJobLoggingConfig" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_hadoop_job_properties.rb b/libraries/google/dataproc/property/job_pig_job_logging_config_driver_log_levels.rb similarity index 88% rename from libraries/google/dataproc/property/projectregionjob_hadoop_job_properties.rb rename to libraries/google/dataproc/property/job_pig_job_logging_config_driver_log_levels.rb index 9e45d54c..12ce285a 100644 --- a/libraries/google/dataproc/property/projectregionjob_hadoop_job_properties.rb +++ b/libraries/google/dataproc/property/job_pig_job_logging_config_driver_log_levels.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobHadoopJobProperties + class JobPigJobLoggingConfigDriverLogLevels attr_reader :additional_properties def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobHadoopJobProperties" + "#{@parent_identifier} JobPigJobLoggingConfigDriverLogLevels" end end end diff --git a/libraries/google/dataproc/property/job_pig_job_properties.rb b/libraries/google/dataproc/property/job_pig_job_properties.rb new file mode 100644 index 00000000..4d59dc8a --- /dev/null +++ b/libraries/google/dataproc/property/job_pig_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobPigJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobPigJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_hive_job_query_list.rb b/libraries/google/dataproc/property/job_pig_job_query_list.rb similarity index 89% rename from libraries/google/dataproc/property/projectregionjob_hive_job_query_list.rb rename to libraries/google/dataproc/property/job_pig_job_query_list.rb index 4b6682c9..3664420e 100644 --- a/libraries/google/dataproc/property/projectregionjob_hive_job_query_list.rb +++ b/libraries/google/dataproc/property/job_pig_job_query_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobHiveJobQueryList + class JobPigJobQueryList attr_reader :queries def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobHiveJobQueryList" + "#{@parent_identifier} JobPigJobQueryList" end end end diff --git a/libraries/google/dataproc/property/job_pig_job_script_variables.rb b/libraries/google/dataproc/property/job_pig_job_script_variables.rb new file mode 100644 index 00000000..54520a23 --- /dev/null +++ b/libraries/google/dataproc/property/job_pig_job_script_variables.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobPigJobScriptVariables + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobPigJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_placement.rb b/libraries/google/dataproc/property/job_placement.rb similarity index 77% rename from libraries/google/dataproc/property/projectregionjob_placement.rb rename to libraries/google/dataproc/property/job_placement.rb index 289207ea..7bd85ee2 100644 --- a/libraries/google/dataproc/property/projectregionjob_placement.rb +++ b/libraries/google/dataproc/property/job_placement.rb @@ -13,11 +13,11 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_placement_cluster_labels' +require 'google/dataproc/property/job_placement_cluster_labels' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobPlacement + class JobPlacement attr_reader :cluster_name attr_reader :cluster_uuid @@ -29,11 +29,11 @@ def initialize(args = nil, parent_identifier = nil) @parent_identifier = parent_identifier @cluster_name = args['clusterName'] @cluster_uuid = args['clusterUuid'] - @cluster_labels = GoogleInSpec::Dataproc::Property::ProjectRegionJobPlacementClusterLabels.new(args['clusterLabels'], to_s) + @cluster_labels = GoogleInSpec::Dataproc::Property::JobPlacementClusterLabels.new(args['clusterLabels'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobPlacement" + "#{@parent_identifier} JobPlacement" end end end diff --git a/libraries/google/dataproc/property/job_placement_cluster_labels.rb b/libraries/google/dataproc/property/job_placement_cluster_labels.rb new file mode 100644 index 00000000..64f9033b --- /dev/null +++ b/libraries/google/dataproc/property/job_placement_cluster_labels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobPlacementClusterLabels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobPlacementClusterLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job.rb b/libraries/google/dataproc/property/job_presto_job.rb similarity index 62% rename from libraries/google/dataproc/property/projectregionjob_trino_job.rb rename to libraries/google/dataproc/property/job_presto_job.rb index f377c806..e87b3ec8 100644 --- a/libraries/google/dataproc/property/projectregionjob_trino_job.rb +++ b/libraries/google/dataproc/property/job_presto_job.rb @@ -13,14 +13,14 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_trino_job_logging_config' -require 'google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_trino_job_properties' -require 'google/dataproc/property/projectregionjob_trino_job_query_list' +require 'google/dataproc/property/job_presto_job_logging_config' +require 'google/dataproc/property/job_presto_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_presto_job_properties' +require 'google/dataproc/property/job_presto_job_query_list' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobTrinoJob + class JobPrestoJob attr_reader :query_file_uri attr_reader :query_list @@ -39,16 +39,16 @@ def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier @query_file_uri = args['queryFileUri'] - @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJobQueryList.new(args['queryList'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::JobPrestoJobQueryList.new(args['queryList'], to_s) @continue_on_failure = args['continueOnFailure'] @output_format = args['outputFormat'] @client_tags = args['clientTags'] - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobPrestoJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::JobPrestoJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobTrinoJob" + "#{@parent_identifier} JobPrestoJob" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config.rb b/libraries/google/dataproc/property/job_presto_job_logging_config.rb similarity index 76% rename from libraries/google/dataproc/property/projectregionjob_trino_job_logging_config.rb rename to libraries/google/dataproc/property/job_presto_job_logging_config.rb index 40eb64e1..b841c928 100644 --- a/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config.rb +++ b/libraries/google/dataproc/property/job_presto_job_logging_config.rb @@ -13,21 +13,21 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_presto_job_logging_config_driver_log_levels' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobTrinoJobLoggingConfig + class JobPrestoJobLoggingConfig attr_reader :driver_log_levels def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + @driver_log_levels = GoogleInSpec::Dataproc::Property::JobPrestoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobTrinoJobLoggingConfig" + "#{@parent_identifier} JobPrestoJobLoggingConfig" end end end diff --git a/libraries/google/dataproc/property/job_presto_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/job_presto_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..2679e8bd --- /dev/null +++ b/libraries/google/dataproc/property/job_presto_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobPrestoJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobPrestoJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_presto_job_properties.rb b/libraries/google/dataproc/property/job_presto_job_properties.rb new file mode 100644 index 00000000..b44788ca --- /dev/null +++ b/libraries/google/dataproc/property/job_presto_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobPrestoJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobPrestoJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job_query_list.rb b/libraries/google/dataproc/property/job_presto_job_query_list.rb similarity index 89% rename from libraries/google/dataproc/property/projectregionjob_trino_job_query_list.rb rename to libraries/google/dataproc/property/job_presto_job_query_list.rb index e6c286f5..e18160e7 100644 --- a/libraries/google/dataproc/property/projectregionjob_trino_job_query_list.rb +++ b/libraries/google/dataproc/property/job_presto_job_query_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobTrinoJobQueryList + class JobPrestoJobQueryList attr_reader :queries def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobTrinoJobQueryList" + "#{@parent_identifier} JobPrestoJobQueryList" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_pyspark_job.rb b/libraries/google/dataproc/property/job_pyspark_job.rb similarity index 70% rename from libraries/google/dataproc/property/projectregionjob_pyspark_job.rb rename to libraries/google/dataproc/property/job_pyspark_job.rb index fc676f47..e8e32715 100644 --- a/libraries/google/dataproc/property/projectregionjob_pyspark_job.rb +++ b/libraries/google/dataproc/property/job_pyspark_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config' -require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_pyspark_job_properties' +require 'google/dataproc/property/job_pyspark_job_logging_config' +require 'google/dataproc/property/job_pyspark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_pyspark_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobPysparkJob + class JobPysparkJob attr_reader :main_python_file_uri attr_reader :args @@ -45,12 +45,12 @@ def initialize(args = nil, parent_identifier = nil) @jar_file_uris = args['jarFileUris'] @file_uris = args['fileUris'] @archive_uris = args['archiveUris'] - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobPysparkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::JobPysparkJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobPysparkJob" + "#{@parent_identifier} JobPysparkJob" end end end diff --git a/libraries/google/dataproc/property/job_pyspark_job_logging_config.rb b/libraries/google/dataproc/property/job_pyspark_job_logging_config.rb new file mode 100644 index 00000000..41632318 --- /dev/null +++ b/libraries/google/dataproc/property/job_pyspark_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/job_pyspark_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class JobPysparkJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::JobPysparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} JobPysparkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_pyspark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/job_pyspark_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..07cd17f1 --- /dev/null +++ b/libraries/google/dataproc/property/job_pyspark_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobPysparkJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobPysparkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_pyspark_job_properties.rb b/libraries/google/dataproc/property/job_pyspark_job_properties.rb new file mode 100644 index 00000000..d1ed6518 --- /dev/null +++ b/libraries/google/dataproc/property/job_pyspark_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobPysparkJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobPysparkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_reference.rb b/libraries/google/dataproc/property/job_reference.rb similarity index 91% rename from libraries/google/dataproc/property/projectregionjob_reference.rb rename to libraries/google/dataproc/property/job_reference.rb index a2e09e4f..9d5b0fcc 100644 --- a/libraries/google/dataproc/property/projectregionjob_reference.rb +++ b/libraries/google/dataproc/property/job_reference.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobReference + class JobReference attr_reader :project_id attr_reader :job_id @@ -29,7 +29,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobReference" + "#{@parent_identifier} JobReference" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_scheduling.rb b/libraries/google/dataproc/property/job_scheduling.rb similarity index 91% rename from libraries/google/dataproc/property/projectregionjob_scheduling.rb rename to libraries/google/dataproc/property/job_scheduling.rb index b7bf7e5f..3cd91c03 100644 --- a/libraries/google/dataproc/property/projectregionjob_scheduling.rb +++ b/libraries/google/dataproc/property/job_scheduling.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobScheduling + class JobScheduling attr_reader :max_failures_per_hour attr_reader :max_failures_total @@ -29,7 +29,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobScheduling" + "#{@parent_identifier} JobScheduling" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_hadoop_job.rb b/libraries/google/dataproc/property/job_spark_job.rb similarity index 69% rename from libraries/google/dataproc/property/projectregionjob_hadoop_job.rb rename to libraries/google/dataproc/property/job_spark_job.rb index a4723a0a..5e2beb1d 100644 --- a/libraries/google/dataproc/property/projectregionjob_hadoop_job.rb +++ b/libraries/google/dataproc/property/job_spark_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config' -require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_hadoop_job_properties' +require 'google/dataproc/property/job_spark_job_logging_config' +require 'google/dataproc/property/job_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_spark_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobHadoopJob + class JobSparkJob attr_reader :main_jar_file_uri attr_reader :main_class @@ -45,12 +45,12 @@ def initialize(args = nil, parent_identifier = nil) @jar_file_uris = args['jarFileUris'] @file_uris = args['fileUris'] @archive_uris = args['archiveUris'] - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobSparkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::JobSparkJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobHadoopJob" + "#{@parent_identifier} JobSparkJob" end end end diff --git a/libraries/google/dataproc/property/job_spark_job_logging_config.rb b/libraries/google/dataproc/property/job_spark_job_logging_config.rb new file mode 100644 index 00000000..16cf2fe9 --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/job_spark_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class JobSparkJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::JobSparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} JobSparkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_spark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/job_spark_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..6d8539e1 --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobSparkJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobSparkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_spark_job_properties.rb b/libraries/google/dataproc/property/job_spark_job_properties.rb new file mode 100644 index 00000000..118d01be --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobSparkJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobSparkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_r_job.rb b/libraries/google/dataproc/property/job_spark_r_job.rb similarity index 67% rename from libraries/google/dataproc/property/projectregionjob_spark_r_job.rb rename to libraries/google/dataproc/property/job_spark_r_job.rb index b6ba40dc..a2ccf055 100644 --- a/libraries/google/dataproc/property/projectregionjob_spark_r_job.rb +++ b/libraries/google/dataproc/property/job_spark_r_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config' -require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_spark_r_job_properties' +require 'google/dataproc/property/job_spark_r_job_logging_config' +require 'google/dataproc/property/job_spark_r_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_spark_r_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobSparkRJob + class JobSparkRJob attr_reader :main_r_file_uri attr_reader :args @@ -39,12 +39,12 @@ def initialize(args = nil, parent_identifier = nil) @args = args['args'] @file_uris = args['fileUris'] @archive_uris = args['archiveUris'] - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobSparkRJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::JobSparkRJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobSparkRJob" + "#{@parent_identifier} JobSparkRJob" end end end diff --git a/libraries/google/dataproc/property/job_spark_r_job_logging_config.rb b/libraries/google/dataproc/property/job_spark_r_job_logging_config.rb new file mode 100644 index 00000000..860e20cc --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_r_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/job_spark_r_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class JobSparkRJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::JobSparkRJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} JobSparkRJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_spark_r_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/job_spark_r_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..2d369e7e --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_r_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobSparkRJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobSparkRJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_spark_r_job_properties.rb b/libraries/google/dataproc/property/job_spark_r_job_properties.rb new file mode 100644 index 00000000..b723af8f --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_r_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobSparkRJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobSparkRJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job.rb b/libraries/google/dataproc/property/job_spark_sql_job.rb similarity index 55% rename from libraries/google/dataproc/property/projectregionjob_spark_sql_job.rb rename to libraries/google/dataproc/property/job_spark_sql_job.rb index 0279e920..794eb320 100644 --- a/libraries/google/dataproc/property/projectregionjob_spark_sql_job.rb +++ b/libraries/google/dataproc/property/job_spark_sql_job.rb @@ -13,15 +13,15 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config' -require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_spark_sql_job_properties' -require 'google/dataproc/property/projectregionjob_spark_sql_job_query_list' -require 'google/dataproc/property/projectregionjob_spark_sql_job_script_variables' +require 'google/dataproc/property/job_spark_sql_job_logging_config' +require 'google/dataproc/property/job_spark_sql_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_spark_sql_job_properties' +require 'google/dataproc/property/job_spark_sql_job_query_list' +require 'google/dataproc/property/job_spark_sql_job_script_variables' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobSparkSqlJob + class JobSparkSqlJob attr_reader :query_file_uri attr_reader :query_list @@ -38,15 +38,15 @@ def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier @query_file_uri = args['queryFileUri'] - @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobQueryList.new(args['queryList'], to_s) - @script_variables = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobScriptVariables.new(args['scriptVariables'], to_s) - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobProperties.new(args['properties'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::JobSparkSqlJobQueryList.new(args['queryList'], to_s) + @script_variables = GoogleInSpec::Dataproc::Property::JobSparkSqlJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobSparkSqlJobProperties.new(args['properties'], to_s) @jar_file_uris = args['jarFileUris'] - @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobLoggingConfig.new(args['loggingConfig'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::JobSparkSqlJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobSparkSqlJob" + "#{@parent_identifier} JobSparkSqlJob" end end end diff --git a/libraries/google/dataproc/property/job_spark_sql_job_logging_config.rb b/libraries/google/dataproc/property/job_spark_sql_job_logging_config.rb new file mode 100644 index 00000000..51677f17 --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_sql_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/job_spark_sql_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class JobSparkSqlJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::JobSparkSqlJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} JobSparkSqlJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_spark_sql_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/job_spark_sql_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..1df0279f --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_sql_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobSparkSqlJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobSparkSqlJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_spark_sql_job_properties.rb b/libraries/google/dataproc/property/job_spark_sql_job_properties.rb new file mode 100644 index 00000000..03f0e129 --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_sql_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobSparkSqlJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobSparkSqlJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job_query_list.rb b/libraries/google/dataproc/property/job_spark_sql_job_query_list.rb similarity index 88% rename from libraries/google/dataproc/property/projectregionjob_presto_job_query_list.rb rename to libraries/google/dataproc/property/job_spark_sql_job_query_list.rb index 7923fe43..82e7fdae 100644 --- a/libraries/google/dataproc/property/projectregionjob_presto_job_query_list.rb +++ b/libraries/google/dataproc/property/job_spark_sql_job_query_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobPrestoJobQueryList + class JobSparkSqlJobQueryList attr_reader :queries def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobPrestoJobQueryList" + "#{@parent_identifier} JobSparkSqlJobQueryList" end end end diff --git a/libraries/google/dataproc/property/job_spark_sql_job_script_variables.rb b/libraries/google/dataproc/property/job_spark_sql_job_script_variables.rb new file mode 100644 index 00000000..83f0fc20 --- /dev/null +++ b/libraries/google/dataproc/property/job_spark_sql_job_script_variables.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobSparkSqlJobScriptVariables + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobSparkSqlJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_status.rb b/libraries/google/dataproc/property/job_status.rb similarity index 92% rename from libraries/google/dataproc/property/projectregionjob_status.rb rename to libraries/google/dataproc/property/job_status.rb index 9d5bec04..a50e0bf6 100644 --- a/libraries/google/dataproc/property/projectregionjob_status.rb +++ b/libraries/google/dataproc/property/job_status.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobStatus + class JobStatus attr_reader :state attr_reader :details @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobStatus" + "#{@parent_identifier} JobStatus" end end end diff --git a/libraries/google/dataproc/property/projectregionjob_status_history.rb b/libraries/google/dataproc/property/job_status_history.rb similarity index 78% rename from libraries/google/dataproc/property/projectregionjob_status_history.rb rename to libraries/google/dataproc/property/job_status_history.rb index bb4f5c54..2d87cdc8 100644 --- a/libraries/google/dataproc/property/projectregionjob_status_history.rb +++ b/libraries/google/dataproc/property/job_status_history.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobStatusHistory + class JobStatusHistory attr_reader :state attr_reader :details @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobStatusHistory" + "#{@parent_identifier} JobStatusHistory" end end - class ProjectRegionJobStatusHistoryArray + class JobStatusHistoryArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectRegionJobStatusHistory.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectRegionJobStatusHistory.new(v, parent_identifier) } + return JobStatusHistory.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| JobStatusHistory.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job.rb b/libraries/google/dataproc/property/job_trino_job.rb similarity index 62% rename from libraries/google/dataproc/property/projectregionjob_presto_job.rb rename to libraries/google/dataproc/property/job_trino_job.rb index 675b1837..9c2e0699 100644 --- a/libraries/google/dataproc/property/projectregionjob_presto_job.rb +++ b/libraries/google/dataproc/property/job_trino_job.rb @@ -13,14 +13,14 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_presto_job_logging_config' -require 'google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_presto_job_properties' -require 'google/dataproc/property/projectregionjob_presto_job_query_list' +require 'google/dataproc/property/job_trino_job_logging_config' +require 'google/dataproc/property/job_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_trino_job_properties' +require 'google/dataproc/property/job_trino_job_query_list' module GoogleInSpec module Dataproc module Property - class ProjectRegionJobPrestoJob + class JobTrinoJob attr_reader :query_file_uri attr_reader :query_list @@ -39,16 +39,16 @@ def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier @query_file_uri = args['queryFileUri'] - @query_list = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJobQueryList.new(args['queryList'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::JobTrinoJobQueryList.new(args['queryList'], to_s) @continue_on_failure = args['continueOnFailure'] @output_format = args['outputFormat'] @client_tags = args['clientTags'] - @properties = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::JobTrinoJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::JobTrinoJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectRegionJobPrestoJob" + "#{@parent_identifier} JobTrinoJob" end end end diff --git a/libraries/google/dataproc/property/job_trino_job_logging_config.rb b/libraries/google/dataproc/property/job_trino_job_logging_config.rb new file mode 100644 index 00000000..c82542a6 --- /dev/null +++ b/libraries/google/dataproc/property/job_trino_job_logging_config.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/job_trino_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class JobTrinoJobLoggingConfig + attr_reader :driver_log_levels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @driver_log_levels = GoogleInSpec::Dataproc::Property::JobTrinoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} JobTrinoJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_trino_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/job_trino_job_logging_config_driver_log_levels.rb new file mode 100644 index 00000000..47f7fb46 --- /dev/null +++ b/libraries/google/dataproc/property/job_trino_job_logging_config_driver_log_levels.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobTrinoJobLoggingConfigDriverLogLevels + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobTrinoJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_trino_job_properties.rb b/libraries/google/dataproc/property/job_trino_job_properties.rb new file mode 100644 index 00000000..4a4d84c3 --- /dev/null +++ b/libraries/google/dataproc/property/job_trino_job_properties.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobTrinoJobProperties + attr_reader :additional_properties + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @additional_properties = args['additionalProperties'] + end + + def to_s + "#{@parent_identifier} JobTrinoJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/job_trino_job_query_list.rb b/libraries/google/dataproc/property/job_trino_job_query_list.rb new file mode 100644 index 00000000..bde7fe60 --- /dev/null +++ b/libraries/google/dataproc/property/job_trino_job_query_list.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: false + +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This file is automatically generated by Magic Modules and manual +# changes will be clobbered when the file is regenerated. +# +# Please read more about how to change this file in README.md and +# CONTRIBUTING.md located at the root of this package. +# +# ---------------------------------------------------------------------------- +module GoogleInSpec + module Dataproc + module Property + class JobTrinoJobQueryList + attr_reader :queries + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @queries = args['queries'] + end + + def to_s + "#{@parent_identifier} JobTrinoJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectregionjob_yarn_applications.rb b/libraries/google/dataproc/property/job_yarn_applications.rb similarity index 77% rename from libraries/google/dataproc/property/projectregionjob_yarn_applications.rb rename to libraries/google/dataproc/property/job_yarn_applications.rb index 6ca1def2..28c1518a 100644 --- a/libraries/google/dataproc/property/projectregionjob_yarn_applications.rb +++ b/libraries/google/dataproc/property/job_yarn_applications.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectRegionJobYarnApplications + class JobYarnApplications attr_reader :name attr_reader :state @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectRegionJobYarnApplications" + "#{@parent_identifier} JobYarnApplications" end end - class ProjectRegionJobYarnApplicationsArray + class JobYarnApplicationsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectRegionJobYarnApplications.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectRegionJobYarnApplications.new(v, parent_identifier) } + return JobYarnApplications.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| JobYarnApplications.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels.rb deleted file mode 100644 index a2f594f8..00000000 --- a/libraries/google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobFlinkJobLoggingConfigDriverLogLevels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobFlinkJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config.rb deleted file mode 100644 index ad1887a9..00000000 --- a/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobHadoopJobLoggingConfig - attr_reader :driver_log_levels - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectRegionJobHadoopJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 807f9fd4..00000000 --- a/libraries/google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobHadoopJobLoggingConfigDriverLogLevels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobHadoopJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 8168b468..00000000 --- a/libraries/google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobPigJobLoggingConfigDriverLogLevels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobPigJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_pig_job_script_variables.rb b/libraries/google/dataproc/property/projectregionjob_pig_job_script_variables.rb deleted file mode 100644 index 8c762e59..00000000 --- a/libraries/google/dataproc/property/projectregionjob_pig_job_script_variables.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobPigJobScriptVariables - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobPigJobScriptVariables" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_placement_cluster_labels.rb b/libraries/google/dataproc/property/projectregionjob_placement_cluster_labels.rb deleted file mode 100644 index 688e2051..00000000 --- a/libraries/google/dataproc/property/projectregionjob_placement_cluster_labels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobPlacementClusterLabels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobPlacementClusterLabels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config.rb deleted file mode 100644 index 769063b9..00000000 --- a/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobPrestoJobLoggingConfig - attr_reader :driver_log_levels - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectRegionJobPrestoJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 3638a62b..00000000 --- a/libraries/google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobPrestoJobLoggingConfigDriverLogLevels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobPrestoJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_presto_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_presto_job_properties.rb deleted file mode 100644 index c70e9b01..00000000 --- a/libraries/google/dataproc/property/projectregionjob_presto_job_properties.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobPrestoJobProperties - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobPrestoJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config.rb deleted file mode 100644 index c35f5af7..00000000 --- a/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobPysparkJobLoggingConfig - attr_reader :driver_log_levels - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectRegionJobPysparkJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 0599d495..00000000 --- a/libraries/google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobPysparkJobLoggingConfigDriverLogLevels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobPysparkJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_pyspark_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_pyspark_job_properties.rb deleted file mode 100644 index 4a252c78..00000000 --- a/libraries/google/dataproc/property/projectregionjob_pyspark_job_properties.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobPysparkJobProperties - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobPysparkJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 3a78d5c4..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkJobLoggingConfigDriverLogLevels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_spark_job_properties.rb deleted file mode 100644 index 2de8d3fb..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_job_properties.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkJobProperties - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config.rb deleted file mode 100644 index bdda4d6a..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkRJobLoggingConfig - attr_reader :driver_log_levels - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkRJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 093eb84c..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkRJobLoggingConfigDriverLogLevels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkRJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_r_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_spark_r_job_properties.rb deleted file mode 100644 index 955861dd..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_r_job_properties.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkRJobProperties - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkRJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config.rb deleted file mode 100644 index b79b51be..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkSqlJobLoggingConfig - attr_reader :driver_log_levels - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @driver_log_levels = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkSqlJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels.rb deleted file mode 100644 index d544f76c..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkSqlJobLoggingConfigDriverLogLevels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkSqlJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_properties.rb deleted file mode 100644 index e1133e1f..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_properties.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkSqlJobProperties - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkSqlJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_query_list.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_query_list.rb deleted file mode 100644 index 15e9594d..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_query_list.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkSqlJobQueryList - attr_reader :queries - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @queries = args['queries'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkSqlJobQueryList" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_script_variables.rb b/libraries/google/dataproc/property/projectregionjob_spark_sql_job_script_variables.rb deleted file mode 100644 index cb9f5dff..00000000 --- a/libraries/google/dataproc/property/projectregionjob_spark_sql_job_script_variables.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobSparkSqlJobScriptVariables - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobSparkSqlJobScriptVariables" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 4e7ea8d4..00000000 --- a/libraries/google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobTrinoJobLoggingConfigDriverLogLevels - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobTrinoJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectregionjob_trino_job_properties.rb b/libraries/google/dataproc/property/projectregionjob_trino_job_properties.rb deleted file mode 100644 index f345564c..00000000 --- a/libraries/google/dataproc/property/projectregionjob_trino_job_properties.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: false - -# ---------------------------------------------------------------------------- -# -# *** AUTO GENERATED CODE *** Type: MMv1 *** -# -# ---------------------------------------------------------------------------- -# -# This file is automatically generated by Magic Modules and manual -# changes will be clobbered when the file is regenerated. -# -# Please read more about how to change this file in README.md and -# CONTRIBUTING.md located at the root of this package. -# -# ---------------------------------------------------------------------------- -module GoogleInSpec - module Dataproc - module Property - class ProjectRegionJobTrinoJobProperties - attr_reader :additional_properties - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @additional_properties = args['additionalProperties'] - end - - def to_s - "#{@parent_identifier} ProjectRegionJobTrinoJobProperties" - end - end - end - end -end diff --git a/libraries/google_dataproc_project_region_job.rb b/libraries/google_dataproc_project_region_job.rb index add1bd38..a461ca90 100644 --- a/libraries/google_dataproc_project_region_job.rb +++ b/libraries/google_dataproc_project_region_job.rb @@ -14,66 +14,66 @@ # # ---------------------------------------------------------------------------- require 'gcp_backend' -require 'google/dataproc/property/projectregionjob_driver_scheduling_config' -require 'google/dataproc/property/projectregionjob_flink_job' -require 'google/dataproc/property/projectregionjob_flink_job_logging_config' -require 'google/dataproc/property/projectregionjob_flink_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_flink_job_properties' -require 'google/dataproc/property/projectregionjob_hadoop_job' -require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config' -require 'google/dataproc/property/projectregionjob_hadoop_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_hadoop_job_properties' -require 'google/dataproc/property/projectregionjob_hive_job' -require 'google/dataproc/property/projectregionjob_hive_job_properties' -require 'google/dataproc/property/projectregionjob_hive_job_query_list' -require 'google/dataproc/property/projectregionjob_hive_job_script_variables' -require 'google/dataproc/property/projectregionjob_labels' -require 'google/dataproc/property/projectregionjob_pig_job' -require 'google/dataproc/property/projectregionjob_pig_job_logging_config' -require 'google/dataproc/property/projectregionjob_pig_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_pig_job_properties' -require 'google/dataproc/property/projectregionjob_pig_job_query_list' -require 'google/dataproc/property/projectregionjob_pig_job_script_variables' -require 'google/dataproc/property/projectregionjob_placement' -require 'google/dataproc/property/projectregionjob_placement_cluster_labels' -require 'google/dataproc/property/projectregionjob_presto_job' -require 'google/dataproc/property/projectregionjob_presto_job_logging_config' -require 'google/dataproc/property/projectregionjob_presto_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_presto_job_properties' -require 'google/dataproc/property/projectregionjob_presto_job_query_list' -require 'google/dataproc/property/projectregionjob_pyspark_job' -require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config' -require 'google/dataproc/property/projectregionjob_pyspark_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_pyspark_job_properties' -require 'google/dataproc/property/projectregionjob_reference' -require 'google/dataproc/property/projectregionjob_scheduling' -require 'google/dataproc/property/projectregionjob_spark_job' -require 'google/dataproc/property/projectregionjob_spark_job_logging_config' -require 'google/dataproc/property/projectregionjob_spark_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_spark_job_properties' -require 'google/dataproc/property/projectregionjob_spark_r_job' -require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config' -require 'google/dataproc/property/projectregionjob_spark_r_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_spark_r_job_properties' -require 'google/dataproc/property/projectregionjob_spark_sql_job' -require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config' -require 'google/dataproc/property/projectregionjob_spark_sql_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_spark_sql_job_properties' -require 'google/dataproc/property/projectregionjob_spark_sql_job_query_list' -require 'google/dataproc/property/projectregionjob_spark_sql_job_script_variables' -require 'google/dataproc/property/projectregionjob_status' -require 'google/dataproc/property/projectregionjob_status_history' -require 'google/dataproc/property/projectregionjob_trino_job' -require 'google/dataproc/property/projectregionjob_trino_job_logging_config' -require 'google/dataproc/property/projectregionjob_trino_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectregionjob_trino_job_properties' -require 'google/dataproc/property/projectregionjob_trino_job_query_list' -require 'google/dataproc/property/projectregionjob_yarn_applications' +require 'google/dataproc/property/job_driver_scheduling_config' +require 'google/dataproc/property/job_flink_job' +require 'google/dataproc/property/job_flink_job_logging_config' +require 'google/dataproc/property/job_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_flink_job_properties' +require 'google/dataproc/property/job_hadoop_job' +require 'google/dataproc/property/job_hadoop_job_logging_config' +require 'google/dataproc/property/job_hadoop_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_hadoop_job_properties' +require 'google/dataproc/property/job_hive_job' +require 'google/dataproc/property/job_hive_job_properties' +require 'google/dataproc/property/job_hive_job_query_list' +require 'google/dataproc/property/job_hive_job_script_variables' +require 'google/dataproc/property/job_labels' +require 'google/dataproc/property/job_pig_job' +require 'google/dataproc/property/job_pig_job_logging_config' +require 'google/dataproc/property/job_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_pig_job_properties' +require 'google/dataproc/property/job_pig_job_query_list' +require 'google/dataproc/property/job_pig_job_script_variables' +require 'google/dataproc/property/job_placement' +require 'google/dataproc/property/job_placement_cluster_labels' +require 'google/dataproc/property/job_presto_job' +require 'google/dataproc/property/job_presto_job_logging_config' +require 'google/dataproc/property/job_presto_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_presto_job_properties' +require 'google/dataproc/property/job_presto_job_query_list' +require 'google/dataproc/property/job_pyspark_job' +require 'google/dataproc/property/job_pyspark_job_logging_config' +require 'google/dataproc/property/job_pyspark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_pyspark_job_properties' +require 'google/dataproc/property/job_reference' +require 'google/dataproc/property/job_scheduling' +require 'google/dataproc/property/job_spark_job' +require 'google/dataproc/property/job_spark_job_logging_config' +require 'google/dataproc/property/job_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_spark_job_properties' +require 'google/dataproc/property/job_spark_r_job' +require 'google/dataproc/property/job_spark_r_job_logging_config' +require 'google/dataproc/property/job_spark_r_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_spark_r_job_properties' +require 'google/dataproc/property/job_spark_sql_job' +require 'google/dataproc/property/job_spark_sql_job_logging_config' +require 'google/dataproc/property/job_spark_sql_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_spark_sql_job_properties' +require 'google/dataproc/property/job_spark_sql_job_query_list' +require 'google/dataproc/property/job_spark_sql_job_script_variables' +require 'google/dataproc/property/job_status' +require 'google/dataproc/property/job_status_history' +require 'google/dataproc/property/job_trino_job' +require 'google/dataproc/property/job_trino_job_logging_config' +require 'google/dataproc/property/job_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/job_trino_job_properties' +require 'google/dataproc/property/job_trino_job_query_list' +require 'google/dataproc/property/job_yarn_applications' # A provider to manage Dataproc resources. -class DataprocProjectRegionJob < GcpResourceBase - name 'google_dataproc_project_region_job' - desc 'ProjectRegionJob' +class DataprocJob < GcpResourceBase + name 'google_dataproc_job' + desc 'Job' supports platform: 'gcp' attr_reader :params @@ -108,28 +108,28 @@ def initialize(params) end def parse - @reference = GoogleInSpec::Dataproc::Property::ProjectRegionJobReference.new(@fetched['reference'], to_s) - @placement = GoogleInSpec::Dataproc::Property::ProjectRegionJobPlacement.new(@fetched['placement'], to_s) - @hadoop_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJob.new(@fetched['hadoopJob'], to_s) - @spark_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJob.new(@fetched['sparkJob'], to_s) - @pyspark_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJob.new(@fetched['pysparkJob'], to_s) - @hive_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJob.new(@fetched['hiveJob'], to_s) - @pig_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJob.new(@fetched['pigJob'], to_s) - @spark_r_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJob.new(@fetched['sparkRJob'], to_s) - @spark_sql_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJob.new(@fetched['sparkSqlJob'], to_s) - @presto_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJob.new(@fetched['prestoJob'], to_s) - @trino_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJob.new(@fetched['trinoJob'], to_s) - @flink_job = GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJob.new(@fetched['flinkJob'], to_s) - @status = GoogleInSpec::Dataproc::Property::ProjectRegionJobStatus.new(@fetched['status'], to_s) - @status_history = GoogleInSpec::Dataproc::Property::ProjectRegionJobStatusHistoryArray.parse(@fetched['statusHistory'], to_s) - @yarn_applications = GoogleInSpec::Dataproc::Property::ProjectRegionJobYarnApplicationsArray.parse(@fetched['yarnApplications'], to_s) + @reference = GoogleInSpec::Dataproc::Property::JobReference.new(@fetched['reference'], to_s) + @placement = GoogleInSpec::Dataproc::Property::JobPlacement.new(@fetched['placement'], to_s) + @hadoop_job = GoogleInSpec::Dataproc::Property::JobHadoopJob.new(@fetched['hadoopJob'], to_s) + @spark_job = GoogleInSpec::Dataproc::Property::JobSparkJob.new(@fetched['sparkJob'], to_s) + @pyspark_job = GoogleInSpec::Dataproc::Property::JobPysparkJob.new(@fetched['pysparkJob'], to_s) + @hive_job = GoogleInSpec::Dataproc::Property::JobHiveJob.new(@fetched['hiveJob'], to_s) + @pig_job = GoogleInSpec::Dataproc::Property::JobPigJob.new(@fetched['pigJob'], to_s) + @spark_r_job = GoogleInSpec::Dataproc::Property::JobSparkRJob.new(@fetched['sparkRJob'], to_s) + @spark_sql_job = GoogleInSpec::Dataproc::Property::JobSparkSqlJob.new(@fetched['sparkSqlJob'], to_s) + @presto_job = GoogleInSpec::Dataproc::Property::JobPrestoJob.new(@fetched['prestoJob'], to_s) + @trino_job = GoogleInSpec::Dataproc::Property::JobTrinoJob.new(@fetched['trinoJob'], to_s) + @flink_job = GoogleInSpec::Dataproc::Property::JobFlinkJob.new(@fetched['flinkJob'], to_s) + @status = GoogleInSpec::Dataproc::Property::JobStatus.new(@fetched['status'], to_s) + @status_history = GoogleInSpec::Dataproc::Property::JobStatusHistoryArray.parse(@fetched['statusHistory'], to_s) + @yarn_applications = GoogleInSpec::Dataproc::Property::JobYarnApplicationsArray.parse(@fetched['yarnApplications'], to_s) @driver_output_resource_uri = @fetched['driverOutputResourceUri'] @driver_control_files_uri = @fetched['driverControlFilesUri'] - @labels = GoogleInSpec::Dataproc::Property::ProjectRegionJobLabels.new(@fetched['labels'], to_s) - @scheduling = GoogleInSpec::Dataproc::Property::ProjectRegionJobScheduling.new(@fetched['scheduling'], to_s) + @labels = GoogleInSpec::Dataproc::Property::JobLabels.new(@fetched['labels'], to_s) + @scheduling = GoogleInSpec::Dataproc::Property::JobScheduling.new(@fetched['scheduling'], to_s) @job_uuid = @fetched['jobUuid'] @done = @fetched['done'] - @driver_scheduling_config = GoogleInSpec::Dataproc::Property::ProjectRegionJobDriverSchedulingConfig.new(@fetched['driverSchedulingConfig'], to_s) + @driver_scheduling_config = GoogleInSpec::Dataproc::Property::JobDriverSchedulingConfig.new(@fetched['driverSchedulingConfig'], to_s) end def exists? @@ -137,7 +137,7 @@ def exists? end def to_s - "ProjectRegionJob #{@params[:jobId]}" + "Job #{@params[:jobId]}" end private diff --git a/libraries/google_dataproc_project_region_jobs.rb b/libraries/google_dataproc_project_region_jobs.rb index 04fe7815..cb17b3bb 100644 --- a/libraries/google_dataproc_project_region_jobs.rb +++ b/libraries/google_dataproc_project_region_jobs.rb @@ -14,9 +14,9 @@ # # ---------------------------------------------------------------------------- require 'gcp_backend' -class DataprocProjectRegionJobs < GcpResourceBase - name 'google_dataproc_project_region_jobs' - desc 'ProjectRegionJob plural resource' +class DataprocJobs < GcpResourceBase + name 'google_dataproc_jobs' + desc 'Job plural resource' supports platform: 'gcp' attr_reader :table @@ -51,7 +51,7 @@ class DataprocProjectRegionJobs < GcpResourceBase def initialize(params = {}) super(params.merge({ use_http_transport: true })) @params = params - @table = fetch_wrapped_resource('projectRegionJobs') + @table = fetch_wrapped_resource('jobs') end def fetch_wrapped_resource(wrap_path) @@ -84,28 +84,28 @@ def transform(key, value) def transformers { - 'reference' => ->(obj) { [:reference, GoogleInSpec::Dataproc::Property::ProjectRegionJobReference.new(obj['reference'], to_s)] }, - 'placement' => ->(obj) { [:placement, GoogleInSpec::Dataproc::Property::ProjectRegionJobPlacement.new(obj['placement'], to_s)] }, - 'hadoopJob' => ->(obj) { [:hadoop_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobHadoopJob.new(obj['hadoopJob'], to_s)] }, - 'sparkJob' => ->(obj) { [:spark_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkJob.new(obj['sparkJob'], to_s)] }, - 'pysparkJob' => ->(obj) { [:pyspark_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobPysparkJob.new(obj['pysparkJob'], to_s)] }, - 'hiveJob' => ->(obj) { [:hive_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobHiveJob.new(obj['hiveJob'], to_s)] }, - 'pigJob' => ->(obj) { [:pig_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobPigJob.new(obj['pigJob'], to_s)] }, - 'sparkRJob' => ->(obj) { [:spark_r_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkRJob.new(obj['sparkRJob'], to_s)] }, - 'sparkSqlJob' => ->(obj) { [:spark_sql_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobSparkSqlJob.new(obj['sparkSqlJob'], to_s)] }, - 'prestoJob' => ->(obj) { [:presto_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobPrestoJob.new(obj['prestoJob'], to_s)] }, - 'trinoJob' => ->(obj) { [:trino_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobTrinoJob.new(obj['trinoJob'], to_s)] }, - 'flinkJob' => ->(obj) { [:flink_job, GoogleInSpec::Dataproc::Property::ProjectRegionJobFlinkJob.new(obj['flinkJob'], to_s)] }, - 'status' => ->(obj) { [:status, GoogleInSpec::Dataproc::Property::ProjectRegionJobStatus.new(obj['status'], to_s)] }, - 'statusHistory' => ->(obj) { [:status_history, GoogleInSpec::Dataproc::Property::ProjectRegionJobStatusHistoryArray.parse(obj['statusHistory'], to_s)] }, - 'yarnApplications' => ->(obj) { [:yarn_applications, GoogleInSpec::Dataproc::Property::ProjectRegionJobYarnApplicationsArray.parse(obj['yarnApplications'], to_s)] }, + 'reference' => ->(obj) { [:reference, GoogleInSpec::Dataproc::Property::JobReference.new(obj['reference'], to_s)] }, + 'placement' => ->(obj) { [:placement, GoogleInSpec::Dataproc::Property::JobPlacement.new(obj['placement'], to_s)] }, + 'hadoopJob' => ->(obj) { [:hadoop_job, GoogleInSpec::Dataproc::Property::JobHadoopJob.new(obj['hadoopJob'], to_s)] }, + 'sparkJob' => ->(obj) { [:spark_job, GoogleInSpec::Dataproc::Property::JobSparkJob.new(obj['sparkJob'], to_s)] }, + 'pysparkJob' => ->(obj) { [:pyspark_job, GoogleInSpec::Dataproc::Property::JobPysparkJob.new(obj['pysparkJob'], to_s)] }, + 'hiveJob' => ->(obj) { [:hive_job, GoogleInSpec::Dataproc::Property::JobHiveJob.new(obj['hiveJob'], to_s)] }, + 'pigJob' => ->(obj) { [:pig_job, GoogleInSpec::Dataproc::Property::JobPigJob.new(obj['pigJob'], to_s)] }, + 'sparkRJob' => ->(obj) { [:spark_r_job, GoogleInSpec::Dataproc::Property::JobSparkRJob.new(obj['sparkRJob'], to_s)] }, + 'sparkSqlJob' => ->(obj) { [:spark_sql_job, GoogleInSpec::Dataproc::Property::JobSparkSqlJob.new(obj['sparkSqlJob'], to_s)] }, + 'prestoJob' => ->(obj) { [:presto_job, GoogleInSpec::Dataproc::Property::JobPrestoJob.new(obj['prestoJob'], to_s)] }, + 'trinoJob' => ->(obj) { [:trino_job, GoogleInSpec::Dataproc::Property::JobTrinoJob.new(obj['trinoJob'], to_s)] }, + 'flinkJob' => ->(obj) { [:flink_job, GoogleInSpec::Dataproc::Property::JobFlinkJob.new(obj['flinkJob'], to_s)] }, + 'status' => ->(obj) { [:status, GoogleInSpec::Dataproc::Property::JobStatus.new(obj['status'], to_s)] }, + 'statusHistory' => ->(obj) { [:status_history, GoogleInSpec::Dataproc::Property::JobStatusHistoryArray.parse(obj['statusHistory'], to_s)] }, + 'yarnApplications' => ->(obj) { [:yarn_applications, GoogleInSpec::Dataproc::Property::JobYarnApplicationsArray.parse(obj['yarnApplications'], to_s)] }, 'driverOutputResourceUri' => ->(obj) { [:driver_output_resource_uri, obj['driverOutputResourceUri']] }, 'driverControlFilesUri' => ->(obj) { [:driver_control_files_uri, obj['driverControlFilesUri']] }, - 'labels' => ->(obj) { [:labels, GoogleInSpec::Dataproc::Property::ProjectRegionJobLabels.new(obj['labels'], to_s)] }, - 'scheduling' => ->(obj) { [:scheduling, GoogleInSpec::Dataproc::Property::ProjectRegionJobScheduling.new(obj['scheduling'], to_s)] }, + 'labels' => ->(obj) { [:labels, GoogleInSpec::Dataproc::Property::JobLabels.new(obj['labels'], to_s)] }, + 'scheduling' => ->(obj) { [:scheduling, GoogleInSpec::Dataproc::Property::JobScheduling.new(obj['scheduling'], to_s)] }, 'jobUuid' => ->(obj) { [:job_uuid, obj['jobUuid']] }, 'done' => ->(obj) { [:done, obj['done']] }, - 'driverSchedulingConfig' => ->(obj) { [:driver_scheduling_config, GoogleInSpec::Dataproc::Property::ProjectRegionJobDriverSchedulingConfig.new(obj['driverSchedulingConfig'], to_s)] }, + 'driverSchedulingConfig' => ->(obj) { [:driver_scheduling_config, GoogleInSpec::Dataproc::Property::JobDriverSchedulingConfig.new(obj['driverSchedulingConfig'], to_s)] }, } end @@ -116,6 +116,6 @@ def product_url(_ = nil) end def resource_base_url - 'projects/{{projectId}}/regions/{{region}}/jobs' + 'projects/{{project_id}}/regions/{{region}}/jobs' end end diff --git a/test/integration/verify/controls/google_dataproc_project_region_job.rb b/test/integration/verify/controls/google_dataproc_job.rb similarity index 53% rename from test/integration/verify/controls/google_dataproc_project_region_job.rb rename to test/integration/verify/controls/google_dataproc_job.rb index 86a8a158..366bbdb4 100644 --- a/test/integration/verify/controls/google_dataproc_project_region_job.rb +++ b/test/integration/verify/controls/google_dataproc_job.rb @@ -12,31 +12,31 @@ # # ---------------------------------------------------------------------------- -title 'Test GCP google_dataproc_project_region_job resource.' +title 'Test GCP google_dataproc_job resource.' gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - project_region_job = input('project_region_job', value: { + job = input('job', value: { "job_id": "value_jobid", "project_id": "value_projectid", "region": "value_region", "driver_output_resource_uri": "value_driveroutputresourceuri", "driver_control_files_uri": "value_drivercontrolfilesuri", "job_uuid": "value_jobuuid" -}, description: 'project_region_job description') -control 'google_dataproc_project_region_job-1.0' do +}, description: 'job description') +control 'google_dataproc_job-1.0' do impact 1.0 - title 'google_dataproc_project_region_job resource test' + title 'google_dataproc_job resource test' - describe google_dataproc_project_region_job(jobId: project_region_job['jobId'], projectId: project_region_job['projectId'], region: project_region_job['region']) do + describe google_dataproc_job(jobId: job['jobId'], projectId: job['projectId'], region: job['region']) do it { should exist } - its('driver_output_resource_uri') { should cmp project_region_job['driver_output_resource_uri'] } - its('driver_control_files_uri') { should cmp project_region_job['driver_control_files_uri'] } - its('job_uuid') { should cmp project_region_job['job_uuid'] } + its('driver_output_resource_uri') { should cmp job['driver_output_resource_uri'] } + its('driver_control_files_uri') { should cmp job['driver_control_files_uri'] } + its('job_uuid') { should cmp job['job_uuid'] } end - describe google_dataproc_project_region_job(jobId: project_region_job['jobId'], projectId: project_region_job['projectId'], region: project_region_job['region']) do + describe google_dataproc_job(jobId: job['jobId'], projectId: job['projectId'], region: job['region']) do it { should_not exist } end end diff --git a/test/integration/verify/controls/google_dataproc_project_region_jobs.rb b/test/integration/verify/controls/google_dataproc_jobs.rb similarity index 74% rename from test/integration/verify/controls/google_dataproc_project_region_jobs.rb rename to test/integration/verify/controls/google_dataproc_jobs.rb index bbd853b7..24433d5e 100644 --- a/test/integration/verify/controls/google_dataproc_project_region_jobs.rb +++ b/test/integration/verify/controls/google_dataproc_jobs.rb @@ -12,23 +12,23 @@ # # ---------------------------------------------------------------------------- -title 'Test GCP google_dataproc_project_region_jobs resource.' +title 'Test GCP google_dataproc_jobs resource.' gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - project_region_job = input('project_region_job', value: { + job = input('job', value: { "job_id": "value_jobid", "project_id": "value_projectid", "region": "value_region", "driver_output_resource_uri": "value_driveroutputresourceuri", "driver_control_files_uri": "value_drivercontrolfilesuri", "job_uuid": "value_jobuuid" -}, description: 'project_region_job description') -control 'google_dataproc_project_region_jobs-1.0' do +}, description: 'job description') +control 'google_dataproc_jobs-1.0' do impact 1.0 - title 'google_dataproc_project_region_jobs resource test' + title 'google_dataproc_jobs resource test' - describe google_dataproc_project_region_jobs() do + describe google_dataproc_jobs() do it { should exist } end end From b8e83a961c8559c02217961fcf9492fed6dfc226 Mon Sep 17 00:00:00 2001 From: balasubramanian-s Date: Thu, 27 Jun 2024 18:07:15 +0530 Subject: [PATCH 3/3] update testcases Signed-off-by: balasubramanian-s --- README.md | 1 + ...t_region_job.md => google_dataproc_job.md} | 85 +++++++------------ ...region_jobs.md => google_dataproc_jobs.md} | 50 ++--------- ...t_region_job.rb => google_dataproc_job.rb} | 0 ...region_jobs.rb => google_dataproc_jobs.rb} | 0 .../verify/controls/google_dataproc_job.rb | 19 ++--- .../verify/controls/google_dataproc_jobs.rb | 19 +++-- 7 files changed, 60 insertions(+), 114 deletions(-) rename docs/resources/{google_dataproc_project_region_job.md => google_dataproc_job.md} (92%) rename docs/resources/{google_dataproc_project_region_jobs.md => google_dataproc_jobs.md} (51%) rename libraries/{google_dataproc_project_region_job.rb => google_dataproc_job.rb} (100%) rename libraries/{google_dataproc_project_region_jobs.rb => google_dataproc_jobs.rb} (100%) diff --git a/README.md b/README.md index c372ac56..fd146bef 100644 --- a/README.md +++ b/README.md @@ -291,6 +291,7 @@ The following resources are available in the InSpec GCP Profile | [google_dataflow_project_location_job](docs/resources/google_dataflow_project_location_job.md) | [google_dataflow_project_location_jobs](docs/resources/google_dataflow_project_location_jobs.md) | | [google_dataproc_autoscaling_policy](docs/resources/google_dataproc_autoscaling_policy.md) | [google_dataproc_autoscaling_policies](docs/resources/google_dataproc_autoscaling_policies.md) | | [google_dataproc_cluster](docs/resources/google_dataproc_cluster.md) | [google_dataproc_clusters](docs/resources/google_dataproc_clusters.md) | +| [google_dataproc_job](docs/resources/google_dataproc_job.md) | [google_dataproc_jobs](docs/resources/google_dataproc_jobs.md) | | [google_dataproc_workflow_template](docs/resources/google_dataproc_workflow_template.md) | [google_dataproc_workflow_templates](docs/resources/google_dataproc_workflow_templates.md) | | [google_dns_managed_zone](docs/resources/google_dns_managed_zone.md) | [google_dns_managed_zones](docs/resources/google_dns_managed_zones.md) | | [google_dns_resource_record_set](docs/resources/google_dns_resource_record_set.md) | [google_dns_resource_record_sets](docs/resources/google_dns_resource_record_sets.md) | diff --git a/docs/resources/google_dataproc_project_region_job.md b/docs/resources/google_dataproc_job.md similarity index 92% rename from docs/resources/google_dataproc_project_region_job.md rename to docs/resources/google_dataproc_job.md index 5f1c552a..bd892e59 100644 --- a/docs/resources/google_dataproc_project_region_job.md +++ b/docs/resources/google_dataproc_job.md @@ -1,44 +1,25 @@ -+++ - +--- title = "google_dataproc_job Resource" platform = "gcp" -draft = false -gh_repo = "inspec-gcp" - - -[menu.inspec] - -title = "google_dataproc_job" -identifier = "inspec/resources/gcp/google_dataproc_job Resource" -parent = "inspec/resources/gcp" -+++ - -Use the `google_dataproc_job` InSpec audit resource to test the properties of a test a Google Job. - -## Installation -{{% inspec_gcp_install %}} +--- ## Syntax A `google_dataproc_job` is used to test a Google Job resource ## Examples ``` -describe google_dataproc_job(jobId: ' ', projectId: ' ', region: ' value_region') do +describe google_dataproc_job(job_id: 'value_job_id', project_id: 'value_project_id', region: ' value_region') do it { should exist } its('driver_output_resource_uri') { should cmp 'value_driveroutputresourceuri' } its('driver_control_files_uri') { should cmp 'value_drivercontrolfilesuri' } its('job_uuid') { should cmp 'value_jobuuid' } - end -describe google_dataproc_job(jobId: ' ', projectId: ' ', region: ' value_region') do +describe google_dataproc_job(job_id: 'doesnotexist', project_id: 'value_project_id', region: ' value_region') do it { should_not exist } end ``` -## Parameters -Properties that can be accessed from the `google_dataproc_job` resource: - ## Properties Properties that can be accessed from the `google_dataproc_job` resource: @@ -57,7 +38,7 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `cluster_labels`: Optional. Cluster labels to identify a cluster where the job will be submitted. - * `additional_properties`: + * `additional_properties`: * `hadoop_job`: A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). @@ -75,13 +56,13 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `properties`: Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code. - * `additional_properties`: + * `additional_properties`: * `logging_config`: The runtime logging config of the job. * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' - * `additional_properties`: + * `additional_properties`: * `spark_job`: A Dataproc job for running Apache Spark (https://spark.apache.org/) applications on YARN. @@ -99,13 +80,13 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `properties`: Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. - * `additional_properties`: + * `additional_properties`: * `logging_config`: The runtime logging config of the job. * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' - * `additional_properties`: + * `additional_properties`: * `pyspark_job`: A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. @@ -123,13 +104,13 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `properties`: Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. - * `additional_properties`: + * `additional_properties`: * `logging_config`: The runtime logging config of the job. * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' - * `additional_properties`: + * `additional_properties`: * `hive_job`: A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. @@ -137,17 +118,17 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `query_list`: A list of queries to run on a cluster. - * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } * `continue_on_failure`: Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. * `script_variables`: Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). - * `additional_properties`: + * `additional_properties`: * `properties`: Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. - * `additional_properties`: + * `additional_properties`: * `jar_file_uris`: Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. @@ -157,17 +138,17 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `query_list`: A list of queries to run on a cluster. - * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } * `continue_on_failure`: Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. * `script_variables`: Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). - * `additional_properties`: + * `additional_properties`: * `properties`: Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. - * `additional_properties`: + * `additional_properties`: * `jar_file_uris`: Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. @@ -175,7 +156,7 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' - * `additional_properties`: + * `additional_properties`: * `spark_r_job`: A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. @@ -189,13 +170,13 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `properties`: Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. - * `additional_properties`: + * `additional_properties`: * `logging_config`: The runtime logging config of the job. * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' - * `additional_properties`: + * `additional_properties`: * `spark_sql_job`: A Dataproc job for running Apache Spark SQL (https://spark.apache.org/sql/) queries. @@ -203,15 +184,15 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `query_list`: A list of queries to run on a cluster. - * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } * `script_variables`: Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). - * `additional_properties`: + * `additional_properties`: * `properties`: Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API might be overwritten. - * `additional_properties`: + * `additional_properties`: * `jar_file_uris`: Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. @@ -219,7 +200,7 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' - * `additional_properties`: + * `additional_properties`: * `presto_job`: A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. @@ -227,7 +208,7 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `query_list`: A list of queries to run on a cluster. - * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } * `continue_on_failure`: Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. @@ -237,13 +218,13 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `properties`: Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI - * `additional_properties`: + * `additional_properties`: * `logging_config`: The runtime logging config of the job. * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' - * `additional_properties`: + * `additional_properties`: * `trino_job`: A Dataproc job for running Trino (https://trino.io/) queries. IMPORTANT: The Dataproc Trino Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/trino) must be enabled when the cluster is created to submit a Trino job to the cluster. @@ -251,7 +232,7 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `query_list`: A list of queries to run on a cluster. - * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } + * `queries`: Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } * `continue_on_failure`: Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. @@ -261,13 +242,13 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `properties`: Optional. A mapping of property names to values. Used to set Trino session properties (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI - * `additional_properties`: + * `additional_properties`: * `logging_config`: The runtime logging config of the job. * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' - * `additional_properties`: + * `additional_properties`: * `flink_job`: A Dataproc job for running Apache Flink applications on YARN. @@ -283,13 +264,13 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `properties`: Optional. A mapping of property names to values, used to configure Flink. Properties that conflict with values set by the Dataproc API might beoverwritten. Can include properties set in/etc/flink/conf/flink-defaults.conf and classes in user code. - * `additional_properties`: + * `additional_properties`: * `logging_config`: The runtime logging config of the job. * `driver_log_levels`: The per-package log levels for the driver. This can include "root" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG' - * `additional_properties`: + * `additional_properties`: * `status`: Dataproc job status. @@ -369,7 +350,7 @@ Properties that can be accessed from the `google_dataproc_job` resource: * `labels`: Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job. - * `additional_properties`: + * `additional_properties`: * `scheduling`: Job scheduling options. diff --git a/docs/resources/google_dataproc_project_region_jobs.md b/docs/resources/google_dataproc_jobs.md similarity index 51% rename from docs/resources/google_dataproc_project_region_jobs.md rename to docs/resources/google_dataproc_jobs.md index 5730698e..ab2b91db 100644 --- a/docs/resources/google_dataproc_project_region_jobs.md +++ b/docs/resources/google_dataproc_jobs.md @@ -1,59 +1,21 @@ -+++ - +--- title = "google_dataproc_jobs Resource" platform = "gcp" -draft = false -gh_repo = "inspec-gcp" - - -[menu.inspec] - -title = "google_dataproc_jobs" -identifier = "inspec/resources/gcp/google_dataproc_jobs Resource" -parent = "inspec/resources/gcp" -+++ - -Use the `google_dataproc_jobs` InSpec audit resource to test the properties of a test a Google Job. - -## Installation -{{% inspec_gcp_install %}} +--- ## Syntax A `google_dataproc_jobs` is used to test a Google Job resource ## Examples ``` - describe google_dataproc_jobs() do + describe google_dataproc_jobs(project_id: 'value_project_id', region: 'value_region') do it { should exist } + its('driver_output_resource_uris') { should include 'value_driveroutputresourceuri' } + its('driver_control_files_uris') { should include 'value_drivercontrolfilesuri' } + its('job_uuids') { should include 'value_jobuuid' } end ``` -## Parameters -Properties that can be accessed from the `google_dataproc_jobs` resource: - -See [google_dataproc_job.md](google_dataproc_job.md) for more detailed information -* `references`: an array of `google_dataproc_job` reference -* `placements`: an array of `google_dataproc_job` placement -* `hadoop_jobs`: an array of `google_dataproc_job` hadoop_job -* `spark_jobs`: an array of `google_dataproc_job` spark_job -* `pyspark_jobs`: an array of `google_dataproc_job` pyspark_job -* `hive_jobs`: an array of `google_dataproc_job` hive_job -* `pig_jobs`: an array of `google_dataproc_job` pig_job -* `spark_r_jobs`: an array of `google_dataproc_job` spark_r_job -* `spark_sql_jobs`: an array of `google_dataproc_job` spark_sql_job -* `presto_jobs`: an array of `google_dataproc_job` presto_job -* `trino_jobs`: an array of `google_dataproc_job` trino_job -* `flink_jobs`: an array of `google_dataproc_job` flink_job -* `statuses`: an array of `google_dataproc_job` status -* `status_histories`: an array of `google_dataproc_job` status_history -* `yarn_applications`: an array of `google_dataproc_job` yarn_applications -* `driver_output_resource_uris`: an array of `google_dataproc_job` driver_output_resource_uri -* `driver_control_files_uris`: an array of `google_dataproc_job` driver_control_files_uri -* `labels`: an array of `google_dataproc_job` labels -* `schedulings`: an array of `google_dataproc_job` scheduling -* `job_uuids`: an array of `google_dataproc_job` job_uuid -* `dones`: an array of `google_dataproc_job` done -* `driver_scheduling_configs`: an array of `google_dataproc_job` driver_scheduling_config ## Properties Properties that can be accessed from the `google_dataproc_jobs` resource: diff --git a/libraries/google_dataproc_project_region_job.rb b/libraries/google_dataproc_job.rb similarity index 100% rename from libraries/google_dataproc_project_region_job.rb rename to libraries/google_dataproc_job.rb diff --git a/libraries/google_dataproc_project_region_jobs.rb b/libraries/google_dataproc_jobs.rb similarity index 100% rename from libraries/google_dataproc_project_region_jobs.rb rename to libraries/google_dataproc_jobs.rb diff --git a/test/integration/verify/controls/google_dataproc_job.rb b/test/integration/verify/controls/google_dataproc_job.rb index 366bbdb4..c232bffb 100644 --- a/test/integration/verify/controls/google_dataproc_job.rb +++ b/test/integration/verify/controls/google_dataproc_job.rb @@ -16,27 +16,26 @@ gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - job = input('job', value: { - "job_id": "value_jobid", - "project_id": "value_projectid", - "region": "value_region", - "driver_output_resource_uri": "value_driveroutputresourceuri", - "driver_control_files_uri": "value_drivercontrolfilesuri", - "job_uuid": "value_jobuuid" +job = input('job', value: { + "job_id": "job-46b1a728", + "project_id": "ppradhan", + "region": "europe-west2", + "driver_output_resource_uri": "gs://dataproc-staging-europe-west2-165434197229-ycz8tbcn/google-cloud-dataproc-metainfo/0c01e2dd-85d5-4bac-9e53-b7c4ebd1c6b8/jobs/job-46b1a728/driveroutput", + "driver_control_files_uri": "gs://dataproc-staging-europe-west2-165434197229-ycz8tbcn/google-cloud-dataproc-metainfo/0c01e2dd-85d5-4bac-9e53-b7c4ebd1c6b8/jobs/job-46b1a728/", + "job_uuid": "96a1cb4b-1083-416b-ac8a-3ebd39e478c3" }, description: 'job description') control 'google_dataproc_job-1.0' do impact 1.0 title 'google_dataproc_job resource test' - describe google_dataproc_job(jobId: job['jobId'], projectId: job['projectId'], region: job['region']) do + describe google_dataproc_job(job_id: job['job_id'], project_id: job['project_id'], region: job['region']) do it { should exist } its('driver_output_resource_uri') { should cmp job['driver_output_resource_uri'] } its('driver_control_files_uri') { should cmp job['driver_control_files_uri'] } its('job_uuid') { should cmp job['job_uuid'] } - end - describe google_dataproc_job(jobId: job['jobId'], projectId: job['projectId'], region: job['region']) do + describe google_dataproc_job(job_id: job['jobId'], project_id: job['project_id'], region: job['region']) do it { should_not exist } end end diff --git a/test/integration/verify/controls/google_dataproc_jobs.rb b/test/integration/verify/controls/google_dataproc_jobs.rb index 24433d5e..cc145811 100644 --- a/test/integration/verify/controls/google_dataproc_jobs.rb +++ b/test/integration/verify/controls/google_dataproc_jobs.rb @@ -16,19 +16,22 @@ gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') - job = input('job', value: { - "job_id": "value_jobid", - "project_id": "value_projectid", - "region": "value_region", - "driver_output_resource_uri": "value_driveroutputresourceuri", - "driver_control_files_uri": "value_drivercontrolfilesuri", - "job_uuid": "value_jobuuid" +job = input('job', value: { + "job_id": "job-46b1a728", + "project_id": "ppradhan", + "region": "europe-west2", + "driver_output_resource_uri": "gs://dataproc-staging-europe-west2-165434197229-ycz8tbcn/google-cloud-dataproc-metainfo/0c01e2dd-85d5-4bac-9e53-b7c4ebd1c6b8/jobs/job-46b1a728/driveroutput", + "driver_control_files_uri": "gs://dataproc-staging-europe-west2-165434197229-ycz8tbcn/google-cloud-dataproc-metainfo/0c01e2dd-85d5-4bac-9e53-b7c4ebd1c6b8/jobs/job-46b1a728/", + "job_uuid": "96a1cb4b-1083-416b-ac8a-3ebd39e478c3" }, description: 'job description') control 'google_dataproc_jobs-1.0' do impact 1.0 title 'google_dataproc_jobs resource test' - describe google_dataproc_jobs() do + describe google_dataproc_jobs(project_id: job['project_id'], region: job['region']) do it { should exist } + its('driver_output_resource_uris') { should include job['driver_output_resource_uri'] } + its('driver_control_files_uris') { should include job['driver_control_files_uri'] } + its('job_uuids') { should include job['job_uuid'] } end end