mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
feat(CLI): --debug flag to output traffix
* If `--debug` is set, we will output all server communication to stderr. That way, we can compare our requests to what is expected by ush based on official docs. * `discovery` now doesn't use the API key anymore - this is specified using a custom override. Nice, we are totally ready to test and fix all API features. Related to #70
This commit is contained in:
@@ -325,7 +325,7 @@ ${capture(lib.test_hub, hub_type_name, comments=show_all) | hide_filter}
|
||||
// As the method needs a request, you would usually fill it with the desired information
|
||||
// into the respective structure. Some of the parts shown here might not be applicable !
|
||||
// ${random_value_warning}
|
||||
let mut ${rb_name}: ${request_value_type} = Default::default();
|
||||
let mut ${rb_name} = ${request_value_type}::default();
|
||||
% for spn, sp in request_value.get('properties', dict()).iteritems():
|
||||
% if parts is not None and spn not in parts:
|
||||
<% continue %>
|
||||
@@ -579,6 +579,7 @@ else {
|
||||
let mut url = "${baseUrl}${m.path}".to_string();
|
||||
% endif
|
||||
% if not default_scope:
|
||||
% if no_auth is UNDEFINED:
|
||||
<%
|
||||
assert 'key' in parameters, "Expected 'key' parameter if there are no scopes"
|
||||
%>
|
||||
@@ -593,6 +594,7 @@ else {
|
||||
return Err(Error::MissingAPIKey)
|
||||
}
|
||||
}
|
||||
% endif
|
||||
% else:
|
||||
if self.${api.properties.scopes}.len() == 0 {
|
||||
self.${api.properties.scopes}.insert(${scope_url_to_variant(name, default_scope, fully_qualified=True)}.as_ref().to_string(), ());
|
||||
|
||||
Reference in New Issue
Block a user