Skip to content

Commit

Permalink
update listByRegion response (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfullerton44 authored Sep 25, 2023
1 parent 87d5ddd commit c8e49d6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cs/src/Contracts/TunnelListByRegion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class TunnelListByRegion
/// List of tunnels.
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Tunnel[]? Value { get; set; }
public TunnelV2[]? Value { get; set; }

/// <summary>
/// Error detail if getting list of tunnels in the region failed.
Expand Down
2 changes: 1 addition & 1 deletion go/tunnels/tunnel_list_by_region.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type TunnelListByRegion struct {
ClusterID string `json:"clusterId,omitempty"`

// List of tunnels.
Value []Tunnel `json:"value,omitempty"`
Value []TunnelV2 `json:"value,omitempty"`

// Error detail if getting list of tunnels in the region failed.
Error *ErrorDetail `json:"error,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion go/tunnels/tunnels.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/rodaine/table"
)

const PackageVersion = "0.0.23"
const PackageVersion = "0.0.24"

func (tunnel *Tunnel) requestObject() (*Tunnel, error) {
convertedTunnel := &Tunnel{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class TunnelListByRegion {
* List of tunnels.
*/
@Expose
public Tunnel[] value;
public TunnelV2[] value;

/**
* Error detail if getting list of tunnels in the region failed.
Expand Down
4 changes: 2 additions & 2 deletions rs/src/contracts/tunnel_list_by_region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Generated from ../../../cs/src/Contracts/TunnelListByRegion.cs

use crate::contracts::ErrorDetail;
use crate::contracts::Tunnel;
use crate::contracts::TunnelV2;
use serde::{Deserialize, Serialize};

// Tunnel list by region.
Expand All @@ -18,7 +18,7 @@ pub struct TunnelListByRegion {

// List of tunnels.
#[serde(skip_serializing_if = "Vec::is_empty", default)]
pub value: Vec<Tunnel>,
pub value: Vec<TunnelV2>,

// Error detail if getting list of tunnels in the region failed.
pub error: Option<ErrorDetail>,
Expand Down
4 changes: 2 additions & 2 deletions ts/src/contracts/tunnelListByRegion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* eslint-disable */

import { ErrorDetail } from './errorDetail';
import { Tunnel } from './tunnel';
import { TunnelV2 } from './tunnelV2';

/**
* Tunnel list by region.
Expand All @@ -23,7 +23,7 @@ export interface TunnelListByRegion {
/**
* List of tunnels.
*/
value?: Tunnel[];
value?: TunnelV2[];

/**
* Error detail if getting list of tunnels in the region failed.
Expand Down

0 comments on commit c8e49d6

Please sign in to comment.