From dcca287f9e181877119efae5544d615c4c6aef79 Mon Sep 17 00:00:00 2001 From: Samir <85890442+sa-progress@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:03:25 +0530 Subject: [PATCH 1/6] Automatically generated by magic modules for service: dataproc_v1 and resource: Projects__locations__workflowTemplate. 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> --- ...proc_project_location_workflow_template.md | 867 ++++++++++++++++++ ...roc_project_location_workflow_templates.md | 38 + ...ationworkflowtemplate_encryption_config.rb | 34 + .../projectlocationworkflowtemplate_jobs.rb | 129 +++ ...locationworkflowtemplate_jobs_flink_job.rb | 55 ++ ...wtemplate_jobs_flink_job_logging_config.rb | 35 + ...nk_job_logging_config_driver_log_levels.rb | 34 + ...kflowtemplate_jobs_flink_job_properties.rb | 34 + ...ocationworkflowtemplate_jobs_hadoop_job.rb | 58 ++ ...template_jobs_hadoop_job_logging_config.rb | 35 + ...op_job_logging_config_driver_log_levels.rb | 34 + ...flowtemplate_jobs_hadoop_job_properties.rb | 34 + ...tlocationworkflowtemplate_jobs_hive_job.rb | 52 ++ ...rkflowtemplate_jobs_hive_job_properties.rb | 34 + ...rkflowtemplate_jobs_hive_job_query_list.rb | 34 + ...template_jobs_hive_job_script_variables.rb | 34 + ...ectlocationworkflowtemplate_jobs_labels.rb | 34 + ...ctlocationworkflowtemplate_jobs_pig_job.rb | 57 ++ ...lowtemplate_jobs_pig_job_logging_config.rb | 35 + ...ig_job_logging_config_driver_log_levels.rb | 34 + ...orkflowtemplate_jobs_pig_job_properties.rb | 34 + ...orkflowtemplate_jobs_pig_job_query_list.rb | 34 + ...wtemplate_jobs_pig_job_script_variables.rb | 34 + ...ocationworkflowtemplate_jobs_presto_job.rb | 56 ++ ...template_jobs_presto_job_logging_config.rb | 35 + ...to_job_logging_config_driver_log_levels.rb | 34 + ...flowtemplate_jobs_presto_job_properties.rb | 34 + ...flowtemplate_jobs_presto_job_query_list.rb | 34 + ...cationworkflowtemplate_jobs_pyspark_job.rb | 58 ++ ...emplate_jobs_pyspark_job_logging_config.rb | 35 + ...rk_job_logging_config_driver_log_levels.rb | 34 + ...lowtemplate_jobs_pyspark_job_properties.rb | 34 + ...ocationworkflowtemplate_jobs_scheduling.rb | 37 + ...locationworkflowtemplate_jobs_spark_job.rb | 58 ++ ...wtemplate_jobs_spark_job_logging_config.rb | 35 + ...rk_job_logging_config_driver_log_levels.rb | 34 + ...kflowtemplate_jobs_spark_job_properties.rb | 34 + ...cationworkflowtemplate_jobs_spark_r_job.rb | 52 ++ ...emplate_jobs_spark_r_job_logging_config.rb | 35 + ..._r_job_logging_config_driver_log_levels.rb | 34 + ...lowtemplate_jobs_spark_r_job_properties.rb | 34 + ...tionworkflowtemplate_jobs_spark_sql_job.rb | 54 ++ ...plate_jobs_spark_sql_job_logging_config.rb | 35 + ...ql_job_logging_config_driver_log_levels.rb | 34 + ...wtemplate_jobs_spark_sql_job_properties.rb | 34 + ...wtemplate_jobs_spark_sql_job_query_list.rb | 34 + ...ate_jobs_spark_sql_job_script_variables.rb | 34 + ...locationworkflowtemplate_jobs_trino_job.rb | 56 ++ ...wtemplate_jobs_trino_job_logging_config.rb | 35 + ...no_job_logging_config_driver_log_levels.rb | 34 + ...kflowtemplate_jobs_trino_job_properties.rb | 34 + ...kflowtemplate_jobs_trino_job_query_list.rb | 34 + .../projectlocationworkflowtemplate_labels.rb | 34 + ...jectlocationworkflowtemplate_parameters.rb | 54 ++ ...nworkflowtemplate_parameters_validation.rb | 39 + ...lowtemplate_parameters_validation_regex.rb | 34 + ...owtemplate_parameters_validation_values.rb | 34 + ...ojectlocationworkflowtemplate_placement.rb | 94 ++ ...flowtemplate_placement_cluster_selector.rb | 38 + ...acement_cluster_selector_cluster_labels.rb | 34 + ...kflowtemplate_placement_managed_cluster.rb | 94 ++ ...mplate_placement_managed_cluster_config.rb | 134 +++ ...naged_cluster_config_autoscaling_config.rb | 34 + ...ed_cluster_config_auxiliary_node_groups.rb | 56 ++ ...config_auxiliary_node_groups_node_group.rb | 53 ++ ...auxiliary_node_groups_node_group_labels.rb | 34 + ...ode_groups_node_group_node_group_config.rb | 81 ++ ...de_group_node_group_config_accelerators.rb | 45 + ...ode_group_node_group_config_disk_config.rb | 43 + ...roup_config_instance_flexibility_policy.rb | 39 + ...xibility_policy_instance_selection_list.rb | 45 + ...ility_policy_instance_selection_results.rb | 45 + ...p_node_group_config_instance_references.rb | 51 ++ ..._node_group_config_managed_group_config.rb | 40 + ..._group_node_group_config_startup_config.rb | 34 + ...d_cluster_config_dataproc_metric_config.rb | 35 + ...r_config_dataproc_metric_config_metrics.rb | 45 + ...anaged_cluster_config_encryption_config.rb | 37 + ..._managed_cluster_config_endpoint_config.rb | 38 + ...uster_config_endpoint_config_http_ports.rb | 34 + ...naged_cluster_config_gce_cluster_config.rb | 75 ++ ...ter_config_confidential_instance_config.rb | 34 + ...ster_config_gce_cluster_config_metadata.rb | 34 + ..._gce_cluster_config_node_group_affinity.rb | 34 + ...gce_cluster_config_reservation_affinity.rb | 40 + ...cluster_config_shielded_instance_config.rb | 40 + ...naged_cluster_config_gke_cluster_config.rb | 42 + ...config_namespaced_gke_deployment_target.rb | 37 + ...fig_gke_cluster_config_node_pool_target.rb | 52 ++ ...onfig_node_pool_target_node_pool_config.rb | 43 + ...ool_target_node_pool_config_autoscaling.rb | 37 + ...ode_pool_target_node_pool_config_config.rb | 53 ++ ...et_node_pool_config_config_accelerators.rb | 48 + ...d_cluster_config_initialization_actions.rb | 45 + ...managed_cluster_config_lifecycle_config.rb | 43 + ...nt_managed_cluster_config_master_config.rb | 81 ++ ...uster_config_master_config_accelerators.rb | 45 + ...luster_config_master_config_disk_config.rb | 43 + ...ster_config_instance_flexibility_policy.rb | 39 + ...xibility_policy_instance_selection_list.rb | 45 + ...ility_policy_instance_selection_results.rb | 45 + ...onfig_master_config_instance_references.rb | 51 ++ ...nfig_master_config_managed_group_config.rb | 40 + ...ter_config_master_config_startup_config.rb | 34 + ...managed_cluster_config_metastore_config.rb | 34 + ..._cluster_config_secondary_worker_config.rb | 81 ++ ...ig_secondary_worker_config_accelerators.rb | 45 + ...fig_secondary_worker_config_disk_config.rb | 43 + ...rker_config_instance_flexibility_policy.rb | 39 + ...xibility_policy_instance_selection_list.rb | 45 + ...ility_policy_instance_selection_results.rb | 45 + ...ndary_worker_config_instance_references.rb | 51 ++ ...dary_worker_config_managed_group_config.rb | 40 + ..._secondary_worker_config_startup_config.rb | 34 + ..._managed_cluster_config_security_config.rb | 40 + ..._config_security_config_identity_config.rb | 35 + ...ity_config_user_service_account_mapping.rb | 34 + ..._config_security_config_kerberos_config.rb | 76 ++ ..._managed_cluster_config_software_config.rb | 41 + ...uster_config_software_config_properties.rb | 34 + ...nt_managed_cluster_config_worker_config.rb | 81 ++ ...uster_config_worker_config_accelerators.rb | 45 + ...luster_config_worker_config_disk_config.rb | 43 + ...rker_config_instance_flexibility_policy.rb | 39 + ...xibility_policy_instance_selection_list.rb | 45 + ...ility_policy_instance_selection_results.rb | 45 + ...onfig_worker_config_instance_references.rb | 51 ++ ...nfig_worker_config_managed_group_config.rb | 40 + ...ter_config_worker_config_startup_config.rb | 34 + ...mplate_placement_managed_cluster_labels.rb | 34 + ...proc_project_location_workflow_template.rb | 137 +++ ...roc_project_location_workflow_templates.rb | 99 ++ ...proc_project_location_workflow_template.rb | 46 + ...roc_project_location_workflow_templates.rb | 36 + 134 files changed, 6878 insertions(+) create mode 100644 docs/resources/google_dataproc_project_location_workflow_template.md create mode 100644 docs/resources/google_dataproc_project_location_workflow_templates.md create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_encryption_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_labels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_scheduling.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_labels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb create mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels.rb create mode 100644 libraries/google_dataproc_project_location_workflow_template.rb create mode 100644 libraries/google_dataproc_project_location_workflow_templates.rb create mode 100644 test/integration/verify/controls/google_dataproc_project_location_workflow_template.rb create mode 100644 test/integration/verify/controls/google_dataproc_project_location_workflow_templates.rb diff --git a/docs/resources/google_dataproc_project_location_workflow_template.md b/docs/resources/google_dataproc_project_location_workflow_template.md new file mode 100644 index 000000000..b10ed7ed3 --- /dev/null +++ b/docs/resources/google_dataproc_project_location_workflow_template.md @@ -0,0 +1,867 @@ +--- +title: About the google_dataproc_project_location_workflow_template resource +platform: gcp +--- + +## Syntax +A `google_dataproc_project_location_workflow_template` is used to test a Google ProjectLocationWorkflowTemplate resource + +## Examples +``` +describe google_dataproc_project_location_workflow_template(name: ' value_name') do + it { should exist } + its('id') { should cmp 'value_id' } + its('name') { should cmp 'value_name' } + its('create_time') { should cmp 'value_createtime' } + its('update_time') { should cmp 'value_updatetime' } + its('dag_timeout') { should cmp 'value_dagtimeout' } + +end + +describe google_dataproc_project_location_workflow_template(name: "does_not_exit") do + it { should_not exist } +end +``` + +## Properties +Properties that can be accessed from the `google_dataproc_project_location_workflow_template` resource: + + + * `id`: + + * `name`: Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} + + * `version`: Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request. + + * `create_time`: Output only. The time template was created. + + * `update_time`: Output only. The time template was last updated. + + * `labels`: Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may 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 template. + + * `additional_properties`: + + * `placement`: Specifies workflow execution target.Either managed_cluster or cluster_selector is required. + + * `managed_cluster`: Cluster that is managed by the workflow. + + * `cluster_name`: Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters. + + * `config`: The cluster config. + + * `config_bucket`: Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket. + + * `temp_bucket`: Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket. + + * `gce_cluster_config`: Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. + + * `zone_uri`: Optional. The Compute Engine zone where the Dataproc cluster will be located. If omitted, the service will pick a zone in the cluster's Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] projects/[project_id]/zones/[zone] [zone] + + * `network_uri`: Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default projects/[project_id]/global/networks/default default + + * `subnetwork_uri`: Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/subnetworks/sub0 projects/[project_id]/regions/[region]/subnetworks/sub0 sub0 + + * `internal_ip_only`: Optional. This setting applies to subnetwork-enabled networks. It is set to true by default in clusters created with image versions 2.2.x.When set to true: All cluster VMs have internal IP addresses. Google Private Access (https://cloud.google.com/vpc/docs/private-google-access) must be enabled to access Dataproc and other Google Cloud APIs. Off-cluster dependencies must be configured to be accessible without external IP addresses.When set to false: Cluster VMs are not restricted to internal IP addresses. Ephemeral external IP addresses are assigned to each cluster VM. + + * `private_ipv6_google_access`: Optional. The type of IPv6 access for a cluster. + Possible values: + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + * INHERIT_FROM_SUBNETWORK + * OUTBOUND + * BIDIRECTIONAL + + * `service_account`: Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. + + * `service_account_scopes`: Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: https://www.googleapis.com/auth/cloud.useraccounts.readonly https://www.googleapis.com/auth/devstorage.read_write https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: https://www.googleapis.com/auth/bigquery https://www.googleapis.com/auth/bigtable.admin.table https://www.googleapis.com/auth/bigtable.data https://www.googleapis.com/auth/devstorage.full_control + + * `tags`: The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). + + * `metadata`: Optional. The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). + + * `additional_properties`: + + * `reservation_affinity`: Reservation Affinity for consuming Zonal reservation. + + * `consume_reservation_type`: Optional. Type of reservation to consume + Possible values: + * TYPE_UNSPECIFIED + * NO_RESERVATION + * ANY_RESERVATION + * SPECIFIC_RESERVATION + + * `key`: Optional. Corresponds to the label key of reservation resource. + + * `values`: Optional. Corresponds to the label values of reservation resource. + + * `node_group_affinity`: Node Group Affinity for clusters using sole-tenant node groups. The Dataproc NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource. + + * `node_group_uri`: Required. The URI of a sole-tenant node group resource (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that the cluster will be created on.A full URL, partial URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 node-group-1 + + * `shielded_instance_config`: Shielded Instance Config for clusters using Compute Engine Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-vm). + + * `enable_secure_boot`: Optional. Defines whether instances have Secure Boot enabled. + + * `enable_vtpm`: Optional. Defines whether instances have the vTPM enabled. + + * `enable_integrity_monitoring`: Optional. Defines whether instances have integrity monitoring enabled. + + * `confidential_instance_config`: Confidential Instance Config for clusters using Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs) + + * `enable_confidential_compute`: Optional. Defines whether the instance should have confidential compute enabled. + + * `master_config`: The config settings for Compute Engine resources in an instance group, such as a master or worker group. + + * `num_instances`: Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1. + + * `instance_names`: Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group. + + * `instance_references`: Output only. List of references to Compute Engine instances. + + * `instance_name`: The user-friendly name of the Compute Engine instance. + + * `instance_id`: The unique identifier of the Compute Engine instance. + + * `public_key`: The public RSA key used for sharing data with this instance. + + * `public_ecies_key`: The public ECIES key used for sharing data with this instance. + + * `image_uri`: Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] projects/[project_id]/global/images/[image-id] image-idImage family examples. Dataproc will use the most recent image from the family: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name] projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default. + + * `machine_type_uri`: Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2. + + * `disk_config`: Specifies the config of disk options for a group of VM instances. + + * `boot_disk_type`: Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard Disk Drive). See Disk types (https://cloud.google.com/compute/docs/disks#disk-types). + + * `boot_disk_size_gb`: Optional. Size in GB of the boot disk (default is 500GB). + + * `num_local_ssds`: Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.Note: Local SSD options may vary by machine type and number of vCPUs selected. + + * `local_ssd_interface`: Optional. Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express). See local SSD performance (https://cloud.google.com/compute/docs/disks/local-ssd#performance). + + * `is_preemptible`: Output only. Specifies that this instance group contains preemptible instances. + + * `preemptibility`: Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE. + Possible values: + * PREEMPTIBILITY_UNSPECIFIED + * NON_PREEMPTIBLE + * PREEMPTIBLE + * SPOT + + * `managed_group_config`: Specifies the resources used to actively manage an instance group. + + * `instance_template_name`: Output only. The name of the Instance Template used for the Managed Instance Group. + + * `instance_group_manager_name`: Output only. The name of the Instance Group Manager for this group. + + * `instance_group_manager_uri`: Output only. The partial URI to the instance group manager for this group. E.g. projects/my-project/regions/us-central1/instanceGroupManagers/my-igm. + + * `accelerators`: Optional. The Compute Engine accelerator configuration for these instances. + + * `accelerator_type_uri`: Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-tesla-t4Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-t4. + + * `accelerator_count`: The number of the accelerator cards of this type exposed to this instance. + + * `min_cpu_platform`: Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). + + * `min_num_instances`: Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.Example: Cluster creation request with num_instances = 5 and min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state. If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted. + + * `instance_flexibility_policy`: Instance flexibility Policy allowing a mixture of VM shapes and provisioning models. + + * `instance_selection_list`: Optional. List of instance selection options that the group will use when creating new VMs. + + * `machine_types`: Optional. Full machine-type names, e.g. "n1-standard-16". + + * `rank`: Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference. + + * `instance_selection_results`: Output only. A list of instance selection results in the group. + + * `machine_type`: Output only. Full machine-type names, e.g. "n1-standard-16". + + * `vm_count`: Output only. Number of VM provisioned with the machine_type. + + * `startup_config`: Configuration to handle the startup of instances during cluster create and update process. + + * `required_registration_fraction`: Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled). + + * `worker_config`: The config settings for Compute Engine resources in an instance group, such as a master or worker group. + + * `num_instances`: Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1. + + * `instance_names`: Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group. + + * `instance_references`: Output only. List of references to Compute Engine instances. + + * `instance_name`: The user-friendly name of the Compute Engine instance. + + * `instance_id`: The unique identifier of the Compute Engine instance. + + * `public_key`: The public RSA key used for sharing data with this instance. + + * `public_ecies_key`: The public ECIES key used for sharing data with this instance. + + * `image_uri`: Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] projects/[project_id]/global/images/[image-id] image-idImage family examples. Dataproc will use the most recent image from the family: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name] projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default. + + * `machine_type_uri`: Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2. + + * `disk_config`: Specifies the config of disk options for a group of VM instances. + + * `boot_disk_type`: Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard Disk Drive). See Disk types (https://cloud.google.com/compute/docs/disks#disk-types). + + * `boot_disk_size_gb`: Optional. Size in GB of the boot disk (default is 500GB). + + * `num_local_ssds`: Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.Note: Local SSD options may vary by machine type and number of vCPUs selected. + + * `local_ssd_interface`: Optional. Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express). See local SSD performance (https://cloud.google.com/compute/docs/disks/local-ssd#performance). + + * `is_preemptible`: Output only. Specifies that this instance group contains preemptible instances. + + * `preemptibility`: Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE. + Possible values: + * PREEMPTIBILITY_UNSPECIFIED + * NON_PREEMPTIBLE + * PREEMPTIBLE + * SPOT + + * `managed_group_config`: Specifies the resources used to actively manage an instance group. + + * `instance_template_name`: Output only. The name of the Instance Template used for the Managed Instance Group. + + * `instance_group_manager_name`: Output only. The name of the Instance Group Manager for this group. + + * `instance_group_manager_uri`: Output only. The partial URI to the instance group manager for this group. E.g. projects/my-project/regions/us-central1/instanceGroupManagers/my-igm. + + * `accelerators`: Optional. The Compute Engine accelerator configuration for these instances. + + * `accelerator_type_uri`: Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-tesla-t4Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-t4. + + * `accelerator_count`: The number of the accelerator cards of this type exposed to this instance. + + * `min_cpu_platform`: Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). + + * `min_num_instances`: Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.Example: Cluster creation request with num_instances = 5 and min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state. If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted. + + * `instance_flexibility_policy`: Instance flexibility Policy allowing a mixture of VM shapes and provisioning models. + + * `instance_selection_list`: Optional. List of instance selection options that the group will use when creating new VMs. + + * `machine_types`: Optional. Full machine-type names, e.g. "n1-standard-16". + + * `rank`: Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference. + + * `instance_selection_results`: Output only. A list of instance selection results in the group. + + * `machine_type`: Output only. Full machine-type names, e.g. "n1-standard-16". + + * `vm_count`: Output only. Number of VM provisioned with the machine_type. + + * `startup_config`: Configuration to handle the startup of instances during cluster create and update process. + + * `required_registration_fraction`: Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled). + + * `secondary_worker_config`: The config settings for Compute Engine resources in an instance group, such as a master or worker group. + + * `num_instances`: Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1. + + * `instance_names`: Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group. + + * `instance_references`: Output only. List of references to Compute Engine instances. + + * `instance_name`: The user-friendly name of the Compute Engine instance. + + * `instance_id`: The unique identifier of the Compute Engine instance. + + * `public_key`: The public RSA key used for sharing data with this instance. + + * `public_ecies_key`: The public ECIES key used for sharing data with this instance. + + * `image_uri`: Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] projects/[project_id]/global/images/[image-id] image-idImage family examples. Dataproc will use the most recent image from the family: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name] projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default. + + * `machine_type_uri`: Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2. + + * `disk_config`: Specifies the config of disk options for a group of VM instances. + + * `boot_disk_type`: Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard Disk Drive). See Disk types (https://cloud.google.com/compute/docs/disks#disk-types). + + * `boot_disk_size_gb`: Optional. Size in GB of the boot disk (default is 500GB). + + * `num_local_ssds`: Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.Note: Local SSD options may vary by machine type and number of vCPUs selected. + + * `local_ssd_interface`: Optional. Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express). See local SSD performance (https://cloud.google.com/compute/docs/disks/local-ssd#performance). + + * `is_preemptible`: Output only. Specifies that this instance group contains preemptible instances. + + * `preemptibility`: Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE. + Possible values: + * PREEMPTIBILITY_UNSPECIFIED + * NON_PREEMPTIBLE + * PREEMPTIBLE + * SPOT + + * `managed_group_config`: Specifies the resources used to actively manage an instance group. + + * `instance_template_name`: Output only. The name of the Instance Template used for the Managed Instance Group. + + * `instance_group_manager_name`: Output only. The name of the Instance Group Manager for this group. + + * `instance_group_manager_uri`: Output only. The partial URI to the instance group manager for this group. E.g. projects/my-project/regions/us-central1/instanceGroupManagers/my-igm. + + * `accelerators`: Optional. The Compute Engine accelerator configuration for these instances. + + * `accelerator_type_uri`: Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-tesla-t4Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-t4. + + * `accelerator_count`: The number of the accelerator cards of this type exposed to this instance. + + * `min_cpu_platform`: Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). + + * `min_num_instances`: Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.Example: Cluster creation request with num_instances = 5 and min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state. If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted. + + * `instance_flexibility_policy`: Instance flexibility Policy allowing a mixture of VM shapes and provisioning models. + + * `instance_selection_list`: Optional. List of instance selection options that the group will use when creating new VMs. + + * `machine_types`: Optional. Full machine-type names, e.g. "n1-standard-16". + + * `rank`: Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference. + + * `instance_selection_results`: Output only. A list of instance selection results in the group. + + * `machine_type`: Output only. Full machine-type names, e.g. "n1-standard-16". + + * `vm_count`: Output only. Number of VM provisioned with the machine_type. + + * `startup_config`: Configuration to handle the startup of instances during cluster create and update process. + + * `required_registration_fraction`: Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled). + + * `software_config`: Specifies the selection and config of software inside the cluster. + + * `image_version`: Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version. + + * `properties`: Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). + + * `additional_properties`: + + * `optional_components`: Optional. The set of components to activate on the cluster. + + * `initialization_actions`: Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi + + * `executable_file`: Required. Cloud Storage URI of executable file. + + * `execution_timeout`: Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period. + + * `encryption_config`: Encryption settings for the cluster. + + * `gce_pd_kms_key_name`: Optional. The Cloud KMS key resource name to use for persistent disk encryption for all instances in the cluster. See Use CMEK with cluster data (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more information. + + * `kms_key`: Optional. The Cloud KMS key resource name to use for cluster persistent disk and job argument encryption. See Use CMEK with cluster data (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more information.When this key resource name is provided, the following job arguments of the following job types submitted to the cluster are encrypted using CMEK: FlinkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) HadoopJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) SparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) SparkRJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) PySparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) SparkSqlJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) scriptVariables and queryList.queries HiveJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) scriptVariables and queryList.queries PigJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) scriptVariables and queryList.queries PrestoJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) scriptVariables and queryList.queries + + * `autoscaling_config`: Autoscaling Policy config associated with the cluster. + + * `policy_uri`: Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region. + + * `security_config`: Security related configuration, including encryption, Kerberos, etc. + + * `kerberos_config`: Specifies Kerberos related configuration. + + * `enable_kerberos`: Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster. + + * `root_principal_password_uri`: Optional. The Cloud Storage URI of a KMS encrypted file containing the root principal password. + + * `kms_key_uri`: Optional. The URI of the KMS key used to encrypt sensitive files. + + * `keystore_uri`: Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. + + * `truststore_uri`: Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. + + * `keystore_password_uri`: Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc. + + * `key_password_uri`: Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc. + + * `truststore_password_uri`: Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc. + + * `cross_realm_trust_realm`: Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. + + * `cross_realm_trust_kdc`: Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. + + * `cross_realm_trust_admin_server`: Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. + + * `cross_realm_trust_shared_password_uri`: Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship. + + * `kdc_db_key_uri`: Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. + + * `tgt_lifetime_hours`: Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used. + + * `realm`: Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm. + + * `identity_config`: Identity related configuration, including service account based secure multi-tenancy user mappings. + + * `user_service_account_mapping`: Required. Map of user to service account. + + * `additional_properties`: + + * `lifecycle_config`: Specifies the cluster auto-delete schedule configuration. + + * `idle_delete_ttl`: Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). + + * `auto_delete_time`: Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)). + + * `auto_delete_ttl`: Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). + + * `idle_start_time`: Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)). + + * `endpoint_config`: Endpoint config for this cluster + + * `http_ports`: Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. + + * `additional_properties`: + + * `enable_http_port_access`: Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. + + * `metastore_config`: Specifies a Metastore configuration. + + * `dataproc_metastore_service`: Required. Resource name of an existing Dataproc Metastore service.Example: projects/[project_id]/locations/[dataproc_region]/services/[service-name] + + * `gke_cluster_config`: The cluster's GKE config. + + * `namespaced_gke_deployment_target`: Deprecated. Used only for the deprecated beta. A full, namespace-isolated deployment target for an existing GKE cluster. + + * `target_gke_cluster`: Optional. The target GKE cluster to deploy to. Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}' + + * `cluster_namespace`: Optional. A namespace within the GKE cluster to deploy into. + + * `gke_cluster_target`: Optional. A target GKE cluster to deploy to. It must be in the same project and region as the Dataproc cluster (the GKE cluster can be zonal or regional). Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}' + + * `node_pool_target`: Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings. + + * `node_pool`: Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}' + + * `roles`: Required. The roles associated with the GKE node pool. + + * `node_pool_config`: The configuration of a GKE node pool used by a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). + + * `config`: Parameters that describe cluster nodes. + + * `machine_type`: Optional. The name of a Compute Engine machine type (https://cloud.google.com/compute/docs/machine-types). + + * `local_ssd_count`: Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs (https://cloud.google.com/compute/docs/disks/local-ssd)). + + * `preemptible`: Optional. Whether the nodes are created as legacy preemptible VM instances (https://cloud.google.com/compute/docs/instances/preemptible). Also see Spot VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role). + + * `accelerators`: Optional. A list of hardware accelerators (https://cloud.google.com/compute/docs/gpus) to attach to each node. + + * `accelerator_count`: The number of accelerator cards exposed to an instance. + + * `accelerator_type`: The accelerator type resource namename (see GPUs on Compute Engine). + + * `gpu_partition_size`: Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + + * `min_cpu_platform`: Optional. Minimum CPU platform (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge". + + * `boot_disk_kms_key`: Optional. The Customer Managed Encryption Key (CMEK) (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + + * `spot`: Optional. Whether the nodes are created as Spot VM instances (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy preemptible VMs. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role). + + * `locations`: Optional. The list of Compute Engine zones (https://cloud.google.com/compute/docs/zones#available) where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.If a location is not specified during node pool creation, Dataproc on GKE will choose the zone. + + * `autoscaling`: GkeNodePoolAutoscaling contains information the cluster autoscaler needs to adjust the size of the node pool to the current cluster usage. + + * `min_node_count`: The minimum number of nodes in the node pool. Must be >= 0 and <= max_node_count. + + * `max_node_count`: The maximum number of nodes in the node pool. Must be >= min_node_count, and must be > 0. Note: Quota must be sufficient to scale up the cluster. + + * `dataproc_metric_config`: Dataproc metric config. + + * `metrics`: Required. Metrics sources to enable. + + * `metric_source`: Required. A standard set of metrics is collected unless metricOverrides are specified for the metric source (see Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) for more information). + Possible values: + * METRIC_SOURCE_UNSPECIFIED + * MONITORING_AGENT_DEFAULTS + * HDFS + * SPARK + * YARN + * SPARK_HISTORY_SERVER + * HIVESERVER2 + * HIVEMETASTORE + * FLINK + + * `metric_overrides`: Optional. Specify one or more Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) to collect for the metric course (for the SPARK metric source (any Spark metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be specified).Provide metrics in the following format: METRIC_SOURCE: INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified overridden metrics are collected for the metric source. For example, if one or more spark:executive metrics are listed as metric overrides, other SPARK metrics are not collected. The collection of the metrics for other enabled custom metric sources is unaffected. For example, if both SPARK andd YARN metric sources are enabled, and overrides are provided for Spark metrics only, all YARN metrics are collected. + + * `auxiliary_node_groups`: Optional. The node group settings. + + * `node_group`: Dataproc Node Group. The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity resource. + + * `name`: The Node group resource name (https://aip.dev/122). + + * `roles`: Required. Node group roles. + + * `node_group_config`: The config settings for Compute Engine resources in an instance group, such as a master or worker group. + + * `num_instances`: Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1. + + * `instance_names`: Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group. + + * `instance_references`: Output only. List of references to Compute Engine instances. + + * `instance_name`: The user-friendly name of the Compute Engine instance. + + * `instance_id`: The unique identifier of the Compute Engine instance. + + * `public_key`: The public RSA key used for sharing data with this instance. + + * `public_ecies_key`: The public ECIES key used for sharing data with this instance. + + * `image_uri`: Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] projects/[project_id]/global/images/[image-id] image-idImage family examples. Dataproc will use the most recent image from the family: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name] projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default. + + * `machine_type_uri`: Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2. + + * `disk_config`: Specifies the config of disk options for a group of VM instances. + + * `boot_disk_type`: Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard Disk Drive). See Disk types (https://cloud.google.com/compute/docs/disks#disk-types). + + * `boot_disk_size_gb`: Optional. Size in GB of the boot disk (default is 500GB). + + * `num_local_ssds`: Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.Note: Local SSD options may vary by machine type and number of vCPUs selected. + + * `local_ssd_interface`: Optional. Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express). See local SSD performance (https://cloud.google.com/compute/docs/disks/local-ssd#performance). + + * `is_preemptible`: Output only. Specifies that this instance group contains preemptible instances. + + * `preemptibility`: Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE. + Possible values: + * PREEMPTIBILITY_UNSPECIFIED + * NON_PREEMPTIBLE + * PREEMPTIBLE + * SPOT + + * `managed_group_config`: Specifies the resources used to actively manage an instance group. + + * `instance_template_name`: Output only. The name of the Instance Template used for the Managed Instance Group. + + * `instance_group_manager_name`: Output only. The name of the Instance Group Manager for this group. + + * `instance_group_manager_uri`: Output only. The partial URI to the instance group manager for this group. E.g. projects/my-project/regions/us-central1/instanceGroupManagers/my-igm. + + * `accelerators`: Optional. The Compute Engine accelerator configuration for these instances. + + * `accelerator_type_uri`: Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-tesla-t4Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-t4. + + * `accelerator_count`: The number of the accelerator cards of this type exposed to this instance. + + * `min_cpu_platform`: Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). + + * `min_num_instances`: Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.Example: Cluster creation request with num_instances = 5 and min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state. If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted. + + * `instance_flexibility_policy`: Instance flexibility Policy allowing a mixture of VM shapes and provisioning models. + + * `instance_selection_list`: Optional. List of instance selection options that the group will use when creating new VMs. + + * `machine_types`: Optional. Full machine-type names, e.g. "n1-standard-16". + + * `rank`: Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference. + + * `instance_selection_results`: Output only. A list of instance selection results in the group. + + * `machine_type`: Output only. Full machine-type names, e.g. "n1-standard-16". + + * `vm_count`: Output only. Number of VM provisioned with the machine_type. + + * `startup_config`: Configuration to handle the startup of instances during cluster create and update process. + + * `required_registration_fraction`: Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled). + + * `labels`: Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn. + + * `additional_properties`: + + * `node_group_id`: Optional. A node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters. + + * `labels`: Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster. + + * `additional_properties`: + + * `cluster_selector`: A selector that chooses target cluster for jobs based on metadata. + + * `zone`: Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used. + + * `cluster_labels`: Required. The cluster labels. Cluster must have all labels to match. + + * `additional_properties`: + + * `jobs`: Required. The Directed Acyclic Graph of Jobs to submit. + + * `step_id`: Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. + + * `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`: + + * `labels`: Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given 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). + + * `prerequisite_step_ids`: Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow. + + * `parameters`: Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated. + + * `name`: Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters. + + * `fields`: Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax: Values in maps can be referenced by key: labels'key' placement.clusterSelector.clusterLabels'key' placement.managedCluster.labels'key' placement.clusterSelector.clusterLabels'key' jobs'step-id'.labels'key' Jobs in the jobs list can be referenced by step-id: jobs'step-id'.hadoopJob.mainJarFileUri jobs'step-id'.hiveJob.queryFileUri jobs'step-id'.pySparkJob.mainPythonFileUri jobs'step-id'.hadoopJob.jarFileUris0 jobs'step-id'.hadoopJob.archiveUris0 jobs'step-id'.hadoopJob.fileUris0 jobs'step-id'.pySparkJob.pythonFileUris0 Items in repeated fields can be referenced by a zero-based index: jobs'step-id'.sparkJob.args0 Other examples: jobs'step-id'.hadoopJob.properties'key' jobs'step-id'.hadoopJob.args0 jobs'step-id'.hiveJob.scriptVariables'key' jobs'step-id'.hadoopJob.mainJarFileUri placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: placement.clusterSelector.clusterLabels jobs'step-id'.sparkJob.args + + * `description`: Optional. Brief description of the parameter. Must not exceed 1024 characters. + + * `validation`: Configuration for parameter validation. + + * `regex`: Validation based on regular expressions. + + * `regexes`: Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). + + * `values`: Validation based on a list of allowed values. + + * `values`: Required. List of allowed values for the parameter. + + * `dag_timeout`: Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted. + + * `encryption_config`: Encryption settings for encrypting workflow template job arguments. + + * `kms_key`: Optional. The Cloud KMS key name to use for encrypting workflow template job arguments.When this this key is provided, the following workflow template job arguments (https://cloud.google.com/dataproc/docs/concepts/workflows/use-workflows#adding_jobs_to_a_template), if present, are CMEK encrypted (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_workflow_template_data): FlinkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) HadoopJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) SparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) SparkRJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) PySparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) SparkSqlJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) scriptVariables and queryList.queries HiveJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) scriptVariables and queryList.queries PigJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) scriptVariables and queryList.queries PrestoJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) scriptVariables and queryList.queries + + +## 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_location_workflow_templates.md b/docs/resources/google_dataproc_project_location_workflow_templates.md new file mode 100644 index 000000000..08707fe5d --- /dev/null +++ b/docs/resources/google_dataproc_project_location_workflow_templates.md @@ -0,0 +1,38 @@ +--- +title: About the google_dataproc_project_location_workflow_templates resource +platform: gcp +--- + +## Syntax +A `google_dataproc_project_location_workflow_templates` is used to test a Google ProjectLocationWorkflowTemplate resource + +## Examples +``` + describe google_dataproc_project_location_workflow_templates(parent: ' ') do + it { should exist } + end +``` + +## Properties +Properties that can be accessed from the `google_dataproc_project_location_workflow_templates` resource: + +See [google_dataproc_project_location_workflow_template.md](google_dataproc_project_location_workflow_template.md) for more detailed information + * `ids`: an array of `google_dataproc_project_location_workflow_template` id + * `names`: an array of `google_dataproc_project_location_workflow_template` name + * `versions`: an array of `google_dataproc_project_location_workflow_template` version + * `create_times`: an array of `google_dataproc_project_location_workflow_template` create_time + * `update_times`: an array of `google_dataproc_project_location_workflow_template` update_time + * `labels`: an array of `google_dataproc_project_location_workflow_template` labels + * `placements`: an array of `google_dataproc_project_location_workflow_template` placement + * `jobs`: an array of `google_dataproc_project_location_workflow_template` jobs + * `parameters`: an array of `google_dataproc_project_location_workflow_template` parameters + * `dag_timeouts`: an array of `google_dataproc_project_location_workflow_template` dag_timeout + * `encryption_configs`: an array of `google_dataproc_project_location_workflow_template` encryption_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/projectlocationworkflowtemplate_encryption_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_encryption_config.rb new file mode 100644 index 000000000..5f1bca692 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_encryption_config.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 ProjectLocationWorkflowTemplateEncryptionConfig + attr_reader :kms_key + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @kms_key = args['kmsKey'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateEncryptionConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs.rb new file mode 100644 index 000000000..92ca9589d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs.rb @@ -0,0 +1,129 @@ +# 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/projectlocationworkflowtemplate_jobs_flink_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_labels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_scheduling' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobs + attr_reader :step_id + + 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 :labels + + attr_reader :scheduling + + attr_reader :prerequisite_step_ids + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @step_id = args['stepId'] + @hadoop_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHadoopJob.new(args['hadoopJob'], to_s) + @spark_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkJob.new(args['sparkJob'], to_s) + @pyspark_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPysparkJob.new(args['pysparkJob'], to_s) + @hive_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHiveJob.new(args['hiveJob'], to_s) + @pig_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPigJob.new(args['pigJob'], to_s) + @spark_r_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkRJob.new(args['sparkRJob'], to_s) + @spark_sql_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkSqlJob.new(args['sparkSqlJob'], to_s) + @presto_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPrestoJob.new(args['prestoJob'], to_s) + @trino_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsTrinoJob.new(args['trinoJob'], to_s) + @flink_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsFlinkJob.new(args['flinkJob'], to_s) + @labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsLabels.new(args['labels'], to_s) + @scheduling = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsScheduling.new(args['scheduling'], to_s) + @prerequisite_step_ids = args['prerequisiteStepIds'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobs" + end + end + + class ProjectLocationWorkflowTemplateJobsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplateJobs.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplateJobs.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job.rb new file mode 100644 index 000000000..422acf16b --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_flink_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsFlinkJob + 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::ProjectLocationWorkflowTemplateJobsFlinkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsFlinkJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config.rb new file mode 100644 index 000000000..613ac6c90 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfig + 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::ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..7e8aa2871 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfigDriverLogLevels + 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} ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties.rb new file mode 100644 index 000000000..0b6a7bf4e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsFlinkJobProperties + 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} ProjectLocationWorkflowTemplateJobsFlinkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job.rb new file mode 100644 index 000000000..bc1589f2a --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsHadoopJob + 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::ProjectLocationWorkflowTemplateJobsHadoopJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsHadoopJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config.rb new file mode 100644 index 000000000..f5d3d457d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfig + 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::ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..6bb4faf1b --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfigDriverLogLevels + 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} ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties.rb new file mode 100644 index 000000000..cb95ab6c8 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsHadoopJobProperties + 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} ProjectLocationWorkflowTemplateJobsHadoopJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job.rb new file mode 100644 index 000000000..12ae44afe --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_hive_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsHiveJob + 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::ProjectLocationWorkflowTemplateJobsHiveJobQueryList.new(args['queryList'], to_s) + @continue_on_failure = args['continueOnFailure'] + @script_variables = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHiveJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHiveJobProperties.new(args['properties'], to_s) + @jar_file_uris = args['jarFileUris'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsHiveJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_properties.rb new file mode 100644 index 000000000..617d660a7 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsHiveJobProperties + 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} ProjectLocationWorkflowTemplateJobsHiveJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list.rb new file mode 100644 index 000000000..e21a5ac0b --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsHiveJobQueryList + 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} ProjectLocationWorkflowTemplateJobsHiveJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables.rb new file mode 100644 index 000000000..e8a13f5b5 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsHiveJobScriptVariables + 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} ProjectLocationWorkflowTemplateJobsHiveJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_labels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_labels.rb new file mode 100644 index 000000000..a0f9e9fa3 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsLabels + 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} ProjectLocationWorkflowTemplateJobsLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job.rb new file mode 100644 index 000000000..bfdc06f60 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_pig_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsPigJob + 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::ProjectLocationWorkflowTemplateJobsPigJobQueryList.new(args['queryList'], to_s) + @continue_on_failure = args['continueOnFailure'] + @script_variables = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPigJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPigJobProperties.new(args['properties'], to_s) + @jar_file_uris = args['jarFileUris'] + @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPigJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPigJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config.rb new file mode 100644 index 000000000..370c12a3d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsPigJobLoggingConfig + 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::ProjectLocationWorkflowTemplateJobsPigJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPigJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..7cc91d53b --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPigJobLoggingConfigDriverLogLevels + 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} ProjectLocationWorkflowTemplateJobsPigJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties.rb new file mode 100644 index 000000000..72804491e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPigJobProperties + 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} ProjectLocationWorkflowTemplateJobsPigJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list.rb new file mode 100644 index 000000000..8eb4a345b --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPigJobQueryList + 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} ProjectLocationWorkflowTemplateJobsPigJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables.rb new file mode 100644 index 000000000..427f9f35d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPigJobScriptVariables + 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} ProjectLocationWorkflowTemplateJobsPigJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job.rb new file mode 100644 index 000000000..6db04400f --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_presto_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsPrestoJob + 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::ProjectLocationWorkflowTemplateJobsPrestoJobQueryList.new(args['queryList'], to_s) + @continue_on_failure = args['continueOnFailure'] + @output_format = args['outputFormat'] + @client_tags = args['clientTags'] + @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPrestoJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPrestoJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config.rb new file mode 100644 index 000000000..ac50c05d1 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfig + 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::ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..d810c42cd --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfigDriverLogLevels + 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} ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties.rb new file mode 100644 index 000000000..ca0998621 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPrestoJobProperties + 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} ProjectLocationWorkflowTemplateJobsPrestoJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list.rb new file mode 100644 index 000000000..55f778552 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPrestoJobQueryList + 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} ProjectLocationWorkflowTemplateJobsPrestoJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job.rb new file mode 100644 index 000000000..454997984 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsPysparkJob + 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::ProjectLocationWorkflowTemplateJobsPysparkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPysparkJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config.rb new file mode 100644 index 000000000..5b97e59b3 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfig + 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::ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..fd466c13e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfigDriverLogLevels + 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} ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties.rb new file mode 100644 index 000000000..beb4d56f7 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPysparkJobProperties + 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} ProjectLocationWorkflowTemplateJobsPysparkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_scheduling.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_scheduling.rb new file mode 100644 index 000000000..33f328db6 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsScheduling + 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} ProjectLocationWorkflowTemplateJobsScheduling" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job.rb new file mode 100644 index 000000000..a7a3cd579 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_spark_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsSparkJob + 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::ProjectLocationWorkflowTemplateJobsSparkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config.rb new file mode 100644 index 000000000..840e8e5a1 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfig + 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::ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..3f506f212 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfigDriverLogLevels + 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} ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties.rb new file mode 100644 index 000000000..3c85be8e9 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkJobProperties + 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} ProjectLocationWorkflowTemplateJobsSparkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job.rb new file mode 100644 index 000000000..51f81c293 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsSparkRJob + 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::ProjectLocationWorkflowTemplateJobsSparkRJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkRJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config.rb new file mode 100644 index 000000000..0db6ae14a --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfig + 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::ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..787023c5a --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfigDriverLogLevels + 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} ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties.rb new file mode 100644 index 000000000..ef7d793e0 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkRJobProperties + 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} ProjectLocationWorkflowTemplateJobsSparkRJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job.rb new file mode 100644 index 000000000..af5db96aa --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsSparkSqlJob + 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::ProjectLocationWorkflowTemplateJobsSparkSqlJobQueryList.new(args['queryList'], to_s) + @script_variables = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkSqlJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkSqlJobProperties.new(args['properties'], to_s) + @jar_file_uris = args['jarFileUris'] + @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkSqlJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config.rb new file mode 100644 index 000000000..09378a665 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfig + 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::ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..e1ec98232 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfigDriverLogLevels + 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} ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties.rb new file mode 100644 index 000000000..becf1e37c --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkSqlJobProperties + 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} ProjectLocationWorkflowTemplateJobsSparkSqlJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list.rb new file mode 100644 index 000000000..244491df1 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkSqlJobQueryList + 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} ProjectLocationWorkflowTemplateJobsSparkSqlJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables.rb new file mode 100644 index 000000000..9904457bd --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkSqlJobScriptVariables + 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} ProjectLocationWorkflowTemplateJobsSparkSqlJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job.rb new file mode 100644 index 000000000..5b7f80e45 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_trino_job_logging_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsTrinoJob + 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::ProjectLocationWorkflowTemplateJobsTrinoJobQueryList.new(args['queryList'], to_s) + @continue_on_failure = args['continueOnFailure'] + @output_format = args['outputFormat'] + @client_tags = args['clientTags'] + @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsTrinoJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfig.new(args['loggingConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsTrinoJob" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config.rb new file mode 100644 index 000000000..fee12db0e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfig + 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::ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..cf5edc907 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfigDriverLogLevels + 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} ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties.rb new file mode 100644 index 000000000..dc3f43951 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsTrinoJobProperties + 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} ProjectLocationWorkflowTemplateJobsTrinoJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list.rb new file mode 100644 index 000000000..2877dea4a --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsTrinoJobQueryList + 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} ProjectLocationWorkflowTemplateJobsTrinoJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_labels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_labels.rb new file mode 100644 index 000000000..7f814469a --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_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 ProjectLocationWorkflowTemplateLabels + 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} ProjectLocationWorkflowTemplateLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters.rb new file mode 100644 index 000000000..eb56b6779 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters.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/projectlocationworkflowtemplate_parameters_validation' +require 'google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex' +require 'google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateParameters + attr_reader :name + + attr_reader :fields + + attr_reader :description + + attr_reader :validation + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @name = args['name'] + @fields = args['fields'] + @description = args['description'] + @validation = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersValidation.new(args['validation'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateParameters" + end + end + + class ProjectLocationWorkflowTemplateParametersArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplateParameters.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplateParameters.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation.rb new file mode 100644 index 000000000..d1c0dca84 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation.rb @@ -0,0 +1,39 @@ +# 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/projectlocationworkflowtemplate_parameters_validation_regex' +require 'google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplateParametersValidation + attr_reader :regex + + attr_reader :values + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @regex = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersValidationRegex.new(args['regex'], to_s) + @values = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersValidationValues.new(args['values'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateParametersValidation" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex.rb new file mode 100644 index 000000000..911289887 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex.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 ProjectLocationWorkflowTemplateParametersValidationRegex + attr_reader :regexes + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @regexes = args['regexes'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateParametersValidationRegex" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values.rb new file mode 100644 index 000000000..07e2bef66 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values.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 ProjectLocationWorkflowTemplateParametersValidationValues + attr_reader :values + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @values = args['values'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplateParametersValidationValues" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement.rb new file mode 100644 index 000000000..bf838215f --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement.rb @@ -0,0 +1,94 @@ +# 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/projectlocationworkflowtemplate_placement_cluster_selector' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacement + attr_reader :managed_cluster + + attr_reader :cluster_selector + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @managed_cluster = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedCluster.new(args['managedCluster'], to_s) + @cluster_selector = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementClusterSelector.new(args['clusterSelector'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacement" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector.rb new file mode 100644 index 000000000..cbadfb87d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector.rb @@ -0,0 +1,38 @@ +# 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/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementClusterSelector + attr_reader :zone + + attr_reader :cluster_labels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @zone = args['zone'] + @cluster_labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementClusterSelectorClusterLabels.new(args['clusterLabels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementClusterSelector" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels.rb new file mode 100644 index 000000000..be5983693 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_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 ProjectLocationWorkflowTemplatePlacementClusterSelectorClusterLabels + 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} ProjectLocationWorkflowTemplatePlacementClusterSelectorClusterLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster.rb new file mode 100644 index 000000000..b0745bca5 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster.rb @@ -0,0 +1,94 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedCluster + attr_reader :cluster_name + + attr_reader :config + + attr_reader :labels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @cluster_name = args['clusterName'] + @config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfig.new(args['config'], to_s) + @labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterLabels.new(args['labels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedCluster" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config.rb new file mode 100644 index 000000000..43d42f3da --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config.rb @@ -0,0 +1,134 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfig + attr_reader :config_bucket + + attr_reader :temp_bucket + + attr_reader :gce_cluster_config + + attr_reader :master_config + + attr_reader :worker_config + + attr_reader :secondary_worker_config + + attr_reader :software_config + + attr_reader :initialization_actions + + attr_reader :encryption_config + + attr_reader :autoscaling_config + + attr_reader :security_config + + attr_reader :lifecycle_config + + attr_reader :endpoint_config + + attr_reader :metastore_config + + attr_reader :gke_cluster_config + + attr_reader :dataproc_metric_config + + attr_reader :auxiliary_node_groups + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @config_bucket = args['configBucket'] + @temp_bucket = args['tempBucket'] + @gce_cluster_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfig.new(args['gceClusterConfig'], to_s) + @master_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfig.new(args['masterConfig'], to_s) + @worker_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfig.new(args['workerConfig'], to_s) + @secondary_worker_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig.new(args['secondaryWorkerConfig'], to_s) + @software_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfig.new(args['softwareConfig'], to_s) + @initialization_actions = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActionsArray.parse(args['initializationActions'], to_s) + @encryption_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEncryptionConfig.new(args['encryptionConfig'], to_s) + @autoscaling_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig.new(args['autoscalingConfig'], to_s) + @security_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfig.new(args['securityConfig'], to_s) + @lifecycle_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigLifecycleConfig.new(args['lifecycleConfig'], to_s) + @endpoint_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfig.new(args['endpointConfig'], to_s) + @metastore_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMetastoreConfig.new(args['metastoreConfig'], to_s) + @gke_cluster_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig.new(args['gkeClusterConfig'], to_s) + @dataproc_metric_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig.new(args['dataprocMetricConfig'], to_s) + @auxiliary_node_groups = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsArray.parse(args['auxiliaryNodeGroups'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config.rb new file mode 100644 index 000000000..a75e074d1 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig + attr_reader :policy_uri + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @policy_uri = args['policyUri'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb new file mode 100644 index 000000000..b634d6150 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.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/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups + attr_reader :node_group + + attr_reader :node_group_id + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @node_group = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup.new(args['nodeGroup'], to_s) + @node_group_id = args['nodeGroupId'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb new file mode 100644 index 000000000..b1d776c6f --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb @@ -0,0 +1,53 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup + attr_reader :name + + attr_reader :roles + + attr_reader :node_group_config + + attr_reader :labels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @name = args['name'] + @roles = args['roles'] + @node_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig.new(args['nodeGroupConfig'], to_s) + @labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels.new(args['labels'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb new file mode 100644 index 000000000..c6aa4986d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels + 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb new file mode 100644 index 000000000..8e6b51408 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb @@ -0,0 +1,81 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig + attr_reader :num_instances + + attr_reader :instance_names + + attr_reader :instance_references + + attr_reader :image_uri + + attr_reader :machine_type_uri + + attr_reader :disk_config + + attr_reader :is_preemptible + + attr_reader :preemptibility + + attr_reader :managed_group_config + + attr_reader :accelerators + + attr_reader :min_cpu_platform + + attr_reader :min_num_instances + + attr_reader :instance_flexibility_policy + + attr_reader :startup_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @num_instances = args['numInstances'] + @instance_names = args['instanceNames'] + @instance_references = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @image_uri = args['imageUri'] + @machine_type_uri = args['machineTypeUri'] + @disk_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig.new(args['diskConfig'], to_s) + @is_preemptible = args['isPreemptible'] + @preemptibility = args['preemptibility'] + @managed_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @min_cpu_platform = args['minCpuPlatform'] + @min_num_instances = args['minNumInstances'] + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig.new(args['startupConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb new file mode 100644 index 000000000..70bc1fc90 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators + attr_reader :accelerator_type_uri + + attr_reader :accelerator_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @accelerator_type_uri = args['acceleratorTypeUri'] + @accelerator_count = args['acceleratorCount'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb new file mode 100644 index 000000000..251157310 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig + attr_reader :boot_disk_type + + attr_reader :boot_disk_size_gb + + attr_reader :num_local_ssds + + attr_reader :local_ssd_interface + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @boot_disk_type = args['bootDiskType'] + @boot_disk_size_gb = args['bootDiskSizeGb'] + @num_local_ssds = args['numLocalSsds'] + @local_ssd_interface = args['localSsdInterface'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb new file mode 100644 index 000000000..ad30fa0c5 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb @@ -0,0 +1,39 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy + attr_reader :instance_selection_list + + attr_reader :instance_selection_results + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_selection_list = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb new file mode 100644 index 000000000..4f4d3bfb0 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList + attr_reader :machine_types + + attr_reader :rank + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_types = args['machineTypes'] + @rank = args['rank'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionListArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb new file mode 100644 index 000000000..fe38daa86 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults + attr_reader :machine_type + + attr_reader :vm_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_type = args['machineType'] + @vm_count = args['vmCount'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb new file mode 100644 index 000000000..ac3bfea90 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences + attr_reader :instance_name + + attr_reader :instance_id + + attr_reader :public_key + + attr_reader :public_ecies_key + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_name = args['instanceName'] + @instance_id = args['instanceId'] + @public_key = args['publicKey'] + @public_ecies_key = args['publicEciesKey'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb new file mode 100644 index 000000000..653533b9c --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb @@ -0,0 +1,40 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig + attr_reader :instance_template_name + + attr_reader :instance_group_manager_name + + attr_reader :instance_group_manager_uri + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_template_name = args['instanceTemplateName'] + @instance_group_manager_name = args['instanceGroupManagerName'] + @instance_group_manager_uri = args['instanceGroupManagerUri'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb new file mode 100644 index 000000000..2a6c8ae8d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig + attr_reader :required_registration_fraction + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @required_registration_fraction = args['requiredRegistrationFraction'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config.rb new file mode 100644 index 000000000..aaa4e21d4 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_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/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig + attr_reader :metrics + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @metrics = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetricsArray.parse(args['metrics'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb new file mode 100644 index 000000000..bcb1e8786 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics + attr_reader :metric_source + + attr_reader :metric_overrides + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @metric_source = args['metricSource'] + @metric_overrides = args['metricOverrides'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetricsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config.rb new file mode 100644 index 000000000..d4b6809e0 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEncryptionConfig + attr_reader :gce_pd_kms_key_name + + attr_reader :kms_key + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @gce_pd_kms_key_name = args['gcePdKmsKeyName'] + @kms_key = args['kmsKey'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEncryptionConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config.rb new file mode 100644 index 000000000..02dd1583a --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config.rb @@ -0,0 +1,38 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfig + attr_reader :http_ports + + attr_reader :enable_http_port_access + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @http_ports = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfigHttpPorts.new(args['httpPorts'], to_s) + @enable_http_port_access = args['enableHttpPortAccess'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.rb new file mode 100644 index 000000000..2ee703701 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfigHttpPorts + 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfigHttpPorts" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb new file mode 100644 index 000000000..db14059d6 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb @@ -0,0 +1,75 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfig + attr_reader :zone_uri + + attr_reader :network_uri + + attr_reader :subnetwork_uri + + attr_reader :internal_ip_only + + attr_reader :private_ipv6_google_access + + attr_reader :service_account + + attr_reader :service_account_scopes + + attr_reader :tags + + attr_reader :metadata + + attr_reader :reservation_affinity + + attr_reader :node_group_affinity + + attr_reader :shielded_instance_config + + attr_reader :confidential_instance_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @zone_uri = args['zoneUri'] + @network_uri = args['networkUri'] + @subnetwork_uri = args['subnetworkUri'] + @internal_ip_only = args['internalIpOnly'] + @private_ipv6_google_access = args['privateIpv6GoogleAccess'] + @service_account = args['serviceAccount'] + @service_account_scopes = args['serviceAccountScopes'] + @tags = args['tags'] + @metadata = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigMetadata.new(args['metadata'], to_s) + @reservation_affinity = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigReservationAffinity.new(args['reservationAffinity'], to_s) + @node_group_affinity = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigNodeGroupAffinity.new(args['nodeGroupAffinity'], to_s) + @shielded_instance_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigShieldedInstanceConfig.new(args['shieldedInstanceConfig'], to_s) + @confidential_instance_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigConfidentialInstanceConfig.new(args['confidentialInstanceConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb new file mode 100644 index 000000000..adc63063b --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigConfidentialInstanceConfig + attr_reader :enable_confidential_compute + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @enable_confidential_compute = args['enableConfidentialCompute'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigConfidentialInstanceConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.rb new file mode 100644 index 000000000..e1dd89756 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigMetadata + 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigMetadata" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb new file mode 100644 index 000000000..cdde792b2 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigNodeGroupAffinity + attr_reader :node_group_uri + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @node_group_uri = args['nodeGroupUri'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigNodeGroupAffinity" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb new file mode 100644 index 000000000..d759ccf3e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb @@ -0,0 +1,40 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigReservationAffinity + attr_reader :consume_reservation_type + + attr_reader :key + + attr_reader :values + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @consume_reservation_type = args['consumeReservationType'] + @key = args['key'] + @values = args['values'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigReservationAffinity" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb new file mode 100644 index 000000000..3dca4c47e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb @@ -0,0 +1,40 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigShieldedInstanceConfig + attr_reader :enable_secure_boot + + attr_reader :enable_vtpm + + attr_reader :enable_integrity_monitoring + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @enable_secure_boot = args['enableSecureBoot'] + @enable_vtpm = args['enableVtpm'] + @enable_integrity_monitoring = args['enableIntegrityMonitoring'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigShieldedInstanceConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb new file mode 100644 index 000000000..e1ffc6b0e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb @@ -0,0 +1,42 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig + attr_reader :namespaced_gke_deployment_target + + attr_reader :gke_cluster_target + + attr_reader :node_pool_target + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @namespaced_gke_deployment_target = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget.new(args['namespacedGkeDeploymentTarget'], to_s) + @gke_cluster_target = args['gkeClusterTarget'] + @node_pool_target = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetArray.parse(args['nodePoolTarget'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb new file mode 100644 index 000000000..94798e90c --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget + attr_reader :target_gke_cluster + + attr_reader :cluster_namespace + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @target_gke_cluster = args['targetGkeCluster'] + @cluster_namespace = args['clusterNamespace'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb new file mode 100644 index 000000000..2088167e1 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.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/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget + attr_reader :node_pool + + attr_reader :roles + + attr_reader :node_pool_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @node_pool = args['nodePool'] + @roles = args['roles'] + @node_pool_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig.new(args['nodePoolConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb new file mode 100644 index 000000000..f9892d523 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.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. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig + attr_reader :config + + attr_reader :locations + + attr_reader :autoscaling + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig.new(args['config'], to_s) + @locations = args['locations'] + @autoscaling = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling.new(args['autoscaling'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb new file mode 100644 index 000000000..4551dea3a --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling + attr_reader :min_node_count + + attr_reader :max_node_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @min_node_count = args['minNodeCount'] + @max_node_count = args['maxNodeCount'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb new file mode 100644 index 000000000..6ff7b3cda --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb @@ -0,0 +1,53 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig + attr_reader :machine_type + + attr_reader :local_ssd_count + + attr_reader :preemptible + + attr_reader :accelerators + + attr_reader :min_cpu_platform + + attr_reader :boot_disk_kms_key + + attr_reader :spot + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_type = args['machineType'] + @local_ssd_count = args['localSsdCount'] + @preemptible = args['preemptible'] + @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @min_cpu_platform = args['minCpuPlatform'] + @boot_disk_kms_key = args['bootDiskKmsKey'] + @spot = args['spot'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb new file mode 100644 index 000000000..93e004762 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb @@ -0,0 +1,48 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators + attr_reader :accelerator_count + + attr_reader :accelerator_type + + attr_reader :gpu_partition_size + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @accelerator_count = args['acceleratorCount'] + @accelerator_type = args['acceleratorType'] + @gpu_partition_size = args['gpuPartitionSize'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions.rb new file mode 100644 index 000000000..ecc32731d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActions + attr_reader :executable_file + + attr_reader :execution_timeout + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @executable_file = args['executableFile'] + @execution_timeout = args['executionTimeout'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActions" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActionsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActions.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActions.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config.rb new file mode 100644 index 000000000..f2fe8dafd --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigLifecycleConfig + attr_reader :idle_delete_ttl + + attr_reader :auto_delete_time + + attr_reader :auto_delete_ttl + + attr_reader :idle_start_time + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @idle_delete_ttl = args['idleDeleteTtl'] + @auto_delete_time = args['autoDeleteTime'] + @auto_delete_ttl = args['autoDeleteTtl'] + @idle_start_time = args['idleStartTime'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigLifecycleConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config.rb new file mode 100644 index 000000000..f488ce1dd --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config.rb @@ -0,0 +1,81 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfig + attr_reader :num_instances + + attr_reader :instance_names + + attr_reader :instance_references + + attr_reader :image_uri + + attr_reader :machine_type_uri + + attr_reader :disk_config + + attr_reader :is_preemptible + + attr_reader :preemptibility + + attr_reader :managed_group_config + + attr_reader :accelerators + + attr_reader :min_cpu_platform + + attr_reader :min_num_instances + + attr_reader :instance_flexibility_policy + + attr_reader :startup_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @num_instances = args['numInstances'] + @instance_names = args['instanceNames'] + @instance_references = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @image_uri = args['imageUri'] + @machine_type_uri = args['machineTypeUri'] + @disk_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig.new(args['diskConfig'], to_s) + @is_preemptible = args['isPreemptible'] + @preemptibility = args['preemptibility'] + @managed_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @min_cpu_platform = args['minCpuPlatform'] + @min_num_instances = args['minNumInstances'] + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig.new(args['startupConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb new file mode 100644 index 000000000..a310c8c28 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators + attr_reader :accelerator_type_uri + + attr_reader :accelerator_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @accelerator_type_uri = args['acceleratorTypeUri'] + @accelerator_count = args['acceleratorCount'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb new file mode 100644 index 000000000..d4b2da8b0 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig + attr_reader :boot_disk_type + + attr_reader :boot_disk_size_gb + + attr_reader :num_local_ssds + + attr_reader :local_ssd_interface + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @boot_disk_type = args['bootDiskType'] + @boot_disk_size_gb = args['bootDiskSizeGb'] + @num_local_ssds = args['numLocalSsds'] + @local_ssd_interface = args['localSsdInterface'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb new file mode 100644 index 000000000..f176e5986 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb @@ -0,0 +1,39 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy + attr_reader :instance_selection_list + + attr_reader :instance_selection_results + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_selection_list = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb new file mode 100644 index 000000000..e3e0fb979 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList + attr_reader :machine_types + + attr_reader :rank + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_types = args['machineTypes'] + @rank = args['rank'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb new file mode 100644 index 000000000..383ca06ac --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults + attr_reader :machine_type + + attr_reader :vm_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_type = args['machineType'] + @vm_count = args['vmCount'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb new file mode 100644 index 000000000..91a60275f --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences + attr_reader :instance_name + + attr_reader :instance_id + + attr_reader :public_key + + attr_reader :public_ecies_key + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_name = args['instanceName'] + @instance_id = args['instanceId'] + @public_key = args['publicKey'] + @public_ecies_key = args['publicEciesKey'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferencesArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb new file mode 100644 index 000000000..ecb500ad3 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb @@ -0,0 +1,40 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig + attr_reader :instance_template_name + + attr_reader :instance_group_manager_name + + attr_reader :instance_group_manager_uri + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_template_name = args['instanceTemplateName'] + @instance_group_manager_name = args['instanceGroupManagerName'] + @instance_group_manager_uri = args['instanceGroupManagerUri'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb new file mode 100644 index 000000000..9d65a79df --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig + attr_reader :required_registration_fraction + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @required_registration_fraction = args['requiredRegistrationFraction'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config.rb new file mode 100644 index 000000000..dc8ef553e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMetastoreConfig + attr_reader :dataproc_metastore_service + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @dataproc_metastore_service = args['dataprocMetastoreService'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMetastoreConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb new file mode 100644 index 000000000..c832f5b9e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb @@ -0,0 +1,81 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig + attr_reader :num_instances + + attr_reader :instance_names + + attr_reader :instance_references + + attr_reader :image_uri + + attr_reader :machine_type_uri + + attr_reader :disk_config + + attr_reader :is_preemptible + + attr_reader :preemptibility + + attr_reader :managed_group_config + + attr_reader :accelerators + + attr_reader :min_cpu_platform + + attr_reader :min_num_instances + + attr_reader :instance_flexibility_policy + + attr_reader :startup_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @num_instances = args['numInstances'] + @instance_names = args['instanceNames'] + @instance_references = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @image_uri = args['imageUri'] + @machine_type_uri = args['machineTypeUri'] + @disk_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig.new(args['diskConfig'], to_s) + @is_preemptible = args['isPreemptible'] + @preemptibility = args['preemptibility'] + @managed_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @min_cpu_platform = args['minCpuPlatform'] + @min_num_instances = args['minNumInstances'] + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig.new(args['startupConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb new file mode 100644 index 000000000..80d512f96 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators + attr_reader :accelerator_type_uri + + attr_reader :accelerator_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @accelerator_type_uri = args['acceleratorTypeUri'] + @accelerator_count = args['acceleratorCount'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAcceleratorsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb new file mode 100644 index 000000000..ce5f37563 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig + attr_reader :boot_disk_type + + attr_reader :boot_disk_size_gb + + attr_reader :num_local_ssds + + attr_reader :local_ssd_interface + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @boot_disk_type = args['bootDiskType'] + @boot_disk_size_gb = args['bootDiskSizeGb'] + @num_local_ssds = args['numLocalSsds'] + @local_ssd_interface = args['localSsdInterface'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb new file mode 100644 index 000000000..ece89f85d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb @@ -0,0 +1,39 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy + attr_reader :instance_selection_list + + attr_reader :instance_selection_results + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_selection_list = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb new file mode 100644 index 000000000..5d7d82243 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList + attr_reader :machine_types + + attr_reader :rank + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_types = args['machineTypes'] + @rank = args['rank'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb new file mode 100644 index 000000000..4c0b34f2a --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults + attr_reader :machine_type + + attr_reader :vm_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_type = args['machineType'] + @vm_count = args['vmCount'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb new file mode 100644 index 000000000..2f522ccc0 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences + attr_reader :instance_name + + attr_reader :instance_id + + attr_reader :public_key + + attr_reader :public_ecies_key + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_name = args['instanceName'] + @instance_id = args['instanceId'] + @public_key = args['publicKey'] + @public_ecies_key = args['publicEciesKey'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferencesArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb new file mode 100644 index 000000000..311f2fee2 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb @@ -0,0 +1,40 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig + attr_reader :instance_template_name + + attr_reader :instance_group_manager_name + + attr_reader :instance_group_manager_uri + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_template_name = args['instanceTemplateName'] + @instance_group_manager_name = args['instanceGroupManagerName'] + @instance_group_manager_uri = args['instanceGroupManagerUri'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb new file mode 100644 index 000000000..8e6b681be --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig + attr_reader :required_registration_fraction + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @required_registration_fraction = args['requiredRegistrationFraction'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config.rb new file mode 100644 index 000000000..905124466 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config.rb @@ -0,0 +1,40 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfig + attr_reader :kerberos_config + + attr_reader :identity_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @kerberos_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigKerberosConfig.new(args['kerberosConfig'], to_s) + @identity_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig.new(args['identityConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb new file mode 100644 index 000000000..9137a7767 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_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/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig + attr_reader :user_service_account_mapping + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @user_service_account_mapping = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping.new(args['userServiceAccountMapping'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb new file mode 100644 index 000000000..6f4109cf7 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping + 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb new file mode 100644 index 000000000..16b266d8e --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb @@ -0,0 +1,76 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigKerberosConfig + attr_reader :enable_kerberos + + attr_reader :root_principal_password_uri + + attr_reader :kms_key_uri + + attr_reader :keystore_uri + + attr_reader :truststore_uri + + attr_reader :keystore_password_uri + + attr_reader :key_password_uri + + attr_reader :truststore_password_uri + + attr_reader :cross_realm_trust_realm + + attr_reader :cross_realm_trust_kdc + + attr_reader :cross_realm_trust_admin_server + + attr_reader :cross_realm_trust_shared_password_uri + + attr_reader :kdc_db_key_uri + + attr_reader :tgt_lifetime_hours + + attr_reader :realm + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @enable_kerberos = args['enableKerberos'] + @root_principal_password_uri = args['rootPrincipalPasswordUri'] + @kms_key_uri = args['kmsKeyUri'] + @keystore_uri = args['keystoreUri'] + @truststore_uri = args['truststoreUri'] + @keystore_password_uri = args['keystorePasswordUri'] + @key_password_uri = args['keyPasswordUri'] + @truststore_password_uri = args['truststorePasswordUri'] + @cross_realm_trust_realm = args['crossRealmTrustRealm'] + @cross_realm_trust_kdc = args['crossRealmTrustKdc'] + @cross_realm_trust_admin_server = args['crossRealmTrustAdminServer'] + @cross_realm_trust_shared_password_uri = args['crossRealmTrustSharedPasswordUri'] + @kdc_db_key_uri = args['kdcDbKeyUri'] + @tgt_lifetime_hours = args['tgtLifetimeHours'] + @realm = args['realm'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigKerberosConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config.rb new file mode 100644 index 000000000..b91666d0b --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config.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/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfig + attr_reader :image_version + + attr_reader :properties + + attr_reader :optional_components + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @image_version = args['imageVersion'] + @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfigProperties.new(args['properties'], to_s) + @optional_components = args['optionalComponents'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties.rb new file mode 100644 index 000000000..1ced43e08 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfigProperties + 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfigProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config.rb new file mode 100644 index 000000000..17f2c0406 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config.rb @@ -0,0 +1,81 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfig + attr_reader :num_instances + + attr_reader :instance_names + + attr_reader :instance_references + + attr_reader :image_uri + + attr_reader :machine_type_uri + + attr_reader :disk_config + + attr_reader :is_preemptible + + attr_reader :preemptibility + + attr_reader :managed_group_config + + attr_reader :accelerators + + attr_reader :min_cpu_platform + + attr_reader :min_num_instances + + attr_reader :instance_flexibility_policy + + attr_reader :startup_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @num_instances = args['numInstances'] + @instance_names = args['instanceNames'] + @instance_references = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @image_uri = args['imageUri'] + @machine_type_uri = args['machineTypeUri'] + @disk_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig.new(args['diskConfig'], to_s) + @is_preemptible = args['isPreemptible'] + @preemptibility = args['preemptibility'] + @managed_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @min_cpu_platform = args['minCpuPlatform'] + @min_num_instances = args['minNumInstances'] + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig.new(args['startupConfig'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb new file mode 100644 index 000000000..f20c55243 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators + attr_reader :accelerator_type_uri + + attr_reader :accelerator_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @accelerator_type_uri = args['acceleratorTypeUri'] + @accelerator_count = args['acceleratorCount'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAcceleratorsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb new file mode 100644 index 000000000..7a05e526b --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig + attr_reader :boot_disk_type + + attr_reader :boot_disk_size_gb + + attr_reader :num_local_ssds + + attr_reader :local_ssd_interface + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @boot_disk_type = args['bootDiskType'] + @boot_disk_size_gb = args['bootDiskSizeGb'] + @num_local_ssds = args['numLocalSsds'] + @local_ssd_interface = args['localSsdInterface'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb new file mode 100644 index 000000000..5c50f8b4a --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb @@ -0,0 +1,39 @@ +# 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/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +module GoogleInSpec + module Dataproc + module Property + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy + attr_reader :instance_selection_list + + attr_reader :instance_selection_results + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_selection_list = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb new file mode 100644 index 000000000..5ee00fa23 --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList + attr_reader :machine_types + + attr_reader :rank + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_types = args['machineTypes'] + @rank = args['rank'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb new file mode 100644 index 000000000..042d579ed --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb @@ -0,0 +1,45 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults + attr_reader :machine_type + + attr_reader :vm_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_type = args['machineType'] + @vm_count = args['vmCount'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb new file mode 100644 index 000000000..882203e0f --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences + attr_reader :instance_name + + attr_reader :instance_id + + attr_reader :public_key + + attr_reader :public_ecies_key + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_name = args['instanceName'] + @instance_id = args['instanceId'] + @public_key = args['publicKey'] + @public_ecies_key = args['publicEciesKey'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences" + end + end + + class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferencesArray + def self.parse(value, parent_identifier) + return if value.nil? + return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb new file mode 100644 index 000000000..76163bc1d --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb @@ -0,0 +1,40 @@ +# 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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig + attr_reader :instance_template_name + + attr_reader :instance_group_manager_name + + attr_reader :instance_group_manager_uri + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_template_name = args['instanceTemplateName'] + @instance_group_manager_name = args['instanceGroupManagerName'] + @instance_group_manager_uri = args['instanceGroupManagerUri'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb new file mode 100644 index 000000000..da6d18dbf --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig + attr_reader :required_registration_fraction + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @required_registration_fraction = args['requiredRegistrationFraction'] + end + + def to_s + "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels.rb new file mode 100644 index 000000000..a053b4e0c --- /dev/null +++ b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_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 ProjectLocationWorkflowTemplatePlacementManagedClusterLabels + 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} ProjectLocationWorkflowTemplatePlacementManagedClusterLabels" + end + end + end + end +end diff --git a/libraries/google_dataproc_project_location_workflow_template.rb b/libraries/google_dataproc_project_location_workflow_template.rb new file mode 100644 index 000000000..f1f33a537 --- /dev/null +++ b/libraries/google_dataproc_project_location_workflow_template.rb @@ -0,0 +1,137 @@ +# 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/projectlocationworkflowtemplate_encryption_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_jobs' +require 'google/dataproc/property/projectlocationworkflowtemplate_labels' +require 'google/dataproc/property/projectlocationworkflowtemplate_parameters' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels' + +# A provider to manage Dataproc resources. +class DataprocProjectLocationWorkflowTemplate < GcpResourceBase + name 'google_dataproc_project_location_workflow_template' + desc 'ProjectLocationWorkflowTemplate' + supports platform: 'gcp' + + attr_reader :params + attr_reader :id + attr_reader :name + attr_reader :version + attr_reader :create_time + attr_reader :update_time + attr_reader :labels + attr_reader :placement + attr_reader :jobs + attr_reader :parameters + attr_reader :dag_timeout + attr_reader :encryption_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 + @id = @fetched['id'] + @name = @fetched['name'] + @version = @fetched['version'] + @create_time = @fetched['createTime'] + @update_time = @fetched['updateTime'] + @labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateLabels.new(@fetched['labels'], to_s) + @placement = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacement.new(@fetched['placement'], to_s) + @jobs = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsArray.parse(@fetched['jobs'], to_s) + @parameters = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersArray.parse(@fetched['parameters'], to_s) + @dag_timeout = @fetched['dagTimeout'] + @encryption_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateEncryptionConfig.new(@fetched['encryptionConfig'], to_s) + end + + def exists? + !@fetched.nil? + end + + def to_s + "ProjectLocationWorkflowTemplate #{@params[:]}" + end + + private + + def product_url(_ = nil) + 'https://dataproc.googleapis.com/v1/' + end + + def resource_base_url + '{{+name}}' + end +end diff --git a/libraries/google_dataproc_project_location_workflow_templates.rb b/libraries/google_dataproc_project_location_workflow_templates.rb new file mode 100644 index 000000000..0d9694fcd --- /dev/null +++ b/libraries/google_dataproc_project_location_workflow_templates.rb @@ -0,0 +1,99 @@ +# 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 DataprocProjectLocationWorkflowTemplates < GcpResourceBase + name 'google_dataproc_project_location_workflow_templates' + desc 'ProjectLocationWorkflowTemplate plural resource' + supports platform: 'gcp' + + attr_reader :table + + filter_table_config = FilterTable.create + + filter_table_config.add(:ids, field: :id) + filter_table_config.add(:names, field: :name) + filter_table_config.add(:versions, field: :version) + filter_table_config.add(:create_times, field: :create_time) + filter_table_config.add(:update_times, field: :update_time) + filter_table_config.add(:labels, field: :labels) + filter_table_config.add(:placements, field: :placement) + filter_table_config.add(:jobs, field: :jobs) + filter_table_config.add(:parameters, field: :parameters) + filter_table_config.add(:dag_timeouts, field: :dag_timeout) + filter_table_config.add(:encryption_configs, field: :encryption_config) + + filter_table_config.connect(self, :table) + + def initialize(params = {}) + super(params.merge({ use_http_transport: true })) + @params = params + @table = fetch_wrapped_resource('projectLocationWorkflowTemplates') + 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 + { + 'id' => ->(obj) { [:id, obj['id']] }, + 'name' => ->(obj) { [:name, obj['name']] }, + 'version' => ->(obj) { [:version, obj['version']] }, + 'createTime' => ->(obj) { [:create_time, obj['createTime']] }, + 'updateTime' => ->(obj) { [:update_time, obj['updateTime']] }, + 'labels' => ->(obj) { [:labels, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateLabels.new(obj['labels'], to_s)] }, + 'placement' => ->(obj) { [:placement, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacement.new(obj['placement'], to_s)] }, + 'jobs' => ->(obj) { [:jobs, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsArray.parse(obj['jobs'], to_s)] }, + 'parameters' => ->(obj) { [:parameters, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersArray.parse(obj['parameters'], to_s)] }, + 'dagTimeout' => ->(obj) { [:dag_timeout, obj['dagTimeout']] }, + 'encryptionConfig' => ->(obj) { [:encryption_config, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateEncryptionConfig.new(obj['encryptionConfig'], to_s)] }, + } + end + + private + + def product_url(_ = nil) + 'https://dataproc.googleapis.com/v1/' + end + + def resource_base_url + '{{+parent}}/workflowTemplates' + end +end diff --git a/test/integration/verify/controls/google_dataproc_project_location_workflow_template.rb b/test/integration/verify/controls/google_dataproc_project_location_workflow_template.rb new file mode 100644 index 000000000..51a3c1a35 --- /dev/null +++ b/test/integration/verify/controls/google_dataproc_project_location_workflow_template.rb @@ -0,0 +1,46 @@ +# ---------------------------------------------------------------------------- +# +# *** 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_location_workflow_template resource.' + +gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') + + project_location_workflow_template = input('project_location_workflow_template', value: { + "project": "value_project", + "reservation": "value_reservation", + "zone": "value_zone", + "id": "value_id", + "name": "value_name", + "create_time": "value_createtime", + "update_time": "value_updatetime", + "dag_timeout": "value_dagtimeout" +}, description: 'project_location_workflow_template description') +control 'google_dataproc_project_location_workflow_template-1.0' do + impact 1.0 + title 'google_dataproc_project_location_workflow_template resource test' + + describe google_dataproc_project_location_workflow_template(name: project_location_workflow_template['name']) do + it { should exist } + its('id') { should cmp project_location_workflow_template['id'] } + its('name') { should cmp project_location_workflow_template['name'] } + its('create_time') { should cmp project_location_workflow_template['create_time'] } + its('update_time') { should cmp project_location_workflow_template['update_time'] } + its('dag_timeout') { should cmp project_location_workflow_template['dag_timeout'] } + + end + + describe google_dataproc_project_location_workflow_template(name: "does_not_exit") do + it { should_not exist } + end +end diff --git a/test/integration/verify/controls/google_dataproc_project_location_workflow_templates.rb b/test/integration/verify/controls/google_dataproc_project_location_workflow_templates.rb new file mode 100644 index 000000000..dee81d15d --- /dev/null +++ b/test/integration/verify/controls/google_dataproc_project_location_workflow_templates.rb @@ -0,0 +1,36 @@ +# ---------------------------------------------------------------------------- +# +# *** 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_location_workflow_templates resource.' + +gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') + + project_location_workflow_template = input('project_location_workflow_template', value: { + "project": "value_project", + "reservation": "value_reservation", + "zone": "value_zone", + "id": "value_id", + "name": "value_name", + "create_time": "value_createtime", + "update_time": "value_updatetime", + "dag_timeout": "value_dagtimeout" +}, description: 'project_location_workflow_template description') +control 'google_dataproc_project_location_workflow_templates-1.0' do + impact 1.0 + title 'google_dataproc_project_location_workflow_templates resource test' + + describe google_dataproc_project_location_workflow_templates(parent: project_location_workflow_template['parent']) do + it { should exist } + end +end From c283db8857cb4415523245be3b887f8e75ecaada Mon Sep 17 00:00:00 2001 From: balasubramanian-s Date: Mon, 17 Jun 2024 19:18:19 +0530 Subject: [PATCH 2/6] rename property files Signed-off-by: balasubramanian-s --- .../projectlocationworkflowtemplate_jobs.rb | 129 ----------------- ...template_jobs_hadoop_job_logging_config.rb | 35 ----- ...ig_job_logging_config_driver_log_levels.rb | 34 ----- ...wtemplate_jobs_pig_job_script_variables.rb | 34 ----- ...template_jobs_presto_job_logging_config.rb | 35 ----- ...to_job_logging_config_driver_log_levels.rb | 34 ----- ...flowtemplate_jobs_presto_job_properties.rb | 34 ----- ...emplate_jobs_pyspark_job_logging_config.rb | 35 ----- ...rk_job_logging_config_driver_log_levels.rb | 34 ----- ...lowtemplate_jobs_pyspark_job_properties.rb | 34 ----- ...rk_job_logging_config_driver_log_levels.rb | 34 ----- ...emplate_jobs_spark_r_job_logging_config.rb | 35 ----- ..._r_job_logging_config_driver_log_levels.rb | 34 ----- ...lowtemplate_jobs_spark_r_job_properties.rb | 34 ----- ...plate_jobs_spark_sql_job_logging_config.rb | 35 ----- ...ql_job_logging_config_driver_log_levels.rb | 34 ----- ...wtemplate_jobs_spark_sql_job_properties.rb | 34 ----- ...wtemplate_jobs_spark_sql_job_query_list.rb | 34 ----- ...ate_jobs_spark_sql_job_script_variables.rb | 34 ----- ...no_job_logging_config_driver_log_levels.rb | 34 ----- ...kflowtemplate_jobs_trino_job_properties.rb | 34 ----- ...ojectlocationworkflowtemplate_placement.rb | 94 ------------ ...acement_cluster_selector_cluster_labels.rb | 34 ----- ...kflowtemplate_placement_managed_cluster.rb | 94 ------------ ...mplate_placement_managed_cluster_config.rb | 134 ----------------- ...ed_cluster_config_auxiliary_node_groups.rb | 56 ------- ...config_auxiliary_node_groups_node_group.rb | 53 ------- ...auxiliary_node_groups_node_group_labels.rb | 34 ----- ...ode_groups_node_group_node_group_config.rb | 81 ----------- ...roup_config_instance_flexibility_policy.rb | 39 ----- ...d_cluster_config_dataproc_metric_config.rb | 35 ----- ...uster_config_endpoint_config_http_ports.rb | 34 ----- ...ster_config_gce_cluster_config_metadata.rb | 34 ----- ...fig_gke_cluster_config_node_pool_target.rb | 52 ------- ...onfig_node_pool_target_node_pool_config.rb | 43 ------ ...nt_managed_cluster_config_master_config.rb | 81 ----------- ..._cluster_config_secondary_worker_config.rb | 81 ----------- ..._managed_cluster_config_security_config.rb | 40 ----- ...ity_config_user_service_account_mapping.rb | 34 ----- ...uster_config_software_config_properties.rb | 34 ----- ...nt_managed_cluster_config_worker_config.rb | 81 ----------- ...mplate_placement_managed_cluster_labels.rb | 34 ----- ... => workflowtemplate_encryption_config.rb} | 4 +- .../property/workflowtemplate_jobs.rb | 129 +++++++++++++++++ ....rb => workflowtemplate_jobs_flink_job.rb} | 14 +- ...template_jobs_flink_job_logging_config.rb} | 8 +- ...k_job_logging_config_driver_log_levels.rb} | 4 +- ...flowtemplate_jobs_flink_job_properties.rb} | 4 +- ...rb => workflowtemplate_jobs_hadoop_job.rb} | 14 +- ...emplate_jobs_hadoop_job_logging_config.rb} | 8 +- ...p_job_logging_config_driver_log_levels.rb} | 4 +- ...lowtemplate_jobs_hadoop_job_properties.rb} | 4 +- ...b.rb => workflowtemplate_jobs_hive_job.rb} | 16 +- ...kflowtemplate_jobs_hive_job_properties.rb} | 4 +- ...kflowtemplate_jobs_hive_job_query_list.rb} | 4 +- ...emplate_jobs_hive_job_script_variables.rb} | 4 +- .../property/workflowtemplate_jobs_labels.rb | 34 +++++ ...ob.rb => workflowtemplate_jobs_pig_job.rb} | 22 +-- ...owtemplate_jobs_pig_job_logging_config.rb} | 8 +- ...g_job_logging_config_driver_log_levels.rb} | 4 +- ...orkflowtemplate_jobs_pig_job_properties.rb | 34 +++++ ...rkflowtemplate_jobs_pig_job_query_list.rb} | 4 +- ...wtemplate_jobs_pig_job_script_variables.rb | 34 +++++ ...rb => workflowtemplate_jobs_presto_job.rb} | 18 +-- ...emplate_jobs_presto_job_logging_config.rb} | 8 +- ...to_job_logging_config_driver_log_levels.rb | 34 +++++ ...flowtemplate_jobs_presto_job_properties.rb | 34 +++++ ...lowtemplate_jobs_presto_job_query_list.rb} | 4 +- ...b => workflowtemplate_jobs_pyspark_job.rb} | 14 +- ...emplate_jobs_pyspark_job_logging_config.rb | 35 +++++ ...rk_job_logging_config_driver_log_levels.rb | 34 +++++ ...lowtemplate_jobs_pyspark_job_properties.rb | 34 +++++ ...rb => workflowtemplate_jobs_scheduling.rb} | 4 +- ....rb => workflowtemplate_jobs_spark_job.rb} | 14 +- ...wtemplate_jobs_spark_job_logging_config.rb | 35 +++++ ...rk_job_logging_config_driver_log_levels.rb | 34 +++++ ...kflowtemplate_jobs_spark_job_properties.rb | 34 +++++ ...b => workflowtemplate_jobs_spark_r_job.rb} | 14 +- ...emplate_jobs_spark_r_job_logging_config.rb | 35 +++++ ..._r_job_logging_config_driver_log_levels.rb | 34 +++++ ...lowtemplate_jobs_spark_r_job_properties.rb | 34 +++++ ...=> workflowtemplate_jobs_spark_sql_job.rb} | 22 +-- ...plate_jobs_spark_sql_job_logging_config.rb | 35 +++++ ...ql_job_logging_config_driver_log_levels.rb | 34 +++++ ...wtemplate_jobs_spark_sql_job_properties.rb | 34 +++++ ...template_jobs_spark_sql_job_query_list.rb} | 4 +- ...ate_jobs_spark_sql_job_script_variables.rb | 34 +++++ ....rb => workflowtemplate_jobs_trino_job.rb} | 18 +-- ...wtemplate_jobs_trino_job_logging_config.rb | 35 +++++ ...no_job_logging_config_driver_log_levels.rb | 34 +++++ ...kflowtemplate_jobs_trino_job_properties.rb | 34 +++++ ...kflowtemplate_jobs_trino_job_query_list.rb | 34 +++++ .../property/workflowtemplate_labels.rb | 34 +++++ ...ters.rb => workflowtemplate_parameters.rb} | 18 +-- ...workflowtemplate_parameters_validation.rb} | 12 +- ...owtemplate_parameters_validation_regex.rb} | 4 +- ...wtemplate_parameters_validation_values.rb} | 4 +- .../property/workflowtemplate_placement.rb | 94 ++++++++++++ ...lowtemplate_placement_cluster_selector.rb} | 8 +- ...cement_cluster_selector_cluster_labels.rb} | 4 +- ...kflowtemplate_placement_managed_cluster.rb | 94 ++++++++++++ ...mplate_placement_managed_cluster_config.rb | 134 +++++++++++++++++ ...aged_cluster_config_autoscaling_config.rb} | 4 +- ...ed_cluster_config_auxiliary_node_groups.rb | 56 +++++++ ...config_auxiliary_node_groups_node_group.rb | 53 +++++++ ...uxiliary_node_groups_node_group_labels.rb} | 4 +- ...ode_groups_node_group_node_group_config.rb | 81 +++++++++++ ...e_group_node_group_config_accelerators.rb} | 10 +- ...de_group_node_group_config_disk_config.rb} | 4 +- ...roup_config_instance_flexibility_policy.rb | 39 +++++ ...ibility_policy_instance_selection_list.rb} | 10 +- ...lity_policy_instance_selection_results.rb} | 10 +- ..._node_group_config_instance_references.rb} | 10 +- ...node_group_config_managed_group_config.rb} | 4 +- ...group_node_group_config_startup_config.rb} | 4 +- ...d_cluster_config_dataproc_metric_config.rb | 35 +++++ ..._config_dataproc_metric_config_metrics.rb} | 10 +- ...naged_cluster_config_encryption_config.rb} | 4 +- ...managed_cluster_config_endpoint_config.rb} | 8 +- ...uster_config_endpoint_config_http_ports.rb | 34 +++++ ...aged_cluster_config_gce_cluster_config.rb} | 24 +-- ...er_config_confidential_instance_config.rb} | 4 +- ...ster_config_gce_cluster_config_metadata.rb | 34 +++++ ...gce_cluster_config_node_group_affinity.rb} | 4 +- ...ce_cluster_config_reservation_affinity.rb} | 4 +- ...luster_config_shielded_instance_config.rb} | 4 +- ...aged_cluster_config_gke_cluster_config.rb} | 12 +- ...onfig_namespaced_gke_deployment_target.rb} | 4 +- ...fig_gke_cluster_config_node_pool_target.rb | 52 +++++++ ...onfig_node_pool_target_node_pool_config.rb | 43 ++++++ ...ol_target_node_pool_config_autoscaling.rb} | 4 +- ...de_pool_target_node_pool_config_config.rb} | 8 +- ...t_node_pool_config_config_accelerators.rb} | 10 +- ..._cluster_config_initialization_actions.rb} | 10 +- ...anaged_cluster_config_lifecycle_config.rb} | 4 +- ...nt_managed_cluster_config_master_config.rb | 81 +++++++++++ ...ster_config_master_config_accelerators.rb} | 10 +- ...uster_config_master_config_disk_config.rb} | 4 +- ...ter_config_instance_flexibility_policy.rb} | 12 +- ...ibility_policy_instance_selection_list.rb} | 10 +- ...lity_policy_instance_selection_results.rb} | 10 +- ...nfig_master_config_instance_references.rb} | 10 +- ...fig_master_config_managed_group_config.rb} | 4 +- ...er_config_master_config_startup_config.rb} | 4 +- ...anaged_cluster_config_metastore_config.rb} | 4 +- ..._cluster_config_secondary_worker_config.rb | 81 +++++++++++ ...g_secondary_worker_config_accelerators.rb} | 10 +- ...ig_secondary_worker_config_disk_config.rb} | 4 +- ...ker_config_instance_flexibility_policy.rb} | 12 +- ...ibility_policy_instance_selection_list.rb} | 10 +- ...lity_policy_instance_selection_results.rb} | 10 +- ...dary_worker_config_instance_references.rb} | 10 +- ...ary_worker_config_managed_group_config.rb} | 4 +- ...secondary_worker_config_startup_config.rb} | 4 +- ..._managed_cluster_config_security_config.rb | 40 +++++ ...config_security_config_identity_config.rb} | 8 +- ...ty_config_user_service_account_mapping.rb} | 4 +- ...config_security_config_kerberos_config.rb} | 4 +- ...managed_cluster_config_software_config.rb} | 8 +- ...uster_config_software_config_properties.rb | 34 +++++ ...nt_managed_cluster_config_worker_config.rb | 81 +++++++++++ ...ster_config_worker_config_accelerators.rb} | 10 +- ...uster_config_worker_config_disk_config.rb} | 4 +- ...ker_config_instance_flexibility_policy.rb} | 12 +- ...ibility_policy_instance_selection_list.rb} | 10 +- ...lity_policy_instance_selection_results.rb} | 10 +- ...nfig_worker_config_instance_references.rb} | 10 +- ...fig_worker_config_managed_group_config.rb} | 4 +- ...er_config_worker_config_startup_config.rb} | 4 +- ...mplate_placement_managed_cluster_labels.rb | 34 +++++ ...proc_project_location_workflow_template.rb | 137 ------------------ .../google_dataproc_workflow_template.rb | 137 ++++++++++++++++++ ... => google_dataproc_workflow_templates.rb} | 20 +-- 173 files changed, 2510 insertions(+), 2510 deletions(-) delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config.rb delete mode 100644 libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_encryption_config.rb => workflowtemplate_encryption_config.rb} (86%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_flink_job.rb => workflowtemplate_jobs_flink_job.rb} (64%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_pig_job_logging_config.rb => workflowtemplate_jobs_flink_job_logging_config.rb} (72%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_flink_job_properties.rb => workflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb} (85%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_labels.rb => workflowtemplate_jobs_flink_job_properties.rb} (88%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_spark_job.rb => workflowtemplate_jobs_hadoop_job.rb} (65%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_spark_job_logging_config.rb => workflowtemplate_jobs_hadoop_job_logging_config.rb} (71%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_hive_job_script_variables.rb => workflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb} (85%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_pig_job_properties.rb => workflowtemplate_jobs_hadoop_job_properties.rb} (86%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_hive_job.rb => workflowtemplate_jobs_hive_job.rb} (62%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_labels.rb => workflowtemplate_jobs_hive_job_properties.rb} (88%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_pig_job_query_list.rb => workflowtemplate_jobs_hive_job_query_list.rb} (86%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_hive_job_properties.rb => workflowtemplate_jobs_hive_job_script_variables.rb} (86%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_labels.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_pig_job.rb => workflowtemplate_jobs_pig_job.rb} (54%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_trino_job_logging_config.rb => workflowtemplate_jobs_pig_job_logging_config.rb} (71%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_hadoop_job_properties.rb => workflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb} (86%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_properties.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_hive_job_query_list.rb => workflowtemplate_jobs_pig_job_query_list.rb} (86%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_script_variables.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_trino_job.rb => workflowtemplate_jobs_presto_job.rb} (57%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_flink_job_logging_config.rb => workflowtemplate_jobs_presto_job_logging_config.rb} (71%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_properties.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_trino_job_query_list.rb => workflowtemplate_jobs_presto_job_query_list.rb} (86%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_pyspark_job.rb => workflowtemplate_jobs_pyspark_job.rb} (65%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job_properties.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_scheduling.rb => workflowtemplate_jobs_scheduling.rb} (88%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_hadoop_job.rb => workflowtemplate_jobs_spark_job.rb} (65%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_job_properties.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_spark_r_job.rb => workflowtemplate_jobs_spark_r_job.rb} (62%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job_properties.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_spark_sql_job.rb => workflowtemplate_jobs_spark_sql_job.rb} (51%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_properties.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_presto_job_query_list.rb => workflowtemplate_jobs_spark_sql_job_query_list.rb} (85%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_script_variables.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_presto_job.rb => workflowtemplate_jobs_trino_job.rb} (57%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config_driver_log_levels.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_properties.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_query_list.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_labels.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_parameters.rb => workflowtemplate_parameters.rb} (59%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_parameters_validation.rb => workflowtemplate_parameters_validation.rb} (60%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_parameters_validation_regex.rb => workflowtemplate_parameters_validation_regex.rb} (85%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_parameters_validation_values.rb => workflowtemplate_parameters_validation_values.rb} (85%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_cluster_selector.rb => workflowtemplate_placement_cluster_selector.rb} (69%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_spark_job_properties.rb => workflowtemplate_placement_cluster_selector_cluster_labels.rb} (86%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config.rb => workflowtemplate_placement_managed_cluster_config_autoscaling_config.rb} (82%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb => workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb} (82%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb => workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb} (60%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb => workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb} (81%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb => workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb} (54%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb => workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb} (54%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb => workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb} (61%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb => workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb} (80%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb => workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb} (78%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb => workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb} (64%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config.rb => workflowtemplate_placement_managed_cluster_config_encryption_config.rb} (83%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config.rb => workflowtemplate_placement_managed_cluster_config_endpoint_config.rb} (67%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb => workflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb} (55%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb => workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb} (79%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb => workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb} (80%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb => workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb} (82%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb => workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb} (82%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb => workflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb} (60%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb => workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb} (80%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb => workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb} (78%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb => workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb} (67%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb => workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb} (60%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions.rb => workflowtemplate_placement_managed_cluster_config_initialization_actions.rb} (65%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config.rb => workflowtemplate_placement_managed_cluster_config_lifecycle_config.rb} (86%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb => workflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb} (65%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb => workflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb} (85%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb => workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb} (53%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb => workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb} (58%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb => workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb} (58%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb => workflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb} (66%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb => workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb} (84%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb => workflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb} (82%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config.rb => workflowtemplate_placement_managed_cluster_config_metastore_config.rb} (83%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb => workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb} (65%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb => workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb} (85%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb => workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb} (53%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb => workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb} (58%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb => workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb} (58%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb => workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb} (66%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb => workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb} (84%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb => workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb} (82%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb => workflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb} (63%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb => workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb} (80%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb => workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb} (91%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_software_config.rb => workflowtemplate_placement_managed_cluster_config_software_config.rb} (68%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config.rb rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb => workflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb} (63%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb => workflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb} (84%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb => workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb} (52%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb => workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb} (57%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb => workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb} (57%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb => workflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb} (65%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb => workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb} (83%) rename libraries/google/dataproc/property/{projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb => workflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb} (80%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_labels.rb delete mode 100644 libraries/google_dataproc_project_location_workflow_template.rb create mode 100644 libraries/google_dataproc_workflow_template.rb rename libraries/{google_dataproc_project_location_workflow_templates.rb => google_dataproc_workflow_templates.rb} (81%) diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs.rb deleted file mode 100644 index 92ca9589d..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs.rb +++ /dev/null @@ -1,129 +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/projectlocationworkflowtemplate_jobs_flink_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_labels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_scheduling' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplateJobs - attr_reader :step_id - - 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 :labels - - attr_reader :scheduling - - attr_reader :prerequisite_step_ids - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @step_id = args['stepId'] - @hadoop_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHadoopJob.new(args['hadoopJob'], to_s) - @spark_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkJob.new(args['sparkJob'], to_s) - @pyspark_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPysparkJob.new(args['pysparkJob'], to_s) - @hive_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHiveJob.new(args['hiveJob'], to_s) - @pig_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPigJob.new(args['pigJob'], to_s) - @spark_r_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkRJob.new(args['sparkRJob'], to_s) - @spark_sql_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkSqlJob.new(args['sparkSqlJob'], to_s) - @presto_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPrestoJob.new(args['prestoJob'], to_s) - @trino_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsTrinoJob.new(args['trinoJob'], to_s) - @flink_job = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsFlinkJob.new(args['flinkJob'], to_s) - @labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsLabels.new(args['labels'], to_s) - @scheduling = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsScheduling.new(args['scheduling'], to_s) - @prerequisite_step_ids = args['prerequisiteStepIds'] - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobs" - end - end - - class ProjectLocationWorkflowTemplateJobsArray - def self.parse(value, parent_identifier) - return if value.nil? - return ProjectLocationWorkflowTemplateJobs.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplateJobs.new(v, parent_identifier) } - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config.rb deleted file mode 100644 index f5d3d457d..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfig - 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::ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 7cc91d53b..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPigJobLoggingConfigDriverLogLevels - 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} ProjectLocationWorkflowTemplateJobsPigJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables.rb deleted file mode 100644 index 427f9f35d..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPigJobScriptVariables - 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} ProjectLocationWorkflowTemplateJobsPigJobScriptVariables" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config.rb deleted file mode 100644 index ac50c05d1..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfig - 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::ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels.rb deleted file mode 100644 index d810c42cd..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfigDriverLogLevels - 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} ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties.rb deleted file mode 100644 index ca0998621..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPrestoJobProperties - 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} ProjectLocationWorkflowTemplateJobsPrestoJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config.rb deleted file mode 100644 index 5b97e59b3..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfig - 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::ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels.rb deleted file mode 100644 index fd466c13e..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfigDriverLogLevels - 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} ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties.rb deleted file mode 100644 index beb4d56f7..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsPysparkJobProperties - 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} ProjectLocationWorkflowTemplateJobsPysparkJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 3f506f212..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfigDriverLogLevels - 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} ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config.rb deleted file mode 100644 index 0db6ae14a..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfig - 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::ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels.rb deleted file mode 100644 index 787023c5a..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfigDriverLogLevels - 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} ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties.rb deleted file mode 100644 index ef7d793e0..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkRJobProperties - 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} ProjectLocationWorkflowTemplateJobsSparkRJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config.rb deleted file mode 100644 index 09378a665..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfig - 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::ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels.rb deleted file mode 100644 index e1ec98232..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfigDriverLogLevels - 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} ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties.rb deleted file mode 100644 index becf1e37c..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkSqlJobProperties - 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} ProjectLocationWorkflowTemplateJobsSparkSqlJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list.rb deleted file mode 100644 index 244491df1..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkSqlJobQueryList - 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} ProjectLocationWorkflowTemplateJobsSparkSqlJobQueryList" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables.rb deleted file mode 100644 index 9904457bd..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsSparkSqlJobScriptVariables - 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} ProjectLocationWorkflowTemplateJobsSparkSqlJobScriptVariables" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels.rb deleted file mode 100644 index cf5edc907..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfigDriverLogLevels - 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} ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfigDriverLogLevels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties.rb deleted file mode 100644 index dc3f43951..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_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 ProjectLocationWorkflowTemplateJobsTrinoJobProperties - 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} ProjectLocationWorkflowTemplateJobsTrinoJobProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement.rb deleted file mode 100644 index bf838215f..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement.rb +++ /dev/null @@ -1,94 +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/projectlocationworkflowtemplate_placement_cluster_selector' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacement - attr_reader :managed_cluster - - attr_reader :cluster_selector - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @managed_cluster = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedCluster.new(args['managedCluster'], to_s) - @cluster_selector = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementClusterSelector.new(args['clusterSelector'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacement" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels.rb deleted file mode 100644 index be5983693..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_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 ProjectLocationWorkflowTemplatePlacementClusterSelectorClusterLabels - 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} ProjectLocationWorkflowTemplatePlacementClusterSelectorClusterLabels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster.rb deleted file mode 100644 index b0745bca5..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster.rb +++ /dev/null @@ -1,94 +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/projectlocationworkflowtemplate_placement_managed_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedCluster - attr_reader :cluster_name - - attr_reader :config - - attr_reader :labels - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @cluster_name = args['clusterName'] - @config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfig.new(args['config'], to_s) - @labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterLabels.new(args['labels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedCluster" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config.rb deleted file mode 100644 index 43d42f3da..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config.rb +++ /dev/null @@ -1,134 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfig - attr_reader :config_bucket - - attr_reader :temp_bucket - - attr_reader :gce_cluster_config - - attr_reader :master_config - - attr_reader :worker_config - - attr_reader :secondary_worker_config - - attr_reader :software_config - - attr_reader :initialization_actions - - attr_reader :encryption_config - - attr_reader :autoscaling_config - - attr_reader :security_config - - attr_reader :lifecycle_config - - attr_reader :endpoint_config - - attr_reader :metastore_config - - attr_reader :gke_cluster_config - - attr_reader :dataproc_metric_config - - attr_reader :auxiliary_node_groups - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @config_bucket = args['configBucket'] - @temp_bucket = args['tempBucket'] - @gce_cluster_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfig.new(args['gceClusterConfig'], to_s) - @master_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfig.new(args['masterConfig'], to_s) - @worker_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfig.new(args['workerConfig'], to_s) - @secondary_worker_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig.new(args['secondaryWorkerConfig'], to_s) - @software_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfig.new(args['softwareConfig'], to_s) - @initialization_actions = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActionsArray.parse(args['initializationActions'], to_s) - @encryption_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEncryptionConfig.new(args['encryptionConfig'], to_s) - @autoscaling_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig.new(args['autoscalingConfig'], to_s) - @security_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfig.new(args['securityConfig'], to_s) - @lifecycle_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigLifecycleConfig.new(args['lifecycleConfig'], to_s) - @endpoint_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfig.new(args['endpointConfig'], to_s) - @metastore_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMetastoreConfig.new(args['metastoreConfig'], to_s) - @gke_cluster_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig.new(args['gkeClusterConfig'], to_s) - @dataproc_metric_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig.new(args['dataprocMetricConfig'], to_s) - @auxiliary_node_groups = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsArray.parse(args['auxiliaryNodeGroups'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb deleted file mode 100644 index b634d6150..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb +++ /dev/null @@ -1,56 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups - attr_reader :node_group - - attr_reader :node_group_id - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @node_group = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup.new(args['nodeGroup'], to_s) - @node_group_id = args['nodeGroupId'] - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups" - end - end - - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsArray - def self.parse(value, parent_identifier) - return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups.new(v, parent_identifier) } - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb deleted file mode 100644 index b1d776c6f..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb +++ /dev/null @@ -1,53 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup - attr_reader :name - - attr_reader :roles - - attr_reader :node_group_config - - attr_reader :labels - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @name = args['name'] - @roles = args['roles'] - @node_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig.new(args['nodeGroupConfig'], to_s) - @labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels.new(args['labels'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb deleted file mode 100644 index c6aa4986d..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels - 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb deleted file mode 100644 index 8e6b51408..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb +++ /dev/null @@ -1,81 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig - attr_reader :num_instances - - attr_reader :instance_names - - attr_reader :instance_references - - attr_reader :image_uri - - attr_reader :machine_type_uri - - attr_reader :disk_config - - attr_reader :is_preemptible - - attr_reader :preemptibility - - attr_reader :managed_group_config - - attr_reader :accelerators - - attr_reader :min_cpu_platform - - attr_reader :min_num_instances - - attr_reader :instance_flexibility_policy - - attr_reader :startup_config - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @num_instances = args['numInstances'] - @instance_names = args['instanceNames'] - @instance_references = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) - @image_uri = args['imageUri'] - @machine_type_uri = args['machineTypeUri'] - @disk_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig.new(args['diskConfig'], to_s) - @is_preemptible = args['isPreemptible'] - @preemptibility = args['preemptibility'] - @managed_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) - @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray.parse(args['accelerators'], to_s) - @min_cpu_platform = args['minCpuPlatform'] - @min_num_instances = args['minNumInstances'] - @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) - @startup_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig.new(args['startupConfig'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb deleted file mode 100644 index ad30fa0c5..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb +++ /dev/null @@ -1,39 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy - attr_reader :instance_selection_list - - attr_reader :instance_selection_results - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @instance_selection_list = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) - @instance_selection_results = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config.rb deleted file mode 100644 index aaa4e21d4..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_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/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig - attr_reader :metrics - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @metrics = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetricsArray.parse(args['metrics'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.rb deleted file mode 100644 index 2ee703701..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfigHttpPorts - 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfigHttpPorts" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.rb deleted file mode 100644 index e1dd89756..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigMetadata - 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigMetadata" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb deleted file mode 100644 index 2088167e1..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb +++ /dev/null @@ -1,52 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget - attr_reader :node_pool - - attr_reader :roles - - attr_reader :node_pool_config - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @node_pool = args['nodePool'] - @roles = args['roles'] - @node_pool_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig.new(args['nodePoolConfig'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget" - end - end - - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetArray - def self.parse(value, parent_identifier) - return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget.new(v, parent_identifier) } - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb deleted file mode 100644 index f9892d523..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb +++ /dev/null @@ -1,43 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig - attr_reader :config - - attr_reader :locations - - attr_reader :autoscaling - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig.new(args['config'], to_s) - @locations = args['locations'] - @autoscaling = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling.new(args['autoscaling'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config.rb deleted file mode 100644 index f488ce1dd..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config.rb +++ /dev/null @@ -1,81 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfig - attr_reader :num_instances - - attr_reader :instance_names - - attr_reader :instance_references - - attr_reader :image_uri - - attr_reader :machine_type_uri - - attr_reader :disk_config - - attr_reader :is_preemptible - - attr_reader :preemptibility - - attr_reader :managed_group_config - - attr_reader :accelerators - - attr_reader :min_cpu_platform - - attr_reader :min_num_instances - - attr_reader :instance_flexibility_policy - - attr_reader :startup_config - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @num_instances = args['numInstances'] - @instance_names = args['instanceNames'] - @instance_references = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) - @image_uri = args['imageUri'] - @machine_type_uri = args['machineTypeUri'] - @disk_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig.new(args['diskConfig'], to_s) - @is_preemptible = args['isPreemptible'] - @preemptibility = args['preemptibility'] - @managed_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) - @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorsArray.parse(args['accelerators'], to_s) - @min_cpu_platform = args['minCpuPlatform'] - @min_num_instances = args['minNumInstances'] - @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) - @startup_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig.new(args['startupConfig'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb deleted file mode 100644 index c832f5b9e..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb +++ /dev/null @@ -1,81 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig - attr_reader :num_instances - - attr_reader :instance_names - - attr_reader :instance_references - - attr_reader :image_uri - - attr_reader :machine_type_uri - - attr_reader :disk_config - - attr_reader :is_preemptible - - attr_reader :preemptibility - - attr_reader :managed_group_config - - attr_reader :accelerators - - attr_reader :min_cpu_platform - - attr_reader :min_num_instances - - attr_reader :instance_flexibility_policy - - attr_reader :startup_config - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @num_instances = args['numInstances'] - @instance_names = args['instanceNames'] - @instance_references = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) - @image_uri = args['imageUri'] - @machine_type_uri = args['machineTypeUri'] - @disk_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig.new(args['diskConfig'], to_s) - @is_preemptible = args['isPreemptible'] - @preemptibility = args['preemptibility'] - @managed_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) - @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) - @min_cpu_platform = args['minCpuPlatform'] - @min_num_instances = args['minNumInstances'] - @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) - @startup_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig.new(args['startupConfig'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config.rb deleted file mode 100644 index 905124466..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config.rb +++ /dev/null @@ -1,40 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfig - attr_reader :kerberos_config - - attr_reader :identity_config - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @kerberos_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigKerberosConfig.new(args['kerberosConfig'], to_s) - @identity_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig.new(args['identityConfig'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb deleted file mode 100644 index 6f4109cf7..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping - 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties.rb deleted file mode 100644 index 1ced43e08..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_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 ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfigProperties - 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} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfigProperties" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config.rb deleted file mode 100644 index 17f2c0406..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config.rb +++ /dev/null @@ -1,81 +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/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' -module GoogleInSpec - module Dataproc - module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfig - attr_reader :num_instances - - attr_reader :instance_names - - attr_reader :instance_references - - attr_reader :image_uri - - attr_reader :machine_type_uri - - attr_reader :disk_config - - attr_reader :is_preemptible - - attr_reader :preemptibility - - attr_reader :managed_group_config - - attr_reader :accelerators - - attr_reader :min_cpu_platform - - attr_reader :min_num_instances - - attr_reader :instance_flexibility_policy - - attr_reader :startup_config - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @num_instances = args['numInstances'] - @instance_names = args['instanceNames'] - @instance_references = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) - @image_uri = args['imageUri'] - @machine_type_uri = args['machineTypeUri'] - @disk_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig.new(args['diskConfig'], to_s) - @is_preemptible = args['isPreemptible'] - @preemptibility = args['preemptibility'] - @managed_group_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) - @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) - @min_cpu_platform = args['minCpuPlatform'] - @min_num_instances = args['minNumInstances'] - @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) - @startup_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig.new(args['startupConfig'], to_s) - end - - def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfig" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels.rb b/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels.rb deleted file mode 100644 index a053b4e0c..000000000 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_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 ProjectLocationWorkflowTemplatePlacementManagedClusterLabels - 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} ProjectLocationWorkflowTemplatePlacementManagedClusterLabels" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_encryption_config.rb b/libraries/google/dataproc/property/workflowtemplate_encryption_config.rb similarity index 86% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_encryption_config.rb rename to libraries/google/dataproc/property/workflowtemplate_encryption_config.rb index 5f1bca692..4a1977bd2 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_encryption_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_encryption_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateEncryptionConfig + class WorkflowTemplateEncryptionConfig attr_reader :kms_key def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateEncryptionConfig" + "#{@parent_identifier} WorkflowTemplateEncryptionConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs.rb b/libraries/google/dataproc/property/workflowtemplate_jobs.rb new file mode 100644 index 000000000..6e401bef9 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs.rb @@ -0,0 +1,129 @@ +# 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/workflowtemplate_jobs_flink_job' +require 'google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_flink_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_hadoop_job' +require 'google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_hadoop_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_hive_job' +require 'google/dataproc/property/workflowtemplate_jobs_hive_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_hive_job_query_list' +require 'google/dataproc/property/workflowtemplate_jobs_hive_job_script_variables' +require 'google/dataproc/property/workflowtemplate_jobs_labels' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_query_list' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_script_variables' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job_query_list' +require 'google/dataproc/property/workflowtemplate_jobs_pyspark_job' +require 'google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_pyspark_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_scheduling' +require 'google/dataproc/property/workflowtemplate_jobs_spark_job' +require 'google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_spark_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_spark_r_job' +require 'google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_spark_r_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_query_list' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_script_variables' +require 'google/dataproc/property/workflowtemplate_jobs_trino_job' +require 'google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_trino_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_trino_job_query_list' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplateJobs + attr_reader :step_id + + 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 :labels + + attr_reader :scheduling + + attr_reader :prerequisite_step_ids + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @step_id = args['stepId'] + @hadoop_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsHadoopJob.new(args['hadoopJob'], to_s) + @spark_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkJob.new(args['sparkJob'], to_s) + @pyspark_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPysparkJob.new(args['pysparkJob'], to_s) + @hive_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsHiveJob.new(args['hiveJob'], to_s) + @pig_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPigJob.new(args['pigJob'], to_s) + @spark_r_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkRJob.new(args['sparkRJob'], to_s) + @spark_sql_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkSqlJob.new(args['sparkSqlJob'], to_s) + @presto_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPrestoJob.new(args['prestoJob'], to_s) + @trino_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsTrinoJob.new(args['trinoJob'], to_s) + @flink_job = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsFlinkJob.new(args['flinkJob'], to_s) + @labels = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsLabels.new(args['labels'], to_s) + @scheduling = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsScheduling.new(args['scheduling'], to_s) + @prerequisite_step_ids = args['prerequisiteStepIds'] + end + + def to_s + "#{@parent_identifier} WorkflowTemplateJobs" + end + end + + class WorkflowTemplateJobsArray + def self.parse(value, parent_identifier) + return if value.nil? + return WorkflowTemplateJobs.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateJobs.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_flink_job.rb similarity index 64% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_flink_job.rb index 422acf16b..bd6c08337 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_flink_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_flink_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsFlinkJob + class WorkflowTemplateJobsFlinkJob 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::ProjectLocationWorkflowTemplateJobsFlinkJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsFlinkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsFlinkJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsFlinkJob" + "#{@parent_identifier} WorkflowTemplateJobsFlinkJob" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config.rb similarity index 72% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config.rb index 370c12a3d..e1c0c4198 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config.rb @@ -13,21 +13,21 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config_driver_log_levels' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsPigJobLoggingConfig + class WorkflowTemplateJobsFlinkJobLoggingConfig 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::ProjectLocationWorkflowTemplateJobsPigJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + @driver_log_levels = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsFlinkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPigJobLoggingConfig" + "#{@parent_identifier} WorkflowTemplateJobsFlinkJobLoggingConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb similarity index 85% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb index 0b6a7bf4e..89da2b6c5 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_properties.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsFlinkJobProperties + class WorkflowTemplateJobsFlinkJobLoggingConfigDriverLogLevels 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} ProjectLocationWorkflowTemplateJobsFlinkJobProperties" + "#{@parent_identifier} WorkflowTemplateJobsFlinkJobLoggingConfigDriverLogLevels" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_labels.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_flink_job_properties.rb similarity index 88% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_labels.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_flink_job_properties.rb index a0f9e9fa3..454cf7fc0 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_labels.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_flink_job_properties.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsLabels + class WorkflowTemplateJobsFlinkJobProperties 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} ProjectLocationWorkflowTemplateJobsLabels" + "#{@parent_identifier} WorkflowTemplateJobsFlinkJobProperties" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job.rb similarity index 65% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job.rb index a7a3cd579..548ee0896 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_hadoop_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsSparkJob + class WorkflowTemplateJobsHadoopJob 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::ProjectLocationWorkflowTemplateJobsSparkJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsHadoopJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsHadoopJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkJob" + "#{@parent_identifier} WorkflowTemplateJobsHadoopJob" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config.rb similarity index 71% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config.rb index 840e8e5a1..2ef26583d 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config.rb @@ -13,21 +13,21 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfig + class WorkflowTemplateJobsHadoopJobLoggingConfig 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::ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + @driver_log_levels = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsHadoopJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkJobLoggingConfig" + "#{@parent_identifier} WorkflowTemplateJobsHadoopJobLoggingConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb similarity index 85% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb index e8a13f5b5..2fb396d1c 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsHiveJobScriptVariables + class WorkflowTemplateJobsHadoopJobLoggingConfigDriverLogLevels 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} ProjectLocationWorkflowTemplateJobsHiveJobScriptVariables" + "#{@parent_identifier} WorkflowTemplateJobsHadoopJobLoggingConfigDriverLogLevels" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job_properties.rb similarity index 86% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job_properties.rb index 72804491e..b0b0067c7 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_hadoop_job_properties.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsPigJobProperties + class WorkflowTemplateJobsHadoopJobProperties 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} ProjectLocationWorkflowTemplateJobsPigJobProperties" + "#{@parent_identifier} WorkflowTemplateJobsHadoopJobProperties" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_hive_job.rb similarity index 62% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_hive_job.rb index 12ae44afe..930f67a0b 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_hive_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_script_variables' +require 'google/dataproc/property/workflowtemplate_jobs_hive_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_hive_job_query_list' +require 'google/dataproc/property/workflowtemplate_jobs_hive_job_script_variables' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsHiveJob + class WorkflowTemplateJobsHiveJob 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::ProjectLocationWorkflowTemplateJobsHiveJobQueryList.new(args['queryList'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsHiveJobQueryList.new(args['queryList'], to_s) @continue_on_failure = args['continueOnFailure'] - @script_variables = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHiveJobScriptVariables.new(args['scriptVariables'], to_s) - @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHiveJobProperties.new(args['properties'], to_s) + @script_variables = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsHiveJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsHiveJobProperties.new(args['properties'], to_s) @jar_file_uris = args['jarFileUris'] end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsHiveJob" + "#{@parent_identifier} WorkflowTemplateJobsHiveJob" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_labels.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_hive_job_properties.rb similarity index 88% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_labels.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_hive_job_properties.rb index 7f814469a..b3c57b791 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_labels.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_hive_job_properties.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateLabels + class WorkflowTemplateJobsHiveJobProperties 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} ProjectLocationWorkflowTemplateLabels" + "#{@parent_identifier} WorkflowTemplateJobsHiveJobProperties" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_hive_job_query_list.rb similarity index 86% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_hive_job_query_list.rb index 8eb4a345b..bc8b7d354 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_hive_job_query_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsPigJobQueryList + class WorkflowTemplateJobsHiveJobQueryList 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} ProjectLocationWorkflowTemplateJobsPigJobQueryList" + "#{@parent_identifier} WorkflowTemplateJobsHiveJobQueryList" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_hive_job_script_variables.rb similarity index 86% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_properties.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_hive_job_script_variables.rb index 617d660a7..0fbe42fc3 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_properties.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_hive_job_script_variables.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsHiveJobProperties + class WorkflowTemplateJobsHiveJobScriptVariables 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} ProjectLocationWorkflowTemplateJobsHiveJobProperties" + "#{@parent_identifier} WorkflowTemplateJobsHiveJobScriptVariables" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_labels.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_labels.rb new file mode 100644 index 000000000..5750188d2 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsLabels + 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} WorkflowTemplateJobsLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job.rb similarity index 54% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_pig_job.rb index bfdc06f60..d5f5b19fc 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job.rb @@ -13,15 +13,15 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_query_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pig_job_script_variables' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_query_list' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_script_variables' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsPigJob + class WorkflowTemplateJobsPigJob 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::ProjectLocationWorkflowTemplateJobsPigJobQueryList.new(args['queryList'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPigJobQueryList.new(args['queryList'], to_s) @continue_on_failure = args['continueOnFailure'] - @script_variables = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPigJobScriptVariables.new(args['scriptVariables'], to_s) - @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPigJobProperties.new(args['properties'], to_s) + @script_variables = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPigJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPigJobProperties.new(args['properties'], to_s) @jar_file_uris = args['jarFileUris'] - @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPigJobLoggingConfig.new(args['loggingConfig'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPigJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPigJob" + "#{@parent_identifier} WorkflowTemplateJobsPigJob" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config.rb similarity index 71% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config.rb index fee12db0e..904b43748 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config.rb @@ -13,21 +13,21 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config_driver_log_levels' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfig + class WorkflowTemplateJobsPigJobLoggingConfig 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::ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + @driver_log_levels = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPigJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfig" + "#{@parent_identifier} WorkflowTemplateJobsPigJobLoggingConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb similarity index 86% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb index cb95ab6c8..ad7b14b7d 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_logging_config_driver_log_levels.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsHadoopJobProperties + class WorkflowTemplateJobsPigJobLoggingConfigDriverLogLevels 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} ProjectLocationWorkflowTemplateJobsHadoopJobProperties" + "#{@parent_identifier} WorkflowTemplateJobsPigJobLoggingConfigDriverLogLevels" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_properties.rb new file mode 100644 index 000000000..c148e6ca9 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsPigJobProperties + 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} WorkflowTemplateJobsPigJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_query_list.rb similarity index 86% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_query_list.rb index e21a5ac0b..268f0885b 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hive_job_query_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_query_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsHiveJobQueryList + class WorkflowTemplateJobsPigJobQueryList 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} ProjectLocationWorkflowTemplateJobsHiveJobQueryList" + "#{@parent_identifier} WorkflowTemplateJobsPigJobQueryList" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_script_variables.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pig_job_script_variables.rb new file mode 100644 index 000000000..17e165d41 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsPigJobScriptVariables + 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} WorkflowTemplateJobsPigJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job.rb similarity index 57% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_presto_job.rb index 5b7f80e45..e032747d0 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job.rb @@ -13,14 +13,14 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job_query_list' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsTrinoJob + class WorkflowTemplateJobsPrestoJob 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::ProjectLocationWorkflowTemplateJobsTrinoJobQueryList.new(args['queryList'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPrestoJobQueryList.new(args['queryList'], to_s) @continue_on_failure = args['continueOnFailure'] @output_format = args['outputFormat'] @client_tags = args['clientTags'] - @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsTrinoJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsTrinoJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPrestoJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPrestoJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsTrinoJob" + "#{@parent_identifier} WorkflowTemplateJobsPrestoJob" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config.rb similarity index 71% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config.rb index 613ac6c90..3043fbdbf 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config.rb @@ -13,21 +13,21 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config_driver_log_levels' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfig + class WorkflowTemplateJobsPrestoJobLoggingConfig 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::ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + @driver_log_levels = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPrestoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfig" + "#{@parent_identifier} WorkflowTemplateJobsPrestoJobLoggingConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..e7326b4ed --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsPrestoJobLoggingConfigDriverLogLevels + 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} WorkflowTemplateJobsPrestoJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_properties.rb new file mode 100644 index 000000000..40a45f269 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsPrestoJobProperties + 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} WorkflowTemplateJobsPrestoJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_query_list.rb similarity index 86% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_query_list.rb index 2877dea4a..0e28e2f5c 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_trino_job_query_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_presto_job_query_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsTrinoJobQueryList + class WorkflowTemplateJobsPrestoJobQueryList 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} ProjectLocationWorkflowTemplateJobsTrinoJobQueryList" + "#{@parent_identifier} WorkflowTemplateJobsPrestoJobQueryList" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job.rb similarity index 65% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job.rb index 454997984..a7ed37899 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_pyspark_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_pyspark_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsPysparkJob + class WorkflowTemplateJobsPysparkJob 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::ProjectLocationWorkflowTemplateJobsPysparkJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPysparkJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPysparkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsPysparkJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPysparkJob" + "#{@parent_identifier} WorkflowTemplateJobsPysparkJob" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config.rb new file mode 100644 index 000000000..1ca4e6cf7 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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/workflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplateJobsPysparkJobLoggingConfig + 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::WorkflowTemplateJobsPysparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplateJobsPysparkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..457c65cde --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsPysparkJobLoggingConfigDriverLogLevels + 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} WorkflowTemplateJobsPysparkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_pyspark_job_properties.rb new file mode 100644 index 000000000..a8b86cf0f --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsPysparkJobProperties + 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} WorkflowTemplateJobsPysparkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_scheduling.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_scheduling.rb similarity index 88% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_scheduling.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_scheduling.rb index 33f328db6..012a8061b 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_scheduling.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_scheduling.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsScheduling + class WorkflowTemplateJobsScheduling 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} ProjectLocationWorkflowTemplateJobsScheduling" + "#{@parent_identifier} WorkflowTemplateJobsScheduling" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_job.rb similarity index 65% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_spark_job.rb index bc1589f2a..60da08ed7 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_spark_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsHadoopJob + class WorkflowTemplateJobsSparkJob 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::ProjectLocationWorkflowTemplateJobsHadoopJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsHadoopJob" + "#{@parent_identifier} WorkflowTemplateJobsSparkJob" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config.rb new file mode 100644 index 000000000..e1373b725 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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/workflowtemplate_jobs_spark_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplateJobsSparkJobLoggingConfig + 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::WorkflowTemplateJobsSparkJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplateJobsSparkJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..e0ed47f81 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsSparkJobLoggingConfigDriverLogLevels + 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} WorkflowTemplateJobsSparkJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_job_properties.rb new file mode 100644 index 000000000..23ec299a4 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsSparkJobProperties + 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} WorkflowTemplateJobsSparkJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job.rb similarity index 62% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job.rb index 51f81c293..bbcff9a8e 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_r_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_spark_r_job_properties' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsSparkRJob + class WorkflowTemplateJobsSparkRJob 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::ProjectLocationWorkflowTemplateJobsSparkRJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkRJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkRJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkRJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkRJob" + "#{@parent_identifier} WorkflowTemplateJobsSparkRJob" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config.rb new file mode 100644 index 000000000..ab1bed8ff --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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/workflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplateJobsSparkRJobLoggingConfig + 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::WorkflowTemplateJobsSparkRJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplateJobsSparkRJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..0a2992453 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsSparkRJobLoggingConfigDriverLogLevels + 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} WorkflowTemplateJobsSparkRJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_r_job_properties.rb new file mode 100644 index 000000000..cddcdbc4d --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsSparkRJobProperties + 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} WorkflowTemplateJobsSparkRJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job.rb similarity index 51% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job.rb index af5db96aa..8e72f78b8 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job.rb @@ -13,15 +13,15 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_query_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_sql_job_script_variables' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_query_list' +require 'google/dataproc/property/workflowtemplate_jobs_spark_sql_job_script_variables' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsSparkSqlJob + class WorkflowTemplateJobsSparkSqlJob 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::ProjectLocationWorkflowTemplateJobsSparkSqlJobQueryList.new(args['queryList'], to_s) - @script_variables = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkSqlJobScriptVariables.new(args['scriptVariables'], to_s) - @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkSqlJobProperties.new(args['properties'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkSqlJobQueryList.new(args['queryList'], to_s) + @script_variables = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkSqlJobScriptVariables.new(args['scriptVariables'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkSqlJobProperties.new(args['properties'], to_s) @jar_file_uris = args['jarFileUris'] - @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsSparkSqlJobLoggingConfig.new(args['loggingConfig'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsSparkSqlJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsSparkSqlJob" + "#{@parent_identifier} WorkflowTemplateJobsSparkSqlJob" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config.rb new file mode 100644 index 000000000..a9f436b6b --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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/workflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplateJobsSparkSqlJobLoggingConfig + 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::WorkflowTemplateJobsSparkSqlJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplateJobsSparkSqlJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..7ef5b1797 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsSparkSqlJobLoggingConfigDriverLogLevels + 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} WorkflowTemplateJobsSparkSqlJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_properties.rb new file mode 100644 index 000000000..5023e6795 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsSparkSqlJobProperties + 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} WorkflowTemplateJobsSparkSqlJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_query_list.rb similarity index 85% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_query_list.rb index 55f778552..db0111e2a 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_query_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsPrestoJobQueryList + class WorkflowTemplateJobsSparkSqlJobQueryList 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} ProjectLocationWorkflowTemplateJobsPrestoJobQueryList" + "#{@parent_identifier} WorkflowTemplateJobsSparkSqlJobQueryList" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_script_variables.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_spark_sql_job_script_variables.rb new file mode 100644 index 000000000..c75bf8c2f --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsSparkSqlJobScriptVariables + 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} WorkflowTemplateJobsSparkSqlJobScriptVariables" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job.rb similarity index 57% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job.rb rename to libraries/google/dataproc/property/workflowtemplate_jobs_trino_job.rb index 6db04400f..2c3444c55 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job.rb +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job.rb @@ -13,14 +13,14 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_logging_config_driver_log_levels' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs_presto_job_query_list' +require 'google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config' +require 'google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config_driver_log_levels' +require 'google/dataproc/property/workflowtemplate_jobs_trino_job_properties' +require 'google/dataproc/property/workflowtemplate_jobs_trino_job_query_list' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsPrestoJob + class WorkflowTemplateJobsTrinoJob 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::ProjectLocationWorkflowTemplateJobsPrestoJobQueryList.new(args['queryList'], to_s) + @query_list = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsTrinoJobQueryList.new(args['queryList'], to_s) @continue_on_failure = args['continueOnFailure'] @output_format = args['outputFormat'] @client_tags = args['clientTags'] - @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPrestoJobProperties.new(args['properties'], to_s) - @logging_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsPrestoJobLoggingConfig.new(args['loggingConfig'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsTrinoJobProperties.new(args['properties'], to_s) + @logging_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsTrinoJobLoggingConfig.new(args['loggingConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateJobsPrestoJob" + "#{@parent_identifier} WorkflowTemplateJobsTrinoJob" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config.rb new file mode 100644 index 000000000..a746182d1 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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/workflowtemplate_jobs_trino_job_logging_config_driver_log_levels' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplateJobsTrinoJobLoggingConfig + 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::WorkflowTemplateJobsTrinoJobLoggingConfigDriverLogLevels.new(args['driverLogLevels'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplateJobsTrinoJobLoggingConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_logging_config_driver_log_levels.rb new file mode 100644 index 000000000..9488feb65 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsTrinoJobLoggingConfigDriverLogLevels + 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} WorkflowTemplateJobsTrinoJobLoggingConfigDriverLogLevels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_properties.rb new file mode 100644 index 000000000..6f1bce042 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsTrinoJobProperties + 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} WorkflowTemplateJobsTrinoJobProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_query_list.rb b/libraries/google/dataproc/property/workflowtemplate_jobs_trino_job_query_list.rb new file mode 100644 index 000000000..cea82a80e --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_jobs_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 WorkflowTemplateJobsTrinoJobQueryList + 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} WorkflowTemplateJobsTrinoJobQueryList" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_labels.rb b/libraries/google/dataproc/property/workflowtemplate_labels.rb new file mode 100644 index 000000000..d9796c71e --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_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 WorkflowTemplateLabels + 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} WorkflowTemplateLabels" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters.rb b/libraries/google/dataproc/property/workflowtemplate_parameters.rb similarity index 59% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters.rb rename to libraries/google/dataproc/property/workflowtemplate_parameters.rb index eb56b6779..5c3c4da65 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters.rb +++ b/libraries/google/dataproc/property/workflowtemplate_parameters.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_parameters_validation' -require 'google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex' -require 'google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values' +require 'google/dataproc/property/workflowtemplate_parameters_validation' +require 'google/dataproc/property/workflowtemplate_parameters_validation_regex' +require 'google/dataproc/property/workflowtemplate_parameters_validation_values' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateParameters + class WorkflowTemplateParameters attr_reader :name attr_reader :fields @@ -34,19 +34,19 @@ def initialize(args = nil, parent_identifier = nil) @name = args['name'] @fields = args['fields'] @description = args['description'] - @validation = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersValidation.new(args['validation'], to_s) + @validation = GoogleInSpec::Dataproc::Property::WorkflowTemplateParametersValidation.new(args['validation'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateParameters" + "#{@parent_identifier} WorkflowTemplateParameters" end end - class ProjectLocationWorkflowTemplateParametersArray + class WorkflowTemplateParametersArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplateParameters.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplateParameters.new(v, parent_identifier) } + return WorkflowTemplateParameters.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateParameters.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation.rb b/libraries/google/dataproc/property/workflowtemplate_parameters_validation.rb similarity index 60% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation.rb rename to libraries/google/dataproc/property/workflowtemplate_parameters_validation.rb index d1c0dca84..ca4e19e71 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation.rb +++ b/libraries/google/dataproc/property/workflowtemplate_parameters_validation.rb @@ -13,12 +13,12 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex' -require 'google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values' +require 'google/dataproc/property/workflowtemplate_parameters_validation_regex' +require 'google/dataproc/property/workflowtemplate_parameters_validation_values' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateParametersValidation + class WorkflowTemplateParametersValidation attr_reader :regex attr_reader :values @@ -26,12 +26,12 @@ class ProjectLocationWorkflowTemplateParametersValidation def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @regex = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersValidationRegex.new(args['regex'], to_s) - @values = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersValidationValues.new(args['values'], to_s) + @regex = GoogleInSpec::Dataproc::Property::WorkflowTemplateParametersValidationRegex.new(args['regex'], to_s) + @values = GoogleInSpec::Dataproc::Property::WorkflowTemplateParametersValidationValues.new(args['values'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateParametersValidation" + "#{@parent_identifier} WorkflowTemplateParametersValidation" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex.rb b/libraries/google/dataproc/property/workflowtemplate_parameters_validation_regex.rb similarity index 85% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex.rb rename to libraries/google/dataproc/property/workflowtemplate_parameters_validation_regex.rb index 911289887..b691bb042 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_regex.rb +++ b/libraries/google/dataproc/property/workflowtemplate_parameters_validation_regex.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateParametersValidationRegex + class WorkflowTemplateParametersValidationRegex attr_reader :regexes def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateParametersValidationRegex" + "#{@parent_identifier} WorkflowTemplateParametersValidationRegex" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values.rb b/libraries/google/dataproc/property/workflowtemplate_parameters_validation_values.rb similarity index 85% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values.rb rename to libraries/google/dataproc/property/workflowtemplate_parameters_validation_values.rb index 07e2bef66..cc78ca1af 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_parameters_validation_values.rb +++ b/libraries/google/dataproc/property/workflowtemplate_parameters_validation_values.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateParametersValidationValues + class WorkflowTemplateParametersValidationValues attr_reader :values def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplateParametersValidationValues" + "#{@parent_identifier} WorkflowTemplateParametersValidationValues" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement.rb b/libraries/google/dataproc/property/workflowtemplate_placement.rb new file mode 100644 index 000000000..75f93b52f --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement.rb @@ -0,0 +1,94 @@ +# 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/workflowtemplate_placement_cluster_selector' +require 'google/dataproc/property/workflowtemplate_placement_cluster_selector_cluster_labels' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_autoscaling_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_encryption_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_labels' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacement + attr_reader :managed_cluster + + attr_reader :cluster_selector + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @managed_cluster = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedCluster.new(args['managedCluster'], to_s) + @cluster_selector = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementClusterSelector.new(args['clusterSelector'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacement" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector.rb b/libraries/google/dataproc/property/workflowtemplate_placement_cluster_selector.rb similarity index 69% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_cluster_selector.rb index cbadfb87d..8045825b5 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_cluster_selector.rb @@ -13,11 +13,11 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels' +require 'google/dataproc/property/workflowtemplate_placement_cluster_selector_cluster_labels' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementClusterSelector + class WorkflowTemplatePlacementClusterSelector attr_reader :zone attr_reader :cluster_labels @@ -26,11 +26,11 @@ def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier @zone = args['zone'] - @cluster_labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementClusterSelectorClusterLabels.new(args['clusterLabels'], to_s) + @cluster_labels = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementClusterSelectorClusterLabels.new(args['clusterLabels'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementClusterSelector" + "#{@parent_identifier} WorkflowTemplatePlacementClusterSelector" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties.rb b/libraries/google/dataproc/property/workflowtemplate_placement_cluster_selector_cluster_labels.rb similarity index 86% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_cluster_selector_cluster_labels.rb index 3c85be8e9..0d82560e7 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_spark_job_properties.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_cluster_selector_cluster_labels.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsSparkJobProperties + class WorkflowTemplatePlacementClusterSelectorClusterLabels 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} ProjectLocationWorkflowTemplateJobsSparkJobProperties" + "#{@parent_identifier} WorkflowTemplatePlacementClusterSelectorClusterLabels" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster.rb new file mode 100644 index 000000000..52c61a3e2 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster.rb @@ -0,0 +1,94 @@ +# 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/workflowtemplate_placement_managed_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_autoscaling_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_encryption_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_labels' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedCluster + attr_reader :cluster_name + + attr_reader :config + + attr_reader :labels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @cluster_name = args['clusterName'] + @config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfig.new(args['config'], to_s) + @labels = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterLabels.new(args['labels'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedCluster" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config.rb new file mode 100644 index 000000000..6e36d4b07 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config.rb @@ -0,0 +1,134 @@ +# 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/workflowtemplate_placement_managed_cluster_config_autoscaling_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_encryption_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfig + attr_reader :config_bucket + + attr_reader :temp_bucket + + attr_reader :gce_cluster_config + + attr_reader :master_config + + attr_reader :worker_config + + attr_reader :secondary_worker_config + + attr_reader :software_config + + attr_reader :initialization_actions + + attr_reader :encryption_config + + attr_reader :autoscaling_config + + attr_reader :security_config + + attr_reader :lifecycle_config + + attr_reader :endpoint_config + + attr_reader :metastore_config + + attr_reader :gke_cluster_config + + attr_reader :dataproc_metric_config + + attr_reader :auxiliary_node_groups + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @config_bucket = args['configBucket'] + @temp_bucket = args['tempBucket'] + @gce_cluster_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGceClusterConfig.new(args['gceClusterConfig'], to_s) + @master_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfig.new(args['masterConfig'], to_s) + @worker_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfig.new(args['workerConfig'], to_s) + @secondary_worker_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig.new(args['secondaryWorkerConfig'], to_s) + @software_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSoftwareConfig.new(args['softwareConfig'], to_s) + @initialization_actions = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigInitializationActionsArray.parse(args['initializationActions'], to_s) + @encryption_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigEncryptionConfig.new(args['encryptionConfig'], to_s) + @autoscaling_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig.new(args['autoscalingConfig'], to_s) + @security_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecurityConfig.new(args['securityConfig'], to_s) + @lifecycle_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigLifecycleConfig.new(args['lifecycleConfig'], to_s) + @endpoint_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigEndpointConfig.new(args['endpointConfig'], to_s) + @metastore_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMetastoreConfig.new(args['metastoreConfig'], to_s) + @gke_cluster_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig.new(args['gkeClusterConfig'], to_s) + @dataproc_metric_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig.new(args['dataprocMetricConfig'], to_s) + @auxiliary_node_groups = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsArray.parse(args['auxiliaryNodeGroups'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_autoscaling_config.rb similarity index 82% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_autoscaling_config.rb index a75e074d1..7e5a33383 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_autoscaling_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig + class WorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig attr_reader :policy_uri def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAutoscalingConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb new file mode 100644 index 000000000..82d7d2a6c --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.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/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups + attr_reader :node_group + + attr_reader :node_group_id + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @node_group = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup.new(args['nodeGroup'], to_s) + @node_group_id = args['nodeGroupId'] + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups" + end + end + + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsArray + def self.parse(value, parent_identifier) + return if value.nil? + return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb new file mode 100644 index 000000000..ca24181a0 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb @@ -0,0 +1,53 @@ +# 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/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup + attr_reader :name + + attr_reader :roles + + attr_reader :node_group_config + + attr_reader :labels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @name = args['name'] + @roles = args['roles'] + @node_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig.new(args['nodeGroupConfig'], to_s) + @labels = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels.new(args['labels'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb similarity index 82% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb index 7e8aa2871..d29f7b2d8 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_flink_job_logging_config_driver_log_levels.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfigDriverLogLevels + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels 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} ProjectLocationWorkflowTemplateJobsFlinkJobLoggingConfigDriverLogLevels" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb new file mode 100644 index 000000000..129959995 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb @@ -0,0 +1,81 @@ +# 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/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig + attr_reader :num_instances + + attr_reader :instance_names + + attr_reader :instance_references + + attr_reader :image_uri + + attr_reader :machine_type_uri + + attr_reader :disk_config + + attr_reader :is_preemptible + + attr_reader :preemptibility + + attr_reader :managed_group_config + + attr_reader :accelerators + + attr_reader :min_cpu_platform + + attr_reader :min_num_instances + + attr_reader :instance_flexibility_policy + + attr_reader :startup_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @num_instances = args['numInstances'] + @instance_names = args['instanceNames'] + @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @image_uri = args['imageUri'] + @machine_type_uri = args['machineTypeUri'] + @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig.new(args['diskConfig'], to_s) + @is_preemptible = args['isPreemptible'] + @preemptibility = args['preemptibility'] + @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @min_cpu_platform = args['minCpuPlatform'] + @min_num_instances = args['minNumInstances'] + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig.new(args['startupConfig'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb similarity index 60% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb index 70bc1fc90..c20a744ce 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators attr_reader :accelerator_type_uri attr_reader :accelerator_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb similarity index 81% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb index 251157310..e3155eb09 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig attr_reader :boot_disk_type attr_reader :boot_disk_size_gb @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb new file mode 100644 index 000000000..e7211047d --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb @@ -0,0 +1,39 @@ +# 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/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy + attr_reader :instance_selection_list + + attr_reader :instance_selection_results + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb similarity index 54% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb index 4f4d3bfb0..2a1fa60bb 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList attr_reader :machine_types attr_reader :rank @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionListArray + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionListArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb similarity index 54% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb index fe38daa86..5fa2899a2 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults attr_reader :machine_type attr_reader :vm_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb similarity index 61% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb index ac3bfea90..728f96328 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences attr_reader :instance_name attr_reader :instance_id @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb similarity index 80% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb index 653533b9c..841144a6d 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig attr_reader :instance_template_name attr_reader :instance_group_manager_name @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb similarity index 78% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb index 2a6c8ae8d..a5ac9e3dd 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig + class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig attr_reader :required_registration_fraction def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config.rb new file mode 100644 index 000000000..29a96daa8 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_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/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig + attr_reader :metrics + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @metrics = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetricsArray.parse(args['metrics'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb similarity index 64% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb index bcb1e8786..b92f92a7e 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics + class WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics attr_reader :metric_source attr_reader :metric_overrides @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetricsArray + class WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetricsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfigMetrics.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_encryption_config.rb similarity index 83% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_encryption_config.rb index d4b6809e0..7aa4c37ca 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_encryption_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEncryptionConfig + class WorkflowTemplatePlacementManagedClusterConfigEncryptionConfig attr_reader :gce_pd_kms_key_name attr_reader :kms_key @@ -29,7 +29,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEncryptionConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigEncryptionConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config.rb similarity index 67% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config.rb index 02dd1583a..c2f3a3235 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config.rb @@ -13,11 +13,11 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfig + class WorkflowTemplatePlacementManagedClusterConfigEndpointConfig attr_reader :http_ports attr_reader :enable_http_port_access @@ -25,12 +25,12 @@ class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfig def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @http_ports = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfigHttpPorts.new(args['httpPorts'], to_s) + @http_ports = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigEndpointConfigHttpPorts.new(args['httpPorts'], to_s) @enable_http_port_access = args['enableHttpPortAccess'] end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigEndpointConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigEndpointConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.rb new file mode 100644 index 000000000..1f78a5390 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports.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 WorkflowTemplatePlacementManagedClusterConfigEndpointConfigHttpPorts + 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} WorkflowTemplatePlacementManagedClusterConfigEndpointConfigHttpPorts" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb similarity index 55% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb index db14059d6..f0c1affcd 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config.rb @@ -13,15 +13,15 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfig + class WorkflowTemplatePlacementManagedClusterConfigGceClusterConfig attr_reader :zone_uri attr_reader :network_uri @@ -59,15 +59,15 @@ def initialize(args = nil, parent_identifier = nil) @service_account = args['serviceAccount'] @service_account_scopes = args['serviceAccountScopes'] @tags = args['tags'] - @metadata = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigMetadata.new(args['metadata'], to_s) - @reservation_affinity = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigReservationAffinity.new(args['reservationAffinity'], to_s) - @node_group_affinity = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigNodeGroupAffinity.new(args['nodeGroupAffinity'], to_s) - @shielded_instance_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigShieldedInstanceConfig.new(args['shieldedInstanceConfig'], to_s) - @confidential_instance_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigConfidentialInstanceConfig.new(args['confidentialInstanceConfig'], to_s) + @metadata = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigMetadata.new(args['metadata'], to_s) + @reservation_affinity = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigReservationAffinity.new(args['reservationAffinity'], to_s) + @node_group_affinity = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigNodeGroupAffinity.new(args['nodeGroupAffinity'], to_s) + @shielded_instance_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigShieldedInstanceConfig.new(args['shieldedInstanceConfig'], to_s) + @confidential_instance_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigConfidentialInstanceConfig.new(args['confidentialInstanceConfig'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGceClusterConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb similarity index 79% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb index adc63063b..55f3f1367 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigConfidentialInstanceConfig + class WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigConfidentialInstanceConfig attr_reader :enable_confidential_compute def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigConfidentialInstanceConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigConfidentialInstanceConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.rb new file mode 100644 index 000000000..0f50b9771 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata.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 WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigMetadata + 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} WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigMetadata" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb similarity index 80% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb index cdde792b2..dfcdfc6ad 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigNodeGroupAffinity + class WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigNodeGroupAffinity attr_reader :node_group_uri def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigNodeGroupAffinity" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigNodeGroupAffinity" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb similarity index 82% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb index d759ccf3e..8604d8e9d 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigReservationAffinity + class WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigReservationAffinity attr_reader :consume_reservation_type attr_reader :key @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigReservationAffinity" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigReservationAffinity" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb similarity index 82% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb index 3dca4c47e..7ed10acb4 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigShieldedInstanceConfig + class WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigShieldedInstanceConfig attr_reader :enable_secure_boot attr_reader :enable_vtpm @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGceClusterConfigShieldedInstanceConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGceClusterConfigShieldedInstanceConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb similarity index 60% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb index e1ffc6b0e..997240768 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb @@ -13,12 +13,12 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig + class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig attr_reader :namespaced_gke_deployment_target attr_reader :gke_cluster_target @@ -28,13 +28,13 @@ class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConf def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @namespaced_gke_deployment_target = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget.new(args['namespacedGkeDeploymentTarget'], to_s) + @namespaced_gke_deployment_target = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget.new(args['namespacedGkeDeploymentTarget'], to_s) @gke_cluster_target = args['gkeClusterTarget'] - @node_pool_target = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetArray.parse(args['nodePoolTarget'], to_s) + @node_pool_target = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetArray.parse(args['nodePoolTarget'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb similarity index 80% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb index 94798e90c..f646c229e 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget + class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget attr_reader :target_gke_cluster attr_reader :cluster_namespace @@ -29,7 +29,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb new file mode 100644 index 000000000..101693bcc --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.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/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget + attr_reader :node_pool + + attr_reader :roles + + attr_reader :node_pool_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @node_pool = args['nodePool'] + @roles = args['roles'] + @node_pool_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig.new(args['nodePoolConfig'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget" + end + end + + class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetArray + def self.parse(value, parent_identifier) + return if value.nil? + return WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb new file mode 100644 index 000000000..3a73fd9b3 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.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. +# +# ---------------------------------------------------------------------------- +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig + attr_reader :config + + attr_reader :locations + + attr_reader :autoscaling + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig.new(args['config'], to_s) + @locations = args['locations'] + @autoscaling = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling.new(args['autoscaling'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb similarity index 78% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb index 4551dea3a..3ab5828b7 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling + class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling attr_reader :min_node_count attr_reader :max_node_count @@ -29,7 +29,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb similarity index 67% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb index 6ff7b3cda..ff94c8407 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb @@ -13,11 +13,11 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig + class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig attr_reader :machine_type attr_reader :local_ssd_count @@ -38,14 +38,14 @@ def initialize(args = nil, parent_identifier = nil) @machine_type = args['machineType'] @local_ssd_count = args['localSsdCount'] @preemptible = args['preemptible'] - @accelerators = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray.parse(args['accelerators'], to_s) @min_cpu_platform = args['minCpuPlatform'] @boot_disk_kms_key = args['bootDiskKmsKey'] @spot = args['spot'] end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb similarity index 60% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb index 93e004762..8d38ce094 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators + class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators attr_reader :accelerator_count attr_reader :accelerator_type @@ -32,15 +32,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray + class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions.rb similarity index 65% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions.rb index ecc32731d..67072412c 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActions + class WorkflowTemplatePlacementManagedClusterConfigInitializationActions attr_reader :executable_file attr_reader :execution_timeout @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActions" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigInitializationActions" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActionsArray + class WorkflowTemplatePlacementManagedClusterConfigInitializationActionsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActions.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigInitializationActions.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigInitializationActions.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigInitializationActions.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config.rb similarity index 86% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config.rb index f2fe8dafd..c9e1d44f0 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigLifecycleConfig + class WorkflowTemplatePlacementManagedClusterConfigLifecycleConfig attr_reader :idle_delete_ttl attr_reader :auto_delete_time @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigLifecycleConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigLifecycleConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config.rb new file mode 100644 index 000000000..72000e33e --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config.rb @@ -0,0 +1,81 @@ +# 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/workflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigMasterConfig + attr_reader :num_instances + + attr_reader :instance_names + + attr_reader :instance_references + + attr_reader :image_uri + + attr_reader :machine_type_uri + + attr_reader :disk_config + + attr_reader :is_preemptible + + attr_reader :preemptibility + + attr_reader :managed_group_config + + attr_reader :accelerators + + attr_reader :min_cpu_platform + + attr_reader :min_num_instances + + attr_reader :instance_flexibility_policy + + attr_reader :startup_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @num_instances = args['numInstances'] + @instance_names = args['instanceNames'] + @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @image_uri = args['imageUri'] + @machine_type_uri = args['machineTypeUri'] + @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig.new(args['diskConfig'], to_s) + @is_preemptible = args['isPreemptible'] + @preemptibility = args['preemptibility'] + @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @min_cpu_platform = args['minCpuPlatform'] + @min_num_instances = args['minNumInstances'] + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig.new(args['startupConfig'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb similarity index 65% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb index a310c8c28..17c7b8fb6 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators attr_reader :accelerator_type_uri attr_reader :accelerator_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorsArray + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb similarity index 85% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb index 7a05e526b..3838011f0 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig attr_reader :boot_disk_type attr_reader :boot_disk_size_gb @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb similarity index 53% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb index f176e5986..4d48fd5f9 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb @@ -13,12 +13,12 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy attr_reader :instance_selection_list attr_reader :instance_selection_results @@ -26,12 +26,12 @@ class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigIn def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @instance_selection_list = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) - @instance_selection_results = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb similarity index 58% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb index e3e0fb979..17f182bf1 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList attr_reader :machine_types attr_reader :rank @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb similarity index 58% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb index 383ca06ac..591814a1f 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults attr_reader :machine_type attr_reader :vm_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb similarity index 66% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb index 91a60275f..d47d65884 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences attr_reader :instance_name attr_reader :instance_id @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferencesArray + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferencesArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb similarity index 84% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb index 76163bc1d..593fb631f 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig attr_reader :instance_template_name attr_reader :instance_group_manager_name @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb similarity index 82% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb index 9d65a79df..a7a0d8656 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig + class WorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig attr_reader :required_registration_fraction def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config.rb similarity index 83% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config.rb index dc8ef553e..f45d3366c 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMetastoreConfig + class WorkflowTemplatePlacementManagedClusterConfigMetastoreConfig attr_reader :dataproc_metastore_service def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMetastoreConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMetastoreConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb new file mode 100644 index 000000000..5f289aeff --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb @@ -0,0 +1,81 @@ +# 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/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig + attr_reader :num_instances + + attr_reader :instance_names + + attr_reader :instance_references + + attr_reader :image_uri + + attr_reader :machine_type_uri + + attr_reader :disk_config + + attr_reader :is_preemptible + + attr_reader :preemptibility + + attr_reader :managed_group_config + + attr_reader :accelerators + + attr_reader :min_cpu_platform + + attr_reader :min_num_instances + + attr_reader :instance_flexibility_policy + + attr_reader :startup_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @num_instances = args['numInstances'] + @instance_names = args['instanceNames'] + @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @image_uri = args['imageUri'] + @machine_type_uri = args['machineTypeUri'] + @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig.new(args['diskConfig'], to_s) + @is_preemptible = args['isPreemptible'] + @preemptibility = args['preemptibility'] + @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @min_cpu_platform = args['minCpuPlatform'] + @min_num_instances = args['minNumInstances'] + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig.new(args['startupConfig'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb similarity index 65% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb index f20c55243..e3344d0f5 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators attr_reader :accelerator_type_uri attr_reader :accelerator_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAcceleratorsArray + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb similarity index 85% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb index d4b2da8b0..13396c4f5 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig attr_reader :boot_disk_type attr_reader :boot_disk_size_gb @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb similarity index 53% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb index 5c50f8b4a..f0f98ea7a 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb @@ -13,12 +13,12 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy attr_reader :instance_selection_list attr_reader :instance_selection_results @@ -26,12 +26,12 @@ class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigIn def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @instance_selection_list = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) - @instance_selection_results = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb similarity index 58% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb index 5ee00fa23..328739444 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList attr_reader :machine_types attr_reader :rank @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb similarity index 58% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb index 042d579ed..3aac16bf2 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults attr_reader :machine_type attr_reader :vm_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb similarity index 66% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb index 882203e0f..78650b401 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences attr_reader :instance_name attr_reader :instance_id @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferencesArray + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferencesArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb similarity index 84% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb index ecb500ad3..6911f8c38 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig attr_reader :instance_template_name attr_reader :instance_group_manager_name @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb similarity index 82% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb index da6d18dbf..575d015ea 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig + class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig attr_reader :required_registration_fraction def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config.rb new file mode 100644 index 000000000..549bcd2e7 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config.rb @@ -0,0 +1,40 @@ +# 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/workflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigSecurityConfig + attr_reader :kerberos_config + + attr_reader :identity_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @kerberos_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecurityConfigKerberosConfig.new(args['kerberosConfig'], to_s) + @identity_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig.new(args['identityConfig'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecurityConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb similarity index 63% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb index 9137a7767..2c25c787f 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb @@ -13,21 +13,21 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig + class WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig attr_reader :user_service_account_mapping def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @user_service_account_mapping = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping.new(args['userServiceAccountMapping'], to_s) + @user_service_account_mapping = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping.new(args['userServiceAccountMapping'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb similarity index 80% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb index 6bb4faf1b..3e83cfec3 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_jobs_hadoop_job_logging_config_driver_log_levels.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfigDriverLogLevels + class WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping 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} ProjectLocationWorkflowTemplateJobsHadoopJobLoggingConfigDriverLogLevels" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb similarity index 91% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb index 16b266d8e..ca3f8e810 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigKerberosConfig + class WorkflowTemplatePlacementManagedClusterConfigSecurityConfigKerberosConfig attr_reader :enable_kerberos attr_reader :root_principal_password_uri @@ -68,7 +68,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecurityConfigKerberosConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecurityConfigKerberosConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config.rb similarity index 68% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config.rb index b91666d0b..41eb9ff77 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config.rb @@ -13,11 +13,11 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfig + class WorkflowTemplatePlacementManagedClusterConfigSoftwareConfig attr_reader :image_version attr_reader :properties @@ -28,12 +28,12 @@ def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier @image_version = args['imageVersion'] - @properties = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfigProperties.new(args['properties'], to_s) + @properties = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSoftwareConfigProperties.new(args['properties'], to_s) @optional_components = args['optionalComponents'] end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSoftwareConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSoftwareConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties.rb new file mode 100644 index 000000000..bd649ee70 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_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 WorkflowTemplatePlacementManagedClusterConfigSoftwareConfigProperties + 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} WorkflowTemplatePlacementManagedClusterConfigSoftwareConfigProperties" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config.rb new file mode 100644 index 000000000..959fdb200 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config.rb @@ -0,0 +1,81 @@ +# 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/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfig + attr_reader :num_instances + + attr_reader :instance_names + + attr_reader :instance_references + + attr_reader :image_uri + + attr_reader :machine_type_uri + + attr_reader :disk_config + + attr_reader :is_preemptible + + attr_reader :preemptibility + + attr_reader :managed_group_config + + attr_reader :accelerators + + attr_reader :min_cpu_platform + + attr_reader :min_num_instances + + attr_reader :instance_flexibility_policy + + attr_reader :startup_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @num_instances = args['numInstances'] + @instance_names = args['instanceNames'] + @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @image_uri = args['imageUri'] + @machine_type_uri = args['machineTypeUri'] + @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig.new(args['diskConfig'], to_s) + @is_preemptible = args['isPreemptible'] + @preemptibility = args['preemptibility'] + @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @min_cpu_platform = args['minCpuPlatform'] + @min_num_instances = args['minNumInstances'] + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig.new(args['startupConfig'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfig" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb similarity index 63% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb index 80d512f96..5149a37ec 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators attr_reader :accelerator_type_uri attr_reader :accelerator_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAcceleratorsArray + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb similarity index 84% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb index ce5f37563..14a409d10 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig attr_reader :boot_disk_type attr_reader :boot_disk_size_gb @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb similarity index 52% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb index ece89f85d..25d28df98 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb @@ -13,12 +13,12 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy attr_reader :instance_selection_list attr_reader :instance_selection_results @@ -26,12 +26,12 @@ class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorke def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @instance_selection_list = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) - @instance_selection_results = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb similarity index 57% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb index 5d7d82243..1f7daa5d3 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList attr_reader :machine_types attr_reader :rank @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb similarity index 57% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb index 4c0b34f2a..780b7e32d 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults attr_reader :machine_type attr_reader :vm_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb similarity index 65% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb index 2f522ccc0..cb3cf3a85 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences attr_reader :instance_name attr_reader :instance_id @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences" end end - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferencesArray + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferencesArray def self.parse(value, parent_identifier) return if value.nil? - return ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences.new(v, parent_identifier) } + return WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb similarity index 83% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb index 311f2fee2..0d079a9e3 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig attr_reader :instance_template_name attr_reader :instance_group_manager_name @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig" end end end diff --git a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb similarity index 80% rename from libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb rename to libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb index 8e6b681be..6b320c7e7 100644 --- a/libraries/google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig + class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig attr_reader :required_registration_fraction def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} ProjectLocationWorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig" + "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_labels.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_labels.rb new file mode 100644 index 000000000..704a24785 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_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 WorkflowTemplatePlacementManagedClusterLabels + 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} WorkflowTemplatePlacementManagedClusterLabels" + end + end + end + end +end diff --git a/libraries/google_dataproc_project_location_workflow_template.rb b/libraries/google_dataproc_project_location_workflow_template.rb deleted file mode 100644 index f1f33a537..000000000 --- a/libraries/google_dataproc_project_location_workflow_template.rb +++ /dev/null @@ -1,137 +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 'gcp_backend' -require 'google/dataproc/property/projectlocationworkflowtemplate_encryption_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_jobs' -require 'google/dataproc/property/projectlocationworkflowtemplate_labels' -require 'google/dataproc/property/projectlocationworkflowtemplate_parameters' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_cluster_selector_cluster_labels' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_autoscaling_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_encryption_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_initialization_actions' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_lifecycle_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_master_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_metastore_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_software_config_properties' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_accelerators' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_disk_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_instance_references' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_config_worker_config_startup_config' -require 'google/dataproc/property/projectlocationworkflowtemplate_placement_managed_cluster_labels' - -# A provider to manage Dataproc resources. -class DataprocProjectLocationWorkflowTemplate < GcpResourceBase - name 'google_dataproc_project_location_workflow_template' - desc 'ProjectLocationWorkflowTemplate' - supports platform: 'gcp' - - attr_reader :params - attr_reader :id - attr_reader :name - attr_reader :version - attr_reader :create_time - attr_reader :update_time - attr_reader :labels - attr_reader :placement - attr_reader :jobs - attr_reader :parameters - attr_reader :dag_timeout - attr_reader :encryption_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 - @id = @fetched['id'] - @name = @fetched['name'] - @version = @fetched['version'] - @create_time = @fetched['createTime'] - @update_time = @fetched['updateTime'] - @labels = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateLabels.new(@fetched['labels'], to_s) - @placement = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacement.new(@fetched['placement'], to_s) - @jobs = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsArray.parse(@fetched['jobs'], to_s) - @parameters = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersArray.parse(@fetched['parameters'], to_s) - @dag_timeout = @fetched['dagTimeout'] - @encryption_config = GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateEncryptionConfig.new(@fetched['encryptionConfig'], to_s) - end - - def exists? - !@fetched.nil? - end - - def to_s - "ProjectLocationWorkflowTemplate #{@params[:]}" - end - - private - - def product_url(_ = nil) - 'https://dataproc.googleapis.com/v1/' - end - - def resource_base_url - '{{+name}}' - end -end diff --git a/libraries/google_dataproc_workflow_template.rb b/libraries/google_dataproc_workflow_template.rb new file mode 100644 index 000000000..e46e668bb --- /dev/null +++ b/libraries/google_dataproc_workflow_template.rb @@ -0,0 +1,137 @@ +# 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/workflowtemplate_encryption_config' +require 'google/dataproc/property/workflowtemplate_jobs' +require 'google/dataproc/property/workflowtemplate_labels' +require 'google/dataproc/property/workflowtemplate_parameters' +require 'google/dataproc/property/workflowtemplate_placement' +require 'google/dataproc/property/workflowtemplate_placement_cluster_selector' +require 'google/dataproc/property/workflowtemplate_placement_cluster_selector_cluster_labels' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_autoscaling_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_dataproc_metric_config_metrics' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_encryption_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_endpoint_config_http_ports' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_confidential_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_metadata' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_labels' + +# A provider to manage Dataproc resources. +class DataprocWorkflowTemplate < GcpResourceBase + name 'google_dataproc_workflow_template' + desc 'WorkflowTemplate' + supports platform: 'gcp' + + attr_reader :params + attr_reader :id + attr_reader :name + attr_reader :version + attr_reader :create_time + attr_reader :update_time + attr_reader :labels + attr_reader :placement + attr_reader :jobs + attr_reader :parameters + attr_reader :dag_timeout + attr_reader :encryption_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 + @id = @fetched['id'] + @name = @fetched['name'] + @version = @fetched['version'] + @create_time = @fetched['createTime'] + @update_time = @fetched['updateTime'] + @labels = GoogleInSpec::Dataproc::Property::WorkflowTemplateLabels.new(@fetched['labels'], to_s) + @placement = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacement.new(@fetched['placement'], to_s) + @jobs = GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsArray.parse(@fetched['jobs'], to_s) + @parameters = GoogleInSpec::Dataproc::Property::WorkflowTemplateParametersArray.parse(@fetched['parameters'], to_s) + @dag_timeout = @fetched['dagTimeout'] + @encryption_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateEncryptionConfig.new(@fetched['encryptionConfig'], to_s) + end + + def exists? + !@fetched.nil? + end + + def to_s + "WorkflowTemplate #{@params[:name]}" + end + + private + + def product_url(_ = nil) + 'https://dataproc.googleapis.com/v1/' + end + + def resource_base_url + '{{name}}' + end +end diff --git a/libraries/google_dataproc_project_location_workflow_templates.rb b/libraries/google_dataproc_workflow_templates.rb similarity index 81% rename from libraries/google_dataproc_project_location_workflow_templates.rb rename to libraries/google_dataproc_workflow_templates.rb index 0d9694fcd..14e411ea2 100644 --- a/libraries/google_dataproc_project_location_workflow_templates.rb +++ b/libraries/google_dataproc_workflow_templates.rb @@ -14,9 +14,9 @@ # # ---------------------------------------------------------------------------- require 'gcp_backend' -class DataprocProjectLocationWorkflowTemplates < GcpResourceBase - name 'google_dataproc_project_location_workflow_templates' - desc 'ProjectLocationWorkflowTemplate plural resource' +class DataprocWorkflowTemplates < GcpResourceBase + name 'google_dataproc_workflow_templates' + desc 'WorkflowTemplate plural resource' supports platform: 'gcp' attr_reader :table @@ -40,7 +40,7 @@ class DataprocProjectLocationWorkflowTemplates < GcpResourceBase def initialize(params = {}) super(params.merge({ use_http_transport: true })) @params = params - @table = fetch_wrapped_resource('projectLocationWorkflowTemplates') + @table = fetch_wrapped_resource('workflowTemplates') end def fetch_wrapped_resource(wrap_path) @@ -78,12 +78,12 @@ def transformers 'version' => ->(obj) { [:version, obj['version']] }, 'createTime' => ->(obj) { [:create_time, obj['createTime']] }, 'updateTime' => ->(obj) { [:update_time, obj['updateTime']] }, - 'labels' => ->(obj) { [:labels, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateLabels.new(obj['labels'], to_s)] }, - 'placement' => ->(obj) { [:placement, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplatePlacement.new(obj['placement'], to_s)] }, - 'jobs' => ->(obj) { [:jobs, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateJobsArray.parse(obj['jobs'], to_s)] }, - 'parameters' => ->(obj) { [:parameters, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateParametersArray.parse(obj['parameters'], to_s)] }, + 'labels' => ->(obj) { [:labels, GoogleInSpec::Dataproc::Property::WorkflowTemplateLabels.new(obj['labels'], to_s)] }, + 'placement' => ->(obj) { [:placement, GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacement.new(obj['placement'], to_s)] }, + 'jobs' => ->(obj) { [:jobs, GoogleInSpec::Dataproc::Property::WorkflowTemplateJobsArray.parse(obj['jobs'], to_s)] }, + 'parameters' => ->(obj) { [:parameters, GoogleInSpec::Dataproc::Property::WorkflowTemplateParametersArray.parse(obj['parameters'], to_s)] }, 'dagTimeout' => ->(obj) { [:dag_timeout, obj['dagTimeout']] }, - 'encryptionConfig' => ->(obj) { [:encryption_config, GoogleInSpec::Dataproc::Property::ProjectLocationWorkflowTemplateEncryptionConfig.new(obj['encryptionConfig'], to_s)] }, + 'encryptionConfig' => ->(obj) { [:encryption_config, GoogleInSpec::Dataproc::Property::WorkflowTemplateEncryptionConfig.new(obj['encryptionConfig'], to_s)] }, } end @@ -94,6 +94,6 @@ def product_url(_ = nil) end def resource_base_url - '{{+parent}}/workflowTemplates' + '{{parent}}/workflowTemplates' end end From 4cebde280d32f7dc1626d99d7bb412eebf49a5b3 Mon Sep 17 00:00:00 2001 From: balasubramanian-s Date: Thu, 20 Jun 2024 12:27:19 +0530 Subject: [PATCH 3/6] rename long property files Signed-off-by: balasubramanian-s --- ...mplate_auxiliary_node_groups_node_group.rb | 53 +++++++++++++ ...uxiliary_node_groups_node_group_labels.rb} | 4 +- ...de_groups_node_group_node_group_config.rb} | 20 ++--- ...e_group_node_group_config_accelerators.rb} | 10 +-- ...de_group_node_group_config_disk_config.rb} | 4 +- ...oup_config_instance_flexibility_policy.rb} | 8 +- ..._node_group_config_instance_references.rb} | 10 +-- ...node_group_config_managed_group_config.rb} | 4 +- ...group_node_group_config_startup_config.rb} | 4 +- ..._groups_policy_instance_selection_list.rb} | 10 +-- ...oups_policy_instance_selection_results.rb} | 10 +-- ...=> workflowtemplate_gke_cluster_config.rb} | 12 +-- ...onfig_namespaced_gke_deployment_target.rb} | 4 +- ...ate_gke_cluster_config_node_pool_target.rb | 52 +++++++++++++ ...nfig_node_pool_target_node_pool_config.rb} | 14 ++-- ...ol_target_node_pool_config_autoscaling.rb} | 4 +- ...de_pool_target_node_pool_config_config.rb} | 8 +- ...t_node_pool_config_config_accelerators.rb} | 10 +-- ...g.rb => workflowtemplate_master_config.rb} | 32 ++++---- ...lowtemplate_master_config_accelerators.rb} | 10 +-- ...flowtemplate_master_config_disk_config.rb} | 4 +- ...ter_config_instance_flexibility_policy.rb} | 12 +-- ...ibility_policy_instance_selection_list.rb} | 10 +-- ...lity_policy_instance_selection_results.rb} | 10 +-- ...late_master_config_instance_references.rb} | 10 +-- ...ate_master_config_managed_group_config.rb} | 4 +- ...wtemplate_master_config_startup_config.rb} | 4 +- .../property/workflowtemplate_placement.rb | 64 ++++++++-------- ...kflowtemplate_placement_managed_cluster.rb | 64 ++++++++-------- ...mplate_placement_managed_cluster_config.rb | 74 +++++++++---------- ...ed_cluster_config_auxiliary_node_groups.rb | 12 +-- ...config_auxiliary_node_groups_node_group.rb | 53 ------------- ...xibility_policy_instance_selection_list.rb | 45 ----------- ...ility_policy_instance_selection_results.rb | 45 ----------- ...fig_gke_cluster_config_node_pool_target.rb | 52 ------------- ..._managed_cluster_config_security_config.rb | 4 +- ...rkflowtemplate_secondary_worker_config.rb} | 32 ++++---- ...e_secondary_worker_config_accelerators.rb} | 10 +-- ...te_secondary_worker_config_disk_config.rb} | 4 +- ...ker_config_instance_flexibility_policy.rb} | 12 +-- ...ibility_policy_instance_selection_list.rb} | 10 +-- ...lity_policy_instance_selection_results.rb} | 10 +-- ...dary_worker_config_instance_references.rb} | 10 +-- ...ary_worker_config_managed_group_config.rb} | 4 +- ...secondary_worker_config_startup_config.rb} | 4 +- ...mplate_security_config_identity_config.rb} | 4 +- ...ty_config_user_service_account_mapping.rb} | 4 +- ...g.rb => workflowtemplate_worker_config.rb} | 32 ++++---- ...lowtemplate_worker_config_accelerators.rb} | 10 +-- ...flowtemplate_worker_config_disk_config.rb} | 4 +- ...ker_config_instance_flexibility_policy.rb} | 12 +-- ...xibility_policy_instance_selection_list.rb | 45 +++++++++++ ...ility_policy_instance_selection_results.rb | 45 +++++++++++ ...late_worker_config_instance_references.rb} | 10 +-- ...ate_worker_config_managed_group_config.rb} | 4 +- ...wtemplate_worker_config_startup_config.rb} | 4 +- 56 files changed, 510 insertions(+), 510 deletions(-) create mode 100644 libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group.rb rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb => workflowtemplate_auxiliary_node_groups_node_group_labels.rb} (82%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb => workflowtemplate_auxiliary_node_groups_node_group_node_group_config.rb} (70%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb => workflowtemplate_auxiliary_node_groups_node_group_node_group_config_accelerators.rb} (66%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb => workflowtemplate_auxiliary_node_groups_node_group_node_group_config_disk_config.rb} (86%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb => workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb} (68%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb => workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_references.rb} (67%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb => workflowtemplate_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb} (85%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb => workflowtemplate_auxiliary_node_groups_node_group_node_group_config_startup_config.rb} (82%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb => workflowtemplate_auxiliary_node_groups_policy_instance_selection_list.rb} (61%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb => workflowtemplate_auxiliary_node_groups_policy_instance_selection_results.rb} (60%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb => workflowtemplate_gke_cluster_config.rb} (62%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb => workflowtemplate_gke_cluster_config_namespaced_gke_deployment_target.rb} (82%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target.rb rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb => workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config.rb} (55%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb => workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb} (80%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb => workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config.rb} (73%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb => workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb} (63%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_worker_config.rb => workflowtemplate_master_config.rb} (54%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb => workflowtemplate_master_config_accelerators.rb} (68%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb => workflowtemplate_master_config_disk_config.rb} (87%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb => workflowtemplate_master_config_instance_flexibility_policy.rb} (56%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb => workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list.rb} (61%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb => workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results.rb} (60%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb => workflowtemplate_master_config_instance_references.rb} (69%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb => workflowtemplate_master_config_managed_group_config.rb} (86%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb => workflowtemplate_master_config_startup_config.rb} (84%) delete mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb delete mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb delete mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb delete mode 100644 libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_master_config.rb => workflowtemplate_secondary_worker_config.rb} (54%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb => workflowtemplate_secondary_worker_config_accelerators.rb} (68%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb => workflowtemplate_secondary_worker_config_disk_config.rb} (87%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb => workflowtemplate_secondary_worker_config_instance_flexibility_policy.rb} (56%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb => workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb} (59%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb => workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb} (59%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb => workflowtemplate_secondary_worker_config_instance_references.rb} (69%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb => workflowtemplate_secondary_worker_config_managed_group_config.rb} (86%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb => workflowtemplate_secondary_worker_config_startup_config.rb} (84%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb => workflowtemplate_security_config_identity_config.rb} (79%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb => workflowtemplate_security_config_identity_config_user_service_account_mapping.rb} (80%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb => workflowtemplate_worker_config.rb} (52%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb => workflowtemplate_worker_config_accelerators.rb} (62%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb => workflowtemplate_worker_config_disk_config.rb} (83%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb => workflowtemplate_worker_config_instance_flexibility_policy.rb} (54%) create mode 100644 libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list.rb create mode 100644 libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results.rb rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb => workflowtemplate_worker_config_instance_references.rb} (64%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb => workflowtemplate_worker_config_managed_group_config.rb} (82%) rename libraries/google/dataproc/property/{workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb => workflowtemplate_worker_config_startup_config.rb} (80%) diff --git a/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group.rb new file mode 100644 index 000000000..da71c849a --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group.rb @@ -0,0 +1,53 @@ +# 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/workflowtemplate_auxiliary_node_groups_node_group_labels' +require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config' +require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_accelerators' +require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_disk_config' +require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_references' +require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_startup_config' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroup + attr_reader :name + + attr_reader :roles + + attr_reader :node_group_config + + attr_reader :labels + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @name = args['name'] + @roles = args['roles'] + @node_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfig.new(args['nodeGroupConfig'], to_s) + @labels = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroupLabels.new(args['labels'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsNodeGroup" + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_labels.rb similarity index 82% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_labels.rb index d29f7b2d8..cc11a7e2f 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_labels.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupLabels 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} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsNodeGroupLabels" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config.rb similarity index 70% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config.rb index 129959995..debe45f7e 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config.rb @@ -16,15 +16,15 @@ require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_policy_instance_selection_results' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfig attr_reader :num_instances attr_reader :instance_names @@ -58,22 +58,22 @@ def initialize(args = nil, parent_identifier = nil) @parent_identifier = parent_identifier @num_instances = args['numInstances'] @instance_names = args['instanceNames'] - @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) @image_uri = args['imageUri'] @machine_type_uri = args['machineTypeUri'] - @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig.new(args['diskConfig'], to_s) + @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig.new(args['diskConfig'], to_s) @is_preemptible = args['isPreemptible'] @preemptibility = args['preemptibility'] - @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) - @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray.parse(args['accelerators'], to_s) @min_cpu_platform = args['minCpuPlatform'] @min_num_instances = args['minNumInstances'] - @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) - @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig.new(args['startupConfig'], to_s) + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig.new(args['startupConfig'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_accelerators.rb similarity index 66% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_accelerators.rb index e3344d0f5..8a39a1fd3 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators attr_reader :accelerator_type_uri attr_reader :accelerator_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators" end end - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAcceleratorsArray + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_disk_config.rb similarity index 86% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_disk_config.rb index 13396c4f5..206e22a88 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_disk_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig attr_reader :boot_disk_type attr_reader :boot_disk_size_gb @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb similarity index 68% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb index e7211047d..d5b09d2d1 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy.rb @@ -18,7 +18,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy attr_reader :instance_selection_list attr_reader :instance_selection_results @@ -26,12 +26,12 @@ class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupN def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) - @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicy" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_references.rb similarity index 67% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_references.rb index 78650b401..98a4090d3 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_instance_references.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences attr_reader :instance_name attr_reader :instance_id @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences" end end - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferencesArray + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferences.new(v, parent_identifier) } + return WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb similarity index 85% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb index 6911f8c38..6b8bbff09 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig attr_reader :instance_template_name attr_reader :instance_group_manager_name @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_startup_config.rb similarity index 82% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_startup_config.rb index 575d015ea..ce8fb2aa9 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_node_group_node_group_config_startup_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig + class WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig attr_reader :required_registration_fraction def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_policy_instance_selection_list.rb similarity index 61% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_policy_instance_selection_list.rb index 1f7daa5d3..d08c3a727 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_policy_instance_selection_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList + class WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionList attr_reader :machine_types attr_reader :rank @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionList" end end - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray + class WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionListArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + return WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionList.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_policy_instance_selection_results.rb similarity index 60% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb rename to libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_policy_instance_selection_results.rb index 780b7e32d..27c3d179b 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results.rb +++ b/libraries/google/dataproc/property/workflowtemplate_auxiliary_node_groups_policy_instance_selection_results.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults + class WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionResults attr_reader :machine_type attr_reader :vm_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionResults" end end - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + class WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionResultsArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + return WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateAuxiliaryNodeGroupsPolicyInstanceSelectionResults.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config.rb similarity index 62% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb rename to libraries/google/dataproc/property/workflowtemplate_gke_cluster_config.rb index 997240768..8a23d5f46 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config.rb @@ -13,12 +13,12 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig + class WorkflowTemplateGkeClusterConfig attr_reader :namespaced_gke_deployment_target attr_reader :gke_cluster_target @@ -28,13 +28,13 @@ class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @namespaced_gke_deployment_target = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget.new(args['namespacedGkeDeploymentTarget'], to_s) + @namespaced_gke_deployment_target = GoogleInSpec::Dataproc::Property::WorkflowTemplateGkeClusterConfigNamespacedGkeDeploymentTarget.new(args['namespacedGkeDeploymentTarget'], to_s) @gke_cluster_target = args['gkeClusterTarget'] - @node_pool_target = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetArray.parse(args['nodePoolTarget'], to_s) + @node_pool_target = GoogleInSpec::Dataproc::Property::WorkflowTemplateGkeClusterConfigNodePoolTargetArray.parse(args['nodePoolTarget'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig" + "#{@parent_identifier} WorkflowTemplateGkeClusterConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_namespaced_gke_deployment_target.rb similarity index 82% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb rename to libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_namespaced_gke_deployment_target.rb index f646c229e..ae7fcc14c 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target.rb +++ b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_namespaced_gke_deployment_target.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget + class WorkflowTemplateGkeClusterConfigNamespacedGkeDeploymentTarget attr_reader :target_gke_cluster attr_reader :cluster_namespace @@ -29,7 +29,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget" + "#{@parent_identifier} WorkflowTemplateGkeClusterConfigNamespacedGkeDeploymentTarget" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target.rb b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target.rb new file mode 100644 index 000000000..57d16c934 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target.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/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' +module GoogleInSpec + module Dataproc + module Property + class WorkflowTemplateGkeClusterConfigNodePoolTarget + attr_reader :node_pool + + attr_reader :roles + + attr_reader :node_pool_config + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @node_pool = args['nodePool'] + @roles = args['roles'] + @node_pool_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfig.new(args['nodePoolConfig'], to_s) + end + + def to_s + "#{@parent_identifier} WorkflowTemplateGkeClusterConfigNodePoolTarget" + end + end + + class WorkflowTemplateGkeClusterConfigNodePoolTargetArray + def self.parse(value, parent_identifier) + return if value.nil? + return WorkflowTemplateGkeClusterConfigNodePoolTarget.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateGkeClusterConfigNodePoolTarget.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config.rb similarity index 55% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb rename to libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config.rb index 3a73fd9b3..dc49ab81b 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config.rb @@ -13,13 +13,13 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig + class WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfig attr_reader :config attr_reader :locations @@ -29,13 +29,13 @@ class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarge def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig.new(args['config'], to_s) + @config = GoogleInSpec::Dataproc::Property::WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigConfig.new(args['config'], to_s) @locations = args['locations'] - @autoscaling = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling.new(args['autoscaling'], to_s) + @autoscaling = GoogleInSpec::Dataproc::Property::WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling.new(args['autoscaling'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig" + "#{@parent_identifier} WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb similarity index 80% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb rename to libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb index 3ab5828b7..ad09ab6f5 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb +++ b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_autoscaling.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling + class WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling attr_reader :min_node_count attr_reader :max_node_count @@ -29,7 +29,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling" + "#{@parent_identifier} WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigAutoscaling" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config.rb similarity index 73% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb rename to libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config.rb index ff94c8407..9a6451bbf 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config.rb @@ -13,11 +13,11 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig + class WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigConfig attr_reader :machine_type attr_reader :local_ssd_count @@ -38,14 +38,14 @@ def initialize(args = nil, parent_identifier = nil) @machine_type = args['machineType'] @local_ssd_count = args['localSsdCount'] @preemptible = args['preemptible'] - @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray.parse(args['accelerators'], to_s) @min_cpu_platform = args['minCpuPlatform'] @boot_disk_kms_key = args['bootDiskKmsKey'] @spot = args['spot'] end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfig" + "#{@parent_identifier} WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb similarity index 63% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb index 8d38ce094..c71935cbd 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators + class WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators attr_reader :accelerator_count attr_reader :accelerator_type @@ -32,15 +32,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators" + "#{@parent_identifier} WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators" end end - class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray + class WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateGkeClusterConfigNodePoolTargetNodePoolConfigConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config.rb b/libraries/google/dataproc/property/workflowtemplate_master_config.rb similarity index 54% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config.rb rename to libraries/google/dataproc/property/workflowtemplate_master_config.rb index 959fdb200..3c44fd81c 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_master_config.rb @@ -13,18 +13,18 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_master_config_accelerators' +require 'google/dataproc/property/workflowtemplate_master_config_disk_config' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_master_config_instance_references' +require 'google/dataproc/property/workflowtemplate_master_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_master_config_startup_config' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfig + class WorkflowTemplateMasterConfig attr_reader :num_instances attr_reader :instance_names @@ -58,22 +58,22 @@ def initialize(args = nil, parent_identifier = nil) @parent_identifier = parent_identifier @num_instances = args['numInstances'] @instance_names = args['instanceNames'] - @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) @image_uri = args['imageUri'] @machine_type_uri = args['machineTypeUri'] - @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig.new(args['diskConfig'], to_s) + @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfigDiskConfig.new(args['diskConfig'], to_s) @is_preemptible = args['isPreemptible'] @preemptibility = args['preemptibility'] - @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) - @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfigAcceleratorsArray.parse(args['accelerators'], to_s) @min_cpu_platform = args['minCpuPlatform'] @min_num_instances = args['minNumInstances'] - @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) - @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig.new(args['startupConfig'], to_s) + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfigStartupConfig.new(args['startupConfig'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfig" + "#{@parent_identifier} WorkflowTemplateMasterConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_master_config_accelerators.rb similarity index 68% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_master_config_accelerators.rb index 17c7b8fb6..04f187b16 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_master_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators + class WorkflowTemplateMasterConfigAccelerators attr_reader :accelerator_type_uri attr_reader :accelerator_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators" + "#{@parent_identifier} WorkflowTemplateMasterConfigAccelerators" end end - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorsArray + class WorkflowTemplateMasterConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplateMasterConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateMasterConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb b/libraries/google/dataproc/property/workflowtemplate_master_config_disk_config.rb similarity index 87% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb rename to libraries/google/dataproc/property/workflowtemplate_master_config_disk_config.rb index 14a409d10..f8e104723 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_master_config_disk_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig + class WorkflowTemplateMasterConfigDiskConfig attr_reader :boot_disk_type attr_reader :boot_disk_size_gb @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigDiskConfig" + "#{@parent_identifier} WorkflowTemplateMasterConfigDiskConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy.rb similarity index 56% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb rename to libraries/google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy.rb index 4d48fd5f9..5cfca31fb 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy.rb +++ b/libraries/google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy.rb @@ -13,12 +13,12 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy + class WorkflowTemplateMasterConfigInstanceFlexibilityPolicy attr_reader :instance_selection_list attr_reader :instance_selection_results @@ -26,12 +26,12 @@ class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibili def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) - @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy" + "#{@parent_identifier} WorkflowTemplateMasterConfigInstanceFlexibilityPolicy" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list.rb similarity index 61% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb rename to libraries/google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list.rb index 17f182bf1..7e19bc96d 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList + class WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionList attr_reader :machine_types attr_reader :rank @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList" + "#{@parent_identifier} WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionList" end end - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray + class WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionListArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + return WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results.rb similarity index 60% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb rename to libraries/google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results.rb index 591814a1f..db3ca6fa5 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results.rb +++ b/libraries/google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults + class WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults attr_reader :machine_type attr_reader :vm_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults" + "#{@parent_identifier} WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults" end end - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + class WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + return WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateMasterConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb b/libraries/google/dataproc/property/workflowtemplate_master_config_instance_references.rb similarity index 69% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb rename to libraries/google/dataproc/property/workflowtemplate_master_config_instance_references.rb index cb3cf3a85..584390ad8 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references.rb +++ b/libraries/google/dataproc/property/workflowtemplate_master_config_instance_references.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences + class WorkflowTemplateMasterConfigInstanceReferences attr_reader :instance_name attr_reader :instance_id @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences" + "#{@parent_identifier} WorkflowTemplateMasterConfigInstanceReferences" end end - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferencesArray + class WorkflowTemplateMasterConfigInstanceReferencesArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceReferences.new(v, parent_identifier) } + return WorkflowTemplateMasterConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateMasterConfigInstanceReferences.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_master_config_managed_group_config.rb similarity index 86% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb rename to libraries/google/dataproc/property/workflowtemplate_master_config_managed_group_config.rb index 0d079a9e3..2bf4f4d29 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_master_config_managed_group_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig + class WorkflowTemplateMasterConfigManagedGroupConfig attr_reader :instance_template_name attr_reader :instance_group_manager_name @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigManagedGroupConfig" + "#{@parent_identifier} WorkflowTemplateMasterConfigManagedGroupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb b/libraries/google/dataproc/property/workflowtemplate_master_config_startup_config.rb similarity index 84% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb rename to libraries/google/dataproc/property/workflowtemplate_master_config_startup_config.rb index 6b320c7e7..5c528bba9 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_master_config_startup_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig + class WorkflowTemplateMasterConfigStartupConfig attr_reader :required_registration_fraction def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigStartupConfig" + "#{@parent_identifier} WorkflowTemplateMasterConfigStartupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement.rb b/libraries/google/dataproc/property/workflowtemplate_placement.rb index 75f93b52f..db5a61387 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement.rb @@ -30,45 +30,45 @@ require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/workflowtemplate_master_config' +require 'google/dataproc/property/workflowtemplate_master_config_accelerators' +require 'google/dataproc/property/workflowtemplate_master_config_disk_config' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_master_config_instance_references' +require 'google/dataproc/property/workflowtemplate_master_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_master_config_startup_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_startup_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_security_config_identity_config' +require 'google/dataproc/property/workflowtemplate_security_config_identity_config_user_service_account_mapping' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_worker_config' +require 'google/dataproc/property/workflowtemplate_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_worker_config_startup_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_labels' module GoogleInSpec module Dataproc diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster.rb index 52c61a3e2..b59c296d0 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster.rb @@ -27,45 +27,45 @@ require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/workflowtemplate_master_config' +require 'google/dataproc/property/workflowtemplate_master_config_accelerators' +require 'google/dataproc/property/workflowtemplate_master_config_disk_config' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_master_config_instance_references' +require 'google/dataproc/property/workflowtemplate_master_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_master_config_startup_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_startup_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_security_config_identity_config' +require 'google/dataproc/property/workflowtemplate_security_config_identity_config_user_service_account_mapping' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_worker_config' +require 'google/dataproc/property/workflowtemplate_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_worker_config_startup_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_labels' module GoogleInSpec module Dataproc diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config.rb index 6e36d4b07..dd96b5348 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config.rb @@ -26,45 +26,45 @@ require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_node_group_affinity' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_reservation_affinity' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gce_cluster_config_shielded_instance_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_namespaced_gke_deployment_target' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_namespaced_gke_deployment_target' +require 'google/dataproc/property/workflowtemplate_gke_cluster_config_node_pool_target' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_initialization_actions' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_lifecycle_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/workflowtemplate_master_config' +require 'google/dataproc/property/workflowtemplate_master_config_accelerators' +require 'google/dataproc/property/workflowtemplate_master_config_disk_config' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_master_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_master_config_instance_references' +require 'google/dataproc/property/workflowtemplate_master_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_master_config_startup_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_metastore_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_startup_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_security_config_identity_config' +require 'google/dataproc/property/workflowtemplate_security_config_identity_config_user_service_account_mapping' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_software_config_properties' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_worker_config' +require 'google/dataproc/property/workflowtemplate_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_worker_config_startup_config' module GoogleInSpec module Dataproc module Property @@ -109,9 +109,9 @@ def initialize(args = nil, parent_identifier = nil) @config_bucket = args['configBucket'] @temp_bucket = args['tempBucket'] @gce_cluster_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGceClusterConfig.new(args['gceClusterConfig'], to_s) - @master_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfig.new(args['masterConfig'], to_s) - @worker_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfig.new(args['workerConfig'], to_s) - @secondary_worker_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig.new(args['secondaryWorkerConfig'], to_s) + @master_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateMasterConfig.new(args['masterConfig'], to_s) + @worker_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfig.new(args['workerConfig'], to_s) + @secondary_worker_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfig.new(args['secondaryWorkerConfig'], to_s) @software_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSoftwareConfig.new(args['softwareConfig'], to_s) @initialization_actions = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigInitializationActionsArray.parse(args['initializationActions'], to_s) @encryption_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigEncryptionConfig.new(args['encryptionConfig'], to_s) @@ -120,9 +120,9 @@ def initialize(args = nil, parent_identifier = nil) @lifecycle_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigLifecycleConfig.new(args['lifecycleConfig'], to_s) @endpoint_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigEndpointConfig.new(args['endpointConfig'], to_s) @metastore_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMetastoreConfig.new(args['metastoreConfig'], to_s) - @gke_cluster_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfig.new(args['gkeClusterConfig'], to_s) + @gke_cluster_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateGkeClusterConfig.new(args['gkeClusterConfig'], to_s) @dataproc_metric_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigDataprocMetricConfig.new(args['dataprocMetricConfig'], to_s) - @auxiliary_node_groups = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsArray.parse(args['auxiliaryNodeGroups'], to_s) + @auxiliary_node_groups = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsArray.parse(args['auxiliaryNodeGroups'], to_s) end def to_s diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb index 82d7d2a6c..8ec7b2039 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups.rb @@ -27,7 +27,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups + class WorkflowTemplateAuxiliaryNodeGroups attr_reader :node_group attr_reader :node_group_id @@ -35,20 +35,20 @@ class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @node_group = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup.new(args['nodeGroup'], to_s) + @node_group = GoogleInSpec::Dataproc::Property::WorkflowTemplateAuxiliaryNodeGroupsNodeGroup.new(args['nodeGroup'], to_s) @node_group_id = args['nodeGroupId'] end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups" + "#{@parent_identifier} WorkflowTemplateAuxiliaryNodeGroups" end end - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsArray + class WorkflowTemplateAuxiliaryNodeGroupsArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroups.new(v, parent_identifier) } + return WorkflowTemplateAuxiliaryNodeGroups.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateAuxiliaryNodeGroups.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb deleted file mode 100644 index ca24181a0..000000000 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group.rb +++ /dev/null @@ -1,53 +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/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_labels' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config' -module GoogleInSpec - module Dataproc - module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup - attr_reader :name - - attr_reader :roles - - attr_reader :node_group_config - - attr_reader :labels - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @name = args['name'] - @roles = args['roles'] - @node_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfig.new(args['nodeGroupConfig'], to_s) - @labels = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupLabels.new(args['labels'], to_s) - end - - def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroup" - end - end - end - end -end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb deleted file mode 100644 index 2a1fa60bb..000000000 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_list.rb +++ /dev/null @@ -1,45 +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 WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList - attr_reader :machine_types - - attr_reader :rank - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @machine_types = args['machineTypes'] - @rank = args['rank'] - end - - def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList" - end - end - - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionListArray - def self.parse(value, parent_identifier) - return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } - end - end - end - end -end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb deleted file mode 100644 index 5fa2899a2..000000000 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_flexibility_policy_instance_selection_results.rb +++ /dev/null @@ -1,45 +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 WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults - attr_reader :machine_type - - attr_reader :vm_count - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @machine_type = args['machineType'] - @vm_count = args['vmCount'] - end - - def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults" - end - end - - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray - def self.parse(value, parent_identifier) - return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } - end - end - end - end -end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb deleted file mode 100644 index 101693bcc..000000000 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target.rb +++ /dev/null @@ -1,52 +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/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_autoscaling' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_gke_cluster_config_node_pool_target_node_pool_config_config_accelerators' -module GoogleInSpec - module Dataproc - module Property - class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget - attr_reader :node_pool - - attr_reader :roles - - attr_reader :node_pool_config - - def initialize(args = nil, parent_identifier = nil) - return if args.nil? - @parent_identifier = parent_identifier - @node_pool = args['nodePool'] - @roles = args['roles'] - @node_pool_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfig.new(args['nodePoolConfig'], to_s) - end - - def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget" - end - end - - class WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTargetArray - def self.parse(value, parent_identifier) - return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigGkeClusterConfigNodePoolTarget.new(v, parent_identifier) } - end - end - end - end -end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config.rb b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config.rb index 549bcd2e7..316347332 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config.rb @@ -13,8 +13,8 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_security_config_identity_config' +require 'google/dataproc/property/workflowtemplate_security_config_identity_config_user_service_account_mapping' require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_kerberos_config' module GoogleInSpec module Dataproc diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config.rb b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config.rb similarity index 54% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config.rb rename to libraries/google/dataproc/property/workflowtemplate_secondary_worker_config.rb index 72000e33e..9b48421a4 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config.rb @@ -13,18 +13,18 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_startup_config' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigMasterConfig + class WorkflowTemplateSecondaryWorkerConfig attr_reader :num_instances attr_reader :instance_names @@ -58,22 +58,22 @@ def initialize(args = nil, parent_identifier = nil) @parent_identifier = parent_identifier @num_instances = args['numInstances'] @instance_names = args['instanceNames'] - @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) @image_uri = args['imageUri'] @machine_type_uri = args['machineTypeUri'] - @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig.new(args['diskConfig'], to_s) + @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfigDiskConfig.new(args['diskConfig'], to_s) @is_preemptible = args['isPreemptible'] @preemptibility = args['preemptibility'] - @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) - @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) @min_cpu_platform = args['minCpuPlatform'] @min_num_instances = args['minNumInstances'] - @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) - @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig.new(args['startupConfig'], to_s) + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfigStartupConfig.new(args['startupConfig'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfig" + "#{@parent_identifier} WorkflowTemplateSecondaryWorkerConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_accelerators.rb similarity index 68% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_accelerators.rb index 5149a37ec..3d5d8967e 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators + class WorkflowTemplateSecondaryWorkerConfigAccelerators attr_reader :accelerator_type_uri attr_reader :accelerator_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators" + "#{@parent_identifier} WorkflowTemplateSecondaryWorkerConfigAccelerators" end end - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAcceleratorsArray + class WorkflowTemplateSecondaryWorkerConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplateSecondaryWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateSecondaryWorkerConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_disk_config.rb similarity index 87% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb rename to libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_disk_config.rb index 3838011f0..3f13a2e54 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_disk_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_disk_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig + class WorkflowTemplateSecondaryWorkerConfigDiskConfig attr_reader :boot_disk_type attr_reader :boot_disk_size_gb @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig" + "#{@parent_identifier} WorkflowTemplateSecondaryWorkerConfigDiskConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy.rb similarity index 56% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb rename to libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy.rb index 25d28df98..707ff5522 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy.rb +++ b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy.rb @@ -13,12 +13,12 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy + class WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicy attr_reader :instance_selection_list attr_reader :instance_selection_results @@ -26,12 +26,12 @@ class WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibili def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) - @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigWorkerConfigInstanceFlexibilityPolicy" + "#{@parent_identifier} WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicy" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb similarity index 59% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb rename to libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb index 328739444..418649df4 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb +++ b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_list.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList + class WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList attr_reader :machine_types attr_reader :rank @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" + "#{@parent_identifier} WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" end end - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray + class WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + return WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb similarity index 59% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb rename to libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb index 3aac16bf2..9d7205bca 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb +++ b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_flexibility_policy_instance_selection_results.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults + class WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults attr_reader :machine_type attr_reader :vm_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" + "#{@parent_identifier} WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" end end - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + class WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + return WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_references.rb similarity index 69% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb rename to libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_references.rb index d47d65884..bf0988d30 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_instance_references.rb +++ b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_instance_references.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences + class WorkflowTemplateSecondaryWorkerConfigInstanceReferences attr_reader :instance_name attr_reader :instance_id @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences" + "#{@parent_identifier} WorkflowTemplateSecondaryWorkerConfigInstanceReferences" end end - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferencesArray + class WorkflowTemplateSecondaryWorkerConfigInstanceReferencesArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigMasterConfigInstanceReferences.new(v, parent_identifier) } + return WorkflowTemplateSecondaryWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateSecondaryWorkerConfigInstanceReferences.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_managed_group_config.rb similarity index 86% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb rename to libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_managed_group_config.rb index 593fb631f..c1ff1881f 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_managed_group_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_managed_group_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig + class WorkflowTemplateSecondaryWorkerConfigManagedGroupConfig attr_reader :instance_template_name attr_reader :instance_group_manager_name @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig" + "#{@parent_identifier} WorkflowTemplateSecondaryWorkerConfigManagedGroupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_startup_config.rb similarity index 84% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb rename to libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_startup_config.rb index a7a0d8656..a92db2fb5 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_master_config_startup_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_secondary_worker_config_startup_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig + class WorkflowTemplateSecondaryWorkerConfigStartupConfig attr_reader :required_registration_fraction def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigMasterConfigStartupConfig" + "#{@parent_identifier} WorkflowTemplateSecondaryWorkerConfigStartupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb b/libraries/google/dataproc/property/workflowtemplate_security_config_identity_config.rb similarity index 79% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb rename to libraries/google/dataproc/property/workflowtemplate_security_config_identity_config.rb index 2c25c787f..7736a5716 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_security_config_identity_config.rb @@ -13,7 +13,7 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping' +require 'google/dataproc/property/workflowtemplate_security_config_identity_config_user_service_account_mapping' module GoogleInSpec module Dataproc module Property @@ -23,7 +23,7 @@ class WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfig def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @user_service_account_mapping = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping.new(args['userServiceAccountMapping'], to_s) + @user_service_account_mapping = GoogleInSpec::Dataproc::Property::WorkflowTemplateSecurityConfigIdentityConfigUserServiceAccountMapping.new(args['userServiceAccountMapping'], to_s) end def to_s diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb b/libraries/google/dataproc/property/workflowtemplate_security_config_identity_config_user_service_account_mapping.rb similarity index 80% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb rename to libraries/google/dataproc/property/workflowtemplate_security_config_identity_config_user_service_account_mapping.rb index 3e83cfec3..17602093f 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_security_config_identity_config_user_service_account_mapping.rb +++ b/libraries/google/dataproc/property/workflowtemplate_security_config_identity_config_user_service_account_mapping.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping + class WorkflowTemplateSecurityConfigIdentityConfigUserServiceAccountMapping 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} WorkflowTemplatePlacementManagedClusterConfigSecurityConfigIdentityConfigUserServiceAccountMapping" + "#{@parent_identifier} WorkflowTemplateSecurityConfigIdentityConfigUserServiceAccountMapping" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb b/libraries/google/dataproc/property/workflowtemplate_worker_config.rb similarity index 52% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb rename to libraries/google/dataproc/property/workflowtemplate_worker_config.rb index 5f289aeff..c70ff5e0e 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_worker_config.rb @@ -13,18 +13,18 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_accelerators' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_disk_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_references' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_managed_group_config' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_startup_config' +require 'google/dataproc/property/workflowtemplate_worker_config_accelerators' +require 'google/dataproc/property/workflowtemplate_worker_config_disk_config' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_references' +require 'google/dataproc/property/workflowtemplate_worker_config_managed_group_config' +require 'google/dataproc/property/workflowtemplate_worker_config_startup_config' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig + class WorkflowTemplateWorkerConfig attr_reader :num_instances attr_reader :instance_names @@ -58,22 +58,22 @@ def initialize(args = nil, parent_identifier = nil) @parent_identifier = parent_identifier @num_instances = args['numInstances'] @instance_names = args['instanceNames'] - @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) + @instance_references = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfigInstanceReferencesArray.parse(args['instanceReferences'], to_s) @image_uri = args['imageUri'] @machine_type_uri = args['machineTypeUri'] - @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigDiskConfig.new(args['diskConfig'], to_s) + @disk_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfigDiskConfig.new(args['diskConfig'], to_s) @is_preemptible = args['isPreemptible'] @preemptibility = args['preemptibility'] - @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) - @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) + @managed_group_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfigManagedGroupConfig.new(args['managedGroupConfig'], to_s) + @accelerators = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfigAcceleratorsArray.parse(args['accelerators'], to_s) @min_cpu_platform = args['minCpuPlatform'] @min_num_instances = args['minNumInstances'] - @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) - @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigStartupConfig.new(args['startupConfig'], to_s) + @instance_flexibility_policy = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfigInstanceFlexibilityPolicy.new(args['instanceFlexibilityPolicy'], to_s) + @startup_config = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfigStartupConfig.new(args['startupConfig'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfig" + "#{@parent_identifier} WorkflowTemplateWorkerConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb b/libraries/google/dataproc/property/workflowtemplate_worker_config_accelerators.rb similarity index 62% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb rename to libraries/google/dataproc/property/workflowtemplate_worker_config_accelerators.rb index c20a744ce..69156c2cf 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_accelerators.rb +++ b/libraries/google/dataproc/property/workflowtemplate_worker_config_accelerators.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators + class WorkflowTemplateWorkerConfigAccelerators attr_reader :accelerator_type_uri attr_reader :accelerator_count @@ -29,15 +29,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators" + "#{@parent_identifier} WorkflowTemplateWorkerConfigAccelerators" end end - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAcceleratorsArray + class WorkflowTemplateWorkerConfigAcceleratorsArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigAccelerators.new(v, parent_identifier) } + return WorkflowTemplateWorkerConfigAccelerators.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateWorkerConfigAccelerators.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb b/libraries/google/dataproc/property/workflowtemplate_worker_config_disk_config.rb similarity index 83% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb rename to libraries/google/dataproc/property/workflowtemplate_worker_config_disk_config.rb index e3155eb09..59f73d73e 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_disk_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_worker_config_disk_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig + class WorkflowTemplateWorkerConfigDiskConfig attr_reader :boot_disk_type attr_reader :boot_disk_size_gb @@ -35,7 +35,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigDiskConfig" + "#{@parent_identifier} WorkflowTemplateWorkerConfigDiskConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb b/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy.rb similarity index 54% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb rename to libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy.rb index f0f98ea7a..25a88229d 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy.rb +++ b/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy.rb @@ -13,12 +13,12 @@ # CONTRIBUTING.md located at the root of this package. # # ---------------------------------------------------------------------------- -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_list' -require 'google/dataproc/property/workflowtemplate_placement_managed_cluster_config_secondary_worker_config_instance_flexibility_policy_instance_selection_results' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list' +require 'google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results' module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy + class WorkflowTemplateWorkerConfigInstanceFlexibilityPolicy attr_reader :instance_selection_list attr_reader :instance_selection_results @@ -26,12 +26,12 @@ class WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstance def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier - @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) - @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) + @instance_selection_list = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray.parse(args['instanceSelectionList'], to_s) + @instance_selection_results = GoogleInSpec::Dataproc::Property::WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray.parse(args['instanceSelectionResults'], to_s) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigSecondaryWorkerConfigInstanceFlexibilityPolicy" + "#{@parent_identifier} WorkflowTemplateWorkerConfigInstanceFlexibilityPolicy" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list.rb b/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list.rb new file mode 100644 index 000000000..2b2603e15 --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_list.rb @@ -0,0 +1,45 @@ +# 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 WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList + attr_reader :machine_types + + attr_reader :rank + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_types = args['machineTypes'] + @rank = args['rank'] + end + + def to_s + "#{@parent_identifier} WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList" + end + end + + class WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionListArray + def self.parse(value, parent_identifier) + return if value.nil? + return WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionList.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results.rb b/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results.rb new file mode 100644 index 000000000..dbdc39e4e --- /dev/null +++ b/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_flexibility_policy_instance_selection_results.rb @@ -0,0 +1,45 @@ +# 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 WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults + attr_reader :machine_type + + attr_reader :vm_count + + def initialize(args = nil, parent_identifier = nil) + return if args.nil? + @parent_identifier = parent_identifier + @machine_type = args['machineType'] + @vm_count = args['vmCount'] + end + + def to_s + "#{@parent_identifier} WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults" + end + end + + class WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResultsArray + def self.parse(value, parent_identifier) + return if value.nil? + return WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateWorkerConfigInstanceFlexibilityPolicyInstanceSelectionResults.new(v, parent_identifier) } + end + end + end + end +end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb b/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_references.rb similarity index 64% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb rename to libraries/google/dataproc/property/workflowtemplate_worker_config_instance_references.rb index 728f96328..e71135cf2 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_instance_references.rb +++ b/libraries/google/dataproc/property/workflowtemplate_worker_config_instance_references.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences + class WorkflowTemplateWorkerConfigInstanceReferences attr_reader :instance_name attr_reader :instance_id @@ -35,15 +35,15 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences" + "#{@parent_identifier} WorkflowTemplateWorkerConfigInstanceReferences" end end - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferencesArray + class WorkflowTemplateWorkerConfigInstanceReferencesArray def self.parse(value, parent_identifier) return if value.nil? - return WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) - value.map { |v| WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigInstanceReferences.new(v, parent_identifier) } + return WorkflowTemplateWorkerConfigInstanceReferences.new(value, parent_identifier) unless value.is_a?(::Array) + value.map { |v| WorkflowTemplateWorkerConfigInstanceReferences.new(v, parent_identifier) } end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb b/libraries/google/dataproc/property/workflowtemplate_worker_config_managed_group_config.rb similarity index 82% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb rename to libraries/google/dataproc/property/workflowtemplate_worker_config_managed_group_config.rb index 841144a6d..49389f9bb 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_managed_group_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_worker_config_managed_group_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig + class WorkflowTemplateWorkerConfigManagedGroupConfig attr_reader :instance_template_name attr_reader :instance_group_manager_name @@ -32,7 +32,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigManagedGroupConfig" + "#{@parent_identifier} WorkflowTemplateWorkerConfigManagedGroupConfig" end end end diff --git a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb b/libraries/google/dataproc/property/workflowtemplate_worker_config_startup_config.rb similarity index 80% rename from libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb rename to libraries/google/dataproc/property/workflowtemplate_worker_config_startup_config.rb index a5ac9e3dd..c2603fd0a 100644 --- a/libraries/google/dataproc/property/workflowtemplate_placement_managed_cluster_config_auxiliary_node_groups_node_group_node_group_config_startup_config.rb +++ b/libraries/google/dataproc/property/workflowtemplate_worker_config_startup_config.rb @@ -16,7 +16,7 @@ module GoogleInSpec module Dataproc module Property - class WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig + class WorkflowTemplateWorkerConfigStartupConfig attr_reader :required_registration_fraction def initialize(args = nil, parent_identifier = nil) @@ -26,7 +26,7 @@ def initialize(args = nil, parent_identifier = nil) end def to_s - "#{@parent_identifier} WorkflowTemplatePlacementManagedClusterConfigAuxiliaryNodeGroupsNodeGroupNodeGroupConfigStartupConfig" + "#{@parent_identifier} WorkflowTemplateWorkerConfigStartupConfig" end end end From e3135233bdf0c9755beb66e650f3e5a15dd69d51 Mon Sep 17 00:00:00 2001 From: balasubramanian-s Date: Thu, 20 Jun 2024 13:11:24 +0530 Subject: [PATCH 4/6] fix load errors Signed-off-by: balasubramanian-s --- libraries/google/dataproc/.DS_Store | Bin 0 -> 6148 bytes ...ode_groups_node_group_node_group_config.rb | 16 ++--- ...roup_config_instance_flexibility_policy.rb | 4 +- .../property/workflowtemplate_placement.rb | 2 +- ...kflowtemplate_placement_managed_cluster.rb | 2 +- ...mplate_placement_managed_cluster_config.rb | 2 +- ...ed_cluster_config_auxiliary_node_groups.rb | 22 +++--- .../google_dataproc_workflow_template.rb | 64 +++++++++--------- 8 files changed, 56 insertions(+), 56 deletions(-) create mode 100644 libraries/google/dataproc/.DS_Store diff --git a/libraries/google/dataproc/.DS_Store b/libraries/google/dataproc/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..fc9d418ac24f8ce266aa029396cc78dc739fa643 GIT binary patch literal 6148 zcmeHKO>7%Q6rL|}o7u)~CT$8SIAT?UDk_WGw51h)a+6fFv?W!XG$}20*WRIBb-imm zYr7C4EUqmeZWSOTP9RV@@qa=B%Fh*qRKy7h32{P#BM08>tP#O*MF{puGvB=T=8fll zo}V4Y7^d59i7~+#<5VzF%E8Vt17mwtdw>a3--P} zs|9ELL(exr1DM#s%m3 z@|6!`Lh|LEhM0W94~sL(my1TXXhlr1JJ~Ed%Ffb$SYgkwE9@2a7W;%<9J} z`xU?@Y{4XUposmrABXS|<}i;67I6kuIHW zJHc{-J%i*Sfe9rvp`a7Y*yC`r+lgLIuxHSOGbE1>B)^R0g#r`KV8`7V$_CRqWgul> zEd#?w75e@^`1kMswLz(tGLSOxpJD)+*~;uRrIg&Q1Ig*T)~0fniWc3kXD|+-D!Gp1 ihQ5j?sl-A)TQ>;H3HA( Date: Thu, 20 Jun 2024 13:52:17 +0530 Subject: [PATCH 5/6] update attributes & readme Signed-off-by: balasubramanian-s --- README.md | 1 + ...d => google_dataproc_workflow_template.md} | 86 +++++++++--------- ... => google_dataproc_workflow_templates.md} | 12 ++- libraries/google/dataproc/.DS_Store | Bin 6148 -> 0 bytes .../google_dataproc_workflow_templates.rb | 2 +- ...proc_project_location_workflow_template.rb | 46 ---------- .../google_dataproc_workflow_template.rb | 47 ++++++++++ ... => google_dataproc_workflow_templates.rb} | 23 ++--- 8 files changed, 112 insertions(+), 105 deletions(-) rename docs/resources/{google_dataproc_project_location_workflow_template.md => google_dataproc_workflow_template.md} (97%) rename docs/resources/{google_dataproc_project_location_workflow_templates.md => google_dataproc_workflow_templates.md} (67%) delete mode 100644 libraries/google/dataproc/.DS_Store delete mode 100644 test/integration/verify/controls/google_dataproc_project_location_workflow_template.rb create mode 100644 test/integration/verify/controls/google_dataproc_workflow_template.rb rename test/integration/verify/controls/{google_dataproc_project_location_workflow_templates.rb => google_dataproc_workflow_templates.rb} (56%) diff --git a/README.md b/README.md index 5a6ea4022..2a2ec1b54 100644 --- a/README.md +++ b/README.md @@ -289,6 +289,7 @@ The following resources are available in the InSpec GCP Profile | [google_container_server_config](docs/resources/google_container_server_config.md) | No Plural Resource | | [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_cluster](docs/resources/google_dataproc_cluster.md) | [google_dataproc_clusters](docs/resources/google_dataproc_clusters.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) | | [google_dlp_dt](docs/resources/google_dlp_dt.md) | [google_dlp_dts](docs/resources/google_dlp_dts.md) diff --git a/docs/resources/google_dataproc_project_location_workflow_template.md b/docs/resources/google_dataproc_workflow_template.md similarity index 97% rename from docs/resources/google_dataproc_project_location_workflow_template.md rename to docs/resources/google_dataproc_workflow_template.md index b10ed7ed3..d1609ff78 100644 --- a/docs/resources/google_dataproc_project_location_workflow_template.md +++ b/docs/resources/google_dataproc_workflow_template.md @@ -1,14 +1,14 @@ --- -title: About the google_dataproc_project_location_workflow_template resource +title: About the google_dataproc_workflow_template resource platform: gcp --- ## Syntax -A `google_dataproc_project_location_workflow_template` is used to test a Google ProjectLocationWorkflowTemplate resource +A `google_dataproc_workflow_template` is used to test a Google WorkflowTemplate resource ## Examples ``` -describe google_dataproc_project_location_workflow_template(name: ' value_name') do +describe google_dataproc_workflow_template(name: 'value_name') do it { should exist } its('id') { should cmp 'value_id' } its('name') { should cmp 'value_name' } @@ -18,16 +18,16 @@ describe google_dataproc_project_location_workflow_template(name: ' value_name') end -describe google_dataproc_project_location_workflow_template(name: "does_not_exit") do +describe google_dataproc_workflow_template(name: "does_not_exit") do it { should_not exist } end ``` ## Properties -Properties that can be accessed from the `google_dataproc_project_location_workflow_template` resource: +Properties that can be accessed from the `google_dataproc_workflow_template` resource: - * `id`: + * `id`: * `name`: Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} @@ -39,7 +39,7 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `labels`: Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may 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 template. - * `additional_properties`: + * `additional_properties`: * `placement`: Specifies workflow execution target.Either managed_cluster or cluster_selector is required. @@ -78,7 +78,7 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `metadata`: Optional. The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). - * `additional_properties`: + * `additional_properties`: * `reservation_affinity`: Reservation Affinity for consuming Zonal reservation. @@ -340,11 +340,11 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `properties`: Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - * `additional_properties`: + * `additional_properties`: * `optional_components`: Optional. The set of components to activate on the cluster. - * `initialization_actions`: Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi + * `initialization_actions`: Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi * `executable_file`: Required. Cloud Storage URI of executable file. @@ -398,7 +398,7 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `user_service_account_mapping`: Required. Map of user to service account. - * `additional_properties`: + * `additional_properties`: * `lifecycle_config`: Specifies the cluster auto-delete schedule configuration. @@ -414,7 +414,7 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `http_ports`: Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. - * `additional_properties`: + * `additional_properties`: * `enable_http_port_access`: Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. @@ -573,13 +573,13 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `labels`: Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn. - * `additional_properties`: + * `additional_properties`: * `node_group_id`: Optional. A node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters. * `labels`: Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster. - * `additional_properties`: + * `additional_properties`: * `cluster_selector`: A selector that chooses target cluster for jobs based on metadata. @@ -587,7 +587,7 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `cluster_labels`: Required. The cluster labels. Cluster must have all labels to match. - * `additional_properties`: + * `additional_properties`: * `jobs`: Required. The Directed Acyclic Graph of Jobs to submit. @@ -609,13 +609,13 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -633,13 +633,13 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -657,13 +657,13 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -671,17 +671,17 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -691,17 +691,17 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -709,7 +709,7 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -723,13 +723,13 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -737,15 +737,15 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -753,7 +753,7 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -761,7 +761,7 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -771,13 +771,13 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -785,7 +785,7 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -795,13 +795,13 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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. @@ -817,17 +817,17 @@ Properties that can be accessed from the `google_dataproc_project_location_workf * `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`: * `labels`: Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job. - * `additional_properties`: + * `additional_properties`: * `scheduling`: Job scheduling options. diff --git a/docs/resources/google_dataproc_project_location_workflow_templates.md b/docs/resources/google_dataproc_workflow_templates.md similarity index 67% rename from docs/resources/google_dataproc_project_location_workflow_templates.md rename to docs/resources/google_dataproc_workflow_templates.md index 08707fe5d..042dc03ab 100644 --- a/docs/resources/google_dataproc_project_location_workflow_templates.md +++ b/docs/resources/google_dataproc_workflow_templates.md @@ -1,20 +1,24 @@ --- -title: About the google_dataproc_project_location_workflow_templates resource +title: About the google_dataproc_workflow_templates resource platform: gcp --- ## Syntax -A `google_dataproc_project_location_workflow_templates` is used to test a Google ProjectLocationWorkflowTemplate resource +A `google_dataproc_workflow_templates` is used to test a Google WorkflowTemplates resource ## Examples ``` - describe google_dataproc_project_location_workflow_templates(parent: ' ') do + describe google_dataproc_workflow_templates(parent: 'value_parent') do it { should exist } end ``` +## Parameters + * `parent`: The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. + For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{projectId}/regions/{region} + For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{projectId}/locations/{location} ## Properties -Properties that can be accessed from the `google_dataproc_project_location_workflow_templates` resource: +Properties that can be accessed from the `google_dataproc_workflow_templates` resource: See [google_dataproc_project_location_workflow_template.md](google_dataproc_project_location_workflow_template.md) for more detailed information * `ids`: an array of `google_dataproc_project_location_workflow_template` id diff --git a/libraries/google/dataproc/.DS_Store b/libraries/google/dataproc/.DS_Store deleted file mode 100644 index fc9d418ac24f8ce266aa029396cc78dc739fa643..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKO>7%Q6rL|}o7u)~CT$8SIAT?UDk_WGw51h)a+6fFv?W!XG$}20*WRIBb-imm zYr7C4EUqmeZWSOTP9RV@@qa=B%Fh*qRKy7h32{P#BM08>tP#O*MF{puGvB=T=8fll zo}V4Y7^d59i7~+#<5VzF%E8Vt17mwtdw>a3--P} zs|9ELL(exr1DM#s%m3 z@|6!`Lh|LEhM0W94~sL(my1TXXhlr1JJ~Ed%Ffb$SYgkwE9@2a7W;%<9J} z`xU?@Y{4XUposmrABXS|<}i;67I6kuIHW zJHc{-J%i*Sfe9rvp`a7Y*yC`r+lgLIuxHSOGbE1>B)^R0g#r`KV8`7V$_CRqWgul> zEd#?w75e@^`1kMswLz(tGLSOxpJD)+*~;uRrIg&Q1Ig*T)~0fniWc3kXD|+-D!Gp1 ihQ5j?sl-A)TQ>;H3HA( Date: Thu, 20 Jun 2024 13:57:05 +0530 Subject: [PATCH 6/6] update plural resource testcases Signed-off-by: balasubramanian-s --- docs/resources/google_dataproc_workflow_templates.md | 5 +++++ .../verify/controls/google_dataproc_workflow_templates.rb | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/docs/resources/google_dataproc_workflow_templates.md b/docs/resources/google_dataproc_workflow_templates.md index 042dc03ab..fbf92f737 100644 --- a/docs/resources/google_dataproc_workflow_templates.md +++ b/docs/resources/google_dataproc_workflow_templates.md @@ -10,6 +10,11 @@ A `google_dataproc_workflow_templates` is used to test a Google WorkflowTemplate ``` describe google_dataproc_workflow_templates(parent: 'value_parent') do it { should exist } + its('ids') { should include 'value_id' } + its('names') { should include 'value_name' } + its('create_times') { should include 'value_createtime' } + its('update_times') { should include 'value_updatetime' } + its('dag_timeouts') { should include 'value_dagtimeout' } end ``` ## Parameters diff --git a/test/integration/verify/controls/google_dataproc_workflow_templates.rb b/test/integration/verify/controls/google_dataproc_workflow_templates.rb index 733fd92c5..1187e1fe0 100644 --- a/test/integration/verify/controls/google_dataproc_workflow_templates.rb +++ b/test/integration/verify/controls/google_dataproc_workflow_templates.rb @@ -33,5 +33,9 @@ describe google_dataproc_workflow_templates(parent: workflow_template['parent']) do it { should exist } + its('ids') { should include project_location_workflow_template['id'] } + its('names') { should include project_location_workflow_template['name'] } + its('create_times') { should include project_location_workflow_template['create_time'] } + its('update_times') { should include project_location_workflow_template['update_time'] } end end