aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/sharedresources/inputs/sharedDefinitionOutParam.yaml
blob: 778375425b8a97490147e58709251d604561e2d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
heat_template_version: 2013-05-23

description: heat template that creates PCRF Cluman stack

parameters:
      FSB_1_image:
        type: string
        label: MME_FSB1
        description: MME_FSB1_15B-CP04-r5a01
      fsb1-flavor:
        type: string
        label: FSB1_flavor
        description: FSB1_flavor
      fsb_zone:
        type: string
        label: FSB1_zone
        description: FSB1_zone
      fsb1-name:
        type: string
        label: FSB1_name
        description: FSB1_name
resources:
  server_pcm_001:
      type: OS::Nova::Server
      properties:
        name: { get_param: fsb1-name }
        flavor: { get_param: fsb1-flavor }
        availability_zone: { get_param: fsb_zone }

  server_pcm_002:
      type: OS::Nova::Server
      properties:
        name: { get_param: fsb1-name }
        flavor: { get_param: fsb1-flavor }
        availability_zone: { get_param: fsb_zone }

outputs:
    server_pcm_001_id:
         value: {get_resource: server_pcm_001}
    server_pcm_002_id:
        value: {get_resource: server_pcm_002}
    out_id1:
        value: {get_param: oam_net_gw}
    out_id2:
        value: "static value"
"kd">static final String ENTITY_TYPE; static { ENTITY_TYPE = "Vendor Software Product Service artifact"; } @PartitionKey @Column(name = "vsp_id") public String id; @PartitionKey(value = 1) @Frozen public Version version; @ClusteringColumn @Column(name = "name") public String name; @Column(name = "content_data") public ByteBuffer contentData; public EnrichedServiceArtifactEntity() { } /** * Instantiates a new Enriched service artifact entity. * * @param entity the entity */ public EnrichedServiceArtifactEntity(ServiceArtifact entity) { this.id = entity.getVspId(); this.version = entity.getVersion(); this.name = entity.getName(); try { this.contentData = ByteBuffer.wrap(ByteStreams.toByteArray(entity.getContent())); } catch (IOException ioException) { throw new RuntimeException(ioException); } } @Override public String getEntityType() { return ENTITY_TYPE; } @Override public String getFirstClassCitizenId() { return getId(); } public String getId() { return id; } public void setId(String id) { this.id = id; } @Override public Version getVersion() { return version; } @Override public void setVersion(Version version) { this.version = version; } public String getName() { return name; } public void setName(String name) { this.name = name; } public ByteBuffer getContentData() { return contentData; } public void setContentData(ByteBuffer contentData) { this.contentData = contentData; } /** * Gets service artifact. * * @return the service artifact */ public ServiceArtifact getServiceArtifact() { ServiceArtifact serviceArtifact = new ServiceArtifact(); serviceArtifact.setName(this.getName()); serviceArtifact.setVersion(this.getVersion()); serviceArtifact.setContentData(this.getContentData().array()); serviceArtifact.setVspId(this.getId()); return serviceArtifact; } }