Repository navigation
Conversation
Generate get_organization_wireless_devices_telemetry, get_organization_wireless_radio_status_by_network, and by_organization_wireless_radio_rf_health_neighbors_rssi_device from Meraki's beta OpenAPI spec. They are missing from the GA spec. New beta_spec_version and beta_operations spec overrides copy only the listed operations from a pinned beta spec tag into the GA spec. Codegen warns once an operation reaches the GA spec.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds three Early Access wireless operations. The client can't generate them today because they're only in Meraki's beta OpenAPI spec, so callers have to make raw requests instead.
get_organization_wireless_devices_telemetry,get_organization_wireless_radio_status_by_network, andby_organization_wireless_radio_rf_health_neighbors_rssi_deviceon thewirelessscope, sync and async.beta_spec_versionandbeta_operationskeys incodegen/spec_overrides.toml. Codegen downloads the pinned beta tag (v1.75.1-beta.2) and copies only the listed operations into the GA spec before generation. The rest of the client stays GA.$ref, since its components would only exist in the beta spec.x-release-stage: betaget a docstring note that the organization must opt in to Early Access.skip_tests, because the generated integration tests would fail for orgs that haven't opted in.Where to look:
merge_beta_operationsincodegen/main.py, and the two response overrides at the bottom ofspec_overrides.toml. The beta spec doesn't match what the API returns:bandis a string ("2.4","5","6"), not an integer. It's overridden tostr, which still accepts ints throughcoerce_numbers_to_str.channelandpower, notchannelSettingsandpowerSettings. They're kept as extra fields rather than modelled.metrics[].valuesis an object for "Client Count" and an array for other metrics such as "Channel Utilization". It's overridden toAny.The generated files under
meraki_client/are mechanical output ofmake generate.Test plan
make generateproduces 1042 operations (1039 GA plus the 3 beta ones) with no override warnings, and the generated diff only touches thewirelessscope.serials[]andnetworkIds[], telemetry followed theLinkheader to a second page, and a 404 raisedResourceNotFoundError.bandvalues"2.4","5"and"6", and 79 neighbor RSSI stats. "Client Count"valuescame back as an object and the other six metrics as arrays. Radio settings came back aschannel/powerextras.merakiSDK.get_organization_wireless_radio_status_by_networkagainst an organization that isn't opted in, and confirm it raisesResourceNotFoundError(404).