Skip to content

Commit

Permalink
feat: API Sync by GitHub Action for @ctreatma (#10)
Browse files Browse the repository at this point in the history
This API Sync PR was triggered by @ctreatma through [GitHub Actions
workflow_displatch](https://github.com/equinix/equinix-sdk-go/actions?query=event%3Aworkflow_dispatch)
on 2023-12-13.

* latest Swagger is fetched
* patches have been applied
* generated client has been updated
  • Loading branch information
ctreatma committed Dec 15, 2023
2 parents 7761acf + e91a21b commit 8096b49
Show file tree
Hide file tree
Showing 22 changed files with 333 additions and 88 deletions.
1 change: 1 addition & 0 deletions services/metalv1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ Class | Method | HTTP request | Description
- [VlanFabricVcCreateInputServiceTokenType](docs/VlanFabricVcCreateInputServiceTokenType.md)
- [VlanFabricVcCreateInputType](docs/VlanFabricVcCreateInputType.md)
- [VlanVirtualCircuit](docs/VlanVirtualCircuit.md)
- [VlanVirtualCircuitBillType](docs/VlanVirtualCircuitBillType.md)
- [VlanVirtualCircuitCreateInput](docs/VlanVirtualCircuitCreateInput.md)
- [VlanVirtualCircuitStatus](docs/VlanVirtualCircuitStatus.md)
- [VlanVirtualCircuitType](docs/VlanVirtualCircuitType.md)
Expand Down
20 changes: 20 additions & 0 deletions services/metalv1/api_devices.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions services/metalv1/docs/DevicesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ Name | Type | Description | Notes

## FindOrganizationDevices

> DeviceList FindOrganizationDevices(ctx, id).Search(search).Categories(categories).Facility(facility).Hostname(hostname).Reserved(reserved).Tag(tag).Type_(type_).HasTerminationTime(hasTerminationTime).Include(include).Exclude(exclude).Page(page).PerPage(perPage).Execute()
> DeviceList FindOrganizationDevices(ctx, id).Search(search).Categories(categories).Facility(facility).Hostname(hostname).Reserved(reserved).Tag(tag).Type_(type_).HasTerminationTime(hasTerminationTime).MacAddress(macAddress).Include(include).Exclude(exclude).Page(page).PerPage(perPage).Execute()
Retrieve all devices of an organization

Expand Down Expand Up @@ -925,14 +925,15 @@ func main() {
tag := "tag_example" // string | Filter by device tag (optional)
type_ := "type__example" // string | Filter by instance type (ondemand,spot,reserved) (optional)
hasTerminationTime := true // bool | Filter only instances marked for termination. When set to true, only include instances that have a termination time. When set to false, only include instances that do not have a termination time. (optional)
macAddress := "macAddress_example" // string | Filter by MAC address (optional)
include := []string{"Inner_example"} // []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. (optional)
exclude := []string{"Inner_example"} // []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. (optional)
page := int32(56) // int32 | Page to return (optional) (default to 1)
perPage := int32(56) // int32 | Items returned per page (optional) (default to 10)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DevicesApi.FindOrganizationDevices(context.Background(), id).Search(search).Categories(categories).Facility(facility).Hostname(hostname).Reserved(reserved).Tag(tag).Type_(type_).HasTerminationTime(hasTerminationTime).Include(include).Exclude(exclude).Page(page).PerPage(perPage).Execute()
resp, r, err := apiClient.DevicesApi.FindOrganizationDevices(context.Background(), id).Search(search).Categories(categories).Facility(facility).Hostname(hostname).Reserved(reserved).Tag(tag).Type_(type_).HasTerminationTime(hasTerminationTime).MacAddress(macAddress).Include(include).Exclude(exclude).Page(page).PerPage(perPage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DevicesApi.FindOrganizationDevices``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand Down Expand Up @@ -966,6 +967,7 @@ Name | Type | Description | Notes
**tag** | **string** | Filter by device tag |
**type_** | **string** | Filter by instance type (ondemand,spot,reserved) |
**hasTerminationTime** | **bool** | Filter only instances marked for termination. When set to true, only include instances that have a termination time. When set to false, only include instances that do not have a termination time. |
**macAddress** | **string** | Filter by MAC address |
**include** | **[]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. |
**exclude** | **[]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. |
**page** | **int32** | Page to return | [default to 1]
Expand All @@ -991,7 +993,7 @@ Name | Type | Description | Notes

## FindProjectDevices

> DeviceList FindProjectDevices(ctx, id).Search(search).Categories(categories).Facility(facility).Metro(metro).Hostname(hostname).Reserved(reserved).Tag(tag).Type_(type_).HasTerminationTime(hasTerminationTime).Include(include).Exclude(exclude).Page(page).PerPage(perPage).Execute()
> DeviceList FindProjectDevices(ctx, id).Search(search).Categories(categories).Facility(facility).Metro(metro).Hostname(hostname).Reserved(reserved).Tag(tag).Type_(type_).HasTerminationTime(hasTerminationTime).MacAddress(macAddress).Include(include).Exclude(exclude).Page(page).PerPage(perPage).Execute()
Retrieve all devices of a project

Expand Down Expand Up @@ -1021,14 +1023,15 @@ func main() {
tag := "tag_example" // string | Filter by device tag (optional)
type_ := "type__example" // string | Filter by instance type (ondemand,spot,reserved) (optional)
hasTerminationTime := true // bool | Filter only instances marked for termination. When set to true, only include instances that have a termination time. When set to false, only include instances that do not have a termination time. (optional)
macAddress := "macAddress_example" // string | Filter by MAC address (optional)
include := []string{"Inner_example"} // []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. (optional)
exclude := []string{"Inner_example"} // []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. (optional)
page := int32(56) // int32 | Page to return (optional) (default to 1)
perPage := int32(56) // int32 | Items returned per page (optional) (default to 10)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DevicesApi.FindProjectDevices(context.Background(), id).Search(search).Categories(categories).Facility(facility).Metro(metro).Hostname(hostname).Reserved(reserved).Tag(tag).Type_(type_).HasTerminationTime(hasTerminationTime).Include(include).Exclude(exclude).Page(page).PerPage(perPage).Execute()
resp, r, err := apiClient.DevicesApi.FindProjectDevices(context.Background(), id).Search(search).Categories(categories).Facility(facility).Metro(metro).Hostname(hostname).Reserved(reserved).Tag(tag).Type_(type_).HasTerminationTime(hasTerminationTime).MacAddress(macAddress).Include(include).Exclude(exclude).Page(page).PerPage(perPage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DevicesApi.FindProjectDevices``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand Down Expand Up @@ -1063,6 +1066,7 @@ Name | Type | Description | Notes
**tag** | **string** | Filter by device tag |
**type_** | **string** | Filter by instance type (ondemand,spot,reserved) |
**hasTerminationTime** | **bool** | Filter only instances marked for termination. When set to true, only include instances that have a termination time. When set to false, only include instances that do not have a termination time. |
**macAddress** | **string** | Filter by MAC address |
**include** | **[]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. |
**exclude** | **[]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. |
**page** | **int32** | Page to return | [default to 1]
Expand Down
26 changes: 0 additions & 26 deletions services/metalv1/docs/InterconnectionUpdateInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Mode** | Pointer to [**InterconnectionMode**](InterconnectionMode.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Redundancy** | Pointer to **string** | Updating from 'redundant' to 'primary' will remove a secondary port, while updating from 'primary' to 'redundant' will add one. | [optional]
**Tags** | Pointer to **[]string** | | [optional]

## Methods
Expand Down Expand Up @@ -130,31 +129,6 @@ SetName sets Name field to given value.

HasName returns a boolean if a field has been set.

### GetRedundancy

`func (o *InterconnectionUpdateInput) GetRedundancy() string`

GetRedundancy returns the Redundancy field if non-nil, zero value otherwise.

### GetRedundancyOk

`func (o *InterconnectionUpdateInput) GetRedundancyOk() (*string, bool)`

GetRedundancyOk returns a tuple with the Redundancy field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetRedundancy

`func (o *InterconnectionUpdateInput) SetRedundancy(v string)`

SetRedundancy sets Redundancy field to given value.

### HasRedundancy

`func (o *InterconnectionUpdateInput) HasRedundancy() bool`

HasRedundancy returns a boolean if a field has been set.

### GetTags

`func (o *InterconnectionUpdateInput) GetTags() []string`
Expand Down
36 changes: 36 additions & 0 deletions services/metalv1/docs/VirtualCircuit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Bill** | Pointer to **bool** | True if the Virtual Circuit is being billed. Currently, only Virtual Circuits of Fabric VCs (Metal Billed) will be billed. Usage will start the first time the Virtual Circuit becomes active, and will not stop until it is deleted from Metal. | [optional] [default to false]
**BillType** | Pointer to [**NullableVlanVirtualCircuitBillType**](VlanVirtualCircuitBillType.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Id** | Pointer to **string** | | [optional]
**Name** | Pointer to **string** | | [optional]
Expand Down Expand Up @@ -70,6 +71,41 @@ SetBill sets Bill field to given value.

HasBill returns a boolean if a field has been set.

### GetBillType

`func (o *VirtualCircuit) GetBillType() VlanVirtualCircuitBillType`

GetBillType returns the BillType field if non-nil, zero value otherwise.

### GetBillTypeOk

`func (o *VirtualCircuit) GetBillTypeOk() (*VlanVirtualCircuitBillType, bool)`

GetBillTypeOk returns a tuple with the BillType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetBillType

`func (o *VirtualCircuit) SetBillType(v VlanVirtualCircuitBillType)`

SetBillType sets BillType field to given value.

### HasBillType

`func (o *VirtualCircuit) HasBillType() bool`

HasBillType returns a boolean if a field has been set.

### SetBillTypeNil

`func (o *VirtualCircuit) SetBillTypeNil(b bool)`

SetBillTypeNil sets the value for BillType to be an explicit nil

### UnsetBillType
`func (o *VirtualCircuit) UnsetBillType()`

UnsetBillType ensures that no value is present for BillType, not even an explicit nil
### GetDescription

`func (o *VirtualCircuit) GetDescription() string`
Expand Down
36 changes: 36 additions & 0 deletions services/metalv1/docs/VlanVirtualCircuit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Bill** | Pointer to **bool** | True if the Virtual Circuit is being billed. Currently, only Virtual Circuits of Fabric VCs (Metal Billed) will be billed. Usage will start the first time the Virtual Circuit becomes active, and will not stop until it is deleted from Metal. | [optional] [default to false]
**BillType** | Pointer to [**NullableVlanVirtualCircuitBillType**](VlanVirtualCircuitBillType.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Id** | Pointer to **string** | | [optional]
**Name** | Pointer to **string** | | [optional]
Expand Down Expand Up @@ -64,6 +65,41 @@ SetBill sets Bill field to given value.

HasBill returns a boolean if a field has been set.

### GetBillType

`func (o *VlanVirtualCircuit) GetBillType() VlanVirtualCircuitBillType`

GetBillType returns the BillType field if non-nil, zero value otherwise.

### GetBillTypeOk

`func (o *VlanVirtualCircuit) GetBillTypeOk() (*VlanVirtualCircuitBillType, bool)`

GetBillTypeOk returns a tuple with the BillType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetBillType

`func (o *VlanVirtualCircuit) SetBillType(v VlanVirtualCircuitBillType)`

SetBillType sets BillType field to given value.

### HasBillType

`func (o *VlanVirtualCircuit) HasBillType() bool`

HasBillType returns a boolean if a field has been set.

### SetBillTypeNil

`func (o *VlanVirtualCircuit) SetBillTypeNil(b bool)`

SetBillTypeNil sets the value for BillType to be an explicit nil

### UnsetBillType
`func (o *VlanVirtualCircuit) UnsetBillType()`

UnsetBillType ensures that no value is present for BillType, not even an explicit nil
### GetDescription

`func (o *VlanVirtualCircuit) GetDescription() string`
Expand Down
13 changes: 13 additions & 0 deletions services/metalv1/docs/VlanVirtualCircuitBillType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# VlanVirtualCircuitBillType

## Enum


* `METAL_BILLED` (value: `"metal_billed"`)

* `FABRIC_BILLED` (value: `"fabric_billed"`)


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


48 changes: 5 additions & 43 deletions services/metalv1/model_interconnection_update_input.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8096b49

Please sign in to comment.