code: public ContainerGroupInner createOrUpdate(String resourceGroupName, String containerGroupName, ContainerGroupInner containerGroup) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, containerGroupName, containerGroup).toBlocking().last().body();
      }
docs: Create or update container groups.
  Create or update container groups with specified configurations.
  
  @param resourceGroupName The name of the resource group.
  @param containerGroupName The name of the container group.
  @param containerGroup The properties of the container group to be created or updated.
  @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 ContainerGroupInner object if successful.