You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(internal/config): add import path to GoAPI (#3950)
Add `ImportPath` to GoAPI.
The GAPIC import path is one of the input of `go_gapic_library` Bazel
rule. The source of truth is BUILD.bazel so we need a field in GoAPI to
store this value.
Hardcode the import path and client directory for `ai` in
google-cloud-go because these values are not from legacy librarian
configs.
For #3617
Copy file name to clipboardExpand all lines: doc/config-schema.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ This document describes the schema for the librarian.yaml.
103
103
104
104
## DartPackage Configuration
105
105
106
-
[Link to code](../internal/config/language.go#L279)
106
+
[Link to code](../internal/config/language.go#L280)
107
107
| Field | Type | Description |
108
108
| :--- | :--- | :--- |
109
109
|`api_keys_environment_variables`| string | APIKeysEnvironmentVariables is a comma-separated list of environment variable names that can contain API keys (e.g., "GOOGLE_API_KEY,GEMINI_API_KEY"). |
@@ -132,6 +132,7 @@ This document describes the schema for the librarian.yaml.
132
132
|`path`| string ||
133
133
|`client_directory`| string ||
134
134
|`disable_gapic`| bool ||
135
+
|`import_path`| string ||
135
136
|`nested_protos`| list of string ||
136
137
|`proto_package`| string ||
137
138
@@ -146,15 +147,15 @@ This document describes the schema for the librarian.yaml.
146
147
147
148
## PythonPackage Configuration
148
149
149
-
[Link to code](../internal/config/language.go#L264)
150
+
[Link to code](../internal/config/language.go#L265)
150
151
| Field | Type | Description |
151
152
| :--- | :--- | :--- |
152
153
|`opt_args`| list of string | OptArgs contains additional options passed to the generator, where the options are common to all apis. Example: ["warehouse-package-name=google-cloud-batch"]|
153
154
|`opt_args_by_api`| map[string][]string | OptArgsByAPI contains additional options passed to the generator, where the options vary by api. In each entry, the key is the api (API path) and the value is the list of options to pass when generating that API. Example: {"google/cloud/secrets/v1beta": ["python-gapic-name=secretmanager"]} |
154
155
155
156
## RustCrate Configuration
156
157
157
-
[Link to code](../internal/config/language.go#L130)
158
+
[Link to code](../internal/config/language.go#L131)
@@ -181,7 +182,7 @@ This document describes the schema for the librarian.yaml.
181
182
182
183
## RustDefault Configuration
183
184
184
-
[Link to code](../internal/config/language.go#L36)
185
+
[Link to code](../internal/config/language.go#L37)
185
186
| Field | Type | Description |
186
187
| :--- | :--- | :--- |
187
188
|`package_dependencies`| list of [RustPackageDependency](#rustpackagedependency-configuration) (optional) | PackageDependencies is a list of default package dependencies. |
@@ -191,15 +192,15 @@ This document describes the schema for the librarian.yaml.
191
192
192
193
## RustDiscovery Configuration
193
194
194
-
[Link to code](../internal/config/language.go#L246)
195
+
[Link to code](../internal/config/language.go#L247)
195
196
| Field | Type | Description |
196
197
| :--- | :--- | :--- |
197
198
|`operation_id`| string | OperationID is the ID of the LRO operation type (e.g., ".google.cloud.compute.v1.Operation"). |
198
199
|`pollers`| list of [RustPoller](#rustpoller-configuration)| Pollers is a list of LRO polling configurations. |
199
200
200
201
## RustDocumentationOverride Configuration
201
202
202
-
[Link to code](../internal/config/language.go#L225)
203
+
[Link to code](../internal/config/language.go#L226)
203
204
| Field | Type | Description |
204
205
| :--- | :--- | :--- |
205
206
|`id`| string | ID is the fully qualified element ID (e.g., .google.cloud.dialogflow.v2.Message.field). |
@@ -208,7 +209,7 @@ This document describes the schema for the librarian.yaml.
208
209
209
210
## RustModule Configuration
210
211
211
-
[Link to code](../internal/config/language.go#L53)
212
+
[Link to code](../internal/config/language.go#L54)
212
213
| Field | Type | Description |
213
214
| :--- | :--- | :--- |
214
215
|`disabled_rustdoc_warnings`| yaml.StringSlice | DisabledRustdocWarnings specifies rustdoc lints to disable. An empty slice explicitly enables all warnings. |
@@ -237,7 +238,7 @@ This document describes the schema for the librarian.yaml.
237
238
238
239
## RustPackageDependency Configuration
239
240
240
-
[Link to code](../internal/config/language.go#L197)
241
+
[Link to code](../internal/config/language.go#L198)
241
242
| Field | Type | Description |
242
243
| :--- | :--- | :--- |
243
244
|`name`| string | Name is the dependency name. It is listed first so it appears at the top of each dependency entry in YAML. |
@@ -250,15 +251,15 @@ This document describes the schema for the librarian.yaml.
250
251
251
252
## RustPaginationOverride Configuration
252
253
253
-
[Link to code](../internal/config/language.go#L237)
254
+
[Link to code](../internal/config/language.go#L238)
254
255
| Field | Type | Description |
255
256
| :--- | :--- | :--- |
256
257
|`id`| string | ID is the fully qualified method ID (e.g., .google.cloud.sql.v1.Service.Method). |
257
258
|`item_field`| string | ItemField is the name of the field used for items. |
258
259
259
260
## RustPoller Configuration
260
261
261
-
[Link to code](../internal/config/language.go#L255)
262
+
[Link to code](../internal/config/language.go#L256)
262
263
| Field | Type | Description |
263
264
| :--- | :--- | :--- |
264
265
|`prefix`| string | Prefix is an acceptable prefix for the URL path (e.g., "compute/v1/projects/{project}/zones/{zone}"). |
0 commit comments