@@ -23,9 +23,6 @@ import (
2323
2424// Config represents the complete librarian.yaml configuration file.
2525type Config struct {
26- // Version is the version of librarian that created this config.
27- Version string `yaml:"version"`
28-
2926 // Language is the primary language for this repository (go, python, rust).
3027 Language string `yaml:"language"`
3128
@@ -89,14 +86,6 @@ type Default struct {
8986
9087// DefaultGenerate contains default generation configuration.
9188type DefaultGenerate struct {
92- // Auto generates all client libraries with default configurations
93- // for the language, unless otherwise specified.
94- Auto bool `yaml:"auto,omitempty"`
95-
96- // OneLibraryPer specifies packaging strategy: "api" or "channel".
97- // - "api": Bundle all versions of a service into one library (Python, Go default)
98- // - "channel": Create separate library per version (Rust, Dart default)
99- OneLibraryPer string `yaml:"one_library_per,omitempty"`
10089
10190 // Transport is the default transport protocol (e.g., "grpc+rest", "grpc").
10291 Transport string `yaml:"transport,omitempty"`
@@ -120,10 +109,8 @@ type DefaultRelease struct {
120109
121110// Library represents a single library configuration entry.
122111type Library struct {
123- // APIServiceConfigs maps API paths to their service config file paths (runtime only, not serialized).
124- // For single-API libraries: map[API]serviceConfigPath
125- // For multi-API libraries: map[APIs[0]]path1, map[APIs[1]]path2, etc.
126- APIServiceConfigs map [string ]string `yaml:"-"`
112+ // Name is the library name (e.g., "secretmanager", "storage").
113+ Name string `yaml:"name,omitempty"`
127114
128115 // Channel specifies which googleapis Channel to generate from (for generated libraries).
129116 // Can be a string (protobuf Channel path) or an APIObject (for discovery APIs).
@@ -143,9 +130,6 @@ type Library struct {
143130 // Keep lists files/directories to preserve during regeneration.
144131 Keep []string `yaml:"keep,omitempty"`
145132
146- // Name is the library name (e.g., "secretmanager", "storage").
147- Name string `yaml:"name,omitempty"`
148-
149133 // Output specifies the filesystem location (overrides computed location from defaults.output).
150134 // For generated libraries: overrides where code is generated to.
151135 // For handwritten libraries: specifies the source directory.
0 commit comments