code: public Observable<TriggerInner> beginCreateOrUpdateAsync(String deviceName, String name, String resourceGroupName, TriggerInner trigger) {
          return beginCreateOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, trigger).map(new Func1<ServiceResponse<TriggerInner>, TriggerInner>() {
              @Override
              public TriggerInner call(ServiceResponse<TriggerInner> response) {
                  return response.body();
              }
          });
      }
docs: Creates or updates a trigger.
  
  @param deviceName Creates or updates a trigger
  @param name The trigger name.
  @param resourceGroupName The resource group name.
  @param trigger The trigger.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the TriggerInner object