Skip to content

Commit

Permalink
Set customer headers default to None
Browse files Browse the repository at this point in the history
  • Loading branch information
annatisch committed May 17, 2016
1 parent 4104a56 commit 9f62082
Show file tree
Hide file tree
Showing 66 changed files with 898 additions and 823 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def get_null(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
Get null duration value
Expand Down Expand Up @@ -81,7 +81,7 @@ def get_null(
return deserialized

def put_positive_duration(
self, duration_body, custom_headers={}, raw=False, **operation_config):
self, duration_body, custom_headers=None, raw=False, **operation_config):
"""
Put a positive duration value
Expand Down Expand Up @@ -128,7 +128,7 @@ def put_positive_duration(
return client_raw_response

def get_positive_duration(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
Get a positive duration value
Expand Down Expand Up @@ -176,7 +176,7 @@ def get_positive_duration(
return deserialized

def get_invalid(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
Get an invalid duration value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def post_required(
self, parameter_grouping_post_required_parameters, custom_headers={}, raw=False, **operation_config):
self, parameter_grouping_post_required_parameters, custom_headers=None, raw=False, **operation_config):
"""
Post a bunch of required parameters grouped
Expand Down Expand Up @@ -104,7 +104,7 @@ def post_required(
return client_raw_response

def post_optional(
self, parameter_grouping_post_optional_parameters=None, custom_headers={}, raw=False, **operation_config):
self, parameter_grouping_post_optional_parameters=None, custom_headers=None, raw=False, **operation_config):
"""
Post a bunch of optional parameters grouped
Expand Down Expand Up @@ -161,7 +161,7 @@ def post_optional(
return client_raw_response

def post_multi_param_groups(
self, first_parameter_group=None, parameter_grouping_post_multi_param_groups_second_param_group=None, custom_headers={}, raw=False, **operation_config):
self, first_parameter_group=None, parameter_grouping_post_multi_param_groups_second_param_group=None, custom_headers=None, raw=False, **operation_config):
"""
Post parameters from multiple different parameter groups
Expand Down Expand Up @@ -231,7 +231,7 @@ def post_multi_param_groups(
return client_raw_response

def post_shared_parameter_group_object(
self, first_parameter_group=None, custom_headers={}, raw=False, **operation_config):
self, first_parameter_group=None, custom_headers=None, raw=False, **operation_config):
"""
Post parameters with a shared parameter group object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(


def get_report(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
Get test coverage report
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(


def put_array(
self, resource_array=None, custom_headers={}, raw=False, **operation_config):
self, resource_array=None, custom_headers=None, raw=False, **operation_config):
"""
Put External Resource as an Array
Expand Down Expand Up @@ -147,7 +147,7 @@ def put_array(
return client_raw_response

def get_array(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
Get External Resource as an Array
Expand Down Expand Up @@ -196,7 +196,7 @@ def get_array(
return deserialized

def put_dictionary(
self, resource_dictionary=None, custom_headers={}, raw=False, **operation_config):
self, resource_dictionary=None, custom_headers=None, raw=False, **operation_config):
"""
Put External Resource as a Dictionary
Expand Down Expand Up @@ -246,7 +246,7 @@ def put_dictionary(
return client_raw_response

def get_dictionary(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
Get External Resource as a Dictionary
Expand Down Expand Up @@ -294,7 +294,7 @@ def get_dictionary(
return deserialized

def put_resource_collection(
self, resource_complex_object=None, custom_headers={}, raw=False, **operation_config):
self, resource_complex_object=None, custom_headers=None, raw=False, **operation_config):
"""
Put External Resource as a ResourceCollection
Expand Down Expand Up @@ -346,7 +346,7 @@ def put_resource_collection(
return client_raw_response

def get_resource_collection(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
Get External Resource as a ResourceCollection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def get_method_global_valid(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
GET method with api-version modeled in global settings.
Expand Down Expand Up @@ -75,7 +75,7 @@ def get_method_global_valid(
return client_raw_response

def get_method_global_not_provided_valid(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
GET method with api-version modeled in global settings.
Expand Down Expand Up @@ -117,7 +117,7 @@ def get_method_global_not_provided_valid(
return client_raw_response

def get_path_global_valid(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
GET method with api-version modeled in global settings.
Expand Down Expand Up @@ -159,7 +159,7 @@ def get_path_global_valid(
return client_raw_response

def get_swagger_global_valid(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
GET method with api-version modeled in global settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def get_method_local_valid(
self, api_version="2.0", custom_headers={}, raw=False, **operation_config):
self, api_version="2.0", custom_headers=None, raw=False, **operation_config):
"""
Get method with api-version modeled in the method. pass in
api-version = '2.0' to succeed
Expand Down Expand Up @@ -79,7 +79,7 @@ def get_method_local_valid(
return client_raw_response

def get_method_local_null(
self, api_version=None, custom_headers={}, raw=False, **operation_config):
self, api_version=None, custom_headers=None, raw=False, **operation_config):
"""
Get method with api-version modeled in the method. pass in
api-version = null to succeed
Expand Down Expand Up @@ -126,7 +126,7 @@ def get_method_local_null(
return client_raw_response

def get_path_local_valid(
self, api_version="2.0", custom_headers={}, raw=False, **operation_config):
self, api_version="2.0", custom_headers=None, raw=False, **operation_config):
"""
Get method with api-version modeled in the method. pass in
api-version = '2.0' to succeed
Expand Down Expand Up @@ -172,7 +172,7 @@ def get_path_local_valid(
return client_raw_response

def get_swagger_local_valid(
self, api_version="2.0", custom_headers={}, raw=False, **operation_config):
self, api_version="2.0", custom_headers=None, raw=False, **operation_config):
"""
Get method with api-version modeled in the method. pass in
api-version = '2.0' to succeed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def custom_named_request_id(
self, foo_client_request_id, custom_headers={}, raw=False, **operation_config):
self, foo_client_request_id, custom_headers=None, raw=False, **operation_config):
"""
Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in
the header of the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def get_with_filter(
self, filter=None, top=None, orderby=None, custom_headers={}, raw=False, **operation_config):
self, filter=None, top=None, orderby=None, custom_headers=None, raw=False, **operation_config):
"""
Specify filter parameter with value '$filter=id gt 5 and name eq
'foo'&$orderby=id&$top=10'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def get_method_path_valid(
self, unencoded_path_param, custom_headers={}, raw=False, **operation_config):
self, unencoded_path_param, custom_headers=None, raw=False, **operation_config):
"""
Get method with unencoded path parameter with value 'path1/path2/path3'
Expand Down Expand Up @@ -81,7 +81,7 @@ def get_method_path_valid(
return client_raw_response

def get_path_path_valid(
self, unencoded_path_param, custom_headers={}, raw=False, **operation_config):
self, unencoded_path_param, custom_headers=None, raw=False, **operation_config):
"""
Get method with unencoded path parameter with value 'path1/path2/path3'
Expand Down Expand Up @@ -129,7 +129,7 @@ def get_path_path_valid(
return client_raw_response

def get_swagger_path_valid(
self, unencoded_path_param="path1/path2/path3", custom_headers={}, raw=False, **operation_config):
self, unencoded_path_param="path1/path2/path3", custom_headers=None, raw=False, **operation_config):
"""
Get method with unencoded path parameter with value 'path1/path2/path3'
Expand Down Expand Up @@ -177,7 +177,7 @@ def get_swagger_path_valid(
return client_raw_response

def get_method_query_valid(
self, q1, custom_headers={}, raw=False, **operation_config):
self, q1, custom_headers=None, raw=False, **operation_config):
"""
Get method with unencoded query parameter with value
'value1&q2=value2&q3=value3'
Expand Down Expand Up @@ -223,7 +223,7 @@ def get_method_query_valid(
return client_raw_response

def get_method_query_null(
self, q1=None, custom_headers={}, raw=False, **operation_config):
self, q1=None, custom_headers=None, raw=False, **operation_config):
"""
Get method with unencoded query parameter with value null
Expand Down Expand Up @@ -268,7 +268,7 @@ def get_method_query_null(
return client_raw_response

def get_path_query_valid(
self, q1, custom_headers={}, raw=False, **operation_config):
self, q1, custom_headers=None, raw=False, **operation_config):
"""
Get method with unencoded query parameter with value
'value1&q2=value2&q3=value3'
Expand Down Expand Up @@ -314,7 +314,7 @@ def get_path_query_valid(
return client_raw_response

def get_swagger_query_valid(
self, q1="value1&q2=value2&q3=value3", custom_headers={}, raw=False, **operation_config):
self, q1="value1&q2=value2&q3=value3", custom_headers=None, raw=False, **operation_config):
"""
Get method with unencoded query parameter with value
'value1&q2=value2&q3=value3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def post_method_global_valid(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to '1234-5678-9012-3456' to succeed
Expand Down Expand Up @@ -79,7 +79,7 @@ def post_method_global_valid(
return client_raw_response

def post_method_global_null(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to null, and client-side validation should
Expand Down Expand Up @@ -126,7 +126,7 @@ def post_method_global_null(
return client_raw_response

def post_method_global_not_provided_valid(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to '1234-5678-9012-3456' to succeed
Expand Down Expand Up @@ -173,7 +173,7 @@ def post_method_global_not_provided_valid(
return client_raw_response

def post_path_global_valid(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to '1234-5678-9012-3456' to succeed
Expand Down Expand Up @@ -219,7 +219,7 @@ def post_path_global_valid(
return client_raw_response

def post_swagger_global_valid(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to '1234-5678-9012-3456' to succeed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def post_method_local_valid(
self, subscription_id, custom_headers={}, raw=False, **operation_config):
self, subscription_id, custom_headers=None, raw=False, **operation_config):
"""
POST method with subscriptionId modeled in the method. pass in
subscription id = '1234-5678-9012-3456' to succeed
Expand Down Expand Up @@ -82,7 +82,7 @@ def post_method_local_valid(
return client_raw_response

def post_method_local_null(
self, subscription_id, custom_headers={}, raw=False, **operation_config):
self, subscription_id, custom_headers=None, raw=False, **operation_config):
"""
POST method with subscriptionId modeled in the method. pass in
subscription id = null, client-side validation should prevent you
Expand Down Expand Up @@ -132,7 +132,7 @@ def post_method_local_null(
return client_raw_response

def post_path_local_valid(
self, subscription_id, custom_headers={}, raw=False, **operation_config):
self, subscription_id, custom_headers=None, raw=False, **operation_config):
"""
POST method with subscriptionId modeled in the method. pass in
subscription id = '1234-5678-9012-3456' to succeed
Expand Down Expand Up @@ -181,7 +181,7 @@ def post_path_local_valid(
return client_raw_response

def post_swagger_local_valid(
self, subscription_id, custom_headers={}, raw=False, **operation_config):
self, subscription_id, custom_headers=None, raw=False, **operation_config):
"""
POST method with subscriptionId modeled in the method. pass in
subscription id = '1234-5678-9012-3456' to succeed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def get(
self, custom_headers={}, raw=False, **operation_config):
self, custom_headers=None, raw=False, **operation_config):
"""
Get method that overwrites x-ms-client-request header with value
9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
Expand Down Expand Up @@ -78,7 +78,7 @@ def get(
return client_raw_response

def param_get(
self, x_ms_client_request_id, custom_headers={}, raw=False, **operation_config):
self, x_ms_client_request_id, custom_headers=None, raw=False, **operation_config):
"""
Get method that overwrites x-ms-client-request header with value
9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def get_empty(
self, account_name, custom_headers={}, raw=False, **operation_config):
self, account_name, custom_headers=None, raw=False, **operation_config):
"""
Get a 200 to test a valid base uri
Expand Down
Loading

0 comments on commit 9f62082

Please sign in to comment.