Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.6 (Unreleased)
## 1.0.0-beta.1 (2021-08-26)

- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
3 changes: 1 addition & 2 deletions sdk/netapp/azure-resourcemanager-netapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-netapp</artifactId>
<version>1.0.0-beta.5</version>
<version>1.0.0-beta.6</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md)


## Troubleshooting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.netapp")
.append("/")
.append("1.0.0-beta.5");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package com.azure.resourcemanager.netapp.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.BackupType;
Expand All @@ -13,8 +14,9 @@
import java.time.OffsetDateTime;

/** Backup of a Volume. */
@JsonFlatten
@Fluent
public final class BackupInner extends ProxyResource {
public class BackupInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInner.class);

/*
Expand All @@ -24,10 +26,59 @@ public final class BackupInner extends ProxyResource {
private String location;

/*
* Backup Properties
* backupId UUID v4 used to identify the Backup
*/
@JsonProperty(value = "properties", required = true)
private BackupProperties innerProperties = new BackupProperties();
@JsonProperty(value = "properties.backupId", access = JsonProperty.Access.WRITE_ONLY)
private String backupId;

/*
* name The creation date of the backup
*/
@JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime creationDate;

/*
* Azure lifecycle management
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;

/*
* Size of backup
*/
@JsonProperty(value = "properties.size", access = JsonProperty.Access.WRITE_ONLY)
private Long size;

/*
* Label for backup
*/
@JsonProperty(value = "properties.label")
private String label;

/*
* backupType Type of backup Manual or Scheduled
*/
@JsonProperty(value = "properties.backupType", access = JsonProperty.Access.WRITE_ONLY)
private BackupType backupType;

/*
* Failure reason
*/
@JsonProperty(value = "properties.failureReason", access = JsonProperty.Access.WRITE_ONLY)
private String failureReason;

/*
* Volume name
*/
@JsonProperty(value = "properties.volumeName", access = JsonProperty.Access.WRITE_ONLY)
private String volumeName;

/*
* Manual backup an already existing snapshot. This will always be false
* for scheduled backups and true/false for manual backups
*/
@JsonProperty(value = "properties.useExistingSnapshot")
private Boolean useExistingSnapshot;

/**
* Get the location property: Resource location.
Expand All @@ -49,22 +100,13 @@ public BackupInner withLocation(String location) {
return this;
}

/**
* Get the innerProperties property: Backup Properties.
*
* @return the innerProperties value.
*/
private BackupProperties innerProperties() {
return this.innerProperties;
}

/**
* Get the backupId property: backupId UUID v4 used to identify the Backup.
*
* @return the backupId value.
*/
public String backupId() {
return this.innerProperties() == null ? null : this.innerProperties().backupId();
return this.backupId;
}

/**
Expand All @@ -73,7 +115,7 @@ public String backupId() {
* @return the creationDate value.
*/
public OffsetDateTime creationDate() {
return this.innerProperties() == null ? null : this.innerProperties().creationDate();
return this.creationDate;
}

/**
Expand All @@ -82,7 +124,7 @@ public OffsetDateTime creationDate() {
* @return the provisioningState value.
*/
public String provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
return this.provisioningState;
}

/**
Expand All @@ -91,7 +133,7 @@ public String provisioningState() {
* @return the size value.
*/
public Long size() {
return this.innerProperties() == null ? null : this.innerProperties().size();
return this.size;
}

/**
Expand All @@ -100,7 +142,7 @@ public Long size() {
* @return the label value.
*/
public String label() {
return this.innerProperties() == null ? null : this.innerProperties().label();
return this.label;
}

/**
Expand All @@ -110,10 +152,7 @@ public String label() {
* @return the BackupInner object itself.
*/
public BackupInner withLabel(String label) {
if (this.innerProperties() == null) {
this.innerProperties = new BackupProperties();
}
this.innerProperties().withLabel(label);
this.label = label;
return this;
}

Expand All @@ -123,7 +162,7 @@ public BackupInner withLabel(String label) {
* @return the backupType value.
*/
public BackupType backupType() {
return this.innerProperties() == null ? null : this.innerProperties().backupType();
return this.backupType;
}

/**
Expand All @@ -132,7 +171,7 @@ public BackupType backupType() {
* @return the failureReason value.
*/
public String failureReason() {
return this.innerProperties() == null ? null : this.innerProperties().failureReason();
return this.failureReason;
}

/**
Expand All @@ -141,7 +180,7 @@ public String failureReason() {
* @return the volumeName value.
*/
public String volumeName() {
return this.innerProperties() == null ? null : this.innerProperties().volumeName();
return this.volumeName;
}

/**
Expand All @@ -151,7 +190,7 @@ public String volumeName() {
* @return the useExistingSnapshot value.
*/
public Boolean useExistingSnapshot() {
return this.innerProperties() == null ? null : this.innerProperties().useExistingSnapshot();
return this.useExistingSnapshot;
}

/**
Expand All @@ -162,10 +201,7 @@ public Boolean useExistingSnapshot() {
* @return the BackupInner object itself.
*/
public BackupInner withUseExistingSnapshot(Boolean useExistingSnapshot) {
if (this.innerProperties() == null) {
this.innerProperties = new BackupProperties();
}
this.innerProperties().withUseExistingSnapshot(useExistingSnapshot);
this.useExistingSnapshot = useExistingSnapshot;
return this;
}

Expand All @@ -180,12 +216,5 @@ public void validate() {
.logExceptionAsError(
new IllegalArgumentException("Missing required property location in model BackupInner"));
}
if (innerProperties() == null) {
throw logger
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model BackupInner"));
} else {
innerProperties().validate();
}
}
}
Loading