Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

feat: API Sync by GitHub Action (2023-09-05) #144

Merged
merged 3 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion equinix-openapi-metal/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/DeviceUpdateInput'
description: Facility to update
description: Device to update
required: true
responses:
"200":
Expand Down Expand Up @@ -14373,6 +14373,9 @@ components:
type: object
DedicatedPortCreateInput:
properties:
billing_account_name:
description: The billing account name of the Equinix Fabric account.
type: string
contact_email:
description: The preferred email used for communication and notifications
about the Equinix Fabric interconnection. Required when using a Project
Expand Down Expand Up @@ -14418,6 +14421,9 @@ components:
enum:
- dedicated
type: string
use_case:
description: The intended use case of the dedicated port.
type: string
required:
- metro
- name
Expand Down Expand Up @@ -14669,6 +14675,7 @@ components:
pricing: "{}"
slug: slug
distro_label: distro_label
firmware_set_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
billing_cycle: billing_cycle
customdata:
key: ""
Expand Down Expand Up @@ -14967,6 +14974,10 @@ components:
type: string
facility:
$ref: '#/components/schemas/Facility'
firmware_set_id:
description: The UUID of the firmware set to associate with the device.
format: uuid
type: string
hardware_reservation:
$ref: '#/components/schemas/HardwareReservation'
hostname:
Expand Down Expand Up @@ -15580,6 +15591,7 @@ components:
pricing: "{}"
slug: slug
distro_label: distro_label
firmware_set_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
billing_cycle: billing_cycle
customdata:
key: ""
Expand Down Expand Up @@ -16101,6 +16113,7 @@ components:
pricing: "{}"
slug: slug
distro_label: distro_label
firmware_set_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
billing_cycle: billing_cycle
customdata:
key: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**billingAccountName** | **String** | The billing account name of the Equinix Fabric account. | [optional] |
|**contactEmail** | **String** | The preferred email used for communication and notifications about the Equinix Fabric interconnection. Required when using a Project API key. Optional and defaults to the primary user email address when using a User API key. | [optional] |
|**description** | **String** | | [optional] |
|**metro** | **String** | A Metro ID or code. When creating Fabric VCs (Metal Billed), this is where interconnection will be originating from, as we pre-authorize the use of one of our shared ports as the origin of the interconnection using A-Side service tokens. We only allow local connections for Fabric VCs (Metal Billed), so the destination location must be the same as the origin. For Fabric VCs (Fabric Billed), or shared connections, this will be the destination of the interconnection. We allow remote connections for Fabric VCs (Fabric Billed), so the origin of the interconnection can be a different metro set here. | |
Expand All @@ -17,6 +18,7 @@
|**speed** | **Integer** | A interconnection speed, in bps, mbps, or gbps. For Fabric VCs, this represents the maximum speed of the interconnection. For Fabric VCs (Metal Billed), this can only be one of the following: ''50mbps'', ''200mbps'', ''500mbps'', ''1gbps'', ''2gbps'', ''5gbps'' or ''10gbps'', and is required for creation. For Fabric VCs (Fabric Billed), this field will always default to ''10gbps'' even if it is not provided. For example, ''500000000'', ''50m'', or' ''500mbps'' will all work as valid inputs. | [optional] |
|**tags** | **List<String>** | | [optional] |
|**type** | [**TypeEnum**](#TypeEnum) | When requesting for a Fabric VC, the value of this field should be 'shared'. | |
|**useCase** | **String** | The intended use case of the dedicated port. | [optional] |
|**serviceTokenType** | [**ServiceTokenTypeEnum**](#ServiceTokenTypeEnum) | Either 'a_side' or 'z_side'. Setting this field to 'a_side' will create an interconnection with Fabric VCs (Metal Billed). Setting this field to 'z_side' will create an interconnection with Fabric VCs (Fabric Billed). This is required when the 'type' is 'shared', but this is not applicable when the 'type' is 'dedicated'. This parameter is included in the specification as a developer preview and is generally unavailable. Please contact our Support team for more details. | |
|**vlans** | **List<Integer>** | A list of one or two metro-based VLANs that will be set on the virtual circuits of primary and/or secondary (if redundant) interconnections respectively when creating Fabric VCs. VLANs can also be set after the interconnection is created, but are required to fully activate the virtual circuits. | [optional] |
|**vrfs** | **List<UUID>** | This field holds a list of VRF UUIDs that will be set automatically on the virtual circuits of Fabric VCs on creation, and can hold up to two UUIDs. Two UUIDs are required when requesting redundant Fabric VCs. The first UUID will be set on the primary virtual circuit, while the second UUID will be set on the secondary. The two UUIDs can be the same if both the primary and secondary virtual circuits will be in the same VRF. This parameter is included in the specification as a developer preview and is generally unavailable. Please contact our Support team for more details. | |
Expand Down
2 changes: 2 additions & 0 deletions equinix-openapi-metal/docs/DedicatedPortCreateInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**billingAccountName** | **String** | The billing account name of the Equinix Fabric account. | [optional] |
|**contactEmail** | **String** | The preferred email used for communication and notifications about the Equinix Fabric interconnection. Required when using a Project API key. Optional and defaults to the primary user email address when using a User API key. | [optional] |
|**description** | **String** | | [optional] |
|**metro** | **String** | A Metro ID or code. For interconnections with Dedicated Ports, this will be the location of the issued Dedicated Ports. | |
Expand All @@ -17,6 +18,7 @@
|**speed** | **Integer** | A interconnection speed, in bps, mbps, or gbps. For Dedicated Ports, this can be 10Gbps or 100Gbps. | [optional] |
|**tags** | **List<String>** | | [optional] |
|**type** | [**TypeEnum**](#TypeEnum) | When requesting for a dedicated port, the value of this field should be 'dedicated'. | |
|**useCase** | **String** | The intended use case of the dedicated port. | [optional] |



Expand Down
1 change: 1 addition & 0 deletions equinix-openapi-metal/docs/Device.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
|**customdata** | **Map<String, Object>** | | [optional] |
|**description** | **String** | | [optional] |
|**facility** | [**Facility**](Facility.md) | | [optional] |
|**firmwareSetId** | **UUID** | The UUID of the firmware set to associate with the device. | [optional] |
|**hardwareReservation** | [**HardwareReservation**](HardwareReservation.md) | | [optional] |
|**hostname** | **String** | | [optional] |
|**href** | **String** | | [optional] |
Expand Down
4 changes: 2 additions & 2 deletions equinix-openapi-metal/docs/DevicesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ public class Example {

DevicesApi apiInstance = new DevicesApi(defaultClient);
UUID id = UUID.randomUUID(); // UUID | Device UUID
DeviceUpdateInput deviceUpdateInput = new DeviceUpdateInput(); // DeviceUpdateInput | Facility to update
DeviceUpdateInput deviceUpdateInput = new DeviceUpdateInput(); // DeviceUpdateInput | Device to update
List<String> include = Arrays.asList(); // List<String> | Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.
List<String> exclude = Arrays.asList(); // List<String> | Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.
try {
Expand All @@ -1388,7 +1388,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **id** | **UUID**| Device UUID | |
| **deviceUpdateInput** | [**DeviceUpdateInput**](DeviceUpdateInput.md)| Facility to update | |
| **deviceUpdateInput** | [**DeviceUpdateInput**](DeviceUpdateInput.md)| Device to update | |
| **include** | [**List&lt;String&gt;**](String.md)| Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects. | [optional] |
| **exclude** | [**List&lt;String&gt;**](String.md)| Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects. | [optional] |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2760,7 +2760,7 @@ public okhttp3.Call performActionAsync(UUID id, DeviceActionInput deviceActionIn
/**
* Build call for updateDevice
* @param id Device UUID (required)
* @param deviceUpdateInput Facility to update (required)
* @param deviceUpdateInput Device to update (required)
* @param include Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects. (optional)
* @param exclude Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects. (optional)
* @param _callback Callback for upload/download progress
Expand Down Expand Up @@ -2850,7 +2850,7 @@ private okhttp3.Call updateDeviceValidateBeforeCall(UUID id, DeviceUpdateInput d
* Update the device
* Updates the device.
* @param id Device UUID (required)
* @param deviceUpdateInput Facility to update (required)
* @param deviceUpdateInput Device to update (required)
* @param include Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects. (optional)
* @param exclude Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects. (optional)
* @return Device
Expand All @@ -2874,7 +2874,7 @@ public Device updateDevice(UUID id, DeviceUpdateInput deviceUpdateInput, List<St
* Update the device
* Updates the device.
* @param id Device UUID (required)
* @param deviceUpdateInput Facility to update (required)
* @param deviceUpdateInput Device to update (required)
* @param include Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects. (optional)
* @param exclude Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects. (optional)
* @return ApiResponse&lt;Device&gt;
Expand All @@ -2899,7 +2899,7 @@ public ApiResponse<Device> updateDeviceWithHttpInfo(UUID id, DeviceUpdateInput d
* Update the device (asynchronously)
* Updates the device.
* @param id Device UUID (required)
* @param deviceUpdateInput Facility to update (required)
* @param deviceUpdateInput Device to update (required)
* @param include Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects. (optional)
* @param exclude Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects. (optional)
* @param _callback The callback to be executed when the API call finishes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class DedicatedPortCreateInput {
public static final String SERIALIZED_NAME_BILLING_ACCOUNT_NAME = "billing_account_name";
@SerializedName(SERIALIZED_NAME_BILLING_ACCOUNT_NAME)
private String billingAccountName;

public static final String SERIALIZED_NAME_CONTACT_EMAIL = "contact_email";
@SerializedName(SERIALIZED_NAME_CONTACT_EMAIL)
private String contactEmail;
Expand Down Expand Up @@ -186,9 +190,34 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException {
@SerializedName(SERIALIZED_NAME_TYPE)
private TypeEnum type;

public static final String SERIALIZED_NAME_USE_CASE = "use_case";
@SerializedName(SERIALIZED_NAME_USE_CASE)
private String useCase;

public DedicatedPortCreateInput() {
}

public DedicatedPortCreateInput billingAccountName(String billingAccountName) {

this.billingAccountName = billingAccountName;
return this;
}

/**
* The billing account name of the Equinix Fabric account.
* @return billingAccountName
**/
@javax.annotation.Nullable
public String getBillingAccountName() {
return billingAccountName;
}


public void setBillingAccountName(String billingAccountName) {
this.billingAccountName = billingAccountName;
}


public DedicatedPortCreateInput contactEmail(String contactEmail) {

this.contactEmail = contactEmail;
Expand Down Expand Up @@ -406,6 +435,27 @@ public void setType(TypeEnum type) {
this.type = type;
}


public DedicatedPortCreateInput useCase(String useCase) {

this.useCase = useCase;
return this;
}

/**
* The intended use case of the dedicated port.
* @return useCase
**/
@javax.annotation.Nullable
public String getUseCase() {
return useCase;
}


public void setUseCase(String useCase) {
this.useCase = useCase;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -461,7 +511,8 @@ public boolean equals(Object o) {
return false;
}
DedicatedPortCreateInput dedicatedPortCreateInput = (DedicatedPortCreateInput) o;
return Objects.equals(this.contactEmail, dedicatedPortCreateInput.contactEmail) &&
return Objects.equals(this.billingAccountName, dedicatedPortCreateInput.billingAccountName) &&
Objects.equals(this.contactEmail, dedicatedPortCreateInput.contactEmail) &&
Objects.equals(this.description, dedicatedPortCreateInput.description) &&
Objects.equals(this.metro, dedicatedPortCreateInput.metro) &&
Objects.equals(this.mode, dedicatedPortCreateInput.mode) &&
Expand All @@ -470,19 +521,21 @@ public boolean equals(Object o) {
Objects.equals(this.redundancy, dedicatedPortCreateInput.redundancy) &&
Objects.equals(this.speed, dedicatedPortCreateInput.speed) &&
Objects.equals(this.tags, dedicatedPortCreateInput.tags) &&
Objects.equals(this.type, dedicatedPortCreateInput.type)&&
Objects.equals(this.type, dedicatedPortCreateInput.type) &&
Objects.equals(this.useCase, dedicatedPortCreateInput.useCase)&&
Objects.equals(this.additionalProperties, dedicatedPortCreateInput.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(contactEmail, description, metro, mode, name, project, redundancy, speed, tags, type, additionalProperties);
return Objects.hash(billingAccountName, contactEmail, description, metro, mode, name, project, redundancy, speed, tags, type, useCase, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DedicatedPortCreateInput {\n");
sb.append(" billingAccountName: ").append(toIndentedString(billingAccountName)).append("\n");
sb.append(" contactEmail: ").append(toIndentedString(contactEmail)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" metro: ").append(toIndentedString(metro)).append("\n");
Expand All @@ -493,6 +546,7 @@ public String toString() {
sb.append(" speed: ").append(toIndentedString(speed)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" useCase: ").append(toIndentedString(useCase)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -516,6 +570,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>();
openapiFields.add("billing_account_name");
openapiFields.add("contact_email");
openapiFields.add("description");
openapiFields.add("metro");
Expand All @@ -526,6 +581,7 @@ private String toIndentedString(Object o) {
openapiFields.add("speed");
openapiFields.add("tags");
openapiFields.add("type");
openapiFields.add("use_case");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
Expand Down Expand Up @@ -554,6 +610,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException {
throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString()));
}
}
if ((jsonObj.get("billing_account_name") != null && !jsonObj.get("billing_account_name").isJsonNull()) && !jsonObj.get("billing_account_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `billing_account_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("billing_account_name").toString()));
}
if ((jsonObj.get("contact_email") != null && !jsonObj.get("contact_email").isJsonNull()) && !jsonObj.get("contact_email").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `contact_email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contact_email").toString()));
}
Expand Down Expand Up @@ -582,6 +641,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException {
if (!jsonObj.get("type").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString()));
}
if ((jsonObj.get("use_case") != null && !jsonObj.get("use_case").isJsonNull()) && !jsonObj.get("use_case").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `use_case` to be a primitive type in the JSON string but got `%s`", jsonObj.get("use_case").toString()));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading