# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataproc/v1/clusters.proto require 'google/protobuf' require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/dataproc/v1/shared_pb' require 'google/longrunning/operations_pb' require 'google/protobuf/duration_pb' require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/dataproc/v1/clusters.proto", :syntax => :proto3) do add_message "google.cloud.dataproc.v1.Cluster" do optional :project_id, :string, 1 optional :cluster_name, :string, 2 optional :config, :message, 3, "google.cloud.dataproc.v1.ClusterConfig" optional :virtual_cluster_config, :message, 10, "google.cloud.dataproc.v1.VirtualClusterConfig" map :labels, :string, :string, 8 optional :status, :message, 4, "google.cloud.dataproc.v1.ClusterStatus" repeated :status_history, :message, 7, "google.cloud.dataproc.v1.ClusterStatus" optional :cluster_uuid, :string, 6 optional :metrics, :message, 9, "google.cloud.dataproc.v1.ClusterMetrics" end add_message "google.cloud.dataproc.v1.ClusterConfig" do optional :config_bucket, :string, 1 optional :temp_bucket, :string, 2 optional :gce_cluster_config, :message, 8, "google.cloud.dataproc.v1.GceClusterConfig" optional :master_config, :message, 9, "google.cloud.dataproc.v1.InstanceGroupConfig" optional :worker_config, :message, 10, "google.cloud.dataproc.v1.InstanceGroupConfig" optional :secondary_worker_config, :message, 12, "google.cloud.dataproc.v1.InstanceGroupConfig" optional :software_config, :message, 13, "google.cloud.dataproc.v1.SoftwareConfig" repeated :initialization_actions, :message, 11, "google.cloud.dataproc.v1.NodeInitializationAction" optional :encryption_config, :message, 15, "google.cloud.dataproc.v1.EncryptionConfig" optional :autoscaling_config, :message, 18, "google.cloud.dataproc.v1.AutoscalingConfig" optional :security_config, :message, 16, "google.cloud.dataproc.v1.SecurityConfig" optional :lifecycle_config, :message, 17, "google.cloud.dataproc.v1.LifecycleConfig" optional :endpoint_config, :message, 19, "google.cloud.dataproc.v1.EndpointConfig" optional :metastore_config, :message, 20, "google.cloud.dataproc.v1.MetastoreConfig" optional :dataproc_metric_config, :message, 23, "google.cloud.dataproc.v1.DataprocMetricConfig" repeated :auxiliary_node_groups, :message, 25, "google.cloud.dataproc.v1.AuxiliaryNodeGroup" end add_message "google.cloud.dataproc.v1.VirtualClusterConfig" do optional :staging_bucket, :string, 1 optional :auxiliary_services_config, :message, 7, "google.cloud.dataproc.v1.AuxiliaryServicesConfig" oneof :infrastructure_config do optional :kubernetes_cluster_config, :message, 6, "google.cloud.dataproc.v1.KubernetesClusterConfig" end end add_message "google.cloud.dataproc.v1.AuxiliaryServicesConfig" do optional :metastore_config, :message, 1, "google.cloud.dataproc.v1.MetastoreConfig" optional :spark_history_server_config, :message, 2, "google.cloud.dataproc.v1.SparkHistoryServerConfig" end add_message "google.cloud.dataproc.v1.EndpointConfig" do map :http_ports, :string, :string, 1 optional :enable_http_port_access, :bool, 2 end add_message "google.cloud.dataproc.v1.AutoscalingConfig" do optional :policy_uri, :string, 1 end add_message "google.cloud.dataproc.v1.EncryptionConfig" do optional :gce_pd_kms_key_name, :string, 1 end add_message "google.cloud.dataproc.v1.GceClusterConfig" do optional :zone_uri, :string, 1 optional :network_uri, :string, 2 optional :subnetwork_uri, :string, 6 proto3_optional :internal_ip_only, :bool, 7 optional :private_ipv6_google_access, :enum, 12, "google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess" optional :service_account, :string, 8 repeated :service_account_scopes, :string, 3 repeated :tags, :string, 4 map :metadata, :string, :string, 5 optional :reservation_affinity, :message, 11, "google.cloud.dataproc.v1.ReservationAffinity" optional :node_group_affinity, :message, 13, "google.cloud.dataproc.v1.NodeGroupAffinity" optional :shielded_instance_config, :message, 14, "google.cloud.dataproc.v1.ShieldedInstanceConfig" optional :confidential_instance_config, :message, 15, "google.cloud.dataproc.v1.ConfidentialInstanceConfig" end add_enum "google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess" do value :PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, 0 value :INHERIT_FROM_SUBNETWORK, 1 value :OUTBOUND, 2 value :BIDIRECTIONAL, 3 end add_message "google.cloud.dataproc.v1.NodeGroupAffinity" do optional :node_group_uri, :string, 1 end add_message "google.cloud.dataproc.v1.ShieldedInstanceConfig" do proto3_optional :enable_secure_boot, :bool, 1 proto3_optional :enable_vtpm, :bool, 2 proto3_optional :enable_integrity_monitoring, :bool, 3 end add_message "google.cloud.dataproc.v1.ConfidentialInstanceConfig" do optional :enable_confidential_compute, :bool, 1 end add_message "google.cloud.dataproc.v1.InstanceGroupConfig" do optional :num_instances, :int32, 1 repeated :instance_names, :string, 2 optional :image_uri, :string, 3 optional :machine_type_uri, :string, 4 optional :disk_config, :message, 5, "google.cloud.dataproc.v1.DiskConfig" optional :is_preemptible, :bool, 6 optional :preemptibility, :enum, 10, "google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility" optional :managed_group_config, :message, 7, "google.cloud.dataproc.v1.ManagedGroupConfig" repeated :accelerators, :message, 8, "google.cloud.dataproc.v1.AcceleratorConfig" optional :min_cpu_platform, :string, 9 end add_enum "google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility" do value :PREEMPTIBILITY_UNSPECIFIED, 0 value :NON_PREEMPTIBLE, 1 value :PREEMPTIBLE, 2 value :SPOT, 3 end add_message "google.cloud.dataproc.v1.ManagedGroupConfig" do optional :instance_template_name, :string, 1 optional :instance_group_manager_name, :string, 2 end add_message "google.cloud.dataproc.v1.AcceleratorConfig" do optional :accelerator_type_uri, :string, 1 optional :accelerator_count, :int32, 2 end add_message "google.cloud.dataproc.v1.DiskConfig" do optional :boot_disk_type, :string, 3 optional :boot_disk_size_gb, :int32, 1 optional :num_local_ssds, :int32, 2 optional :local_ssd_interface, :string, 4 end add_message "google.cloud.dataproc.v1.AuxiliaryNodeGroup" do optional :node_group, :message, 1, "google.cloud.dataproc.v1.NodeGroup" optional :node_group_id, :string, 2 end add_message "google.cloud.dataproc.v1.NodeGroup" do optional :name, :string, 1 repeated :roles, :enum, 2, "google.cloud.dataproc.v1.NodeGroup.Role" optional :node_group_config, :message, 3, "google.cloud.dataproc.v1.InstanceGroupConfig" map :labels, :string, :string, 4 end add_enum "google.cloud.dataproc.v1.NodeGroup.Role" do value :ROLE_UNSPECIFIED, 0 value :DRIVER, 1 end add_message "google.cloud.dataproc.v1.NodeInitializationAction" do optional :executable_file, :string, 1 optional :execution_timeout, :message, 2, "google.protobuf.Duration" end add_message "google.cloud.dataproc.v1.ClusterStatus" do optional :state, :enum, 1, "google.cloud.dataproc.v1.ClusterStatus.State" optional :detail, :string, 2 optional :state_start_time, :message, 3, "google.protobuf.Timestamp" optional :substate, :enum, 4, "google.cloud.dataproc.v1.ClusterStatus.Substate" end add_enum "google.cloud.dataproc.v1.ClusterStatus.State" do value :UNKNOWN, 0 value :CREATING, 1 value :RUNNING, 2 value :ERROR, 3 value :ERROR_DUE_TO_UPDATE, 9 value :DELETING, 4 value :UPDATING, 5 value :STOPPING, 6 value :STOPPED, 7 value :STARTING, 8 end add_enum "google.cloud.dataproc.v1.ClusterStatus.Substate" do value :UNSPECIFIED, 0 value :UNHEALTHY, 1 value :STALE_STATUS, 2 end add_message "google.cloud.dataproc.v1.SecurityConfig" do optional :kerberos_config, :message, 1, "google.cloud.dataproc.v1.KerberosConfig" optional :identity_config, :message, 2, "google.cloud.dataproc.v1.IdentityConfig" end add_message "google.cloud.dataproc.v1.KerberosConfig" do optional :enable_kerberos, :bool, 1 optional :root_principal_password_uri, :string, 2 optional :kms_key_uri, :string, 3 optional :keystore_uri, :string, 4 optional :truststore_uri, :string, 5 optional :keystore_password_uri, :string, 6 optional :key_password_uri, :string, 7 optional :truststore_password_uri, :string, 8 optional :cross_realm_trust_realm, :string, 9 optional :cross_realm_trust_kdc, :string, 10 optional :cross_realm_trust_admin_server, :string, 11 optional :cross_realm_trust_shared_password_uri, :string, 12 optional :kdc_db_key_uri, :string, 13 optional :tgt_lifetime_hours, :int32, 14 optional :realm, :string, 15 end add_message "google.cloud.dataproc.v1.IdentityConfig" do map :user_service_account_mapping, :string, :string, 1 end add_message "google.cloud.dataproc.v1.SoftwareConfig" do optional :image_version, :string, 1 map :properties, :string, :string, 2 repeated :optional_components, :enum, 3, "google.cloud.dataproc.v1.Component" end add_message "google.cloud.dataproc.v1.LifecycleConfig" do optional :idle_delete_ttl, :message, 1, "google.protobuf.Duration" optional :idle_start_time, :message, 4, "google.protobuf.Timestamp" oneof :ttl do optional :auto_delete_time, :message, 2, "google.protobuf.Timestamp" optional :auto_delete_ttl, :message, 3, "google.protobuf.Duration" end end add_message "google.cloud.dataproc.v1.MetastoreConfig" do optional :dataproc_metastore_service, :string, 1 end add_message "google.cloud.dataproc.v1.ClusterMetrics" do map :hdfs_metrics, :string, :int64, 1 map :yarn_metrics, :string, :int64, 2 end add_message "google.cloud.dataproc.v1.DataprocMetricConfig" do repeated :metrics, :message, 1, "google.cloud.dataproc.v1.DataprocMetricConfig.Metric" end add_message "google.cloud.dataproc.v1.DataprocMetricConfig.Metric" do optional :metric_source, :enum, 1, "google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource" repeated :metric_overrides, :string, 2 end add_enum "google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource" do value :METRIC_SOURCE_UNSPECIFIED, 0 value :MONITORING_AGENT_DEFAULTS, 1 value :HDFS, 2 value :SPARK, 3 value :YARN, 4 value :SPARK_HISTORY_SERVER, 5 value :HIVESERVER2, 6 value :HIVEMETASTORE, 7 end add_message "google.cloud.dataproc.v1.CreateClusterRequest" do optional :project_id, :string, 1 optional :region, :string, 3 optional :cluster, :message, 2, "google.cloud.dataproc.v1.Cluster" optional :request_id, :string, 4 optional :action_on_failed_primary_workers, :enum, 5, "google.cloud.dataproc.v1.FailureAction" end add_message "google.cloud.dataproc.v1.UpdateClusterRequest" do optional :project_id, :string, 1 optional :region, :string, 5 optional :cluster_name, :string, 2 optional :cluster, :message, 3, "google.cloud.dataproc.v1.Cluster" optional :graceful_decommission_timeout, :message, 6, "google.protobuf.Duration" optional :update_mask, :message, 4, "google.protobuf.FieldMask" optional :request_id, :string, 7 end add_message "google.cloud.dataproc.v1.StopClusterRequest" do optional :project_id, :string, 1 optional :region, :string, 2 optional :cluster_name, :string, 3 optional :cluster_uuid, :string, 4 optional :request_id, :string, 5 end add_message "google.cloud.dataproc.v1.StartClusterRequest" do optional :project_id, :string, 1 optional :region, :string, 2 optional :cluster_name, :string, 3 optional :cluster_uuid, :string, 4 optional :request_id, :string, 5 end add_message "google.cloud.dataproc.v1.DeleteClusterRequest" do optional :project_id, :string, 1 optional :region, :string, 3 optional :cluster_name, :string, 2 optional :cluster_uuid, :string, 4 optional :request_id, :string, 5 end add_message "google.cloud.dataproc.v1.GetClusterRequest" do optional :project_id, :string, 1 optional :region, :string, 3 optional :cluster_name, :string, 2 end add_message "google.cloud.dataproc.v1.ListClustersRequest" do optional :project_id, :string, 1 optional :region, :string, 4 optional :filter, :string, 5 optional :page_size, :int32, 2 optional :page_token, :string, 3 end add_message "google.cloud.dataproc.v1.ListClustersResponse" do repeated :clusters, :message, 1, "google.cloud.dataproc.v1.Cluster" optional :next_page_token, :string, 2 end add_message "google.cloud.dataproc.v1.DiagnoseClusterRequest" do optional :project_id, :string, 1 optional :region, :string, 3 optional :cluster_name, :string, 2 end add_message "google.cloud.dataproc.v1.DiagnoseClusterResults" do optional :output_uri, :string, 1 end add_message "google.cloud.dataproc.v1.ReservationAffinity" do optional :consume_reservation_type, :enum, 1, "google.cloud.dataproc.v1.ReservationAffinity.Type" optional :key, :string, 2 repeated :values, :string, 3 end add_enum "google.cloud.dataproc.v1.ReservationAffinity.Type" do value :TYPE_UNSPECIFIED, 0 value :NO_RESERVATION, 1 value :ANY_RESERVATION, 2 value :SPECIFIC_RESERVATION, 3 end end end module Google module Cloud module Dataproc module V1 Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.Cluster").msgclass ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterConfig").msgclass VirtualClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.VirtualClusterConfig").msgclass AuxiliaryServicesConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AuxiliaryServicesConfig").msgclass EndpointConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.EndpointConfig").msgclass AutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AutoscalingConfig").msgclass EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.EncryptionConfig").msgclass GceClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GceClusterConfig").msgclass GceClusterConfig::PrivateIpv6GoogleAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess").enummodule NodeGroupAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.NodeGroupAffinity").msgclass ShieldedInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ShieldedInstanceConfig").msgclass ConfidentialInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ConfidentialInstanceConfig").msgclass InstanceGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.InstanceGroupConfig").msgclass InstanceGroupConfig::Preemptibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility").enummodule ManagedGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ManagedGroupConfig").msgclass AcceleratorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AcceleratorConfig").msgclass DiskConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DiskConfig").msgclass AuxiliaryNodeGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AuxiliaryNodeGroup").msgclass NodeGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.NodeGroup").msgclass NodeGroup::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.NodeGroup.Role").enummodule NodeInitializationAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.NodeInitializationAction").msgclass ClusterStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterStatus").msgclass ClusterStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterStatus.State").enummodule ClusterStatus::Substate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterStatus.Substate").enummodule SecurityConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SecurityConfig").msgclass KerberosConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.KerberosConfig").msgclass IdentityConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.IdentityConfig").msgclass SoftwareConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SoftwareConfig").msgclass LifecycleConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.LifecycleConfig").msgclass MetastoreConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.MetastoreConfig").msgclass ClusterMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterMetrics").msgclass DataprocMetricConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DataprocMetricConfig").msgclass DataprocMetricConfig::Metric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DataprocMetricConfig.Metric").msgclass DataprocMetricConfig::MetricSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource").enummodule CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.CreateClusterRequest").msgclass UpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.UpdateClusterRequest").msgclass StopClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.StopClusterRequest").msgclass StartClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.StartClusterRequest").msgclass DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DeleteClusterRequest").msgclass GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GetClusterRequest").msgclass ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ListClustersRequest").msgclass ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ListClustersResponse").msgclass DiagnoseClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DiagnoseClusterRequest").msgclass DiagnoseClusterResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DiagnoseClusterResults").msgclass ReservationAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ReservationAffinity").msgclass ReservationAffinity::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ReservationAffinity.Type").enummodule end end end end