forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 10
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 23424 in Azure/azure-rest-api-specs
merging billing fix to public repo (Azure#23424) Co-authored-by: Gaurav Bang <gauravbang@microsoft.com>
- Loading branch information
SDKAuto
and
Gaurav Bang
committed
Apr 7, 2023
1 parent
bb30d8d
commit 6e94ee4
Showing
70 changed files
with
164 additions
and
3,532 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/CHANGELOG.md
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
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
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
61 changes: 61 additions & 0 deletions
61
.../com/azure/resourcemanager/newrelicobservability/models/MonitorsSwitchBillingHeaders.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,61 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.newrelicobservability.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.azure.core.http.HttpHeaderName; | ||
import com.azure.core.http.HttpHeaders; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** The MonitorsSwitchBillingHeaders model. */ | ||
@Fluent | ||
public final class MonitorsSwitchBillingHeaders { | ||
/* | ||
* The Retry-After property. | ||
*/ | ||
@JsonProperty(value = "Retry-After") | ||
private Integer retryAfter; | ||
|
||
// HttpHeaders containing the raw property values. | ||
/** | ||
* Creates an instance of MonitorsSwitchBillingHeaders class. | ||
* | ||
* @param rawHeaders The raw HttpHeaders that will be used to create the property values. | ||
*/ | ||
public MonitorsSwitchBillingHeaders(HttpHeaders rawHeaders) { | ||
String retryAfter = rawHeaders.getValue(HttpHeaderName.RETRY_AFTER); | ||
if (retryAfter != null) { | ||
this.retryAfter = Integer.parseInt(retryAfter); | ||
} | ||
} | ||
|
||
/** | ||
* Get the retryAfter property: The Retry-After property. | ||
* | ||
* @return the retryAfter value. | ||
*/ | ||
public Integer retryAfter() { | ||
return this.retryAfter; | ||
} | ||
|
||
/** | ||
* Set the retryAfter property: The Retry-After property. | ||
* | ||
* @param retryAfter the retryAfter value to set. | ||
* @return the MonitorsSwitchBillingHeaders object itself. | ||
*/ | ||
public MonitorsSwitchBillingHeaders withRetryAfter(Integer retryAfter) { | ||
this.retryAfter = retryAfter; | ||
return this; | ||
} | ||
|
||
/** | ||
* Validates the instance. | ||
* | ||
* @throws IllegalArgumentException thrown if the instance is not valid. | ||
*/ | ||
public void validate() { | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...com/azure/resourcemanager/newrelicobservability/models/MonitorsSwitchBillingResponse.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,42 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.newrelicobservability.models; | ||
|
||
import com.azure.core.http.HttpHeaders; | ||
import com.azure.core.http.HttpRequest; | ||
import com.azure.core.http.rest.ResponseBase; | ||
import com.azure.resourcemanager.newrelicobservability.fluent.models.NewRelicMonitorResourceInner; | ||
|
||
/** Contains all response data for the switchBilling operation. */ | ||
public final class MonitorsSwitchBillingResponse | ||
extends ResponseBase<MonitorsSwitchBillingHeaders, NewRelicMonitorResourceInner> { | ||
/** | ||
* Creates an instance of MonitorsSwitchBillingResponse. | ||
* | ||
* @param request the request which resulted in this MonitorsSwitchBillingResponse. | ||
* @param statusCode the status code of the HTTP response. | ||
* @param rawHeaders the raw headers of the HTTP response. | ||
* @param value the deserialized value of the HTTP response. | ||
* @param headers the deserialized headers of the HTTP response. | ||
*/ | ||
public MonitorsSwitchBillingResponse( | ||
HttpRequest request, | ||
int statusCode, | ||
HttpHeaders rawHeaders, | ||
NewRelicMonitorResourceInner value, | ||
MonitorsSwitchBillingHeaders headers) { | ||
super(request, statusCode, rawHeaders, value, headers); | ||
} | ||
|
||
/** | ||
* Gets the deserialized response body. | ||
* | ||
* @return the deserialized response body. | ||
*/ | ||
@Override | ||
public NewRelicMonitorResourceInner getValue() { | ||
return super.getValue(); | ||
} | ||
} |
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
Oops, something went wrong.