lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb in google-cloud-orchestration-airflow-service-v1-0.5.0 vs lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb in google-cloud-orchestration-airflow-service-v1-0.6.0

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/orchestration/airflow/service/v1/environments.proto require 'google/protobuf' @@ -11,224 +12,36 @@ require 'google/longrunning/operations_pb' require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/orchestration/airflow/service/v1/environments.proto", :syntax => :proto3) do - add_message "google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest" do - optional :parent, :string, 1 - optional :environment, :message, 2, "google.cloud.orchestration.airflow.service.v1.Environment" + +descriptor_data = "\n@google/cloud/orchestration/airflow/service/v1/environments.proto\x12-google.cloud.orchestration.airflow.service.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a>google/cloud/orchestration/airflow/service/v1/operations.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"{\n\x18\x43reateEnvironmentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12O\n\x0b\x65nvironment\x18\x02 \x01(\x0b\x32:.google.cloud.orchestration.airflow.service.v1.Environment\"%\n\x15GetEnvironmentRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"P\n\x17ListEnvironmentsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x85\x01\n\x18ListEnvironmentsResponse\x12P\n\x0c\x65nvironments\x18\x01 \x03(\x0b\x32:.google.cloud.orchestration.airflow.service.v1.Environment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"(\n\x18\x44\x65leteEnvironmentRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xaa\x01\n\x18UpdateEnvironmentRequest\x12\x0c\n\x04name\x18\x02 \x01(\t\x12O\n\x0b\x65nvironment\x18\x01 \x01(\x0b\x32:.google.cloud.orchestration.airflow.service.v1.Environment\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"E\n\x13SaveSnapshotRequest\x12\x13\n\x0b\x65nvironment\x18\x01 \x01(\t\x12\x19\n\x11snapshot_location\x18\x02 \x01(\t\"-\n\x14SaveSnapshotResponse\x12\x15\n\rsnapshot_path\x18\x01 \x01(\t\"\xdd\x01\n\x13LoadSnapshotRequest\x12\x13\n\x0b\x65nvironment\x18\x01 \x01(\t\x12\x15\n\rsnapshot_path\x18\x02 \x01(\t\x12\'\n\x1fskip_pypi_packages_installation\x18\x03 \x01(\x08\x12*\n\"skip_environment_variables_setting\x18\x04 \x01(\x08\x12&\n\x1eskip_airflow_overrides_setting\x18\x05 \x01(\x08\x12\x1d\n\x15skip_gcs_data_copying\x18\x06 \x01(\x08\"\x16\n\x14LoadSnapshotResponse\"\xd4\x0b\n\x11\x45nvironmentConfig\x12\x13\n\x0bgke_cluster\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x61g_gcs_prefix\x18\x02 \x01(\t\x12\x12\n\nnode_count\x18\x03 \x01(\x05\x12V\n\x0fsoftware_config\x18\x04 \x01(\x0b\x32=.google.cloud.orchestration.airflow.service.v1.SoftwareConfig\x12N\n\x0bnode_config\x18\x05 \x01(\x0b\x32\x39.google.cloud.orchestration.airflow.service.v1.NodeConfig\x12k\n\x1aprivate_environment_config\x18\x07 \x01(\x0b\x32G.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig\x12|\n!web_server_network_access_control\x18\x08 \x01(\x0b\x32L.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControlB\x03\xe0\x41\x01\x12[\n\x0f\x64\x61tabase_config\x18\t \x01(\x0b\x32=.google.cloud.orchestration.airflow.service.v1.DatabaseConfigB\x03\xe0\x41\x01\x12^\n\x11web_server_config\x18\n \x01(\x0b\x32>.google.cloud.orchestration.airflow.service.v1.WebServerConfigB\x03\xe0\x41\x01\x12_\n\x11\x65ncryption_config\x18\x0b \x01(\x0b\x32?.google.cloud.orchestration.airflow.service.v1.EncryptionConfigB\x03\xe0\x41\x01\x12\x61\n\x12maintenance_window\x18\x0c \x01(\x0b\x32@.google.cloud.orchestration.airflow.service.v1.MaintenanceWindowB\x03\xe0\x41\x01\x12]\n\x10workloads_config\x18\x0f \x01(\x0b\x32>.google.cloud.orchestration.airflow.service.v1.WorkloadsConfigB\x03\xe0\x41\x01\x12o\n\x10\x65nvironment_size\x18\x10 \x01(\x0e\x32P.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSizeB\x03\xe0\x41\x01\x12\x13\n\x0b\x61irflow_uri\x18\x06 \x01(\t\x12\x1e\n\x11\x61irflow_byoid_uri\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12}\n!master_authorized_networks_config\x18\x11 \x01(\x0b\x32M.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfigB\x03\xe0\x41\x01\x12[\n\x0frecovery_config\x18\x12 \x01(\x0b\x32=.google.cloud.orchestration.airflow.service.v1.RecoveryConfigB\x03\xe0\x41\x01\"\x88\x01\n\x0f\x45nvironmentSize\x12 \n\x1c\x45NVIRONMENT_SIZE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x45NVIRONMENT_SIZE_SMALL\x10\x01\x12\x1b\n\x17\x45NVIRONMENT_SIZE_MEDIUM\x10\x02\x12\x1a\n\x16\x45NVIRONMENT_SIZE_LARGE\x10\x03\"\xd2\x01\n\x1dWebServerNetworkAccessControl\x12v\n\x11\x61llowed_ip_ranges\x18\x01 \x03(\x0b\x32[.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange\x1a\x39\n\x0e\x41llowedIpRange\x12\r\n\x05value\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\"+\n\x0e\x44\x61tabaseConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\",\n\x0fWebServerConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\"-\n\x10\x45ncryptionConfig\x12\x19\n\x0ckms_key_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\x94\x01\n\x11MaintenanceWindow\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x17\n\nrecurrence\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xd3\x04\n\x0eSoftwareConfig\x12\x15\n\rimage_version\x18\x01 \x01(\t\x12{\n\x18\x61irflow_config_overrides\x18\x02 \x03(\x0b\x32Y.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.AirflowConfigOverridesEntry\x12\x66\n\rpypi_packages\x18\x03 \x03(\x0b\x32O.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.PypiPackagesEntry\x12\x66\n\renv_variables\x18\x04 \x03(\x0b\x32O.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.EnvVariablesEntry\x12\x16\n\x0epython_version\x18\x06 \x01(\t\x12\x1c\n\x0fscheduler_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x1a=\n\x1b\x41irflowConfigOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11PypiPackagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11\x45nvVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x90\x02\n\x12IPAllocationPolicy\x12\x1b\n\x0euse_ip_aliases\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1c\x63luster_secondary_range_name\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12&\n\x17\x63luster_ipv4_cidr_block\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12,\n\x1dservices_secondary_range_name\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x01\x12\'\n\x18services_ipv4_cidr_block\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x01\x42\x17\n\x15\x63luster_ip_allocationB\x18\n\x16services_ip_allocation\"\xb5\x02\n\nNodeConfig\x12\x10\n\x08location\x18\x01 \x01(\t\x12\x14\n\x0cmachine_type\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x12\n\nsubnetwork\x18\x04 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x05 \x01(\x05\x12\x14\n\x0coauth_scopes\x18\x06 \x03(\t\x12\x17\n\x0fservice_account\x18\x07 \x01(\t\x12\x0c\n\x04tags\x18\x08 \x03(\t\x12\x64\n\x14ip_allocation_policy\x18\t \x01(\x0b\x32\x41.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicyB\x03\xe0\x41\x01\x12!\n\x14\x65nable_ip_masq_agent\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\"\x8a\x01\n\x14PrivateClusterConfig\x12$\n\x17\x65nable_private_endpoint\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x16master_ipv4_cidr_block\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\'\n\x1amaster_ipv4_reserved_range\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xe1\x01\n\x10NetworkingConfig\x12l\n\x0f\x63onnection_type\x18\x01 \x01(\x0e\x32N.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionTypeB\x03\xe0\x41\x01\"_\n\x0e\x43onnectionType\x12\x1f\n\x1b\x43ONNECTION_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bVPC_PEERING\x10\x01\x12\x1b\n\x17PRIVATE_SERVICE_CONNECT\x10\x02\"\xdc\x04\n\x18PrivateEnvironmentConfig\x12\'\n\x1a\x65nable_private_environment\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12h\n\x16private_cluster_config\x18\x02 \x01(\x0b\x32\x43.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfigB\x03\xe0\x41\x01\x12\'\n\x1aweb_server_ipv4_cidr_block\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12&\n\x19\x63loud_sql_ipv4_cidr_block\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12+\n\x1eweb_server_ipv4_reserved_range\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x33\n&cloud_composer_network_ipv4_cidr_block\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x37\n*cloud_composer_network_ipv4_reserved_range\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12-\n enable_privately_used_public_ips\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x31\n$cloud_composer_connection_subnetwork\x18\t \x01(\tB\x03\xe0\x41\x01\x12_\n\x11networking_config\x18\n \x01(\x0b\x32?.google.cloud.orchestration.airflow.service.v1.NetworkingConfigB\x03\xe0\x41\x01\"\x94\x05\n\x0fWorkloadsConfig\x12h\n\tscheduler\x18\x01 \x01(\x0b\x32P.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResourceB\x03\xe0\x41\x01\x12i\n\nweb_server\x18\x02 \x01(\x0b\x32P.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResourceB\x03\xe0\x41\x01\x12\x62\n\x06worker\x18\x03 \x01(\x0b\x32M.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResourceB\x03\xe0\x41\x01\x1aj\n\x11SchedulerResource\x12\x10\n\x03\x63pu\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01\x12\x16\n\tmemory_gb\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nstorage_gb\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x12\x12\n\x05\x63ount\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x1aV\n\x11WebServerResource\x12\x10\n\x03\x63pu\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01\x12\x16\n\tmemory_gb\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nstorage_gb\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x1a\x83\x01\n\x0eWorkerResource\x12\x10\n\x03\x63pu\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01\x12\x16\n\tmemory_gb\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nstorage_gb\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x12\x16\n\tmin_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x16\n\tmax_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\"\x82\x01\n\x0eRecoveryConfig\x12p\n\x1ascheduled_snapshots_config\x18\x01 \x01(\x0b\x32G.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfigB\x03\xe0\x41\x01\"\x91\x01\n\x18ScheduledSnapshotsConfig\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11snapshot_location\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\'\n\x1asnapshot_creation_schedule\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xd6\x01\n\x1eMasterAuthorizedNetworksConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12l\n\x0b\x63idr_blocks\x18\x02 \x03(\x0b\x32W.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock\x1a\x35\n\tCidrBlock\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x12\n\ncidr_block\x18\x02 \x01(\t\"\x85\x05\n\x0b\x45nvironment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12P\n\x06\x63onfig\x18\x02 \x01(\x0b\x32@.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig\x12\x0c\n\x04uuid\x18\x03 \x01(\t\x12O\n\x05state\x18\x04 \x01(\x0e\x32@.google.cloud.orchestration.airflow.service.v1.Environment.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x06labels\x18\x07 \x03(\x0b\x32\x46.google.cloud.orchestration.airflow.service.v1.Environment.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\t\n\x05\x45RROR\x10\x05:l\xea\x41i\n#composer.googleapis.com/Environment\x12\x42projects/{project}/locations/{location}/environments/{environment}\"\xf9\x03\n\x14\x43heckUpgradeResponse\x12\x1a\n\rbuild_log_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x7f\n\x1e\x63ontains_pypi_modules_conflict\x18\x04 \x01(\x0e\x32R.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResultB\x03\xe0\x41\x03\x12,\n\x1fpypi_conflict_build_log_extract\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\rimage_version\x18\x05 \x01(\t\x12t\n\x11pypi_dependencies\x18\x06 \x03(\x0b\x32Y.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.PypiDependenciesEntry\x1a\x37\n\x15PypiDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"P\n\x0e\x43onflictResult\x12\x1f\n\x1b\x43ONFLICT_RESULT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43ONFLICT\x10\x01\x12\x0f\n\x0bNO_CONFLICT\x10\x02\x32\xb5\x10\n\x0c\x45nvironments\x12\xa9\x02\n\x11\x43reateEnvironment\x12G.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\xab\x01\x82\xd3\xe4\x93\x02?\"0/v1/{parent=projects/*/locations/*}/environments:\x0b\x65nvironment\xda\x41\x12parent,environment\xca\x41N\n\x0b\x45nvironment\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x12\xd3\x01\n\x0eGetEnvironment\x12\x44.google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest\x1a:.google.cloud.orchestration.airflow.service.v1.Environment\"?\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/environments/*}\xda\x41\x04name\x12\xe6\x01\n\x10ListEnvironments\x12\x46.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest\x1aG.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/environments\xda\x41\x06parent\x12\xb3\x02\n\x11UpdateEnvironment\x12G.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\x82\xd3\xe4\x93\x02?20/v1/{name=projects/*/locations/*/environments/*}:\x0b\x65nvironment\xda\x41\x1cname,environment,update_mask\xca\x41N\n\x0b\x45nvironment\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x12\x98\x02\n\x11\x44\x65leteEnvironment\x12G.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\x9a\x01\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/environments/*}\xda\x41\x04name\xca\x41X\n\x15google.protobuf.Empty\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x12\xcc\x02\n\x0cSaveSnapshot\x12\x42.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\xd8\x01\x82\xd3\xe4\x93\x02I\"D/v1/{environment=projects/*/locations/*/environments/*}:saveSnapshot:\x01*\xca\x41\x85\x01\nBgoogle.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x12\xcc\x02\n\x0cLoadSnapshot\x12\x42.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\xd8\x01\x82\xd3\xe4\x93\x02I\"D/v1/{environment=projects/*/locations/*/environments/*}:loadSnapshot:\x01*\xca\x41\x85\x01\nBgoogle.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x1aK\xca\x41\x17\x63omposer.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x82\x01\n1com.google.cloud.orchestration.airflow.service.v1P\x01ZKcloud.google.com/go/orchestration/airflow/service/apiv1/servicepb;servicepbb\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError => e + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_message "google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest" do - optional :parent, :string, 1 - optional :page_size, :int32, 2 - optional :page_token, :string, 3 - end - add_message "google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse" do - repeated :environments, :message, 1, "google.cloud.orchestration.airflow.service.v1.Environment" - optional :next_page_token, :string, 2 - end - add_message "google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest" do - optional :name, :string, 1 - end - add_message "google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest" do - optional :name, :string, 2 - optional :environment, :message, 1, "google.cloud.orchestration.airflow.service.v1.Environment" - optional :update_mask, :message, 3, "google.protobuf.FieldMask" - end - add_message "google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest" do - optional :environment, :string, 1 - optional :snapshot_location, :string, 2 - end - add_message "google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse" do - optional :snapshot_path, :string, 1 - end - add_message "google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest" do - optional :environment, :string, 1 - optional :snapshot_path, :string, 2 - optional :skip_pypi_packages_installation, :bool, 3 - optional :skip_environment_variables_setting, :bool, 4 - optional :skip_airflow_overrides_setting, :bool, 5 - optional :skip_gcs_data_copying, :bool, 6 - end - add_message "google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse" do - end - add_message "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig" do - optional :gke_cluster, :string, 1 - optional :dag_gcs_prefix, :string, 2 - optional :node_count, :int32, 3 - optional :software_config, :message, 4, "google.cloud.orchestration.airflow.service.v1.SoftwareConfig" - optional :node_config, :message, 5, "google.cloud.orchestration.airflow.service.v1.NodeConfig" - optional :private_environment_config, :message, 7, "google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig" - optional :web_server_network_access_control, :message, 8, "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl" - optional :database_config, :message, 9, "google.cloud.orchestration.airflow.service.v1.DatabaseConfig" - optional :web_server_config, :message, 10, "google.cloud.orchestration.airflow.service.v1.WebServerConfig" - optional :encryption_config, :message, 11, "google.cloud.orchestration.airflow.service.v1.EncryptionConfig" - optional :maintenance_window, :message, 12, "google.cloud.orchestration.airflow.service.v1.MaintenanceWindow" - optional :workloads_config, :message, 15, "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig" - optional :environment_size, :enum, 16, "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize" - optional :airflow_uri, :string, 6 - optional :airflow_byoid_uri, :string, 20 - optional :master_authorized_networks_config, :message, 17, "google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig" - optional :recovery_config, :message, 18, "google.cloud.orchestration.airflow.service.v1.RecoveryConfig" - end - add_enum "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize" do - value :ENVIRONMENT_SIZE_UNSPECIFIED, 0 - value :ENVIRONMENT_SIZE_SMALL, 1 - value :ENVIRONMENT_SIZE_MEDIUM, 2 - value :ENVIRONMENT_SIZE_LARGE, 3 - end - add_message "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl" do - repeated :allowed_ip_ranges, :message, 1, "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange" - end - add_message "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange" do - optional :value, :string, 1 - optional :description, :string, 2 - end - add_message "google.cloud.orchestration.airflow.service.v1.DatabaseConfig" do - optional :machine_type, :string, 1 - end - add_message "google.cloud.orchestration.airflow.service.v1.WebServerConfig" do - optional :machine_type, :string, 1 - end - add_message "google.cloud.orchestration.airflow.service.v1.EncryptionConfig" do - optional :kms_key_name, :string, 1 - end - add_message "google.cloud.orchestration.airflow.service.v1.MaintenanceWindow" do - optional :start_time, :message, 1, "google.protobuf.Timestamp" - optional :end_time, :message, 2, "google.protobuf.Timestamp" - optional :recurrence, :string, 3 - end - add_message "google.cloud.orchestration.airflow.service.v1.SoftwareConfig" do - optional :image_version, :string, 1 - map :airflow_config_overrides, :string, :string, 2 - map :pypi_packages, :string, :string, 3 - map :env_variables, :string, :string, 4 - optional :python_version, :string, 6 - optional :scheduler_count, :int32, 7 - end - add_message "google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy" do - optional :use_ip_aliases, :bool, 1 - oneof :cluster_ip_allocation do - optional :cluster_secondary_range_name, :string, 2 - optional :cluster_ipv4_cidr_block, :string, 4 - end - oneof :services_ip_allocation do - optional :services_secondary_range_name, :string, 3 - optional :services_ipv4_cidr_block, :string, 5 - end - end - add_message "google.cloud.orchestration.airflow.service.v1.NodeConfig" do - optional :location, :string, 1 - optional :machine_type, :string, 2 - optional :network, :string, 3 - optional :subnetwork, :string, 4 - optional :disk_size_gb, :int32, 5 - repeated :oauth_scopes, :string, 6 - optional :service_account, :string, 7 - repeated :tags, :string, 8 - optional :ip_allocation_policy, :message, 9, "google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy" - optional :enable_ip_masq_agent, :bool, 11 - end - add_message "google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig" do - optional :enable_private_endpoint, :bool, 1 - optional :master_ipv4_cidr_block, :string, 2 - optional :master_ipv4_reserved_range, :string, 3 - end - add_message "google.cloud.orchestration.airflow.service.v1.NetworkingConfig" do - optional :connection_type, :enum, 1, "google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType" - end - add_enum "google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType" do - value :CONNECTION_TYPE_UNSPECIFIED, 0 - value :VPC_PEERING, 1 - value :PRIVATE_SERVICE_CONNECT, 2 - end - add_message "google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig" do - optional :enable_private_environment, :bool, 1 - optional :private_cluster_config, :message, 2, "google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig" - optional :web_server_ipv4_cidr_block, :string, 3 - optional :cloud_sql_ipv4_cidr_block, :string, 4 - optional :web_server_ipv4_reserved_range, :string, 5 - optional :cloud_composer_network_ipv4_cidr_block, :string, 7 - optional :cloud_composer_network_ipv4_reserved_range, :string, 8 - optional :enable_privately_used_public_ips, :bool, 6 - optional :cloud_composer_connection_subnetwork, :string, 9 - optional :networking_config, :message, 10, "google.cloud.orchestration.airflow.service.v1.NetworkingConfig" - end - add_message "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig" do - optional :scheduler, :message, 1, "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource" - optional :web_server, :message, 2, "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource" - optional :worker, :message, 3, "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource" - end - add_message "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource" do - optional :cpu, :float, 1 - optional :memory_gb, :float, 2 - optional :storage_gb, :float, 3 - optional :count, :int32, 4 - end - add_message "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource" do - optional :cpu, :float, 1 - optional :memory_gb, :float, 2 - optional :storage_gb, :float, 3 - end - add_message "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource" do - optional :cpu, :float, 1 - optional :memory_gb, :float, 2 - optional :storage_gb, :float, 3 - optional :min_count, :int32, 4 - optional :max_count, :int32, 5 - end - add_message "google.cloud.orchestration.airflow.service.v1.RecoveryConfig" do - optional :scheduled_snapshots_config, :message, 1, "google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig" - end - add_message "google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig" do - optional :enabled, :bool, 1 - optional :snapshot_location, :string, 6 - optional :snapshot_creation_schedule, :string, 3 - optional :time_zone, :string, 5 - end - add_message "google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig" do - optional :enabled, :bool, 1 - repeated :cidr_blocks, :message, 2, "google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock" - end - add_message "google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock" do - optional :display_name, :string, 1 - optional :cidr_block, :string, 2 - end - add_message "google.cloud.orchestration.airflow.service.v1.Environment" do - optional :name, :string, 1 - optional :config, :message, 2, "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig" - optional :uuid, :string, 3 - optional :state, :enum, 4, "google.cloud.orchestration.airflow.service.v1.Environment.State" - optional :create_time, :message, 5, "google.protobuf.Timestamp" - optional :update_time, :message, 6, "google.protobuf.Timestamp" - map :labels, :string, :string, 7 - end - add_enum "google.cloud.orchestration.airflow.service.v1.Environment.State" do - value :STATE_UNSPECIFIED, 0 - value :CREATING, 1 - value :RUNNING, 2 - value :UPDATING, 3 - value :DELETING, 4 - value :ERROR, 5 - end - add_message "google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse" do - optional :build_log_uri, :string, 1 - optional :contains_pypi_modules_conflict, :enum, 4, "google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult" - optional :pypi_conflict_build_log_extract, :string, 3 - optional :image_version, :string, 5 - map :pypi_dependencies, :string, :string, 6 - end - add_enum "google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult" do - value :CONFLICT_RESULT_UNSPECIFIED, 0 - value :CONFLICT, 1 - value :NO_CONFLICT, 2 - end end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." end module Google module Cloud module Orchestration