Skip to content

Commit 62dab4a

Browse files
committed
[VMware] Full OVF properties support
1 parent f38db8a commit 62dab4a

File tree

130 files changed

+5299
-1744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+5299
-1744
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
//
2+
// Licensed to the Apache Software Foundation (ASF) under one
3+
// or more contributor license agreements. See the NOTICE file
4+
// distributed with this work for additional information
5+
// regarding copyright ownership. The ASF licenses this file
6+
// to you under the Apache License, Version 2.0 (the
7+
// "License"); you may not use this file except in compliance
8+
// with the License. You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing,
13+
// software distributed under the License is distributed on an
14+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
// KIND, either express or implied. See the License for the
16+
// specific language governing permissions and limitations
17+
// under the License.
18+
//
19+
package com.cloud.agent.api.storage;
20+
21+
import java.util.List;
22+
23+
public class OVFConfigurationTO {
24+
25+
private final String id;
26+
private final String label;
27+
private final String description;
28+
private List<OVFVirtualHardwareItemTO> hardwareItems;
29+
private int index;
30+
31+
public OVFConfigurationTO(String id, String label, String description, int index) {
32+
this.id = id;
33+
this.label = label;
34+
this.description = description;
35+
this.index = index;
36+
}
37+
38+
public String getId() {
39+
return id;
40+
}
41+
42+
public String getLabel() {
43+
return label;
44+
}
45+
46+
public String getDescription() {
47+
return description;
48+
}
49+
50+
public void setHardwareItems(List<OVFVirtualHardwareItemTO> items) {
51+
this.hardwareItems = items;
52+
}
53+
54+
public List<OVFVirtualHardwareItemTO> getHardwareItems() {
55+
return hardwareItems;
56+
}
57+
58+
public int getIndex() {
59+
return index;
60+
}
61+
}

api/src/main/java/com/cloud/agent/api/storage/OVFProperty.java renamed to api/src/main/java/com/cloud/agent/api/storage/OVFEulaSectionTO.java

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,36 @@
1616
// specific language governing permissions and limitations
1717
// under the License.
1818
//
19-
2019
package com.cloud.agent.api.storage;
2120

22-
public interface OVFProperty {
21+
import com.cloud.agent.api.LogLevel;
22+
23+
import java.io.Serializable;
24+
25+
/**
26+
* End-user licence agreement
27+
*/
28+
public class OVFEulaSectionTO implements Serializable {
29+
private String info;
30+
@LogLevel(LogLevel.Log4jLevel.Off)
31+
private byte[] compressedLicense;
32+
private int index;
33+
34+
public OVFEulaSectionTO(String info, byte[] license, int eulaIndex) {
35+
this.info = info;
36+
this.compressedLicense = license;
37+
this.index = eulaIndex;
38+
}
39+
40+
public String getInfo() {
41+
return this.info;
42+
}
43+
44+
public byte[] getCompressedLicense() {
45+
return this.compressedLicense;
46+
}
2347

24-
Long getTemplateId();
25-
String getKey();
26-
String getType();
27-
String getValue();
28-
String getQualifiers();
29-
Boolean isUserConfigurable();
30-
String getLabel();
31-
String getDescription();
32-
Boolean isPassword();
33-
}
48+
public int getIndex() {
49+
return index;
50+
}
51+
}

0 commit comments

Comments
 (0)