UploadBatchServiceLogsParameters Class
- java.
lang. Object - com.
azure. compute. batch. models. UploadBatchServiceLogsParameters
- com.
Implements
public final class UploadBatchServiceLogsParameters
implements JsonSerializable<UploadBatchServiceLogsParameters>
The Azure Batch service log files upload parameters for a Compute Node.
Constructor Summary
| Constructor | Description |
|---|---|
| UploadBatchServiceLogsParameters(String containerUrl, OffsetDateTime startTime) |
Creates an instance of Upload |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Upload |
fromJson(JsonReader jsonReader)
Reads an instance of Upload |
| String |
getContainerUrl()
Get the container |
|
Offset |
getEndTime()
Get the end |
|
Batch |
getIdentityReference()
Get the identity |
|
Offset |
getStartTime()
Get the start |
|
Upload |
setEndTime(OffsetDateTime endTime)
Set the end |
|
Upload |
setIdentityReference(BatchNodeIdentityReference identityReference)
Set the identity |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
UploadBatchServiceLogsParameters
public UploadBatchServiceLogsParameters(String containerUrl, OffsetDateTime startTime)
Creates an instance of UploadBatchServiceLogsParameters class.
Parameters:
Method Details
fromJson
public static UploadBatchServiceLogsParameters fromJson(JsonReader jsonReader)
Reads an instance of UploadBatchServiceLogsParameters from the JsonReader.
Parameters:
Returns:
Throws:
getContainerUrl
public String getContainerUrl()
Get the containerUrl property: The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). If a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified.
Returns:
getEndTime
public OffsetDateTime getEndTime()
Get the endTime property: The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime.
Returns:
getIdentityReference
public BatchNodeIdentityReference getIdentityReference()
Get the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.
Returns:
getStartTime
public OffsetDateTime getStartTime()
Get the startTime property: The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested.
Returns:
setEndTime
public UploadBatchServiceLogsParameters setEndTime(OffsetDateTime endTime)
Set the endTime property: The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime.
Parameters:
Returns:
setIdentityReference
public UploadBatchServiceLogsParameters setIdentityReference(BatchNodeIdentityReference identityReference)
Set the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.
Parameters:
Returns: