Skip to content

Commit

Permalink
Unify resources in runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Mar 11, 2016
1 parent 5071471 commit 97b7174
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 14 deletions.

This file was deleted.

109 changes: 109 additions & 0 deletions azure-client-runtime/src/main/java/com/microsoft/azure/Resource.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/**
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
*/

package com.microsoft.azure;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Map;

/**
* The Resource model.
*/
public class Resource {
/**
* Resource Id.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String id;

/**
* Resource name.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String name;

/**
* Resource type.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String type;

/**
* Resource location.
*/
@JsonProperty(required = true)
private String location;

/**
* Resource tags.
*/
private Map<String, String> tags;

/**
* Get the id value.
*
* @return the id value
*/
public String getId() {
return this.id;
}

/**
* Get the name value.
*
* @return the name value
*/
public String getName() {
return this.name;
}

/**
* Get the type value.
*
* @return the type value
*/
public String getType() {
return this.type;
}

/**
* Get the location value.
*
* @return the location value
*/
public String getLocation() {
return this.location;
}

/**
* Set the location value.
*
* @param location the location value to set
*/
public void setLocation(String location) {
this.location = location;
}

/**
* Get the tags value.
*
* @return the tags value
*/
public Map<String, String> getTags() {
return this.tags;
}

/**
* Set the tags value.
*
* @param tags the tags value to set
*/
public void setTags(Map<String, String> tags) {
this.tags = tags;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
*/

package com.microsoft.azure;

/**
* The SubResource model.
*/
public class SubResource {
/**
* Resource Id.
*/
private String id;

/**
* Get the id value.
*
* @return the id value
*/
public String getId() {
return this.id;
}

/**
* Set the id value.
*
* @param id the id value to set
*/
public void setId(String id) {
this.id = id;
}
}

0 comments on commit 97b7174

Please sign in to comment.