/*
 * Copyright (c) 2016 Google Inc. All Right Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.google.cloud.tools.gradle.appengine.model;

import com.google.cloud.tools.appengine.api.deploy.StageFlexibleConfiguration;

import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputFile;
import org.gradle.api.tasks.Optional;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.model.Managed;

import java.io.File;

/**
 * Model element to define Stage configurations for App Engine Flexible Environments
 */
@Managed
public interface StageFlexibleModel extends StageFlexibleConfiguration {

  @Override
  @Input
  @Optional
  File getDockerDirectory();
  void setDockerDirectory(File dockerDirectory);

  @Override
  @InputFile
  File getArtifact();
  void setArtifact(File artifact);

  @Override
  @OutputDirectory
  File getStagingDirectory();
  void setStagingDirectory(File stagingDirectory);

  @Override
  @InputFile
  File getAppEngineDirectory();
  void setAppEngineDirectory(File appEngineDirectory);
}

/*
 * Copyright (c) 2016 Google Inc. All Right Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.google.cloud.tools.gradle.appengine.model;

import com.google.cloud.tools.appengine.api.deploy.StageFlexibleConfiguration;

import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputDirectory;
import org.gradle.api.tasks.InputFile;
import org.gradle.api.tasks.Optional;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.model.Managed;

import java.io.File;

/**
 * Model element to define Stage configurations for App Engine Flexible Environments
 */
@Managed
public interface StageFlexibleModel extends StageFlexibleConfiguration {

  @Override
  @Input
  @Optional
  File getDockerDirectory();
  void setDockerDirectory(File dockerDirectory);

  @Override
  @InputFile
  File getArtifact();
  void setArtifact(File artifact);

  @Override
  @OutputDirectory
  File getStagingDirectory();
  void setStagingDirectory(File stagingDirectory);

  @Override
  @InputDirectory
  File getAppEngineDirectory();
  void setAppEngineDirectory(File appEngineDirectory);
}

change validation parameters on appengine directory (#25)