import PropTypes from 'prop-types'; const T = {}; T['com.hbc.svc.sundial.v2.models.pagerduty'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['pagerduty']).isRequired, service_key: PropTypes.string.isRequired, num_consecutive_failures: PropTypes.number.isRequired, api_url: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.models.task_dependency'] = PropTypes.exact({ task_definition_name: PropTypes.string.isRequired, success_required: PropTypes.bool.isRequired, }); T['com.hbc.svc.sundial.v2.models.continuous_schedule'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['continuous_schedule']).isRequired, buffer_seconds: PropTypes.number, }); T['com.hbc.svc.sundial.v2.models.cron_schedule'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['cron_schedule']).isRequired, day_of_week: PropTypes.string.isRequired, month: PropTypes.string.isRequired, day_of_month: PropTypes.string.isRequired, hours: PropTypes.string.isRequired, minutes: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.enums.process_overlap_action'] = PropTypes.oneOf(['wait', 'terminate']); T['com.hbc.svc.sundial.v2.unions.process_schedule'] = PropTypes.oneOfType([ T['com.hbc.svc.sundial.v2.models.cron_schedule'], T['com.hbc.svc.sundial.v2.models.continuous_schedule'], ]); T['com.hbc.svc.sundial.v2.enums.task_status'] = PropTypes.oneOf([ 'submitted', 'runnable', 'starting', 'pending', 'running', 'failed', 'succeeded', ]); T['com.hbc.svc.sundial.v2.models.metadata_entry'] = PropTypes.exact({ metadata_entry_id: PropTypes.string.isRequired, when: PropTypes.string.isRequired, key: PropTypes.string.isRequired, value: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.models.log_entry'] = PropTypes.exact({ log_entry_id: PropTypes.string.isRequired, when: PropTypes.string.isRequired, source: PropTypes.string.isRequired, message: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.models.task'] = PropTypes.exact({ task_id: PropTypes.string.isRequired, process_id: PropTypes.string.isRequired, process_definition_name: PropTypes.string.isRequired, task_definition_name: PropTypes.string.isRequired, start_time: PropTypes.string.isRequired, end_time: PropTypes.string, previous_attempt_count: PropTypes.number.isRequired, log_entries: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.log_entry']).isRequired, metadata_entries: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.metadata_entry']).isRequired, execution_state: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.metadata_entry']), status: T['com.hbc.svc.sundial.v2.enums.task_status'].isRequired, }); T['com.hbc.svc.sundial.v2.enums.process_status'] = PropTypes.oneOf(['running', 'succeeded', 'failed']); T['com.hbc.svc.sundial.v2.models.process'] = PropTypes.exact({ process_id: PropTypes.string.isRequired, process_definition_name: PropTypes.string.isRequired, start_time: PropTypes.string.isRequired, status: T['com.hbc.svc.sundial.v2.enums.process_status'].isRequired, task: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.task']).isRequired, }); T['com.hbc.svc.sundial.v2.models.custom_emr_job_flow_role'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['custom_emr_job_flow_role']).isRequired, role_name: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.enums.default_emr_job_flow_role'] = PropTypes.oneOf(['EMR_EC2_DefaultRole']); T['com.hbc.svc.sundial.v2.models.custom_emr_service_role'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['custom_emr_service_role']).isRequired, role_name: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.enums.default_emr_service_role'] = PropTypes.oneOf(['EMR_DefaultRole']); T['com.hbc.svc.sundial.v2.unions.emr_job_flow_role'] = PropTypes.oneOfType([PropTypes.exact({ discriminator: PropTypes.oneOf(['default_emr_job_flow_role']).isRequired, value: T['com.hbc.svc.sundial.v2.enums.default_emr_job_flow_role'], }), T['com.hbc.svc.sundial.v2.models.custom_emr_job_flow_role']]); T['com.hbc.svc.sundial.v2.unions.emr_service_role'] = PropTypes.oneOfType([PropTypes.exact({ discriminator: PropTypes.oneOf(['default_emr_service_role']).isRequired, value: T['com.hbc.svc.sundial.v2.enums.default_emr_service_role'], }), T['com.hbc.svc.sundial.v2.models.custom_emr_service_role']]); T['com.hbc.svc.sundial.v2.enums.emr_application'] = PropTypes.oneOf(['Hadoop', 'Hive', 'Mahout', 'Pig', 'Spark', 'Ganglia']); T['com.hbc.svc.sundial.v2.enums.emr_release_label'] = PropTypes.oneOf([ 'emr-5.20.0', 'emr-5.19.0', 'emr-5.18.0', 'emr-5.17.0', 'emr-5.16.0', 'emr-5.15.0', 'emr-5.14.0', 'emr-5.13.0', 'emr-5.12.1', 'emr-5.12.0', 'emr-5.11.1', 'emr-5.11.0', 'emr-5.10.0', 'emr-5.9.0', 'emr-4.9.2', 'emr-4.9.1', ]); T['com.hbc.svc.sundial.v2.models.spot'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['spot']).isRequired, bid_price: PropTypes.number.isRequired, }); T['com.hbc.svc.sundial.v2.enums.on_demand'] = PropTypes.oneOf(['on_demand']); T['com.hbc.svc.sundial.v2.unions.aws_market'] = PropTypes.oneOfType([PropTypes.exact({ discriminator: PropTypes.oneOf(['on_demand']).isRequired, value: T['com.hbc.svc.sundial.v2.enums.on_demand'], }), T['com.hbc.svc.sundial.v2.models.spot']]); T['com.hbc.svc.sundial.v2.models.emr_instance_group_details'] = PropTypes.exact({ emr_instance_type: PropTypes.string.isRequired, instance_count: PropTypes.number.isRequired, aws_market: T['com.hbc.svc.sundial.v2.unions.aws_market'].isRequired, ebs_volume_size: PropTypes.number, }); T['com.hbc.svc.sundial.v2.models.emr_configuration'] = PropTypes.exact({ classification: PropTypes.string, configurations: PropTypes.arrayOf(PropTypes.any), properties: PropTypes.objectOf(PropTypes.string), }); T['com.hbc.svc.sundial.v2.models.existing_emr_cluster'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['existing_emr_cluster']).isRequired, cluster_id: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.models.new_emr_cluster'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['new_emr_cluster']).isRequired, name: PropTypes.string.isRequired, release_label: T['com.hbc.svc.sundial.v2.enums.emr_release_label'].isRequired, applications: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.enums.emr_application']).isRequired, s3_log_uri: PropTypes.string.isRequired, master_instance: T['com.hbc.svc.sundial.v2.models.emr_instance_group_details'].isRequired, core_instance: T['com.hbc.svc.sundial.v2.models.emr_instance_group_details'], task_instance: T['com.hbc.svc.sundial.v2.models.emr_instance_group_details'], ec2_subnet: PropTypes.string, emr_service_role: T['com.hbc.svc.sundial.v2.unions.emr_service_role'].isRequired, emr_job_flow_role: T['com.hbc.svc.sundial.v2.unions.emr_job_flow_role'].isRequired, visible_to_all_users: PropTypes.bool.isRequired, configurations: PropTypes.arrayOf(PropTypes.any), security_configuration: PropTypes.string, }); T['com.hbc.svc.sundial.v2.models.s3_cp'] = PropTypes.exact({ source: PropTypes.string.isRequired, destination: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.models.s3_log_details'] = PropTypes.exact({ log_group_name: PropTypes.string.isRequired, log_stream_name: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.models.maven_package'] = PropTypes.exact({ group_id: PropTypes.string.isRequired, artifact_id: PropTypes.string.isRequired, version: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.unions.emr_cluster'] = PropTypes.oneOfType([ T['com.hbc.svc.sundial.v2.models.new_emr_cluster'], T['com.hbc.svc.sundial.v2.models.existing_emr_cluster'], ]); T['com.hbc.svc.sundial.v2.models.emr_command'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['emr_command']).isRequired, emr_cluster: T['com.hbc.svc.sundial.v2.unions.emr_cluster'].isRequired, job_name: PropTypes.string.isRequired, region: PropTypes.string.isRequired, 'class': PropTypes.string.isRequired, s3_jar_path: PropTypes.string.isRequired, spark_conf: PropTypes.arrayOf(PropTypes.string).isRequired, spark_packages: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.maven_package']).isRequired, args: PropTypes.arrayOf(PropTypes.string).isRequired, s3_log_details: T['com.hbc.svc.sundial.v2.models.s3_log_details'], load_data: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.s3_cp']), save_results: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.s3_cp']), }); T['com.hbc.svc.sundial.v2.enums.notification_options'] = PropTypes.oneOf([ 'always', 'on_failure', 'on_state_change', 'on_state_change_and_failures', 'never', ]); T['com.hbc.svc.sundial.v2.models.email'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['email']).isRequired, name: PropTypes.string.isRequired, email: PropTypes.string.isRequired, notify_when: T['com.hbc.svc.sundial.v2.enums.notification_options'].isRequired, }); T['com.hbc.svc.sundial.v2.unions.notification'] = PropTypes.oneOfType([ T['com.hbc.svc.sundial.v2.models.email'], T['com.hbc.svc.sundial.v2.models.pagerduty'], ]); T['com.hbc.svc.sundial.v2.models.environment_variable'] = PropTypes.exact({ variable_name: PropTypes.string.isRequired, value: PropTypes.string.isRequired, }); T['com.hbc.svc.sundial.v2.models.shell_script_command'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['shell_script_command']).isRequired, script: PropTypes.string.isRequired, environment_variables: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.environment_variable']), }); T['com.hbc.svc.sundial.v2.models.batch_image_command'] = PropTypes.exact({ discriminator: PropTypes.oneOf(['batch_image_command']).isRequired, image: PropTypes.string.isRequired, tag: PropTypes.string.isRequired, command: PropTypes.arrayOf(PropTypes.string).isRequired, memory: PropTypes.number.isRequired, vCpus: PropTypes.number.isRequired, job_role_arn: PropTypes.string, environment_variables: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.environment_variable']).isRequired, job_queue: PropTypes.string, }); T['com.hbc.svc.sundial.v2.unions.task_executable'] = PropTypes.oneOfType([ T['com.hbc.svc.sundial.v2.models.shell_script_command'], T['com.hbc.svc.sundial.v2.models.batch_image_command'], T['com.hbc.svc.sundial.v2.models.emr_command'], ]); T['com.hbc.svc.sundial.v2.models.task_definition'] = PropTypes.exact({ task_definition_name: PropTypes.string.isRequired, dependencies: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.task_dependency']).isRequired, executable: T['com.hbc.svc.sundial.v2.unions.task_executable'].isRequired, max_attempts: PropTypes.number.isRequired, max_runtime_seconds: PropTypes.number, backoff_base_seconds: PropTypes.number.isRequired, backoff_exponent: PropTypes.number.isRequired, require_explicit_success: PropTypes.bool.isRequired, }); T['com.hbc.svc.sundial.v2.models.process_definition'] = PropTypes.exact({ process_definition_name: PropTypes.string.isRequired, paused: PropTypes.bool, process_description: PropTypes.string, schedule: T['com.hbc.svc.sundial.v2.unions.process_schedule'], task_definitions: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.models.task_definition']).isRequired, overlap_action: T['com.hbc.svc.sundial.v2.enums.process_overlap_action'].isRequired, notifications: PropTypes.arrayOf(T['com.hbc.svc.sundial.v2.unions.notification']), }); T['com.hbc.svc.sundial.v2.models.healthcheck'] = PropTypes.exact({ status: PropTypes.string.isRequired, }); export const awsMarket = T['com.hbc.svc.sundial.v2.unions.aws_market']; export const batchImageCommand = T['com.hbc.svc.sundial.v2.models.batch_image_command']; export const continuousSchedule = T['com.hbc.svc.sundial.v2.models.continuous_schedule']; export const cronSchedule = T['com.hbc.svc.sundial.v2.models.cron_schedule']; export const customEmrJobFlowRole = T['com.hbc.svc.sundial.v2.models.custom_emr_job_flow_role']; export const customEmrServiceRole = T['com.hbc.svc.sundial.v2.models.custom_emr_service_role']; export const defaultEmrJobFlowRole = T['com.hbc.svc.sundial.v2.enums.default_emr_job_flow_role']; export const defaultEmrServiceRole = T['com.hbc.svc.sundial.v2.enums.default_emr_service_role']; export const email = T['com.hbc.svc.sundial.v2.models.email']; export const emrApplication = T['com.hbc.svc.sundial.v2.enums.emr_application']; export const emrCluster = T['com.hbc.svc.sundial.v2.unions.emr_cluster']; export const emrCommand = T['com.hbc.svc.sundial.v2.models.emr_command']; export const emrConfiguration = PropTypes.any; export const emrInstanceGroupDetails = T['com.hbc.svc.sundial.v2.models.emr_instance_group_details']; export const emrJobFlowRole = T['com.hbc.svc.sundial.v2.unions.emr_job_flow_role']; export const emrReleaseLabel = T['com.hbc.svc.sundial.v2.enums.emr_release_label']; export const emrServiceRole = T['com.hbc.svc.sundial.v2.unions.emr_service_role']; export const environmentVariable = T['com.hbc.svc.sundial.v2.models.environment_variable']; export const existingEmrCluster = T['com.hbc.svc.sundial.v2.models.existing_emr_cluster']; export const healthcheck = T['com.hbc.svc.sundial.v2.models.healthcheck']; export const logEntry = T['com.hbc.svc.sundial.v2.models.log_entry']; export const mavenPackage = T['com.hbc.svc.sundial.v2.models.maven_package']; export const metadataEntry = T['com.hbc.svc.sundial.v2.models.metadata_entry']; export const newEmrCluster = T['com.hbc.svc.sundial.v2.models.new_emr_cluster']; export const notification = T['com.hbc.svc.sundial.v2.unions.notification']; export const notificationOptions = T['com.hbc.svc.sundial.v2.enums.notification_options']; export const onDemand = T['com.hbc.svc.sundial.v2.enums.on_demand']; export const pagerduty = T['com.hbc.svc.sundial.v2.models.pagerduty']; export const process = T['com.hbc.svc.sundial.v2.models.process']; export const processDefinition = T['com.hbc.svc.sundial.v2.models.process_definition']; export const processOverlapAction = T['com.hbc.svc.sundial.v2.enums.process_overlap_action']; export const processSchedule = T['com.hbc.svc.sundial.v2.unions.process_schedule']; export const processStatus = T['com.hbc.svc.sundial.v2.enums.process_status']; export const s3Cp = T['com.hbc.svc.sundial.v2.models.s3_cp']; export const s3LogDetails = T['com.hbc.svc.sundial.v2.models.s3_log_details']; export const shellScriptCommand = T['com.hbc.svc.sundial.v2.models.shell_script_command']; export const spot = T['com.hbc.svc.sundial.v2.models.spot']; export const task = T['com.hbc.svc.sundial.v2.models.task']; export const taskDefinition = T['com.hbc.svc.sundial.v2.models.task_definition']; export const taskDependency = T['com.hbc.svc.sundial.v2.models.task_dependency']; export const taskExecutable = T['com.hbc.svc.sundial.v2.unions.task_executable']; export const taskStatus = T['com.hbc.svc.sundial.v2.enums.task_status'];