Skip to content

Commit

Permalink
regen storage (#20487)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored and benbp committed Apr 28, 2021
1 parent 9a003dc commit 58993c5
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.azure.resourcemanager.storage.models.ExtendedLocation;
import com.azure.resourcemanager.storage.models.GeoReplicationStats;
import com.azure.resourcemanager.storage.models.Identity;
import com.azure.resourcemanager.storage.models.KeyCreationTime;
import com.azure.resourcemanager.storage.models.KeyPolicy;
import com.azure.resourcemanager.storage.models.Kind;
import com.azure.resourcemanager.storage.models.LargeFileSharesState;
Expand Down Expand Up @@ -140,10 +141,10 @@ public class StorageAccountInner extends Resource {
private KeyPolicy keyPolicy;

/*
* Gets the list of storage account keys creation time.
* Storage account keys creation time.
*/
@JsonProperty(value = "properties.keyCreationTime", access = JsonProperty.Access.WRITE_ONLY)
private Map<String, OffsetDateTime> keyCreationTime;
private KeyCreationTime keyCreationTime;

/*
* Gets the URLs that are used to perform a retrieval of a public blob,
Expand Down Expand Up @@ -425,11 +426,11 @@ public KeyPolicy keyPolicy() {
}

/**
* Get the keyCreationTime property: Gets the list of storage account keys creation time.
* Get the keyCreationTime property: Storage account keys creation time.
*
* @return the keyCreationTime value.
*/
public Map<String, OffsetDateTime> keyCreationTime() {
public KeyCreationTime keyCreationTime() {
return this.keyCreationTime;
}

Expand Down Expand Up @@ -747,6 +748,9 @@ public void validate() {
if (keyPolicy() != null) {
keyPolicy().validate();
}
if (keyCreationTime() != null) {
keyCreationTime().validate();
}
if (secondaryEndpoints() != null) {
secondaryEndpoints().validate();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** Storage account keys creation time. */
@Fluent
public final class KeyCreationTime {
@JsonIgnore private final ClientLogger logger = new ClientLogger(KeyCreationTime.class);

/*
* The key1 property.
*/
@JsonProperty(value = "key1")
private OffsetDateTime key1;

/*
* The key2 property.
*/
@JsonProperty(value = "key2")
private OffsetDateTime key2;

/**
* Get the key1 property: The key1 property.
*
* @return the key1 value.
*/
public OffsetDateTime key1() {
return this.key1;
}

/**
* Set the key1 property: The key1 property.
*
* @param key1 the key1 value to set.
* @return the KeyCreationTime object itself.
*/
public KeyCreationTime withKey1(OffsetDateTime key1) {
this.key1 = key1;
return this;
}

/**
* Get the key2 property: The key2 property.
*
* @return the key2 value.
*/
public OffsetDateTime key2() {
return this.key2;
}

/**
* Set the key2 property: The key2 property.
*
* @param key2 the key2 value to set.
* @return the KeyCreationTime object itself.
*/
public KeyCreationTime withKey2(OffsetDateTime key2) {
this.key2 = key2;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}

0 comments on commit 58993c5

Please sign in to comment.