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

io.fabric8.openshift.client.impl.OpenShiftOperatorHubAPIGroupClient Maven / Gradle / Ivy

There is a newer version: 7.0.1
Show newest version
/**
 * Copyright (C) 2015 Red Hat, Inc.
 *
 * 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 io.fabric8.openshift.client.impl;

import io.fabric8.kubernetes.client.dsl.MixedOperation;
import io.fabric8.kubernetes.client.dsl.NonNamespaceOperation;
import io.fabric8.kubernetes.client.dsl.Resource;
import io.fabric8.kubernetes.client.extension.ClientAdapter;
import io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.v1.PackageManifest;
import io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.v1.PackageManifestList;
import io.fabric8.openshift.api.model.operatorhub.v1.OLMConfig;
import io.fabric8.openshift.api.model.operatorhub.v1.OLMConfigList;
import io.fabric8.openshift.api.model.operatorhub.v1.Operator;
import io.fabric8.openshift.api.model.operatorhub.v1.OperatorCondition;
import io.fabric8.openshift.api.model.operatorhub.v1.OperatorConditionList;
import io.fabric8.openshift.api.model.operatorhub.v1.OperatorGroup;
import io.fabric8.openshift.api.model.operatorhub.v1.OperatorGroupList;
import io.fabric8.openshift.api.model.operatorhub.v1.OperatorList;
import io.fabric8.openshift.api.model.operatorhub.v1alpha1.CatalogSource;
import io.fabric8.openshift.api.model.operatorhub.v1alpha1.CatalogSourceList;
import io.fabric8.openshift.api.model.operatorhub.v1alpha1.ClusterServiceVersion;
import io.fabric8.openshift.api.model.operatorhub.v1alpha1.ClusterServiceVersionList;
import io.fabric8.openshift.api.model.operatorhub.v1alpha1.InstallPlan;
import io.fabric8.openshift.api.model.operatorhub.v1alpha1.InstallPlanList;
import io.fabric8.openshift.api.model.operatorhub.v1alpha1.Subscription;
import io.fabric8.openshift.api.model.operatorhub.v1alpha1.SubscriptionList;
import io.fabric8.openshift.client.dsl.OpenShiftOperatorHubAPIGroupDSL;

public class OpenShiftOperatorHubAPIGroupClient extends ClientAdapter
    implements OpenShiftOperatorHubAPIGroupDSL {

  @Override
  public MixedOperation> catalogSources() {
    return resources(CatalogSource.class, CatalogSourceList.class);
  }

  @Override
  public MixedOperation> operatorGroups() {
    return resources(OperatorGroup.class, OperatorGroupList.class);
  }

  @Override
  public MixedOperation> subscriptions() {
    return resources(Subscription.class, SubscriptionList.class);
  }

  @Override
  public MixedOperation> installPlans() {
    return resources(InstallPlan.class, InstallPlanList.class);
  }

  @Override
  public MixedOperation> clusterServiceVersions() {
    return resources(ClusterServiceVersion.class, ClusterServiceVersionList.class);
  }

  @Override
  public MixedOperation> packageManifests() {
    return resources(PackageManifest.class, PackageManifestList.class);
  }

  @Override
  public MixedOperation> operatorConditions() {
    return resources(OperatorCondition.class, OperatorConditionList.class);
  }

  @Override
  public NonNamespaceOperation> operators() {
    return resources(Operator.class, OperatorList.class);
  }

  @Override
  public NonNamespaceOperation> olmConfigs() {
    return resources(OLMConfig.class, OLMConfigList.class);
  }

  @Override
  public OpenShiftOperatorHubAPIGroupClient newInstance() {
    return new OpenShiftOperatorHubAPIGroupClient();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy