def create_or_update(resource_group_name, service_name, sid, parameters, notify:nil, if_match:nil, custom_headers:nil)
      response = create_or_update_async(resource_group_name, service_name, sid, parameters, notify:notify, if_match:if_match, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def create_or_update(resource_group_name, service_name, sid, parameters, notify:nil, if_match:nil, custom_headers:nil)
      response = create_or_update_async(resource_group_name, service_name, sid, parameters, notify:notify, if_match:if_match, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Creates or updates the subscription of specified user to the specified
 product.

 @param resource_group_name [String] The name of the resource group.
 @param service_name [String] The name of the API Management service.
 @param sid [String] Subscription entity Identifier. The entity represents the
 association between a user and a product in API Management.
 @param parameters [SubscriptionCreateParameters] Create parameters.
 @param notify [Boolean] Notify change in Subscription State.
 - If false, do not send any email notification for change of state of
 subscription
 - If true, send email notification of change of state of subscription
 @param if_match [String] ETag of the Entity. Not required when creating an
 entity, but required when updating an entity.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [SubscriptionContract] operation results.