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 11649 in Azure/azure-rest-api-specs
Merge 14bc10242f30ce48f2f3c61abe44a1f458e959f9 into c3c87ff8ff2f4709a59cb7a22d0e5ae57375358f
- Loading branch information
SDKAuto
committed
Nov 15, 2020
1 parent
7f0b710
commit af70474
Showing
13 changed files
with
464 additions
and
459 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
56 changes: 56 additions & 0 deletions
56
...in/java/com/microsoft/azure/management/loganalytics/v2015_03_20/AvailableServiceTier.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,56 @@ | ||
/** | ||
* 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.loganalytics.v2015_03_20; | ||
|
||
import com.microsoft.azure.arm.model.HasInner; | ||
import com.microsoft.azure.management.loganalytics.v2015_03_20.implementation.AvailableServiceTierInner; | ||
import com.microsoft.azure.arm.resources.models.HasManager; | ||
import com.microsoft.azure.management.loganalytics.v2015_03_20.implementation.LogAnalyticsManager; | ||
import org.joda.time.DateTime; | ||
|
||
/** | ||
* Type representing AvailableServiceTier. | ||
*/ | ||
public interface AvailableServiceTier extends HasInner<AvailableServiceTierInner>, HasManager<LogAnalyticsManager> { | ||
/** | ||
* @return the capacityReservationLevel value. | ||
*/ | ||
Long capacityReservationLevel(); | ||
|
||
/** | ||
* @return the defaultRetention value. | ||
*/ | ||
Long defaultRetention(); | ||
|
||
/** | ||
* @return the enabled value. | ||
*/ | ||
Boolean enabled(); | ||
|
||
/** | ||
* @return the lastSkuUpdate value. | ||
*/ | ||
DateTime lastSkuUpdate(); | ||
|
||
/** | ||
* @return the maximumRetention value. | ||
*/ | ||
Long maximumRetention(); | ||
|
||
/** | ||
* @return the minimumRetention value. | ||
*/ | ||
Long minimumRetention(); | ||
|
||
/** | ||
* @return the serviceTier value. | ||
*/ | ||
SkuNameEnum serviceTier(); | ||
|
||
} |
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
56 changes: 56 additions & 0 deletions
56
...20/src/main/java/com/microsoft/azure/management/loganalytics/v2015_03_20/SkuNameEnum.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,56 @@ | ||
/** | ||
* 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.loganalytics.v2015_03_20; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for SkuNameEnum. | ||
*/ | ||
public final class SkuNameEnum extends ExpandableStringEnum<SkuNameEnum> { | ||
/** Static value Free for SkuNameEnum. */ | ||
public static final SkuNameEnum FREE = fromString("Free"); | ||
|
||
/** Static value Standard for SkuNameEnum. */ | ||
public static final SkuNameEnum STANDARD = fromString("Standard"); | ||
|
||
/** Static value Premium for SkuNameEnum. */ | ||
public static final SkuNameEnum PREMIUM = fromString("Premium"); | ||
|
||
/** Static value PerNode for SkuNameEnum. */ | ||
public static final SkuNameEnum PER_NODE = fromString("PerNode"); | ||
|
||
/** Static value PerGB2018 for SkuNameEnum. */ | ||
public static final SkuNameEnum PER_GB2018 = fromString("PerGB2018"); | ||
|
||
/** Static value Standalone for SkuNameEnum. */ | ||
public static final SkuNameEnum STANDALONE = fromString("Standalone"); | ||
|
||
/** Static value CapacityReservation for SkuNameEnum. */ | ||
public static final SkuNameEnum CAPACITY_RESERVATION = fromString("CapacityReservation"); | ||
|
||
/** | ||
* Creates or finds a SkuNameEnum from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding SkuNameEnum | ||
*/ | ||
@JsonCreator | ||
public static SkuNameEnum fromString(String name) { | ||
return fromString(name, SkuNameEnum.class); | ||
} | ||
|
||
/** | ||
* @return known SkuNameEnum values | ||
*/ | ||
public static Collection<SkuNameEnum> values() { | ||
return values(SkuNameEnum.class); | ||
} | ||
} |
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
...ft/azure/management/loganalytics/v2015_03_20/implementation/AvailableServiceTierImpl.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.loganalytics.v2015_03_20.implementation; | ||
|
||
import com.microsoft.azure.management.loganalytics.v2015_03_20.AvailableServiceTier; | ||
import com.microsoft.azure.arm.model.implementation.WrapperImpl; | ||
import rx.Observable; | ||
import org.joda.time.DateTime; | ||
import com.microsoft.azure.management.loganalytics.v2015_03_20.SkuNameEnum; | ||
|
||
class AvailableServiceTierImpl extends WrapperImpl<AvailableServiceTierInner> implements AvailableServiceTier { | ||
private final LogAnalyticsManager manager; | ||
|
||
AvailableServiceTierImpl(AvailableServiceTierInner inner, LogAnalyticsManager manager) { | ||
super(inner); | ||
this.manager = manager; | ||
} | ||
|
||
@Override | ||
public LogAnalyticsManager manager() { | ||
return this.manager; | ||
} | ||
|
||
|
||
|
||
@Override | ||
public Long capacityReservationLevel() { | ||
return this.inner().capacityReservationLevel(); | ||
} | ||
|
||
@Override | ||
public Long defaultRetention() { | ||
return this.inner().defaultRetention(); | ||
} | ||
|
||
@Override | ||
public Boolean enabled() { | ||
return this.inner().enabled(); | ||
} | ||
|
||
@Override | ||
public DateTime lastSkuUpdate() { | ||
return this.inner().lastSkuUpdate(); | ||
} | ||
|
||
@Override | ||
public Long maximumRetention() { | ||
return this.inner().maximumRetention(); | ||
} | ||
|
||
@Override | ||
public Long minimumRetention() { | ||
return this.inner().minimumRetention(); | ||
} | ||
|
||
@Override | ||
public SkuNameEnum serviceTier() { | ||
return this.inner().serviceTier(); | ||
} | ||
|
||
} |
Oops, something went wrong.