forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 11712 in Azure/azure-rest-api-specs
Merge 1ea7d1bcb17d8cffb7ac2e3a4482847d579dc7d1 into eea7c0141c0b7ad9f66f8ba06560b549c6b3b014
- Loading branch information
SDKAuto
committed
Dec 1, 2020
1 parent
33362b5
commit 86f99a3
Showing
17 changed files
with
1,270 additions
and
205 deletions.
There are no files selected for viewing
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
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
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
92 changes: 92 additions & 0 deletions
92
...in/java/com/microsoft/azure/management/resources/v2019_07_01/GenericResourceExpanded.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,92 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.resources.v2019_07_01; | ||
|
||
import com.microsoft.azure.arm.model.HasInner; | ||
import com.microsoft.azure.management.resources.v2019_07_01.implementation.GenericResourceExpandedInner; | ||
import com.microsoft.azure.arm.resources.models.HasManager; | ||
import com.microsoft.azure.management.resources.v2019_07_01.implementation.ResourcesManager; | ||
import org.joda.time.DateTime; | ||
import java.util.Map; | ||
|
||
/** | ||
* Type representing GenericResourceExpanded. | ||
*/ | ||
public interface GenericResourceExpanded extends HasInner<GenericResourceExpandedInner>, HasManager<ResourcesManager> { | ||
/** | ||
* @return the changedTime value. | ||
*/ | ||
DateTime changedTime(); | ||
|
||
/** | ||
* @return the createdTime value. | ||
*/ | ||
DateTime createdTime(); | ||
|
||
/** | ||
* @return the id value. | ||
*/ | ||
String id(); | ||
|
||
/** | ||
* @return the identity value. | ||
*/ | ||
Identity identity(); | ||
|
||
/** | ||
* @return the kind value. | ||
*/ | ||
String kind(); | ||
|
||
/** | ||
* @return the location value. | ||
*/ | ||
String location(); | ||
|
||
/** | ||
* @return the managedBy value. | ||
*/ | ||
String managedBy(); | ||
|
||
/** | ||
* @return the name value. | ||
*/ | ||
String name(); | ||
|
||
/** | ||
* @return the plan value. | ||
*/ | ||
Plan plan(); | ||
|
||
/** | ||
* @return the properties value. | ||
*/ | ||
Object properties(); | ||
|
||
/** | ||
* @return the provisioningState value. | ||
*/ | ||
String provisioningState(); | ||
|
||
/** | ||
* @return the sku value. | ||
*/ | ||
Sku sku(); | ||
|
||
/** | ||
* @return the tags value. | ||
*/ | ||
Map<String, String> tags(); | ||
|
||
/** | ||
* @return the type value. | ||
*/ | ||
String type(); | ||
|
||
} |
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
67 changes: 67 additions & 0 deletions
67
..._01/src/main/java/com/microsoft/azure/management/resources/v2019_07_01/TagOperations.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,67 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.resources.v2019_07_01; | ||
|
||
import rx.Observable; | ||
import com.microsoft.azure.management.resources.v2019_07_01.TagDetails; | ||
import rx.Completable; | ||
|
||
/** | ||
* Type representing TagOperations. | ||
*/ | ||
public interface TagOperations { | ||
/** | ||
* Gets the names and values of all resource tags that are defined in a subscription. | ||
* | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<TagDetails> listAsync(); | ||
|
||
/** | ||
* Deletes a tag from the subscription. | ||
* You must remove all values from a resource tag before you can delete it. | ||
* | ||
* @param tagName The name of the tag. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Completable deleteAsync(String tagName); | ||
|
||
/** | ||
* Creates a tag in the subscription. | ||
* The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes. | ||
* | ||
* @param tagName The name of the tag to create. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<TagDetails> createOrUpdateAsync(String tagName); | ||
|
||
/** | ||
* Deletes a tag value. | ||
* | ||
* @param tagName The name of the tag. | ||
* @param tagValue The value of the tag to delete. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Completable deleteValueAsync(String tagName, String tagValue); | ||
|
||
/** | ||
* Creates a tag value. The name of the tag must already exist. | ||
* | ||
* @param tagName The name of the tag. | ||
* @param tagValue The value of the tag to create. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<TagValue> createOrUpdateValueAsync(String tagName, String tagValue); | ||
|
||
} |
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
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
105 changes: 105 additions & 0 deletions
105
...ft/azure/management/resources/v2019_07_01/implementation/GenericResourceExpandedImpl.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,105 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.resources.v2019_07_01.implementation; | ||
|
||
import com.microsoft.azure.management.resources.v2019_07_01.GenericResourceExpanded; | ||
import com.microsoft.azure.arm.model.implementation.WrapperImpl; | ||
import rx.Observable; | ||
import org.joda.time.DateTime; | ||
import com.microsoft.azure.management.resources.v2019_07_01.Identity; | ||
import com.microsoft.azure.management.resources.v2019_07_01.Plan; | ||
import com.microsoft.azure.management.resources.v2019_07_01.Sku; | ||
import java.util.Map; | ||
|
||
class GenericResourceExpandedImpl extends WrapperImpl<GenericResourceExpandedInner> implements GenericResourceExpanded { | ||
private final ResourcesManager manager; | ||
|
||
GenericResourceExpandedImpl(GenericResourceExpandedInner inner, ResourcesManager manager) { | ||
super(inner); | ||
this.manager = manager; | ||
} | ||
|
||
@Override | ||
public ResourcesManager manager() { | ||
return this.manager; | ||
} | ||
|
||
|
||
|
||
@Override | ||
public DateTime changedTime() { | ||
return this.inner().changedTime(); | ||
} | ||
|
||
@Override | ||
public DateTime createdTime() { | ||
return this.inner().createdTime(); | ||
} | ||
|
||
@Override | ||
public String id() { | ||
return this.inner().id(); | ||
} | ||
|
||
@Override | ||
public Identity identity() { | ||
return this.inner().identity(); | ||
} | ||
|
||
@Override | ||
public String kind() { | ||
return this.inner().kind(); | ||
} | ||
|
||
@Override | ||
public String location() { | ||
return this.inner().location(); | ||
} | ||
|
||
@Override | ||
public String managedBy() { | ||
return this.inner().managedBy(); | ||
} | ||
|
||
@Override | ||
public String name() { | ||
return this.inner().name(); | ||
} | ||
|
||
@Override | ||
public Plan plan() { | ||
return this.inner().plan(); | ||
} | ||
|
||
@Override | ||
public Object properties() { | ||
return this.inner().properties(); | ||
} | ||
|
||
@Override | ||
public String provisioningState() { | ||
return this.inner().provisioningState(); | ||
} | ||
|
||
@Override | ||
public Sku sku() { | ||
return this.inner().sku(); | ||
} | ||
|
||
@Override | ||
public Map<String, String> tags() { | ||
return this.inner().getTags(); | ||
} | ||
|
||
@Override | ||
public String type() { | ||
return this.inner().type(); | ||
} | ||
|
||
} |
Oops, something went wrong.