code: public ShareInner createOrUpdate(String deviceName, String name, String resourceGroupName, ShareInner share) {
          return createOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, share).toBlocking().last().body();
      }
docs: Creates a new share or updates an existing share on the device.
  
  @param deviceName The device name.
  @param name The share name.
  @param resourceGroupName The resource group name.
  @param share The share properties.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ShareInner object if successful.