Commit c4632f6
authored
Changes because of always defining request messages (#3098)
## Changes
<!-- Brief summary of your changes that is easy to understand -->
Changes because of always defining request messages. There is a bug in
the Code Generator that sets the request to nil if it has no fields. As
we fix the generator, it changes the generated code. To keep the
generated code the same, we need to add exceptions for already existing
requests.
IsLegacyEmptyRequest returns true if the request has no fields and, for
the above reason, is not rendered in the SDK.
This PR also removes TODO from the template, which adds noise to the
diff. Also, we don't need it to remind us to implement short flags.
## Why
<!-- Why are these changes needed? Provide the context that the reviewer
might be missing.
For example, were there any decisions behind the change that are not
reflected in the code itself? -->
We made a few changes in the Code generator that ensure that the request
can never be nil. However, we cannot add the request to the existing
interface. So, adding an exception for legacy commands.
## Tests
<!-- How have you tested the changes? -->
Existing CI. Manually verified this change, only changed a few comments.
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->1 parent 26da4c1 commit c4632f6
File tree
146 files changed
+35
-1195
lines changed- .codegen
- cmd
- account
- access-control
- billable-usage
- budget-policy
- budgets
- credentials
- csp-enablement-account
- custom-app-integration
- disable-legacy-features
- enable-ip-access-lists
- encryption-keys
- esm-enablement-account
- federation-policy
- groups
- ip-access-lists
- llm-proxy-partner-powered-account
- llm-proxy-partner-powered-enforce
- log-delivery
- metastore-assignments
- metastores
- network-connectivity
- network-policies
- networks
- o-auth-published-apps
- personal-compute
- private-access
- published-app-integration
- service-principal-federation-policy
- service-principal-secrets
- service-principals
- storage-credentials
- storage
- usage-dashboards
- users
- vpc-endpoints
- workspace-assignment
- workspace-network-configuration
- workspaces
- workspace
- access-control
- ai-builder
- aibi-dashboard-embedding-access-policy
- aibi-dashboard-embedding-approved-domains
- alerts-legacy
- alerts-v2
- alerts
- apps
- artifact-allowlists
- automatic-cluster-update
- catalogs
- clean-room-assets
- clean-room-task-runs
- clean-rooms
- cluster-policies
- clusters
- compliance-security-profile
- connections
- consumer-fulfillments
- consumer-installations
- consumer-listings
- consumer-personalization-requests
- consumer-providers
- credentials-manager
- credentials
- dashboard-email-subscriptions
- dashboard-widgets
- dashboards
- database
- default-namespace
- disable-legacy-access
- disable-legacy-dbfs
- enable-export-notebook
- enable-notebook-table-clipboard
- enable-results-downloading
- enhanced-security-monitoring
- experiments
- external-locations
- feature-store
- forecasting
- functions
- genie
- git-credentials
- global-init-scripts
- grants
- groups
- instance-pools
- instance-profiles
- ip-access-lists
- jobs
- lakeview-embedded
- lakeview
- libraries
- llm-proxy-partner-powered-workspace
- metastores
- model-registry
- model-versions
- notification-destinations
- online-tables
- permission-migration
- permissions
- pipelines
- policy-compliance-for-clusters
- policy-compliance-for-jobs
- policy-families
- provider-exchange-filters
- provider-exchanges
- provider-files
- provider-listings
- provider-personalization-requests
- provider-provider-analytics-dashboards
- provider-providers
- providers
- quality-monitor-v2
- quality-monitors
- queries-legacy
- queries
- query-history
- query-visualizations-legacy
- query-visualizations
- recipient-activation
- recipient-federation-policies
- recipients
- registered-models
- repos
- resource-quotas
- restrict-workspace-admins
- schemas
- secrets
- service-principals
- serving-endpoints
- sql-results-download
- storage-credentials
- system-schemas
- table-constraints
- tables
- temporary-table-credentials
- token-management
- tokens
- users
- vector-search-endpoints
- vector-search-indexes
- volumes
- warehouses
- workspace-bindings
- workspace-conf
- workspace
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
146 files changed
+35
-1195
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments