Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR sdk/desktopvirtualization/mgmt-v2019_12_10_preview] add resource id #3374

Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public interface SessionHost extends HasInner<SessionHostInner>, Indexable, Refr
*/
String osVersion();

/**
* @return the resourceId value.
*/
String resourceId();

/**
* @return the sessions value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ public String osVersion() {
return this.inner().osVersion();
}

@Override
public String resourceId() {
return this.inner().resourceId();
}

@Override
public Integer sessions() {
return this.inner().sessions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,17 @@ public class SessionHostInner extends ProxyResource {
private Boolean allowNewSession;

/**
* Resource Id of SessionHost's underlying virtual machine.
* Virtual Machine Id of SessionHost's underlying virtual machine.
*/
@JsonProperty(value = "properties.virtualMachineId", access = JsonProperty.Access.WRITE_ONLY)
private String virtualMachineId;

/**
* Resource Id of SessionHost's underlying virtual machine.
*/
@JsonProperty(value = "properties.resourceId", access = JsonProperty.Access.WRITE_ONLY)
private String resourceId;

/**
* User assigned to SessionHost.
*/
Expand Down Expand Up @@ -181,14 +187,23 @@ public SessionHostInner withAllowNewSession(Boolean allowNewSession) {
}

/**
* Get resource Id of SessionHost's underlying virtual machine.
* Get virtual Machine Id of SessionHost's underlying virtual machine.
*
* @return the virtualMachineId value
*/
public String virtualMachineId() {
return this.virtualMachineId;
}

/**
* Get resource Id of SessionHost's underlying virtual machine.
*
* @return the resourceId value
*/
public String resourceId() {
return this.resourceId;
}

/**
* Get user assigned to SessionHost.
*
Expand Down