code: public Observable<ServiceResponse<ContainerGroupInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String containerGroupName, ContainerGroupInner containerGroup) {
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (containerGroupName == null) {
              throw new IllegalArgumentException("Parameter containerGroupName is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          if (containerGroup == null) {
              throw new IllegalArgumentException("Parameter containerGroup is required and cannot be null.");
          }
          Validator.validate(containerGroup);
          Observable<Response<ResponseBody>> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, containerGroupName, this.client.apiVersion(), containerGroup, this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<ContainerGroupInner>() { }.getType());
      }
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
  @return the observable for the request