All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jclouds.googlecompute.features.OperationApi Maven / Gradle / Ivy

/*
 * Licensed to jclouds, Inc. (jclouds) under one or more
 * contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  jclouds licenses this file
 * to you 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 org.jclouds.googlecompute.features;

import org.jclouds.collect.PagedIterable;
import org.jclouds.googlecompute.domain.ListPage;
import org.jclouds.googlecompute.domain.Operation;
import org.jclouds.googlecompute.options.ListOptions;
import org.jclouds.javax.annotation.Nullable;

/**
 * Provides synchronous access to Operations via their REST API.
 * 

* * @author David Alves * @see */ public interface OperationApi { /** * Retrieves the specified operation resource. * * @param operationName name of the operation resource to return. * @return If successful, this method returns an Operation resource */ public Operation get(String operationName); /** * Deletes the specified operation resource. * * @param operationName name of the operation resource to delete. */ public void delete(String operationName); /** * @see OperationApi#listAtMarker(String, org.jclouds.googlecompute.options.ListOptions) */ public ListPage listFirstPage(); /** * @see OperationApi#listAtMarker(String, org.jclouds.googlecompute.options.ListOptions) */ public ListPage listAtMarker(@Nullable String marker); /** * Retrieves the listFirstPage of operation resources contained within the specified project. * By default the listFirstPage as a maximum size of 100, if no options are provided or ListOptions#getMaxResults() * has not been set. * * @param marker marks the beginning of the next list page * @param listOptions listing options * @return a page of the list, starting at marker * @see ListOptions * @see org.jclouds.googlecompute.domain.ListPage */ public ListPage listAtMarker(@Nullable String marker, ListOptions listOptions); /** * @see OperationApi#list(org.jclouds.googlecompute.options.ListOptions) */ public PagedIterable list(); /** * A paged version of OperationApi#listFirstPage() * * @return a Paged, Fluent Iterable that is able to fetch additional pages when required * @see PagedIterable * @see OperationApi#listAtMarker(String, org.jclouds.googlecompute.options.ListOptions) */ public PagedIterable list(ListOptions listOptions); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy