From 8faa5c363dbb6e7d382389d154d1d2c114e93035 Mon Sep 17 00:00:00 2001 From: Jacob Fullerton Date: Thu, 14 Sep 2023 14:24:02 -0700 Subject: [PATCH] Update V2 Ports to Labels instead of Tags (#311) Fixes # ### Changes proposed: - Updates V2 ports to use labels instead of tags - - ### Other Tasks: - [ ] If you updated the Go SDK did you update the PackageVersion in tunnels.go --- cs/src/Contracts/TunnelPortV2.cs | 2 +- go/tunnels/tunnel_port_v2.go | 2 +- go/tunnels/tunnels.go | 2 +- .../main/java/com/microsoft/tunnels/contracts/TunnelPortV2.java | 2 +- rs/src/contracts/tunnel_port_v2.rs | 2 +- ts/src/contracts/tunnelPortV2.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cs/src/Contracts/TunnelPortV2.cs b/cs/src/Contracts/TunnelPortV2.cs index 97739477..12ba42a8 100644 --- a/cs/src/Contracts/TunnelPortV2.cs +++ b/cs/src/Contracts/TunnelPortV2.cs @@ -70,7 +70,7 @@ public TunnelPortV2() [MaxLength(MaxTags)] [ArrayStringLength(TagMaxLength, MinimumLength = TagMinLength)] [ArrayRegularExpression(TagPattern)] - public string[]? Tags { get; set; } + public string[]? Labels { get; set; } /// /// Gets or sets the protocol of the tunnel port. diff --git a/go/tunnels/tunnel_port_v2.go b/go/tunnels/tunnel_port_v2.go index 9c126a43..b977fe45 100644 --- a/go/tunnels/tunnel_port_v2.go +++ b/go/tunnels/tunnel_port_v2.go @@ -24,7 +24,7 @@ type TunnelPortV2 struct { Description string `json:"description,omitempty"` // Gets or sets the tags of the port. - Tags []string `json:"tags,omitempty"` + Labels []string `json:"labels,omitempty"` // Gets or sets the protocol of the tunnel port. // diff --git a/go/tunnels/tunnels.go b/go/tunnels/tunnels.go index f98fa15b..eccea4dd 100644 --- a/go/tunnels/tunnels.go +++ b/go/tunnels/tunnels.go @@ -10,7 +10,7 @@ import ( "github.com/rodaine/table" ) -const PackageVersion = "0.0.19" +const PackageVersion = "0.0.20" func (tunnel *Tunnel) requestObject() (*Tunnel, error) { convertedTunnel := &Tunnel{ diff --git a/java/src/main/java/com/microsoft/tunnels/contracts/TunnelPortV2.java b/java/src/main/java/com/microsoft/tunnels/contracts/TunnelPortV2.java index c9ac469b..1bc04225 100644 --- a/java/src/main/java/com/microsoft/tunnels/contracts/TunnelPortV2.java +++ b/java/src/main/java/com/microsoft/tunnels/contracts/TunnelPortV2.java @@ -47,7 +47,7 @@ public class TunnelPortV2 { * Gets or sets the tags of the port. */ @Expose - public String[] tags; + public String[] labels; /** * Gets or sets the protocol of the tunnel port. diff --git a/rs/src/contracts/tunnel_port_v2.rs b/rs/src/contracts/tunnel_port_v2.rs index b5ab3256..06c3d0e3 100644 --- a/rs/src/contracts/tunnel_port_v2.rs +++ b/rs/src/contracts/tunnel_port_v2.rs @@ -31,7 +31,7 @@ pub struct TunnelPortV2 { // Gets or sets the tags of the port. #[serde(skip_serializing_if = "Vec::is_empty", default)] - pub tags: Vec, + pub labels: Vec, // Gets or sets the protocol of the tunnel port. // diff --git a/ts/src/contracts/tunnelPortV2.ts b/ts/src/contracts/tunnelPortV2.ts index 236e26d8..6f4be8ab 100644 --- a/ts/src/contracts/tunnelPortV2.ts +++ b/ts/src/contracts/tunnelPortV2.ts @@ -41,7 +41,7 @@ export interface TunnelPortV2 { /** * Gets or sets the tags of the port. */ - tags?: string[]; + labels?: string[]; /** * Gets or sets the protocol of the tunnel port.