code: public Observable<ServiceResponse<GenericResourceInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, GenericResourceInner parameters) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (resourceProviderNamespace == null) {
              throw new IllegalArgumentException("Parameter resourceProviderNamespace is required and cannot be null.");
          }
          if (parentResourcePath == null) {
              throw new IllegalArgumentException("Parameter parentResourcePath is required and cannot be null.");
          }
          if (resourceType == null) {
              throw new IllegalArgumentException("Parameter resourceType is required and cannot be null.");
          }
          if (resourceName == null) {
              throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (apiVersion == null) {
              throw new IllegalArgumentException("Parameter apiVersion is required and cannot be null.");
          }
          if (parameters == null) {
              throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
          }
          Validator.validate(parameters);
          Observable<Response<ResponseBody>> observable = service.createOrUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, this.client.subscriptionId(), apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<GenericResourceInner>() { }.getType());
      }
docs: Creates a resource.
  
  @param resourceGroupName The name of the resource group for the resource. The name is case insensitive.
  @param resourceProviderNamespace The namespace of the resource provider.
  @param parentResourcePath The parent resource identity.
  @param resourceType The resource type of the resource to create.
  @param resourceName The name of the resource to create.
  @param apiVersion The API version to use for the operation.
  @param parameters Parameters for creating or updating the resource.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request