From 83daf56aecd9cda89a25e0a531d2ec6dda813c09 Mon Sep 17 00:00:00 2001 From: Dan Rammer Date: Wed, 26 Jun 2024 11:52:40 -0500 Subject: [PATCH] updated execution environment id field to name (#5514) Signed-off-by: Daniel Rammer --- .../pb-es/flyteidl/core/execution_envs_pb.ts | 9 +-- .../pb-go/flyteidl/core/execution_envs.pb.go | 59 ++++++++++--------- .../flyteidl/service/admin.swagger.json | 4 +- flyteidl/gen/pb-js/flyteidl.d.ts | 8 +-- flyteidl/gen/pb-js/flyteidl.js | 20 +++---- .../flyteidl/core/execution_envs_pb2.py | 4 +- .../flyteidl/core/execution_envs_pb2.pyi | 8 +-- flyteidl/gen/pb_rust/flyteidl.core.rs | 5 +- .../protos/flyteidl/core/execution_envs.proto | 5 +- 9 files changed, 63 insertions(+), 59 deletions(-) diff --git a/flyteidl/gen/pb-es/flyteidl/core/execution_envs_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/execution_envs_pb.ts index 1ec39284fb..3ca866bef4 100644 --- a/flyteidl/gen/pb-es/flyteidl/core/execution_envs_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/core/execution_envs_pb.ts @@ -72,11 +72,12 @@ export class ExecutionEnvAssignment extends Message { */ export class ExecutionEnv extends Message { /** - * id is a unique identifier for the execution environment. + * name is a human-readable identifier for the execution environment. This is combined with the + * project, domain, and version to uniquely identify an execution environment. * - * @generated from field: string id = 1; + * @generated from field: string name = 1; */ - id = ""; + name = ""; /** * type is the type of the execution environment. @@ -125,7 +126,7 @@ export class ExecutionEnv extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.core.ExecutionEnv"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "extant", kind: "message", T: Struct, oneof: "environment" }, { no: 4, name: "spec", kind: "message", T: Struct, oneof: "environment" }, diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution_envs.pb.go b/flyteidl/gen/pb-go/flyteidl/core/execution_envs.pb.go index d2fa750ef6..51c5395812 100644 --- a/flyteidl/gen/pb-go/flyteidl/core/execution_envs.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/core/execution_envs.pb.go @@ -96,8 +96,9 @@ type ExecutionEnv struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // id is a unique identifier for the execution environment. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // name is a human-readable identifier for the execution environment. This is combined with the + // project, domain, and version to uniquely identify an execution environment. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // type is the type of the execution environment. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // environment is a oneof field that can be used to specify the environment in different ways. @@ -145,9 +146,9 @@ func (*ExecutionEnv) Descriptor() ([]byte, []int) { return file_flyteidl_core_execution_envs_proto_rawDescGZIP(), []int{1} } -func (x *ExecutionEnv) GetId() string { +func (x *ExecutionEnv) GetName() string { if x != nil { - return x.Id + return x.Name } return "" } @@ -222,31 +223,31 @@ var file_flyteidl_core_execution_envs_proto_rawDesc = []byte{ 0x6e, 0x5f, 0x65, 0x6e, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x76, 0x52, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x76, 0x22, 0xbd, 0x01, 0x0a, 0x0c, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x76, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x65, - 0x78, 0x74, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x06, 0x65, 0x78, 0x74, 0x61, 0x6e, 0x74, 0x12, 0x2d, - 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, - 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0xb8, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x12, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x76, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, - 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x76, 0x22, 0xc1, 0x01, 0x0a, 0x0c, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x76, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x31, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x06, 0x65, 0x78, 0x74, 0x61, + 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x04, 0x73, 0x70, 0x65, + 0x63, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x65, + 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0xb8, 0x01, 0x0a, 0x11, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x42, 0x12, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x76, 0x73, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, + 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json index f29bbf0614..c959a8d766 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json @@ -7076,9 +7076,9 @@ "coreExecutionEnv": { "type": "object", "properties": { - "id": { + "name": { "type": "string", - "description": "id is a unique identifier for the execution environment." + "description": "name is a human-readable identifier for the execution environment. This is combined with the\nproject, domain, and version to uniquely identify an execution environment." }, "type": { "type": "string", diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index ce63d88cb1..db54ecb73b 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -7654,8 +7654,8 @@ export namespace flyteidl { /** Properties of an ExecutionEnv. */ interface IExecutionEnv { - /** ExecutionEnv id */ - id?: (string|null); + /** ExecutionEnv name */ + name?: (string|null); /** ExecutionEnv type */ type?: (string|null); @@ -7679,8 +7679,8 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.core.IExecutionEnv); - /** ExecutionEnv id. */ - public id: string; + /** ExecutionEnv name. */ + public name: string; /** ExecutionEnv type. */ public type: string; diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 79883b3a37..b2c41b9bb6 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -18510,7 +18510,7 @@ * Properties of an ExecutionEnv. * @memberof flyteidl.core * @interface IExecutionEnv - * @property {string|null} [id] ExecutionEnv id + * @property {string|null} [name] ExecutionEnv name * @property {string|null} [type] ExecutionEnv type * @property {google.protobuf.IStruct|null} [extant] ExecutionEnv extant * @property {google.protobuf.IStruct|null} [spec] ExecutionEnv spec @@ -18533,12 +18533,12 @@ } /** - * ExecutionEnv id. - * @member {string} id + * ExecutionEnv name. + * @member {string} name * @memberof flyteidl.core.ExecutionEnv * @instance */ - ExecutionEnv.prototype.id = ""; + ExecutionEnv.prototype.name = ""; /** * ExecutionEnv type. @@ -18610,8 +18610,8 @@ ExecutionEnv.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.type != null && message.hasOwnProperty("type")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.type); if (message.extant != null && message.hasOwnProperty("extant")) @@ -18642,7 +18642,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.name = reader.string(); break; case 2: message.type = reader.string(); @@ -18676,9 +18676,9 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; if (message.type != null && message.hasOwnProperty("type")) if (!$util.isString(message.type)) return "type: string expected"; diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_envs_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/execution_envs_pb2.py index dce36e37e9..6eb8dfe827 100644 --- a/flyteidl/gen/pb_python/flyteidl/core/execution_envs_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_envs_pb2.py @@ -14,7 +14,7 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"flyteidl/core/execution_envs.proto\x12\rflyteidl.core\x1a\x1cgoogle/protobuf/struct.proto\"\x92\x01\n\x16\x45xecutionEnvAssignment\x12\x19\n\x08node_ids\x18\x01 \x03(\tR\x07nodeIds\x12\x1b\n\ttask_type\x18\x02 \x01(\tR\x08taskType\x12@\n\rexecution_env\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.ExecutionEnvR\x0c\x65xecutionEnv\"\xbd\x01\n\x0c\x45xecutionEnv\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x31\n\x06\x65xtant\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructH\x00R\x06\x65xtant\x12-\n\x04spec\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00R\x04spec\x12\x18\n\x07version\x18\x05 \x01(\tR\x07versionB\r\n\x0b\x65nvironmentB\xb8\x01\n\x11\x63om.flyteidl.coreB\x12\x45xecutionEnvsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"flyteidl/core/execution_envs.proto\x12\rflyteidl.core\x1a\x1cgoogle/protobuf/struct.proto\"\x92\x01\n\x16\x45xecutionEnvAssignment\x12\x19\n\x08node_ids\x18\x01 \x03(\tR\x07nodeIds\x12\x1b\n\ttask_type\x18\x02 \x01(\tR\x08taskType\x12@\n\rexecution_env\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.ExecutionEnvR\x0c\x65xecutionEnv\"\xc1\x01\n\x0c\x45xecutionEnv\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x31\n\x06\x65xtant\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructH\x00R\x06\x65xtant\x12-\n\x04spec\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00R\x04spec\x12\x18\n\x07version\x18\x05 \x01(\tR\x07versionB\r\n\x0b\x65nvironmentB\xb8\x01\n\x11\x63om.flyteidl.coreB\x12\x45xecutionEnvsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -26,5 +26,5 @@ _globals['_EXECUTIONENVASSIGNMENT']._serialized_start=84 _globals['_EXECUTIONENVASSIGNMENT']._serialized_end=230 _globals['_EXECUTIONENV']._serialized_start=233 - _globals['_EXECUTIONENV']._serialized_end=422 + _globals['_EXECUTIONENV']._serialized_end=426 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_envs_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/execution_envs_pb2.pyi index 0442e4a645..5df486b75e 100644 --- a/flyteidl/gen/pb_python/flyteidl/core/execution_envs_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_envs_pb2.pyi @@ -17,15 +17,15 @@ class ExecutionEnvAssignment(_message.Message): def __init__(self, node_ids: _Optional[_Iterable[str]] = ..., task_type: _Optional[str] = ..., execution_env: _Optional[_Union[ExecutionEnv, _Mapping]] = ...) -> None: ... class ExecutionEnv(_message.Message): - __slots__ = ["id", "type", "extant", "spec", "version"] - ID_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["name", "type", "extant", "spec", "version"] + NAME_FIELD_NUMBER: _ClassVar[int] TYPE_FIELD_NUMBER: _ClassVar[int] EXTANT_FIELD_NUMBER: _ClassVar[int] SPEC_FIELD_NUMBER: _ClassVar[int] VERSION_FIELD_NUMBER: _ClassVar[int] - id: str + name: str type: str extant: _struct_pb2.Struct spec: _struct_pb2.Struct version: str - def __init__(self, id: _Optional[str] = ..., type: _Optional[str] = ..., extant: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., spec: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., version: _Optional[str] = ...) -> None: ... + def __init__(self, name: _Optional[str] = ..., type: _Optional[str] = ..., extant: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., spec: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., version: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs index e18e996875..f1d873d65d 100644 --- a/flyteidl/gen/pb_rust/flyteidl.core.rs +++ b/flyteidl/gen/pb_rust/flyteidl.core.rs @@ -2965,9 +2965,10 @@ pub struct ExecutionEnvAssignment { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecutionEnv { - /// id is a unique identifier for the execution environment. + /// name is a human-readable identifier for the execution environment. This is combined with the + /// project, domain, and version to uniquely identify an execution environment. #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, + pub name: ::prost::alloc::string::String, /// type is the type of the execution environment. #[prost(string, tag="2")] pub r#type: ::prost::alloc::string::String, diff --git a/flyteidl/protos/flyteidl/core/execution_envs.proto b/flyteidl/protos/flyteidl/core/execution_envs.proto index c01bcbe304..d5da775f65 100644 --- a/flyteidl/protos/flyteidl/core/execution_envs.proto +++ b/flyteidl/protos/flyteidl/core/execution_envs.proto @@ -22,8 +22,9 @@ message ExecutionEnvAssignment { // ExecutionEnv is a message that is used to specify the execution environment. message ExecutionEnv { - // id is a unique identifier for the execution environment. - string id = 1; + // name is a human-readable identifier for the execution environment. This is combined with the + // project, domain, and version to uniquely identify an execution environment. + string name = 1; // type is the type of the execution environment. string type = 2;