com.synopsys.integration.blackduck.api.generated.view.ComponentView Maven / Gradle / Ivy
/**
* blackduck-common-api
*
* Copyright (c) 2020 Synopsys, Inc.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF 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 com.synopsys.integration.blackduck.api.generated.view;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import com.synopsys.integration.blackduck.api.core.BlackDuckView;
import com.synopsys.integration.blackduck.api.core.response.LinkMultipleResponses;
import com.synopsys.integration.blackduck.api.core.response.LinkResponse;
import com.synopsys.integration.blackduck.api.generated.enumeration.ComponentApprovalStatusType;
import com.synopsys.integration.blackduck.api.generated.enumeration.ComponentSourceType;
import com.synopsys.integration.blackduck.api.generated.view.CustomFieldView;
import com.synopsys.integration.blackduck.api.generated.view.TagView;
import com.synopsys.integration.blackduck.api.generated.view.VulnerabilityView;
import com.synopsys.integration.blackduck.api.manual.throwaway.generated.view.ComponentVersionView;
/**
* this file should not be edited - if changes are necessary, the generator should be updated, then this file should be re-created
* **/
public class ComponentView extends ComponentViewV4 {
public static final Map links = new HashMap<>();
public static final String CUSTOM_FIELDS_LINK = "custom-fields";
public static final String TAGS_LINK = "tags";
public static final String VERSIONS_LINK = "versions";
public static final String VULNERABILITIES_LINK = "vulnerabilities";
public static final LinkMultipleResponses CUSTOM_FIELDS_LINK_RESPONSE = new LinkMultipleResponses(CUSTOM_FIELDS_LINK, CustomFieldView.class);
public static final LinkMultipleResponses TAGS_LINK_RESPONSE = new LinkMultipleResponses(TAGS_LINK, TagView.class);
public static final LinkMultipleResponses VERSIONS_LINK_RESPONSE = new LinkMultipleResponses(VERSIONS_LINK, ComponentVersionView.class);
public static final LinkMultipleResponses VULNERABILITIES_LINK_RESPONSE = new LinkMultipleResponses(VULNERABILITIES_LINK, VulnerabilityView.class);
static {
links.put(CUSTOM_FIELDS_LINK, CUSTOM_FIELDS_LINK_RESPONSE);
links.put(TAGS_LINK, TAGS_LINK_RESPONSE);
links.put(VERSIONS_LINK, VERSIONS_LINK_RESPONSE);
links.put(VULNERABILITIES_LINK, VULNERABILITIES_LINK_RESPONSE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy