forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5071471
commit 97b7174
Showing
3 changed files
with
145 additions
and
14 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
azure-client-runtime/src/main/java/com/microsoft/azure/BaseResource.java
This file was deleted.
Oops, something went wrong.
109 changes: 109 additions & 0 deletions
109
azure-client-runtime/src/main/java/com/microsoft/azure/Resource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
azure-client-runtime/src/main/java/com/microsoft/azure/SubResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |