original_docstring: Creates or updates a NamedValue.
  
          :param resource_group_name: The name of the resource group.
          :type resource_group_name: str
          :param service_name: The name of the API Management service.
          :type service_name: str
          :param named_value_id: Identifier of the NamedValue.
          :type named_value_id: str
          :param parameters: Create parameters.
          :type parameters:
           ~azure.mgmt.apimanagement.models.NamedValueCreateContract
          :param if_match: ETag of the Entity. Not required when creating an
           entity, but required when updating an entity.
          :type if_match: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: The poller return type is ClientRawResponse, the
           direct response alongside the deserialized response
          :param polling: True for ARMPolling, False for no polling, or a
           polling object for personal polling strategy
          :return: An instance of LROPoller that returns NamedValueContract or
           ClientRawResponse<NamedValueContract> if raw==True
          :rtype:
           ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.NamedValueContract]
           or
           ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.NamedValueContract]]
          :raises:
           :class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
          
docstring: Creates or updates a NamedValue.
docstring_tokens: Creates or updates a NamedValue .
code: def create_or_update(
              self, resource_group_name, service_name, named_value_id, parameters, if_match=None, custom_headers=None, raw=False, polling=True, **operation_config):
          """Creates or updates a NamedValue.
  
          :param resource_group_name: The name of the resource group.
          :type resource_group_name: str
          :param service_name: The name of the API Management service.
          :type service_name: str
          :param named_value_id: Identifier of the NamedValue.
          :type named_value_id: str
          :param parameters: Create parameters.
          :type parameters:
           ~azure.mgmt.apimanagement.models.NamedValueCreateContract
          :param if_match: ETag of the Entity. Not required when creating an
           entity, but required when updating an entity.
          :type if_match: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: The poller return type is ClientRawResponse, the
           direct response alongside the deserialized response
          :param polling: True for ARMPolling, False for no polling, or a
           polling object for personal polling strategy
          :return: An instance of LROPoller that returns NamedValueContract or
           ClientRawResponse<NamedValueContract> if raw==True
          :rtype:
           ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.NamedValueContract]
           or
           ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.NamedValueContract]]
          :raises:
           :class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
          """
          raw_result = self._create_or_update_initial(
              resource_group_name=resource_group_name,
              service_name=service_name,
              named_value_id=named_value_id,
              parameters=parameters,
              if_match=if_match,
              custom_headers=custom_headers,
              raw=True,
              **operation_config
          )
  
          def get_long_running_output(response):
              header_dict = {
                  'ETag': 'str',
              }
              deserialized = self._deserialize('NamedValueContract', response)
  
              if raw:
                  client_raw_response = ClientRawResponse(deserialized, response)
                  client_raw_response.add_headers(header_dict)
                  return client_raw_response
  
              return deserialized
  
          lro_delay = operation_config.get(
              'long_running_operation_timeout',
              self.config.long_running_operation_timeout)
          if polling is True: polling_method = ARMPolling(lro_delay, **operation_config)
          elif polling is False: polling_method = NoPolling()
          else: polling_method = polling
          return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
code_tokens: def create_or_update ( self , resource_group_name , service_name , named_value_id , parameters , if_match = None , custom_headers = None , raw = False , polling = True , ** operation_config ) : raw_result = self . _create_or_update_initial ( resource_group_name = resource_group_name , service_name = service_name , named_value_id = named_value_id , parameters = parameters , if_match = if_match , custom_headers = custom_headers , raw = True , ** operation_config ) def get_long_running_output ( response ) : header_dict = { 'ETag' : 'str' , } deserialized = self . _deserialize ( 'NamedValueContract' , response ) if raw : client_raw_response = ClientRawResponse ( deserialized , response ) client_raw_response . add_headers ( header_dict ) return client_raw_response return deserialized lro_delay = operation_config . get ( 'long_running_operation_timeout' , self . config . long_running_operation_timeout ) if polling is True : polling_method = ARMPolling ( lro_delay , ** operation_config ) elif polling is False : polling_method = NoPolling ( ) else : polling_method = polling return LROPoller ( self . _client , raw_result , get_long_running_output , polling_method )
short_docstring: Creates or updates a NamedValue.
short_docstring_tokens: Creates or updates a NamedValue .
comment: """Creates or updates a NamedValue.
  
          :param resource_group_name: The name of the resource group.
          :type resource_group_name: str
          :param service_name: The name of the API Management service.
          :type service_name: str
          :param named_value_id: Identifier of the NamedValue.
          :type named_value_id: str
          :param parameters: Create parameters.
          :type parameters:
           ~azure.mgmt.apimanagement.models.NamedValueCreateContract
          :param if_match: ETag of the Entity. Not required when creating an
           entity, but required when updating an entity.
          :type if_match: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: The poller return type is ClientRawResponse, the
           direct response alongside the deserialized response
          :param polling: True for ARMPolling, False for no polling, or a
           polling object for personal polling strategy
          :return: An instance of LROPoller that returns NamedValueContract or
           ClientRawResponse<NamedValueContract> if raw==True
          :rtype:
           ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.NamedValueContract]
           or
           ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.NamedValueContract]]
          :raises:
           :class:`ErrorResponseException<azure.mgmt.apimanagement.models.ErrorResponseException>`
          """