From 8b01f9b5c05d27544214eb648384150c53c2b994 Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Wed, 25 Apr 2018 15:42:03 -0700 Subject: [PATCH 01/16] Added enableSoftDelete, DeletedVault, and Purge to method group --- .../management/keyvault/AccessPolicy.java | 41 ++++++++++- .../management/keyvault/DeletedVault.java | 21 ++++++ .../azure/management/keyvault/Vault.java | 53 ++++++++++++++ .../azure/management/keyvault/Vaults.java | 40 ++++++++++- .../implementation/AccessPolicyImpl.java | 22 ++++-- .../implementation/DeletedVaultImpl.java | 25 +++++++ .../keyvault/implementation/SecretsImpl.java | 2 +- .../keyvault/implementation/VaultImpl.java | 44 +++++++++++- .../keyvault/implementation/VaultsImpl.java | 44 +++++++++++- .../azure/management/keyvault/VaultTests.java | 69 +++++++++++++++++-- 10 files changed, 346 insertions(+), 15 deletions(-) create mode 100644 azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java create mode 100644 azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java index 098771aa202..2816b668fe4 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java @@ -17,6 +17,7 @@ import com.microsoft.azure.management.resources.fluentcore.model.Settable; import java.util.List; +import java.util.UUID; /** * An immutable client-side representation of a key vault access policy. @@ -29,7 +30,7 @@ public interface AccessPolicy extends * @return The Azure Active Directory tenant ID that should be used for * authenticating requests to the key vault. */ - String tenantId(); + UUID tenantId(); /** * @return The object ID of a user or service principal in the Azure Active @@ -40,7 +41,7 @@ public interface AccessPolicy extends /** * @return Application ID of the client making request on behalf of a principal. */ - String applicationId(); + UUID applicationId(); /** * @return Permissions the identity has for keys and secrets. @@ -92,7 +93,7 @@ interface WithIdentity { * @return the next stage of access policy definition */ WithAttach forUser(ActiveDirectoryUser user); - + /** * Specifies the Active Directory user this access policy is for. * @@ -100,6 +101,23 @@ interface WithIdentity { * @return the next stage of access policy definition */ WithAttach forUser(String userPrincipalName); + + /** + * Application ID of the client making request on behalf of a principal. + * + * @param applicationId the application ID + * @return the next stage of access policy definition + */ + WithAttach forApplicationId(UUID applicationId); + + /** + * Specifies the Azure Active Directory tenant ID that should be used for + * authenticating requests to the key vault. + * + * @param tenantId the tenant ID for the key vault. + * @return the next stage of access policy definition + */ + WithAttach forTenantId(UUID tenantId); /** * Specifies the Active Directory group this access policy is for. @@ -266,6 +284,23 @@ interface WithIdentity { * @return the next stage of access policy definition */ WithAttach forUser(String userPrincipalName); + + /** + * Application ID of the client making request on behalf of a principal. + * + * @param applicationId the application ID + * @return the next stage of access policy definition + */ + WithAttach forApplicationId(UUID applicationId); + + /** + * Specifies the Azure Active Directory tenant ID that should be used for + * authenticating requests to the key vault. + * + * @param tenantId the tenant ID for the key vault. + * @return the next stage of access policy definition + */ + WithAttach forTenantId(UUID tenantId); /** * Specifies the Active Directory group this access policy is for. diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java new file mode 100644 index 00000000000..354e73eb17a --- /dev/null +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java @@ -0,0 +1,21 @@ +package com.microsoft.azure.management.keyvault; + +import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.keyvault.implementation.DeletedVaultInner; +import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager; +import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource; +import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; +import com.microsoft.azure.management.resources.fluentcore.arm.models.HasName; +import com.microsoft.azure.management.resources.fluentcore.model.HasInner; +import com.microsoft.azure.management.resources.fluentcore.model.Refreshable; + +/** + * An immutable client-side representation of an Azure Key Vault. + */ +@Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") +public interface DeletedVault extends + HasInner, + HasName, + HasId { + +} diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java index 92bd0304db7..778680d9113 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java @@ -87,6 +87,24 @@ public interface Vault extends * retrieve secrets from the key vault. */ boolean enabledForTemplateDeployment(); + + /** + * @return whether soft delete is enabled for this key vault. + */ + boolean softDeleteEnabled(); + + /** + * @return whether purge protection is enabled for this key vault. + * Purge protection can only be enabled if soft delete is enabled. + */ + boolean purgeProtectionEnabled(); + + /** + * Get the createMode value. + * + * @return the createMode value + */ + public CreateMode createMode(); /************************************************************** * Fluent interfaces to provision a Vault @@ -183,6 +201,20 @@ interface WithConfigurations { * @return the next stage of key vault definition */ WithCreate withTemplateDeploymentEnabled(); + + /** + * Enable soft delete for the key vault. + * + * @return the next stage of key vault definition + */ + WithCreate withSoftDeleteEnabled(); + + /** + * Enable purge protection for the key vault; valid only if soft delete is also enabled. + * + * @return the next stage of key vault definition. + */ + WithCreate withPurgeProtectionEnabled(); /** * Disable Azure Virtual Machines to retrieve certificates stored as secrets from the key vault. @@ -204,6 +236,13 @@ interface WithConfigurations { * @return the next stage of key vault definition */ WithCreate withTemplateDeploymentDisabled(); + + /** + * Set the createMode value. + * + * @return the next stage of key vault definition + */ + WithCreate withCreateMode(CreateMode createMode); } /** @@ -285,6 +324,20 @@ interface WithConfigurations { * @return the key vault update stage */ Update withTemplateDeploymentEnabled(); + + /** + * Enable soft delete for the key vault. + * + * @return the next stage of key vault definition + */ + Update withSoftDeleteEnabled(); + + /** + * Enable purge protection for the key vault; valid only if soft delete is also enabled. + * + * @return the next stage of key vault definition. + */ + Update withPurgeProtectionEnabled(); /** * Disable Azure Virtual Machines to retrieve certificates stored as secrets from the key vault. diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java index 4aae76a4381..e7fccda0578 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java @@ -6,6 +6,8 @@ package com.microsoft.azure.management.keyvault; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager; import com.microsoft.azure.management.keyvault.implementation.VaultsInner; @@ -16,6 +18,7 @@ import com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager; import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating; import com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById; +import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; /** @@ -24,11 +27,46 @@ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") public interface Vaults extends SupportsCreating, - SupportsDeletingById, SupportsListingByResourceGroup, SupportsGettingByResourceGroup, SupportsGettingById, SupportsDeletingByResourceGroup, HasManager, HasInner { + + public PagedList listDeleted(); + + /** + * Gets the deleted Azure key vault. + * + * @param vaultName The name of the vault. + * @param location The location of the deleted vault. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DeletedVaultInner object if successful. + */ + public DeletedVault getDeleted(String vaultName, String location); + + /** + * Deletes the specified Azure key vault. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName The name of the vault to delete + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String vaultName); + + /** + * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + * + * @param vaultName The name of the soft-deleted vault. + * @param location The location of the soft-deleted vault. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void purgeDeleted(String vaultName, String location); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java index 4e237a95d81..b97ad9915bd 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java @@ -11,6 +11,7 @@ import com.microsoft.azure.management.graphrbac.ActiveDirectoryUser; import com.microsoft.azure.management.graphrbac.ServicePrincipal; import com.microsoft.azure.management.keyvault.AccessPolicy; +import com.microsoft.azure.management.keyvault.AccessPolicy.UpdateDefinitionStages.WithAttach; import com.microsoft.azure.management.keyvault.AccessPolicyEntry; import com.microsoft.azure.management.keyvault.CertificatePermissions; import com.microsoft.azure.management.keyvault.KeyPermissions; @@ -55,11 +56,11 @@ String servicePrincipalName() { } @Override - public String tenantId() { + public UUID tenantId() { if (inner().tenantId() == null) { return null; } - return inner().tenantId().toString(); + return inner().tenantId(); } @Override @@ -71,11 +72,11 @@ public String objectId() { } @Override - public String applicationId() { + public UUID applicationId() { if (inner().applicationId() == null) { return null; } - return inner().applicationId().toString(); + return inner().applicationId(); } @Override @@ -233,6 +234,18 @@ public AccessPolicyImpl forUser(String userPrincipalName) { this.userPrincipalName = userPrincipalName; return this; } + + @Override + public AccessPolicyImpl forApplicationId(UUID applicationId) { + inner().withApplicationId(applicationId); + return this; + } + + @Override + public AccessPolicyImpl forTenantId(UUID tenantId) { + inner().withTenantId(tenantId); + return this; + } @Override public AccessPolicyImpl forGroup(ActiveDirectoryGroup activeDirectoryGroup) { @@ -309,4 +322,5 @@ public AccessPolicyImpl disallowSecretPermissions(List permis inner().permissions().secrets().removeAll(permissions); return this; } + } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java new file mode 100644 index 00000000000..8705ce9d6a7 --- /dev/null +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java @@ -0,0 +1,25 @@ +package com.microsoft.azure.management.keyvault.implementation; + +import java.util.Map; + +import com.microsoft.azure.management.keyvault.DeletedVault; +import com.microsoft.azure.management.resources.fluentcore.arm.Region; +import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; + +public class DeletedVaultImpl extends WrapperImpl implements DeletedVault { + + DeletedVaultImpl(DeletedVaultInner inner) { + super(inner); + } + + @Override + public String name() { + return inner().name(); + } + + @Override + public String id() { + return inner().id(); + } + +} diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/SecretsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/SecretsImpl.java index 24bd5d10f7d..a32a7cbe213 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/SecretsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/SecretsImpl.java @@ -27,7 +27,7 @@ import java.io.IOException; /** - * The implementation of Vaults and its parent interfaces. + * The implementation of Secrets and its parent interfaces. */ @LangDefinition class SecretsImpl diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java index 3c9c829c951..809670de5c8 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java @@ -14,11 +14,13 @@ import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager; import com.microsoft.azure.management.keyvault.AccessPolicy; import com.microsoft.azure.management.keyvault.AccessPolicyEntry; +import com.microsoft.azure.management.keyvault.CreateMode; import com.microsoft.azure.management.keyvault.Keys; import com.microsoft.azure.management.keyvault.Secrets; import com.microsoft.azure.management.keyvault.Sku; import com.microsoft.azure.management.keyvault.SkuName; import com.microsoft.azure.management.keyvault.Vault; +import com.microsoft.azure.management.keyvault.Vault.DefinitionStages.WithCreate; import com.microsoft.azure.management.keyvault.VaultCreateOrUpdateParameters; import com.microsoft.azure.management.keyvault.VaultProperties; import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; @@ -139,11 +141,27 @@ public boolean enabledForDiskEncryption() { @Override public boolean enabledForTemplateDeployment() { - if (inner().properties() == null || inner().properties().enabledForTemplateDeployment()) { + if (inner().properties() == null || inner().properties().enabledForTemplateDeployment() == null) { return false; } return inner().properties().enabledForTemplateDeployment(); } + + @Override + public boolean softDeleteEnabled() { + if (inner().properties() == null || inner().properties().enableSoftDelete() == null) { + return false; + } + return inner().properties().enableSoftDelete(); + } + + @Override + public boolean purgeProtectionEnabled() { + if (inner().properties() == null || inner().properties().enablePurgeProtection() == null) { + return false; + } + return inner().properties().enablePurgeProtection(); + } @Override public VaultImpl withEmptyAccessPolicy() { @@ -201,6 +219,19 @@ public VaultImpl withTemplateDeploymentEnabled() { return this; } + + @Override + public VaultImpl withSoftDeleteEnabled() { + inner().properties().withEnableSoftDelete(true); + return this; + } + + @Override + public VaultImpl withPurgeProtectionEnabled() { + inner().properties().withEnablePurgeProtection(true); + return this; + } + @Override public VaultImpl withDeploymentDisabled() { inner().properties().withEnabledForDeployment(false); @@ -300,4 +331,15 @@ public Observable call(Object o) { protected Observable getInnerAsync() { return this.manager().inner().vaults().getByResourceGroupAsync(resourceGroupName(), name()); } + + @Override + public CreateMode createMode() { + return inner().properties().createMode(); + } + + @Override + public WithCreate withCreateMode(CreateMode createMode) { + inner().properties().withCreateMode(createMode); + return this; + } } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java index 83d23d06f7b..12ca29e92ac 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (c) Microsoft Corporation. All rights reserved. + * Copyright (c) Microsot Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ @@ -9,11 +9,14 @@ import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager; +import com.microsoft.azure.management.keyvault.DeletedVault; import com.microsoft.azure.management.keyvault.SkuName; import com.microsoft.azure.management.keyvault.Vault; import com.microsoft.azure.management.keyvault.VaultProperties; import com.microsoft.azure.management.keyvault.Vaults; import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.GroupableResourcesImpl; +import com.microsoft.azure.management.resources.fluentcore.utils.PagedListConverter; + import rx.Completable; import rx.Observable; @@ -43,6 +46,7 @@ class VaultsImpl this.tenantId = tenantId; } + @Override public PagedList listByResourceGroup(String groupName) { return wrapList(this.inner().listByResourceGroup(groupName)); @@ -97,4 +101,42 @@ protected VaultImpl wrapModel(VaultInner vaultInner) { public Observable listByResourceGroupAsync(String resourceGroupName) { return wrapPageAsync(this.inner().listByResourceGroupAsync(resourceGroupName)); } + + @Override + public PagedList listDeleted() { + return wrapPage(this.inner().listDeleted()); + } + + //Hacky method to convert from DeletedVaultInner to DeletedVault + private PagedList wrapPage(PagedList listDeleted) { + PagedListConverter converter = + new PagedListConverter () { + @Override + public Observable typeConvertAsync(DeletedVaultInner inner) { + return Observable.just((DeletedVault) new DeletedVaultImpl(inner)); + } + }; + return converter.convert(listDeleted); + } + + @Override + public DeletedVault getDeleted(String vaultName, String location) { + if (inner().getDeleted(vaultName, location) == null) { + return null; + } + return (DeletedVault) new DeletedVaultImpl(inner().getDeleted(vaultName, location)); + } + + + @Override + public void delete(String resourceGroupName, String vaultName) { + inner().delete(resourceGroupName, vaultName); + } + + + @Override + public void purgeDeleted(String vaultName, String location) { + inner().purgeDeleted(vaultName, location); + } + } diff --git a/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java b/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java index 679c6d459fe..9aeb9f599ba 100644 --- a/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java +++ b/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java @@ -6,14 +6,15 @@ package com.microsoft.azure.management.keyvault; +import java.util.List; + +import org.junit.Assert; +import org.junit.Test; + import com.microsoft.azure.management.graphrbac.ActiveDirectoryUser; import com.microsoft.azure.management.graphrbac.ServicePrincipal; import com.microsoft.azure.management.resources.fluentcore.arm.Region; import com.microsoft.azure.management.resources.fluentcore.utils.SdkContext; -import org.junit.Assert; -import org.junit.Test; - -import java.util.List; public class VaultTests extends KeyVaultManagementTest { @Test @@ -51,6 +52,7 @@ public void canCRUDVault() throws Exception { .attach() .create(); Assert.assertNotNull(vault); + Assert.assertFalse(vault.softDeleteEnabled()); // GET vault = keyVaultManager.vaults().getByResourceGroup(RG_NAME, VAULT_NAME); Assert.assertNotNull(vault); @@ -91,9 +93,68 @@ public void canCRUDVault() throws Exception { Assert.assertEquals(CertificatePermissions.values().size(), policy.permissions().certificates().size()); } } + + // DELETE + keyVaultManager.vaults().delete(RG_NAME, VAULT_NAME); + Thread.sleep(20000); + Assert.assertNull(keyVaultManager.vaults().getDeleted(VAULT_NAME, Region.US_WEST.toString())); + } finally { graphRbacManager.servicePrincipals().deleteById(servicePrincipal.id()); // graphRbacManager.users().deleteById(user.id()); } } + + @Test + public void canEnableSoftDeleteAndPurge() throws InterruptedException { + String otherVaultName = VAULT_NAME + "other"; + String sp = SdkContext.randomResourceName("sp", 20); + String us = SdkContext.randomResourceName("us", 20); + + ServicePrincipal servicePrincipal = graphRbacManager.servicePrincipals() + .define(sp) + .withNewApplication("http://" + sp) + .create(); + + ActiveDirectoryUser user = graphRbacManager.users() + .define(us) + .withEmailAlias(us) + .withPassword("P@$$w0rd") + .create(); + + try { + Vault vault = keyVaultManager.vaults().define(otherVaultName) + .withRegion(Region.US_WEST) + .withNewResourceGroup(RG_NAME) + .defineAccessPolicy() + .forServicePrincipal("http://" + sp) + .allowKeyPermissions(KeyPermissions.LIST) + .allowSecretAllPermissions() + .allowCertificatePermissions(CertificatePermissions.GET) + .attach() + .defineAccessPolicy() + .forUser(us) + .allowKeyAllPermissions() + .allowSecretAllPermissions() + .allowCertificatePermissions(CertificatePermissions.GET, CertificatePermissions.LIST, CertificatePermissions.CREATE) + .attach() + .withSoftDeleteEnabled() + .create(); + Assert.assertTrue(vault.softDeleteEnabled()); + + keyVaultManager.vaults().delete(RG_NAME, otherVaultName);; + Thread.sleep(20000); + //Can still see deleted vault. + Assert.assertNotNull(keyVaultManager.vaults().getDeleted(otherVaultName, Region.US_WEST.toString())); + + keyVaultManager.vaults().purgeDeleted(otherVaultName, Region.US_WEST.toString()); + Thread.sleep(20000); + //Vault is purged + Assert.assertNull(keyVaultManager.vaults().getDeleted(otherVaultName, Region.US_WEST.toString())); + } finally { + graphRbacManager.servicePrincipals().deleteById(servicePrincipal.id()); + // graphRbacManager.users().deleteById(user.id()); + } + } + } From 840bc671e6bc39f55c95c8efa0732819d27a23f7 Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Wed, 25 Apr 2018 16:00:44 -0700 Subject: [PATCH 02/16] re-recorded tests --- .../session-records/canCRUDVault.json | 1435 +++++++++-------- .../canEnableSoftDeleteAndPurge.json | 827 ++++++++++ 2 files changed, 1602 insertions(+), 660 deletions(-) create mode 100644 azure-mgmt-keyvault/src/test/resources/session-records/canEnableSoftDeleteAndPurge.json diff --git a/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVault.json b/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVault.json index e6ab588ba77..6bbb934157e 100644 --- a/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVault.json +++ b/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVault.json @@ -1,661 +1,776 @@ -{ - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:23 GMT", - "content-length" : "1540", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "eKQPupWj25vpNrPyi3Sp9wcyzEKYVQyq8ykPakYm_mxATOcX0SZmmYukCqK0HFxT4zR0bG6qHOFm-QQFyaLoYKyhSor3Kc4OjLy9af662pI_sk3dKFsV5kXNK1uph1KRW-X0_Nnz1ssqEX9a0LMmHxrHXOWNpqg8PH6EWTmCu6f_f5meA3gOIevoPWbtZhfrZtLqmV-ulnxzk16VukD0NQ.tMfWtos8k7KEz2YCnDqc2bvO1JSYACJCBciTCoVX8Bs", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "39f420a6-de9a-4282-bf10-d6ed29453e16", - "StatusCode" : "201", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "4251245", - "x-content-type-options" : "nosniff", - "client-request-id" : "e2e61077-d649-4513-8a61-40e93070b951", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/1d0f1680-2c4c-4cee-bb3b-56ec67488f93/Microsoft.DirectoryServices.Application", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"1d0f1680-2c4c-4cee-bb3b-56ec67488f93\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"e47d2641-c9ee-42ce-848c-1b2dc2d04ba9\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"spb6b460375030a\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://spb6b460375030a\",\"identifierUris\":[\"http://spb6b460375030a\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spb6b460375030a on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spb6b460375030a\",\"id\":\"74dd995c-824b-4d1c-bce5-672373c36b3d\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spb6b460375030a on your behalf.\",\"userConsentDisplayName\":\"Access spb6b460375030a\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://spb6b460375030a\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"tokenEncryptionKeyId\":null,\"isDeviceOnlyAuthSupported\":null}", - "ocp-aad-diagnostics-server-name" : "1mZWOAvwnETziiyOUezZwk4btUj3M9yZQUGwmKHQ+/8=" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/1d0f1680-2c4c-4cee-bb3b-56ec67488f93/keyCredentials?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:23 GMT", - "content-length" : "158", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "blirKlcpnC883r5ktwdjFc0aau8Y-pTvB-ZhzAy0XKtJ_QA8UCL18JO4v608rbPtylXUhY8yeqB5aR5oDV5qqDi-3QdPXzUtSVRhNU8P01FhTO4t-bHpYIkqCywaSpDGnrv6ACir3z2qZFPbb6zRTk2ZDfvptCEAWG6dF4zi_WDGsvEvrl3pxZoxftTZXIPS9gMJELlZGjrFykVpszwtxA.aNPv582lSlyccgzPFycN8RDS0IK8QUqNsgWkohOLysE", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "b57f009f-2847-4e31-ba58-82b19434905c", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "649498", - "x-content-type-options" : "nosniff", - "client-request-id" : "c1441531-6d2c-41f9-aedf-c1d7613197e9", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "FzpoApox9tCz2WemEVGAfA/KiSYMyd0Im6NEdwooTYs=" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/1d0f1680-2c4c-4cee-bb3b-56ec67488f93/passwordCredentials?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:24 GMT", - "content-length" : "163", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "juinIbpksKGHsZCZV94Ekc1uyGvq5dqEEoMTu5f8eEbwcqIV_qI6U0L4EL8_RRFgEMZSGf3GbqPXogJ6rd9z4Wz1DsZQz8y1EtSz_5B3b5FoV-zd93BbTp5qT0b0LetJwMuPnTgx8WHIb6LlJRS8dw8XsBqehw8y_heEmQXPbj8Y0V2Aswodc0EW79mKPlRvvk-RXiRz33tlcCPdB2GmUA.jIWVf-acyEt6HpOB41AFn1s7_S9gtYZxARKPiGqExuE", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "fd12c745-e17d-4fe1-b0b8-fa51ee536ff7", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "1044902", - "x-content-type-options" : "nosniff", - "client-request-id" : "25d00dda-7ce6-47e0-8830-b6cc73769310", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "XtPf1euZeWcRXU77SE123RAaIFIVM6SVkM17MHJuwDc=" - } - }, { - "Method" : "POST", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:24 GMT", - "content-length" : "1450", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "EiAnxaba5vQSZ7_db2AClCAhLehspBuV2SqbNonS9MTEwuZuvUp0a9MEgMT-vgT7PU4VNR9QHh0aFfeBqNfJBaeB5PZm63dYmQYb_oO3OlL_McjCyd2A2U6WSMefGKkrUL3huMumMbTYhW9Dboa8hZJa7_omOhY0iXqr1C4JKMzQm3PH-Z368pcnBQYUjo2_EpWlIKcQt5WpuCyJlGkVQg.rAT0lrbvROG3JptsO2Zw4LMzUN2lnVYF1DxapEBLl14", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "a8a998a1-56ac-44c8-b0d1-3bf56dbfa29d", - "StatusCode" : "201", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "3558418", - "x-content-type-options" : "nosniff", - "client-request-id" : "31759e6b-687b-48cd-aa2f-8627e5bb55ce", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/a16d7263-d8a6-4ca2-93e0-60d223bbe508/Microsoft.DirectoryServices.ServicePrincipal", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"a16d7263-d8a6-4ca2-93e0-60d223bbe508\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spb6b460375030a\",\"appId\":\"e47d2641-c9ee-42ce-848c-1b2dc2d04ba9\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spb6b460375030a\",\"errorUrl\":null,\"homepage\":\"http://spb6b460375030a\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spb6b460375030a on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spb6b460375030a\",\"id\":\"74dd995c-824b-4d1c-bce5-672373c36b3d\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spb6b460375030a on your behalf.\",\"userConsentDisplayName\":\"Access spb6b460375030a\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spb6b460375030a\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"e47d2641-c9ee-42ce-848c-1b2dc2d04ba9\",\"http://spb6b460375030a\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}", - "ocp-aad-diagnostics-server-name" : "gzTHd9xPT6UpzqL1VdRsA3bqkd3Ju1OXrLwpKneHrpg=" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/a16d7263-d8a6-4ca2-93e0-60d223bbe508/keyCredentials?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:24 GMT", - "content-length" : "158", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "_9rKmlMr72McVJB5-TIANSSRo-a0zv3L2sPr70OFGSfELxsB52yiWCoukw1ocEJgx0M9RvPjD_nqzEHce5MkJoAOCnc2YJ-StkUdjhvvMEsAZsyDYgJsYrxH7MkIixz1NEY-gMbbEu9u1ZRv0O1dWQ2DvWMf4fj33UZz5j6aShO-hJnmtzA8UfuDmPisDhxrNIxEcczf2r6ypkwMNtJJbw.a9CptDMw3EQvhXCTvwY7b8ok4YjFFBYSX5F5TKojrwI", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "57523fb4-4b90-4fd5-b1a9-cd0d2340a5c3", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "607592", - "x-content-type-options" : "nosniff", - "client-request-id" : "6227d092-7618-4d0b-aa13-c5052f65d1d7", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "XtPf1euZeWcRXU77SE123RAaIFIVM6SVkM17MHJuwDc=" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/a16d7263-d8a6-4ca2-93e0-60d223bbe508/passwordCredentials?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:24 GMT", - "content-length" : "163", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "2zyK8Un1CppWYJ5qmFoF92F4ImGdNzNT44vT8FS6ggn-XUbCGcFOdoe1yHItPPMmwSppSPWq2AgskAPONQlSeHjKynfGkEaArhHEgFipvNinRyAhMYwVn_asf8s0HMVItMCi2_MTHFUUzgel7KgPbX7HuYSxXbyCAv1gILGnG3ZqU9ffMAlyge0e_5tjoEVydlEXhIyaeSUDTKWjM0PzHw.E-xAvi1fyBgO6h5GqyD-BUOsVrxOg7j-QriixpM4UPE", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "b6849c4c-7fad-4744-85b8-7df270a67123", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "864033", - "x-content-type-options" : "nosniff", - "client-request-id" : "a7e4e01a-3ff7-495a-a642-f58dc7e7e035", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "h+esbaLTSiS9YLokkl24LFY9a9LP+eEjl6OwhEIXn+4=" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/domains?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:24 GMT", - "content-length" : "885", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "Hweb061FfpoW0XyWSRVIt5-kelUUZZJXlbw23ntFRQcKQmNC70VXrHCOnOMrjUAY3ZZ2vqH7ZiZSdrCkZFXb3y75_aXVmZPbA0kdHmxn1L_rbKGbqMoCe7o7PeAQmqhJKRvnTYLa40JuZBY7mwvbiefAsqRpYnPGE6V77I31wenCOdjkBtvXpmXJ8wvnSl_Lrw1XrVy_NYmE3KRBvoHAIQ.F0Fmr-5npGWugTYtoVHHsBcmTyniUaCP9FBccwlz7eI", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "3b970ba5-e5ba-44c3-8fc2-77537d7781c4", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "524476", - "x-content-type-options" : "nosniff", - "client-request-id" : "2f1fb15c-4706-480a-a10b-1abf9c4416a7", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#domains\",\"value\":[{\"authenticationType\":\"Federated\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":false,\"isVerified\":false,\"name\":\"BFDevOpsNonRestricted.onmicrosoft.de\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":true,\"isVerified\":true,\"name\":\"azdevextest.com\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":true,\"isInitial\":true,\"isRoot\":true,\"isVerified\":true,\"name\":\"AzureSDKTeam.onmicrosoft.com\",\"supportedServices\":[\"Email\",\"OfficeCommunicationsOnline\"],\"forceDeleteState\":null,\"state\":null}]}", - "ocp-aad-diagnostics-server-name" : "bV7X+SY5i5/uLcv/DhiFz7ABarNifUX33tnc4DltmFY=" - } - }, { - "Method" : "POST", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:26 GMT", - "content-length" : "1427", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "vTiembU6A7teYpx1NEhuvBzdTQmWp1n630fQZDd8cp1JoXBcJlFOZW9Vy_o8J-oMyisPNGehmAdhu4bisXS14wn4_aQTx39XbT5LH4cGxlw-LAdclar0F2k5vdncQvtTHaruLnOTr1gDyPx15huPFFf0QTl7vFsTB8bv9cNoQ9-hZCd3Eh3KJ22ALjRv5R4J8FKuhO9feh9OryhbQiM1BA.Y1Bdq4_23ZCPXi930bVbkMfT-H44I7gRaATbZqTATHw", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "e056c410-1d28-4234-9d29-39ae049a711e", - "StatusCode" : "201", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "17401273", - "x-content-type-options" : "nosniff", - "client-request-id" : "038cd1ba-32e2-44cb-82c7-56fb107cdeba", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/ac602a3a-ffb1-499d-b5b5-b7370ba276f7/Microsoft.DirectoryServices.User", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"ac602a3a-ffb1-499d-b5b5-b7370ba276f7\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us30337683a01e6\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us30337683a01e6\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-01-12T01:19:26.0169411Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us30337683a01e6@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}", - "ocp-aad-diagnostics-server-name" : "FzpoApox9tCz2WemEVGAfA/KiSYMyd0Im6NEdwooTYs=" - } - }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg60496?api-version=2017-05-10", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (ResourceManagementClient, 2017-05-10)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:32 GMT", - "content-length" : "181", - "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1199", - "retry-after" : "0", - "StatusCode" : "201", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "f1cf4779-a9d5-4fe3-890e-7c7675ccf929", - "x-ms-routing-request-id" : "WESTUS2:20180112T011932Z:f1cf4779-a9d5-4fe3-890e-7c7675ccf929", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-request-id" : "f1cf4779-a9d5-4fe3-890e-7c7675ccf929", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496\",\"name\":\"javacsmrg60496\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://spb6b460375030a%27)&api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:31 GMT", - "content-length" : "1453", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "WE-oFqQox20CWeum-zBYIC3yrRM2HGBC7A-Lln1m1W58GGcOrswN7R0Zmwo-AGIVP3HAsV5onwF8OZsobfUf6mlOJi3tI0BF85HG_TTTk4EO5G1MjJDIfvxzlSOKfKhwEocxglfv2wV-rMTCRtx2tjepQWKu925OfJdBW8JqPaBjjDmPks_sNGna6PcQzq8x9KiIe3_sbphXpiwhXEGTHg.DUQY21wWQdIrd-hgT3hMkJWmPVLyZeqZwkY1P20jN40", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "146edd90-3fa7-4a6d-bd3b-bc00db537d13", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "1000733", - "x-content-type-options" : "nosniff", - "client-request-id" : "029666de-cf50-40fc-9dd9-55c953681a4d", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"a16d7263-d8a6-4ca2-93e0-60d223bbe508\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spb6b460375030a\",\"appId\":\"e47d2641-c9ee-42ce-848c-1b2dc2d04ba9\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spb6b460375030a\",\"errorUrl\":null,\"homepage\":\"http://spb6b460375030a\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spb6b460375030a on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spb6b460375030a\",\"id\":\"74dd995c-824b-4d1c-bce5-672373c36b3d\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spb6b460375030a on your behalf.\",\"userConsentDisplayName\":\"Access spb6b460375030a\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spb6b460375030a\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://spb6b460375030a\",\"e47d2641-c9ee-42ce-848c-1b2dc2d04ba9\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}]}", - "ocp-aad-diagnostics-server-name" : "h+esbaLTSiS9YLokkl24LFY9a9LP+eEjl6OwhEIXn+4=" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/a16d7263-d8a6-4ca2-93e0-60d223bbe508/keyCredentials?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:31 GMT", - "content-length" : "158", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "aFQCmmZN-RwQorWN_TDUNe2qPBF47jNVtwA6WN7yfbNxeRgT7eJAQYsEdbbb-54XQHQhPZB53oISaaAqaO-LoAb3AKy3nDXkLfVHhEvGsHk-u7fTGx-4VAvuHjE3hFC7voPhqaQoEHTCJgyXTDjPBLi09t1AXwmnF9TIAHt59YYY9SoL9mGky7myJ_cQC36ZE5EdI24qejq0lcd0kthKNg.gkxXHUSnIcgpipY7RJoNyf11hyyV03G93nuPe2h1ZQU", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "e1c4a5ee-7ef6-4232-aa83-df055f37dc54", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "585024", - "x-content-type-options" : "nosniff", - "client-request-id" : "4b0ed8bb-fb9d-407a-b722-b32e14870227", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "cmmfSsdnBAIEQoSVdNrxUXwW51QiWF0lftDnqRxKdr8=" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/a16d7263-d8a6-4ca2-93e0-60d223bbe508/passwordCredentials?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:32 GMT", - "content-length" : "163", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "RKZSQmEZZNmHhoyEopgZC2sBoKnwOBVeo8WaQ46ze6nR35BtpKgYt6BTTtCFOnaVf-XEF_y_zllegv8MQVgVDqyuKK0wb20BkwcCn0PUvIkyEqrs_dLLthgHHaoVMizoNRJIZrzhpKPmj9H1uei16K_pGONsgwFyLCt4Rqk2NfCGkXvSOyRUtPFRVlmyRJ1I5KtkIglCClQLEUIdf-ozhw.l_rCiKoRuVjCUba3DaLxQhh2BXKl_Lo_lrLCxg2VY4w", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "368351f8-a50e-49a4-bdac-9757c79274b4", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "698626", - "x-content-type-options" : "nosniff", - "client-request-id" : "db0a874e-d6f1-4ebd-ba52-1a3048c310be", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "ebQrbCsVSayqudnQkepewePNN+0/zDgfVv/e3pL6KeY=" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/us30337683a01e6?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:32 GMT", - "content-length" : "193", - "server" : "Microsoft-IIS/8.5", - "ocp-aad-session-key" : "iv8Mr2Jd1l0v7BE-oCYu1lfDkZzfnXOZTieyHv8_2mzTwCCoIVy5hSJ7_KMUn9SXgylFWLbaSWIJTxBn11kXTAuNEn1FM6Gl0BtKWZNndDHbeYkv5JtsG8qwi6UTbg5oyXXPQCZWjGV9cz0slBo6LoJzuIdJjP1RAaLTCSknrPmic2b-pW2X5u2iwTWko-4WaV9zz-X-6heHt5Bk41Fo8A.sS0c7tPw6J4mHgrQ6Mo5QkRw_pDPVHjwDbte7x99S74", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "28710e24-9fc7-4234-954a-fe0b701f67c3", - "StatusCode" : "404", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "560166", - "client-request-id" : "50e22487-0015-456a-b6d3-4c2409a77d2a", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; charset=utf-8", - "cache-control" : "private", - "x-ms-dirapi-data-contract-version" : "1.6", - "Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'us30337683a01e6' does not exist or one of its queried reference-property objects are not present.\"}}}", - "ocp-aad-diagnostics-server-name" : "FzpoApox9tCz2WemEVGAfA/KiSYMyd0Im6NEdwooTYs=" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27us30337683a01e6%27&api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:32 GMT", - "content-length" : "1422", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "SMRf_8S66S1bQxOeOZUPsJqCNu4p6RVrP2kPn28yD2g0OsACwykP91biSFEAonEpFQ7qTBKTJjMhcJD5koLFX8e9hDRIJH6PBQ0jnOXo_1Wot2PH5GKV1L8CFup2PVrrseSgdoZWBFwaZld8e0lytSxMa9D5NKTxEWxt3sQof94QI2KLwWHBzS_B9nb6XR6jmSkaxQnT10LezioZhzEubg.ooCE10GhPLA9YmVQRpTrcsPHST3GDb4RJl5Cr8tcIe0", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "62b616d3-9b2c-4a1b-bf3f-3d02c029f5f3", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "891586", - "x-content-type-options" : "nosniff", - "client-request-id" : "c99b2b0c-8542-4422-92c6-46eff6fd4414", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"ac602a3a-ffb1-499d-b5b5-b7370ba276f7\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us30337683a01e6\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us30337683a01e6\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-01-12T01:19:26Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us30337683a01e6@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}", - "ocp-aad-diagnostics-server-name" : "ebQrbCsVSayqudnQkepewePNN+0/zDgfVv/e3pL6KeY=" - } - }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults/java-keyvault-42334?api-version=2016-10-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (KeyVaultManagementClient, 2016-10-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:35 GMT", - "server" : "Microsoft-IIS/8.5", - "content-length" : "1070", - "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-aspnet-version" : "4.0.30319", - "x-ms-ratelimit-remaining-subscription-writes" : "1198", - "retry-after" : "0", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "070de028-f893-4fc4-8b60-98fd31671f1d", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180112T011935Z:070de028-f893-4fc4-8b60-98fd31671f1d", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.199", - "x-ms-request-id" : "070de028-f893-4fc4-8b60-98fd31671f1d", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults/java-keyvault-42334\",\"name\":\"java-keyvault-42334\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"a16d7263-d8a6-4ca2-93e0-60d223bbe508\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ac602a3a-ffb1-499d-b5b5-b7370ba276f7\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-42334.vault.azure.net\"}}" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults/java-keyvault-42334?api-version=2016-10-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (KeyVaultManagementClient, 2016-10-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:35 GMT", - "server" : "Microsoft-IIS/8.5", - "content-length" : "1071", - "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14997", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "33b21479-c636-449e-9f12-0fdd2cf20e5b", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180112T011936Z:33b21479-c636-449e-9f12-0fdd2cf20e5b", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.199", - "x-ms-request-id" : "33b21479-c636-449e-9f12-0fdd2cf20e5b", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults/java-keyvault-42334\",\"name\":\"java-keyvault-42334\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"a16d7263-d8a6-4ca2-93e0-60d223bbe508\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ac602a3a-ffb1-499d-b5b5-b7370ba276f7\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-42334.vault.azure.net/\"}}" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults?api-version=2016-10-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (KeyVaultManagementClient, 2016-10-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:35 GMT", - "server" : "Microsoft-IIS/8.5", - "content-length" : "1305", - "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14996", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9d19f824-c86a-419d-a98e-1156a4707366", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180112T011936Z:9d19f824-c86a-419d-a98e-1156a4707366", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.199", - "x-ms-request-id" : "9d19f824-c86a-419d-a98e-1156a4707366", - "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults/java-keyvault-42334\",\"name\":\"java-keyvault-42334\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"a16d7263-d8a6-4ca2-93e0-60d223bbe508\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ac602a3a-ffb1-499d-b5b5-b7370ba276f7\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-42334.vault.azure.net/\"}}],\"nextLink\":\"http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults?api-version=2016-10-01&$skiptoken=amF2YS1rZXl2YXVsdC00MjMzNA==\"}" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults?api-version=2016-10-01&$skiptoken=amF2YS1rZXl2YXVsdC00MjMzNA==", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (KeyVaultManagementClient, 2016-10-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:35 GMT", - "server" : "Microsoft-IIS/8.5", - "content-length" : "12", - "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14995", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "10b4cfca-21a4-495a-9828-c5af2e7f49e4", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180112T011936Z:10b4cfca-21a4-495a-9828-c5af2e7f49e4", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.199", - "x-ms-request-id" : "10b4cfca-21a4-495a-9828-c5af2e7f49e4", - "Body" : "{\"value\":[]}" - } - }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults?api-version=2016-10-01&$skiptoken=amF2YS1rZXl2YXVsdC00MjMzNA==", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (KeyVaultManagementClient, 2016-10-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:36 GMT", - "server" : "Microsoft-IIS/8.5", - "content-length" : "12", - "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14994", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "7966814e-9fa3-4d9d-a0c7-e0d55a3b4d53", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180112T011936Z:7966814e-9fa3-4d9d-a0c7-e0d55a3b4d53", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.199", - "x-ms-request-id" : "7966814e-9fa3-4d9d-a0c7-e0d55a3b4d53", - "Body" : "{\"value\":[]}" - } - }, { - "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults/java-keyvault-42334?api-version=2016-10-01", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (KeyVaultManagementClient, 2016-10-01)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:36 GMT", - "server" : "Microsoft-IIS/8.5", - "content-length" : "1305", - "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", - "x-aspnet-version" : "4.0.30319", - "x-ms-ratelimit-remaining-subscription-writes" : "1197", - "retry-after" : "0", - "StatusCode" : "200", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "1911d064-8e66-479f-8630-27f60b460776", - "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180112T011937Z:1911d064-8e66-479f-8630-27f60b460776", - "x-powered-by" : "ASP.NET", - "content-type" : "application/json; charset=utf-8", - "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.199", - "x-ms-request-id" : "1911d064-8e66-479f-8630-27f60b460776", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg60496/providers/Microsoft.KeyVault/vaults/java-keyvault-42334\",\"name\":\"java-keyvault-42334\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{\"foo\":\"bar\"},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"a16d7263-d8a6-4ca2-93e0-60d223bbe508\",\"permissions\":{\"keys\":[\"list\",\"decrypt\",\"wrapKey\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[],\"certificates\":[\"get\",\"getissuers\",\"manageissuers\",\"update\",\"list\",\"delete\",\"managecontacts\",\"deleteissuers\",\"recover\",\"listissuers\",\"import\",\"create\",\"setissuers\",\"purge\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ac602a3a-ffb1-499d-b5b5-b7370ba276f7\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-42334.vault.azure.net/\"}}" - } - }, { - "Method" : "DELETE", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/a16d7263-d8a6-4ca2-93e0-60d223bbe508?api-version=1.6", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (GraphRbacManagementClient, 1.6)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:36 GMT", - "server" : "Microsoft-IIS/8.5", - "expires" : "-1", - "ocp-aad-session-key" : "YBqhynBopuraiwsP-1xtW3lX-hmDVutZiPagwwLXOvz590S8FIkeSIdVHXb91O67j_psUhrtu8h6DKbzPgkfDJf2P8qfcAvE9q8DUAVG2_tlaHussEXY56-QlDxU9y_PreZrdr8LRimA1t2lv62RHaOXA3bT_rmcNe__HeasuQz1UWGfCZQBG3esDLS7KYyIJWI3DSPSJlr-i9izwlfErg.TjzwBYrqEGPVPvbNnavV8CcF2nRccmUPxm0nkYA3daU", - "x-aspnet-version" : "4.0.30319", - "retry-after" : "0", - "request-id" : "395578cd-a023-492c-98e1-58efb5e6addf", - "StatusCode" : "204", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "access-control-allow-origin" : "*", - "duration" : "3177833", - "x-content-type-options" : "nosniff", - "client-request-id" : "cb7115a8-645f-4937-b9ec-5c209ecf9f10", - "x-powered-by" : "ASP.NET", - "cache-control" : "no-cache", - "x-ms-dirapi-data-contract-version" : "1.6", - "dataserviceversion" : "1.0;", - "Body" : "", - "ocp-aad-diagnostics-server-name" : "3fY/YTKtktC55i2uj7nRnEH4MiQwtS8nnnh325mrC/0=" - } - }, { - "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg60496?api-version=2017-05-10", - "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.12.5 MacAddressHash:6415fbce8481459e748a6f3b0f253136167854f87f4ff6884ad77900893f2fd4 Java:1.8.0_77 (ResourceManagementClient, 2017-05-10)", - "Content-Type" : "application/json; charset=utf-8" - }, - "Response" : { - "date" : "Fri, 12 Jan 2018 01:19:37 GMT", - "content-length" : "0", - "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1196", - "retry-after" : "0", - "StatusCode" : "202", - "pragma" : "no-cache", - "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "73477b89-9db6-4458-a171-8fd3c638a702", - "x-ms-routing-request-id" : "WESTUS2:20180112T011938Z:73477b89-9db6-4458-a171-8fd3c638a702", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc2MDQ5Ni1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10", - "cache-control" : "no-cache", - "x-ms-request-id" : "73477b89-9db6-4458-a171-8fd3c638a702", - "Body" : "" - } - } ], - "variables" : [ "javacsmrg60496", "java-keyvault-42334", "spb6b460375030a", "us30337683a01e6", "61dfa87f-f879-4e15-aae9-62695d757f7b", "e205be67-e9c6-4a2d-a682-9751f3bb9ddd", "5c2ae295-651c-4e60-a981-a0e37db3d7db", "e2c08f9b-0048-4417-a5c7-ad30640d4ade", "c3f641af-32e6-40d8-9f1b-06647391884c", "2fd3b2a1-aa84-46df-8ea8-f557ae075194", "7a9a59e4-c6e2-4f9f-915c-29567e82526a", "75fb5ef0-42c5-4693-9527-d3e96f3f89c6", "808baeeb-f4c4-419f-9888-6f461e8b62c8" ] +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:45 GMT", + "content-length" : "1767", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "IMW6rRhvlc0HlbHfD5BRMO3kcLDya6-KA9OaWJ4hEdCMNDcGgufx5InPPqOtqUHg2vgbXSXHw9surnZkngKS8CQ9vudESjWbGWb2xMOlOp6dM7EJplZN0KWnkUN4974IXGvlBmE-SCaLzxhPff8grw.nnmapUeKXi2rToVVqdqZkdLgrOsIQ17skHSb3aCztBQ", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "ad48f17a-5c33-4e22-baa7-d46f656e3e38", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "7017155", + "x-content-type-options" : "nosniff", + "client-request-id" : "52006bb2-87ef-4147-8a09-458c68449ac0", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/580a99f0-ad64-4080-8994-2907b5c9726d/Microsoft.DirectoryServices.Application", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"580a99f0-ad64-4080-8994-2907b5c9726d\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"10a96f3d-2801-47ad-a194-64ee5f2f64db\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"sp198569713e37c\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://sp198569713e37c\",\"identifierUris\":[\"http://sp198569713e37c\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"isDeviceOnlyAuthSupported\":null,\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"logo@odata.mediaContentType\":\"application/json;odata=minimalmetadata; charset=utf-8\",\"logoUrl\":null,\"oauth2AllowIdTokenImplicitFlow\":false,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp198569713e37c on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp198569713e37c\",\"id\":\"a5c81cac-1dbc-418c-9e25-e068ba0e8729\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp198569713e37c on your behalf.\",\"userConsentDisplayName\":\"Access sp198569713e37c\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"parentalControlSettings\":{\"countriesBlockedForMinors\":[],\"legalAgeGroupRule\":\"Allow\"},\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://sp198569713e37c\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "rFMv6jCt7k8n9zj2NyMLkO1fEa5ijjfeyD4ZP3WWKYs=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/580a99f0-ad64-4080-8994-2907b5c9726d/keyCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:45 GMT", + "content-length" : "158", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "hpyosOGFerkpicOQZHFurwWum3AMm0l6D6omtFRqMZymci5lRDdrwI5qvBC7KzEOCnVky_8EulR8U4LgOQc3F0MnTI1BGxo2zyi31t2YDG2_lA84PVAz0rC-DvXfpvR6J1t3-ADjYvpRMtwvwpElXw.6SyziXV_7z_dBYgYMiHg__b8pf13PqVqgiCfL7aezzM", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "be39df2e-b1b9-4e35-b80e-b8a54f776be8", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "522604", + "x-content-type-options" : "nosniff", + "client-request-id" : "379b9f10-a08b-4cdc-84f0-a3d3ebede308", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "R24SEsKL6l8WwGja0LsRtb5gfSEzPaANsccbqgL6qjQ=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/580a99f0-ad64-4080-8994-2907b5c9726d/passwordCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:45 GMT", + "content-length" : "163", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "jhIqI-0K2AepFLr9vjoTvz1HwbCyodhTDv0ni5vhFoigwd3XV36SONJvpWUTKuRl2_7Ek4hr5Cs_6B_k7EFdvd7ipeRuPxMO9l3tJMOmDqNTvF9f_6KBAsBbwE_CtcDzBC6neHI1wIwO0ZApAf8ZIQ.fxH6dfvkBpiYvrOKI4Y70zfRdjPvPOz49X2omvUdFVE", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "c5d9522e-74fd-4be9-8d4a-3538d0fa587f", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "390332", + "x-content-type-options" : "nosniff", + "client-request-id" : "1cf13d2a-69b7-4ebd-b1cb-77115e6b5d3a", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "6nXKrctRtSptRoHzozTVMUA02WQGzIDDAMhbiPlyMGM=" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:46 GMT", + "content-length" : "1450", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "L4NtG8q2JGs8cof4K0TH5_YSvQ8-k81NsCf2lY_T0QvAlO9v4ecFaZiv6pov2UNrF9iFPgbU0LpXh4rL-HoxunN1M8lIbzWAx1VFurCFZgrfygURKHNVzY2mZ2ajW2EpuKkTrOjfI8gFniBtDgSv_g.Y06-17K5x2asLMA1Cig1PAODr-urLgpa-iP6slRQqZE", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "5c5ab40c-fce3-4f81-af52-cccc0ca688d3", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "3845010", + "x-content-type-options" : "nosniff", + "client-request-id" : "4a2652e7-1ebf-4ad4-a4fd-b3357eed4d5d", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/083c3836-d854-4eb4-be3b-e3b4c529bc3a/Microsoft.DirectoryServices.ServicePrincipal", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"sp198569713e37c\",\"appId\":\"10a96f3d-2801-47ad-a194-64ee5f2f64db\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"sp198569713e37c\",\"errorUrl\":null,\"homepage\":\"http://sp198569713e37c\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp198569713e37c on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp198569713e37c\",\"id\":\"a5c81cac-1dbc-418c-9e25-e068ba0e8729\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp198569713e37c on your behalf.\",\"userConsentDisplayName\":\"Access sp198569713e37c\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://sp198569713e37c\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"10a96f3d-2801-47ad-a194-64ee5f2f64db\",\"http://sp198569713e37c\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "fQLJJo2NQKA1MEYhE9K05hCw7w6tp5qp0L6SHCVm0xw=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a/keyCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:46 GMT", + "content-length" : "158", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "_DWW1zdx61ohuICmXd0Ws1jeTX05Tu3tH5GWR85Rur1JEgoK2INbZhD60rhK_wHor3nLo4hf2uqsIrWe4MjO4SXl4xL0ClmDjBz_bnSHLcgYuhHx3YJtdNfOvLJ11pttJNLJvVjyljI-i68PIytmkg.s3FImL4AO22bSudMmG4j0w3jHvLJpuW5Xpo1CpjsUg0", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "7a93a093-eb7c-467b-b9b4-59805fcd0bb9", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "442777", + "x-content-type-options" : "nosniff", + "client-request-id" : "ce9c6f93-6a8c-45c5-92a7-3c0c9e578204", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "R24SEsKL6l8WwGja0LsRtb5gfSEzPaANsccbqgL6qjQ=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a/passwordCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:46 GMT", + "content-length" : "163", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "phK4vtbVxXd5om_eNv9yqdCwYaSXvyP50BFP0Y37o_ebR6Rjt_P3MEUR3ZmJU-wu_b1AmCeNVGRuv3p1QRHy4eX5pWLeuQVkklNHCH2d-ijAY_0N8OT39W4vhhJLZAXFIJfL8V-tjHySsKFvXkxoWQ.odFn3YEbpCe9gJgbNUwQsYyJns4BTOlmachAlKkXidI", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "2bc6e66b-7bc7-4dbb-b957-2c41870a9663", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "551142", + "x-content-type-options" : "nosniff", + "client-request-id" : "5c11d3fb-bad6-48bb-88e7-873c0d61864a", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "sddddXJCDv27jmu91AjCY4cjIA04nWQAsEkxbrysAOg=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/domains?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:46 GMT", + "content-length" : "885", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "YHmXDZF7VjA1loGc8byhaL2OWVFea9poYIwDl2lflwNE4qLnqjwsDcYC1qXjlJES4ME2Ul4LuxODFEdIo3Vb85_2ZAsFmIGgZEEMzf1F5izrPFlnGJ6xiyrR16G2ZVAHD8BK9REBchnHHL5beG6upA.DObxTTqfNYx9ATQYJ31WWBux3yzl4whO-ZrRe1sp6KI", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "9b19af81-0c88-4c35-a43a-fc8e27e27251", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "352413", + "x-content-type-options" : "nosniff", + "client-request-id" : "9d02a032-f255-4703-9809-4f91f8da158b", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#domains\",\"value\":[{\"authenticationType\":\"Federated\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":false,\"isVerified\":false,\"name\":\"BFDevOpsNonRestricted.onmicrosoft.de\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":true,\"isVerified\":true,\"name\":\"azdevextest.com\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":true,\"isInitial\":true,\"isRoot\":true,\"isVerified\":true,\"name\":\"AzureSDKTeam.onmicrosoft.com\",\"supportedServices\":[\"Email\",\"OfficeCommunicationsOnline\"],\"forceDeleteState\":null,\"state\":null}]}", + "ocp-aad-diagnostics-server-name" : "6nXKrctRtSptRoHzozTVMUA02WQGzIDDAMhbiPlyMGM=" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:46 GMT", + "content-length" : "1474", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "-XfKrMMk6Ej3xt2FXQeNzOwgTu_ox-TPrcQ7mhLP-p9ZYus0JFajCBAsMfMr1U4u68Yv9xLNmHe6NwY0WodM046l1li-M-fMN0UYhIGl2Ys5ZzdTRb69zVUdeKXBmob3o5Sp7ZModNtj4vnD7e1_OQ.75pL38ixoT2NEOhdY3hkxOEJ1KQzIdVlK8yHvodhKnk", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "3c7ee655-2171-4ed9-ab75-e5f6de5b886d", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "6954962", + "x-content-type-options" : "nosniff", + "client-request-id" : "7ec35768-1137-4d9f-a9e0-5cace8d6fafb", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/68b9c910-f090-4be8-863d-ffd8c9850f1f/Microsoft.DirectoryServices.User", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us3089424702435\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us3089424702435\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-25T22:55:46.6750985Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us3089424702435@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}", + "ocp-aad-diagnostics-server-name" : "R24SEsKL6l8WwGja0LsRtb5gfSEzPaANsccbqgL6qjQ=" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg83499?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "content-length" : "181", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b235b94e-0b9a-40d0-a3c2-86b0a36c1175", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225550Z:b235b94e-0b9a-40d0-a3c2-86b0a36c1175", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b235b94e-0b9a-40d0-a3c2-86b0a36c1175", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499\",\"name\":\"javacsmrg83499\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://sp198569713e37c%27)&api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "content-length" : "1453", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "fuBIXzhXikdAhE4wPgQvNA1tZhZot_v5XuWztXrbNNblY4NGX-VKCGvrhTchTo7mhgZ73XAazR0XKv9Bxji5u0do7KUKBEQPk8hZJxUdttY_aa8MZ8uQ5jxMOJhFMgPgOOxAEwFWMJdWls6Ynh1mcA.3Z6n_rUocY6eRuIB-MtyXaEYYecObAj7FeWa4YDkA9c", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "67d68c5c-2fd2-4bd8-96c4-36cd08dbae5f", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "660586", + "x-content-type-options" : "nosniff", + "client-request-id" : "14565642-c319-43df-a013-a8f9b5ff68be", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"sp198569713e37c\",\"appId\":\"10a96f3d-2801-47ad-a194-64ee5f2f64db\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"sp198569713e37c\",\"errorUrl\":null,\"homepage\":\"http://sp198569713e37c\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp198569713e37c on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp198569713e37c\",\"id\":\"a5c81cac-1dbc-418c-9e25-e068ba0e8729\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp198569713e37c on your behalf.\",\"userConsentDisplayName\":\"Access sp198569713e37c\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://sp198569713e37c\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://sp198569713e37c\",\"10a96f3d-2801-47ad-a194-64ee5f2f64db\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}]}", + "ocp-aad-diagnostics-server-name" : "R24SEsKL6l8WwGja0LsRtb5gfSEzPaANsccbqgL6qjQ=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a/keyCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "content-length" : "158", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "eR9ZiuMte-zeafZlG02tyl4vuDtv1e8CfWyfI2Txu9iY1cf4nVJx8DyvqI8HI686UltOo6AusYvMeM9NhgoK8PzykbW86CAmKDtyyn2NvOOjdt6pyNLNBoKN42bEmTyCz_uOQyQYR2BO5z2Qw_OcRQ.Pvq-9n-p-Fl0Qd8YdExRM2LUirTXEDAwPF2qWztEABk", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "eae0a0d8-d2bd-4c9d-a85a-bff544186e1e", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "829682", + "x-content-type-options" : "nosniff", + "client-request-id" : "36a43b13-80b8-4d20-ac3d-4f6f55161092", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "6nXKrctRtSptRoHzozTVMUA02WQGzIDDAMhbiPlyMGM=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a/passwordCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "content-length" : "163", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "e4Dj-54YUNizytnrbawEA0QsGlZ8IVr-tmp0Xxnz0jRaeAk1NX_WkIMLxLyCwOXJe3KtPFzKimkvfjvVsQMqbdXVat5m2NjfbTfoeJOXg4eKus_FtA6VcxAm7JY22-pM2Sl00Z9bUg0bvXL1dG7x-Q.q3rxtR4XXJWvt6tn_sk-B_aNJQXVCm5hlzFXZxVnCKU", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "e34d1f4e-b1bc-4754-8636-e7ed31fc65fa", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "714423", + "x-content-type-options" : "nosniff", + "client-request-id" : "1d2869fb-5d4d-4230-ae17-a544ec54cdc4", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "YPT0bBpwREL5IJMIvN9GoYV1GS3mAXpIf09yabKcdz0=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/us3089424702435?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "content-length" : "193", + "server" : "Microsoft-IIS/10.0", + "ocp-aad-session-key" : "KCuGzS5QtQcmPQiKPDwpA9sYcgKcgzCe-FkKfgyqZ1zOtlX1gzra-W6w6_rn1ltYcFKx0kdoobgT4woYFTmREi9kIjgp76Yv7e6OWP-_KVcnma9tb2t_i7HEVCeuVTppeypREnYSA9JaDkhQrNn35g._3_MTDuCLDXLlTVQ-pLxm1w3QA8uXu_ngcg5XW-q-Ck", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "baed9d28-8b4f-46ff-92f4-b5aa302fb6a6", + "StatusCode" : "404", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "373347", + "client-request-id" : "f0dca9c2-d9fd-4f85-857e-89c549ae3b56", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; charset=utf-8", + "cache-control" : "private", + "x-ms-dirapi-data-contract-version" : "1.6", + "Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'us3089424702435' does not exist or one of its queried reference-property objects are not present.\"}}}", + "ocp-aad-diagnostics-server-name" : "03tJtVtrK59o2WrrDjJFasNQO9BoGoGL+dG53QSLpQQ=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27us3089424702435%27&api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "content-length" : "1469", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "uA_egkZHVEEQkSoxrLdUZkEkeHnWsfuj3OQIHk-j-fdU_HObNitGpxocTajLKa9KYMxq9xVourPbiQjiGd83hZbzXFmkbYhWEGvBxTpQVoTA91p_SjxYS8se0qvrGh44o0TAjRZ1YB4fmGFJXlvXZQ.hMYDSp9Qo7iBIC1rWOuXxiZdAkHTF8K5lJvIZ-jiixE", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "b1c84b2d-6dca-4a62-9a18-29597389d1c5", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "578934", + "x-content-type-options" : "nosniff", + "client-request-id" : "2e7805ed-fc03-44c7-a488-f635ee27915b", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us3089424702435\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us3089424702435\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-25T22:55:46Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us3089424702435@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}", + "ocp-aad-diagnostics-server-name" : "9GQqI6S1ECS4j4T2qnjxLorVEkd1sq21GP7tQfmsPNE=" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:53 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "27a80ce4-a2c2-47c4-90d4-126550c02feb", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225553Z:27a80ce4-a2c2-47c4-90d4-126550c02feb", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "27a80ce4-a2c2-47c4-90d4-126550c02feb", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net\",\"provisioningState\":\"RegisteringDns\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:55:53 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14992", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0ae65251-d865-4cf8-bc09-ffca84beebb8", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225553Z:0ae65251-d865-4cf8-bc09-ffca84beebb8", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "0ae65251-d865-4cf8-bc09-ffca84beebb8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"RegisteringDns\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:22 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1103", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14991", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "036ae588-16c7-45ae-af43-be3af6e58d4f", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:036ae588-16c7-45ae-af43-be3af6e58d4f", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "036ae588-16c7-45ae-af43-be3af6e58d4f", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:22 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1103", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14990", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "84386aca-ef8f-4acd-9d7a-f889fead6119", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:84386aca-ef8f-4acd-9d7a-f889fead6119", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "84386aca-ef8f-4acd-9d7a-f889fead6119", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:22 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1345", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14989", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "e02d847e-f0f3-4a3e-8d92-f1583b48be68", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:e02d847e-f0f3-4a3e-8d92-f1583b48be68", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "e02d847e-f0f3-4a3e-8d92-f1583b48be68", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}],\"nextLink\":\"http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC0wNDg0Mw==\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC0wNDg0Mw==", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:23 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "12", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14988", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "da5f0250-948c-474e-8b3f-10543af4ffc3", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:da5f0250-948c-474e-8b3f-10543af4ffc3", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "da5f0250-948c-474e-8b3f-10543af4ffc3", + "Body" : "{\"value\":[]}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC0wNDg0Mw==", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:23 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "12", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14987", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "232d1323-da9f-4a6e-a1ca-f105b2743b3a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:232d1323-da9f-4a6e-a1ca-f105b2743b3a", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "232d1323-da9f-4a6e-a1ca-f105b2743b3a", + "Body" : "{\"value\":[]}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:23 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1356", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "13cd28c0-3146-46cb-9dcb-ddd65176cd2c", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225624Z:13cd28c0-3146-46cb-9dcb-ddd65176cd2c", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "13cd28c0-3146-46cb-9dcb-ddd65176cd2c", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{\"foo\":\"bar\"},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\",\"decrypt\",\"wrapKey\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[],\"certificates\":[\"get\",\"getissuers\",\"manageissuers\",\"update\",\"list\",\"delete\",\"restore\",\"managecontacts\",\"deleteissuers\",\"recover\",\"listissuers\",\"import\",\"backup\",\"create\",\"setissuers\",\"purge\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:25 GMT", + "content-length" : "0", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "de5a3d91-41cd-4a5b-8946-8713ad7f1f95", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225626Z:de5a3d91-41cd-4a5b-8946-8713ad7f1f95", + "x-powered-by" : "ASP.NET", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "de5a3d91-41cd-4a5b-8946-8713ad7f1f95", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:45 GMT", + "content-length" : "88", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14986", + "StatusCode" : "404", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0d9636ac-b608-4c6d-8c29-bea8ccdb56da", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225646Z:0d9636ac-b608-4c6d-8c29-bea8ccdb56da", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "0d9636ac-b608-4c6d-8c29-bea8ccdb56da", + "Body" : "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The specified resource does not exist.\"}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:45 GMT", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "YI7DICF90UucDsSCyF6Wz4bqfaHjWdktpC600X3J6_HuWPh2DdY9JWquN6sUNrKzo53DLjt2pjsgHem810omHXiB5QrrlMl3HDP5HmvZDhRVk6TR1wnv3l0vwWdOxqxN6wCo3GWYIOX6yKgcX7aDIQ.CctlyLpz3k4BCzJQtoBjwAE6nzIFZUWgX3OU4yuZDxE", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "63ca0105-ba43-42f0-8f42-58ea869a359e", + "StatusCode" : "204", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "3257719", + "x-content-type-options" : "nosniff", + "client-request-id" : "5a11dda5-4e8d-4edc-a42d-cba6269abab5", + "x-powered-by" : "ASP.NET", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "1.0;", + "Body" : "", + "ocp-aad-diagnostics-server-name" : "raR8JNajDTfwSzq60owihwvzZvfOxnwzwr6uWdDMZbM=" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg83499?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:46 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "39e06cd2-ca41-466d-8201-d4374cdbfb3e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225647Z:39e06cd2-ca41-466d-8201-d4374cdbfb3e", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4MzQ5OS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "39e06cd2-ca41-466d-8201-d4374cdbfb3e", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg83499", "java-keyvault-04843", "sp198569713e37c", "us3089424702435", "0be89a7e-f775-4f81-a1d7-f508ca0b0c8a", "10dfa443-6902-4863-b4c6-c68527f1e5ee", "abe44835-b043-45d1-9e09-c00be20d9d78", "f968e276-9820-4cf8-8fe8-e5e6e6a34cb8", "803da237-8317-4b8e-8e1d-eaff92d261a9", "f9771119-c23f-4e66-88b2-d8efae85a186", "4638ff03-aeb2-4ee9-ac5d-f8d9c3deb9ee", "448450b0-dac9-45e6-9a4a-77e6387c8e4a", "ae5fece2-c67f-4630-8b34-6f1baec9dbd8" ] } \ No newline at end of file diff --git a/azure-mgmt-keyvault/src/test/resources/session-records/canEnableSoftDeleteAndPurge.json b/azure-mgmt-keyvault/src/test/resources/session-records/canEnableSoftDeleteAndPurge.json new file mode 100644 index 00000000000..4dc53566250 --- /dev/null +++ b/azure-mgmt-keyvault/src/test/resources/session-records/canEnableSoftDeleteAndPurge.json @@ -0,0 +1,827 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:47 GMT", + "content-length" : "1767", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "GBAyOKHILGnZh6o_93O3dEdlVlYJ5GnazxZJ-aWksylaUqhiQWvZNkT3aLDtwOdbfD0GpWWuEq9zKAYMBOlkd14pAz2q3rKdiu6gPf-SEfpkxIyhxcOr_5WZXaAigwY2L0m8Au6orItje57tjkoB5w.d7W6VQCeydr61Mc0gElvFL0MSmpFTBpH2O5sTq-8bzo", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "ea37aa6a-4834-46d1-95ac-c5563f107f33", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "6656366", + "x-content-type-options" : "nosniff", + "client-request-id" : "68bafe60-308d-44c4-8eef-358982db1cd9", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/a94d286c-3975-421e-8a57-1b9f411e8487/Microsoft.DirectoryServices.Application", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"a94d286c-3975-421e-8a57-1b9f411e8487\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"spc483368568f0d\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://spc483368568f0d\",\"identifierUris\":[\"http://spc483368568f0d\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"isDeviceOnlyAuthSupported\":null,\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"logo@odata.mediaContentType\":\"application/json;odata=minimalmetadata; charset=utf-8\",\"logoUrl\":null,\"oauth2AllowIdTokenImplicitFlow\":false,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc483368568f0d on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc483368568f0d\",\"id\":\"7d6299a0-c31c-44f0-9aee-9ac0e97da0a3\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc483368568f0d on your behalf.\",\"userConsentDisplayName\":\"Access spc483368568f0d\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"parentalControlSettings\":{\"countriesBlockedForMinors\":[],\"legalAgeGroupRule\":\"Allow\"},\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://spc483368568f0d\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "Sv8LAqxM3Xd8KdoykW0mGkYyWG5hzFClI07Ok7DI0I8=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/a94d286c-3975-421e-8a57-1b9f411e8487/keyCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:47 GMT", + "content-length" : "158", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "o-11wGqdjNEsdWUBM8euGQFNGWPEXIfEJFxA-DYQNBq6IgoiKm-LZK8JJrEiAqIc-RiswaDo3Qhwc9hK-urTF3RAKYYtw_IbMzKBnsh-d5TTUZOBQhYcYmHHp83ZuKFCB-ALkw5KTyrjYoR3in3OTw.CprBK2ab54Zh35DcGpR5kZKLBRDQkjr_bz3sRwWuT2Y", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "a72fc05a-3e58-4e81-bcba-f256757d5fb2", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "365983", + "x-content-type-options" : "nosniff", + "client-request-id" : "9b093ed8-ad72-4c4e-aba4-3777f5f572ae", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "EditZjTBaEYCrvrHgtCp7VwlKGMxwmW6BfXNDuF3W+4=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/a94d286c-3975-421e-8a57-1b9f411e8487/passwordCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:47 GMT", + "content-length" : "163", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "o8s8Y49ZQ3OV8v3dsTDfzzcQR-q2vo3YqCpJlIiKfIehvw_3k_rNsn3zR9thTqvGTjFgAQiddwoFiW1gob9qJs-zi8vHRxox0xr2T7x6uEb_Awmy6hFLf_s-K3hQ_SDyOqi_MHXt05MvRgG8bE0APw.Cn0nkrZSH3U5yAu0U_mPXKvsR_jYb8GvwHy2Kh6Lglw", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "4176bfab-85b5-4eb5-a894-24aee976ae00", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "382192", + "x-content-type-options" : "nosniff", + "client-request-id" : "b794b763-1312-48b1-9915-0f28f35aafd6", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "qbLQHeemSYnF6GFzxWPxyco92r/HwDdCBwNHurdokdI=" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:48 GMT", + "content-length" : "1450", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "trcLcrI9GGsjq0Gwxuavh-92jYD1tBDYyHnPtDGvu7nq4vtwEZxMaF-SZRO_khqloPmTwMPSQcCaw6_1F_VYk3jIDp_qckBQq5GxiGuTJRD7e-KoAMQ0pArOigguhoU8nGt1OBftz9ejwWopCg7bCQ.4G8rhQFrKxvXu3-Y8d-fi3r6dCQ4vQyFwVFaoiS1Z4c", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "45b8a074-5240-4ed7-9756-ed189a68b995", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "3752129", + "x-content-type-options" : "nosniff", + "client-request-id" : "aced4f7b-49f2-4e4a-9c14-f86ea9b687fd", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/5cc52486-38d2-42be-a9f6-541518e3e453/Microsoft.DirectoryServices.ServicePrincipal", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spc483368568f0d\",\"appId\":\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spc483368568f0d\",\"errorUrl\":null,\"homepage\":\"http://spc483368568f0d\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc483368568f0d on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc483368568f0d\",\"id\":\"7d6299a0-c31c-44f0-9aee-9ac0e97da0a3\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc483368568f0d on your behalf.\",\"userConsentDisplayName\":\"Access spc483368568f0d\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spc483368568f0d\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\",\"http://spc483368568f0d\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "MjPAJVvgC3key9HyT1tst0r01pKZJnpyPQ4YiB+LaOA=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453/keyCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:48 GMT", + "content-length" : "158", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "XtWdbQKHPMLT5yBoVhxPReNPgImd75fcE_W9Ryrkz4eCOtlAyNtr9nd73kxaB6vvdZmnABYtwDvWS516XorBE9CJOTMMmVLw-dcsPwhzxNYGKV4EDvznmJFBJPny2Vw35kPS_tVc_7CJFzraER0RGA.e4Fj3ncfqvJ7jZm-gnvb3KW1TAtq5--Ju5JJRl1GPkU", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "74e8f590-4c57-4538-9200-f4f13339da98", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "722425", + "x-content-type-options" : "nosniff", + "client-request-id" : "55b5b610-d3dc-4a6a-968d-cd5e07db8d26", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "Y5fnsaXih/izETO5cgkZ+YM4xOA2rFM9Za4eUALb424=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453/passwordCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:48 GMT", + "content-length" : "163", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "y6GCU9fej5CcduGArUMIHDYkpHX2jaP_hk0_ORO92mqy0qOdjhWbOVu8-YCOLGssq_5By4dJ9JF5aLWVFivrTSF2eQSYpIBGhijtDS2muS5u6Ge0D0hL-vT5WD6yCm_cHALRYQbvFjCHw-MjgV03SQ.l0uVIFA_qB8B1OUf68FOkqxNiNATb309DHTLNcaFCBs", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "8c0f8d23-ea05-4403-819f-da557758735e", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "1113047", + "x-content-type-options" : "nosniff", + "client-request-id" : "31459a99-682d-4211-b0ee-abbd3206c618", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "MjPAJVvgC3key9HyT1tst0r01pKZJnpyPQ4YiB+LaOA=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/domains?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:48 GMT", + "content-length" : "885", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "JY2wEaK02KWe4aK9xXv-S5UiMpA3OqqxvWMTOAZffiYbON7y7wSaacVJ96jzCVZDJ5uLSmOHzNbNFX5uLXlpaV89Z5Gu28e0Amt9v4W8o0VMefvJvv0BTfn7WGKtMwatlK_MJ6-KTtYbnUupFB1Aqg.lR8z0Wc-HEZtLvz9fPXz89Jq8nfPvSs3fWWu426UI34", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "aee53754-ff59-45b7-9c92-9780a69de719", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "331679", + "x-content-type-options" : "nosniff", + "client-request-id" : "ca28196c-7cd0-4ab4-89c6-609aac540dfe", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#domains\",\"value\":[{\"authenticationType\":\"Federated\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":false,\"isVerified\":false,\"name\":\"BFDevOpsNonRestricted.onmicrosoft.de\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":true,\"isVerified\":true,\"name\":\"azdevextest.com\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":true,\"isInitial\":true,\"isRoot\":true,\"isVerified\":true,\"name\":\"AzureSDKTeam.onmicrosoft.com\",\"supportedServices\":[\"Email\",\"OfficeCommunicationsOnline\"],\"forceDeleteState\":null,\"state\":null}]}", + "ocp-aad-diagnostics-server-name" : "Hmgcuy1hpGi6KCpCk4BrqM0RyCbBpwqDLCqIAEp//qg=" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:49 GMT", + "content-length" : "1474", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "PR8jCNuCVWk79kI_LR6xn0gbYxkGFUS9pkwDCOYM-H-YQaHonLczwgTdNtvr9r2n85-gKqzHVgUyyx33JU_lqhEAhQ6z3Mk6dMUiAOHZjpl0_Iwl8JoJwXskpWA31QIloXsS2o_L9uAAAia3YQok7A.GWL3RjdI88fLXd5lJ0_lar200slr15aezUthESZ8hR0", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "10763fd9-ecd3-4487-88db-e910c2071598", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "10217032", + "x-content-type-options" : "nosniff", + "client-request-id" : "76a2f8b9-8989-4584-a0ef-7af1f6f22d3b", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/690c1ebb-3d2a-446f-b07a-890789e56445/Microsoft.DirectoryServices.User", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"usf3e668749015a\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"usf3e668749015a\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-25T22:56:49.2134804Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"usf3e668749015a@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}", + "ocp-aad-diagnostics-server-name" : "CLBFhp12uVA5Nnh6MG2VC8aF6kYj6BwyK0Y6WAoeTzc=" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg73244?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "content-length" : "181", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "d84939de-a4de-407e-bc0b-09f949b7f1eb", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225652Z:d84939de-a4de-407e-bc0b-09f949b7f1eb", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d84939de-a4de-407e-bc0b-09f949b7f1eb", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244\",\"name\":\"javacsmrg73244\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://spc483368568f0d%27)&api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:51 GMT", + "content-length" : "1453", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "LUKPniVY63gNQC9XIhQ4E5K9h1r221u6phIG61QD3OQ-esuogzT36Wc2bDBMPAKCVZdpYaM1gKY-wnrQhWg9SpCaTW7XVvuf1pWHFBT0-d_a-crdulU83oJI-nKr8MqtQ6241654ybMEdQW53eKMhw.pyPtMK5J_fOYR82jnbmvD4DWZVRV-LnMh5XMep-OZnY", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "c7d32b43-26d6-4747-bb92-fbb391c19aaa", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "360726", + "x-content-type-options" : "nosniff", + "client-request-id" : "295769bf-98bb-4534-86ce-c6cf864a8fba", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spc483368568f0d\",\"appId\":\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spc483368568f0d\",\"errorUrl\":null,\"homepage\":\"http://spc483368568f0d\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc483368568f0d on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc483368568f0d\",\"id\":\"7d6299a0-c31c-44f0-9aee-9ac0e97da0a3\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc483368568f0d on your behalf.\",\"userConsentDisplayName\":\"Access spc483368568f0d\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spc483368568f0d\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://spc483368568f0d\",\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}]}", + "ocp-aad-diagnostics-server-name" : "aLjul60AojNkmrHXU2K8UCWjsiSBDyBxA+NSaz2RTqQ=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453/keyCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "content-length" : "158", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "RNJlO7dQ9lTC1dXY2z52cvTlV1Jn4nF9HAuKHWPezDPydCOUuTRZJ_Di0iVsgiFyCphmU83LaLIkSOJsUSiIfcajsO2WmNrfIzKBfSFBeZ7gl1WnFPyT6GKZ3qWZnr56NjXxmVQ8xnXTaIqyWvmbkg.Nav5YUju2apxBNIM04-bKxOjYnoXuV4a9I2NM3Vh4BQ", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "dc9bf77c-4acb-4ce7-86db-4429247826fb", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "3175308", + "x-content-type-options" : "nosniff", + "client-request-id" : "72e2c6a9-b8b2-4032-b373-feee455542e3", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "Sv8LAqxM3Xd8KdoykW0mGkYyWG5hzFClI07Ok7DI0I8=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453/passwordCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "content-length" : "163", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "2JznrRnwSR8z6Wnan-o-YxsUI_ei89fmufa1r0s16ZcvF7HhIAuLm5qVTnciVxQfMUsIOTeXoUoTFxrQG9ypIT68b5P-d1kHPhPVy9HXUhhMIPOHFTNP2kzETYiGAmoYzP8d50DAMOltTCo9Eg9ATA.oNwBvoDf7fdgb6Wd1WGUrm-Yx2rDaMjVZQ_lcEW6h6Q", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "63a33b65-7dc1-4f20-aa87-60186f7d40fc", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "518449", + "x-content-type-options" : "nosniff", + "client-request-id" : "6f074414-2ba7-462c-bd05-85e9f25e31fc", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "pMP8f8RT8BuYgTu1dfMWey3W85KBh0EioUNuKG1c8Zw=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/usf3e668749015a?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "content-length" : "193", + "server" : "Microsoft-IIS/10.0", + "ocp-aad-session-key" : "NIX_Pk7tQ0qjZGtdLPOlD7Glo-ppFm-4AQPKqZrLQa6SuLJMsLZxyAORUhC0ZNmI6YFjrS6i21JrNbf1pTSQAbmPvni6W8vMSoysqyUsG4xw5aqqPjHOEh-lrOFyqj3zwTzSENj6Y4Nnu4R71Y5ZUg.E1Ee7p2KoPATqf260bPXCMe_ycSSuCoSmd7VoZVkTpo", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "905cb4fb-8267-47c5-9181-bd12f69b2a5b", + "StatusCode" : "404", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "2383821", + "client-request-id" : "102045ce-65f1-4198-bee6-516af83f6bf9", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; charset=utf-8", + "cache-control" : "private", + "x-ms-dirapi-data-contract-version" : "1.6", + "Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'usf3e668749015a' does not exist or one of its queried reference-property objects are not present.\"}}}", + "ocp-aad-diagnostics-server-name" : "Hmgcuy1hpGi6KCpCk4BrqM0RyCbBpwqDLCqIAEp//qg=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27usf3e668749015a%27&api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "content-length" : "1469", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "f6HRFtepZ7rVoL2Zhaka-c_ZmWUtmvH9bDQR7HbnWB8qE13yEFTNkCE0zI6hCrHBnJumHjNshBhysXqQtXAMYFM84_hkqKQmCAgkb4HRerHGDnEukmRmyGeHec-7eiKizmUMou6hzKcpzI4y3w-tZg.S9thwsOYfQgd-zwheYO1ulFVS_gSeZa8AsztyK1vNZg", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "97a497cd-05c8-429d-8cf0-db346f821fa1", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "729869", + "x-content-type-options" : "nosniff", + "client-request-id" : "7d87a76b-3c53-4661-bf75-9c5a65edada3", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"usf3e668749015a\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"usf3e668749015a\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-25T22:56:49Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"usf3e668749015a@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}", + "ocp-aad-diagnostics-server-name" : "Hmgcuy1hpGi6KCpCk4BrqM0RyCbBpwqDLCqIAEp//qg=" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:55 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1146", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "d81d5db6-895b-400a-a4dd-0ff63953bfee", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225655Z:d81d5db6-895b-400a-a4dd-0ff63953bfee", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "d81d5db6-895b-400a-a4dd-0ff63953bfee", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-90388other.vault.azure.net\",\"provisioningState\":\"RegisteringDns\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:56:55 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1147", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14986", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "db458e7d-8fcc-405e-9e60-26010a2aa1ed", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225655Z:db458e7d-8fcc-405e-9e60-26010a2aa1ed", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "db458e7d-8fcc-405e-9e60-26010a2aa1ed", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-90388other.vault.azure.net/\",\"provisioningState\":\"RegisteringDns\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:57:25 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1142", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14985", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "f623b823-8d6c-4568-80c7-b0faa5cb9452", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225726Z:f623b823-8d6c-4568-80c7-b0faa5cb9452", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "f623b823-8d6c-4568-80c7-b0faa5cb9452", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-90388other.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:57:26 GMT", + "content-length" : "0", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "a2547106-74a0-4042-92fa-216a04e548ea", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225726Z:a2547106-74a0-4042-92fa-216a04e548ea", + "x-powered-by" : "ASP.NET", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "a2547106-74a0-4042-92fa-216a04e548ea", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:57:46 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "503", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14984", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "cbdf89a9-16e9-454a-bf11-04fc2711578f", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225747Z:cbdf89a9-16e9-454a-bf11-04fc2711578f", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "cbdf89a9-16e9-454a-bf11-04fc2711578f", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/deletedVaults\",\"properties\":{\"vaultId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"location\":\"westus\",\"tags\":{},\"deletionDate\":\"2018-04-25T22:57:26Z\",\"scheduledPurgeDate\":\"2018-07-24T22:57:26Z\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:57:46 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "503", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14983", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "c0cbc7ba-c76c-4cae-9f35-f56506dcdcb7", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225747Z:c0cbc7ba-c76c-4cae-9f35-f56506dcdcb7", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "c0cbc7ba-c76c-4cae-9f35-f56506dcdcb7", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/deletedVaults\",\"properties\":{\"vaultId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"location\":\"westus\",\"tags\":{},\"deletionDate\":\"2018-04-25T22:57:26Z\",\"scheduledPurgeDate\":\"2018-07-24T22:57:26Z\"}}" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other/purge?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:57:46 GMT", + "content-length" : "0", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "5be17f5b-5fe7-4c80-b9d9-a87e919a8a03", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225747Z:5be17f5b-5fe7-4c80-b9d9-a87e919a8a03", + "x-powered-by" : "ASP.NET", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "5be17f5b-5fe7-4c80-b9d9-a87e919a8a03", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:57:47 GMT", + "content-length" : "64", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14982", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "015f23a4-5095-4211-8970-332b78c8715e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225747Z:015f23a4-5095-4211-8970-332b78c8715e", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "015f23a4-5095-4211-8970-332b78c8715e", + "Body" : "{\"createdDateTime\":\"2018-04-25 22:57:47Z\",\"status\":\"NotStarted\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:57:52 GMT", + "content-length" : "64", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14981", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ec982a80-d100-4e65-a98f-bc9efc24df7a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225752Z:ec982a80-d100-4e65-a98f-bc9efc24df7a", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "ec982a80-d100-4e65-a98f-bc9efc24df7a", + "Body" : "{\"createdDateTime\":\"2018-04-25 22:57:47Z\",\"status\":\"NotStarted\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:57:57 GMT", + "content-length" : "64", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14980", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "c8a7062c-14d3-49f8-b78c-89464aa03f3f", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225757Z:c8a7062c-14d3-49f8-b78c-89464aa03f3f", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "c8a7062c-14d3-49f8-b78c-89464aa03f3f", + "Body" : "{\"createdDateTime\":\"2018-04-25 22:57:47Z\",\"status\":\"NotStarted\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:58:02 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14979", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0300ab90-d9ef-4fc5-830a-6bb799634d2e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225802Z:0300ab90-d9ef-4fc5-830a-6bb799634d2e", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "0300ab90-d9ef-4fc5-830a-6bb799634d2e", + "Body" : "{\"createdDateTime\":\"2018-04-25 22:57:47Z\",\"lastActionDateTime\":\"2018-04-25 22:58:02Z\",\"status\":\"Succeeded\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:58:21 GMT", + "content-length" : "88", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14978", + "StatusCode" : "404", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "d81fdfc9-9a26-4091-9c76-1ea1834d5ce8", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225822Z:d81fdfc9-9a26-4091-9c76-1ea1834d5ce8", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.214", + "x-ms-request-id" : "d81fdfc9-9a26-4091-9c76-1ea1834d5ce8", + "Body" : "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The specified resource does not exist.\"}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:58:22 GMT", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "eQdiGvaafZkDSzroy10yYb52yQRtmANaoV-aLDEsDiyn_jvZJUZzJDBGGibCTN0ksNKSRoIsIev1_bJbPg00yuEWACO53lES8I9uaXCkFZM83Al2CmoSA2kJo0j6pPfxVsZv6LphNGHzGjlywx-EHg.QqxtbXCXdS9mqvxetZoIxFNViv6RniKLxj36553aqKE", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "f7860f91-4a94-426f-bb0c-623f1bb6af5b", + "StatusCode" : "204", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "3070022", + "x-content-type-options" : "nosniff", + "client-request-id" : "42a7ae1c-6ff5-43c9-91a9-5b2f3afdabdd", + "x-powered-by" : "ASP.NET", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "1.0;", + "Body" : "", + "ocp-aad-diagnostics-server-name" : "PWJF5MXsNJeXfk2GpX0VavQ33Q7BBlAFQ1PBOgmVl+Y=" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg73244?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 25 Apr 2018 22:58:22 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "9aa40311-8fc5-4421-91f0-18b660e8fbfa", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180425T225823Z:9aa40311-8fc5-4421-91f0-18b660e8fbfa", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3MzI0NC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "9aa40311-8fc5-4421-91f0-18b660e8fbfa", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg73244", "java-keyvault-90388", "spc483368568f0d", "usf3e668749015a", "d37703d1-6289-445e-be74-cf2f4ccd3218", "b96b5bd8-2fa2-4685-8c88-271771cf78d6", "c50ce790-acf4-471f-9209-4dedecdb13e7", "4bd4e900-7bca-46c9-9c1c-b42641478bd0", "640fd95c-409f-49df-be9a-8bde8cadefcb", "d37d0162-1db2-4712-8ebc-bec692a7581e", "cf825de6-5654-4b62-a2ca-0b464361a860" ] +} \ No newline at end of file From 6b777b9077bbeedd96f815801b41938a183f598b Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Thu, 26 Apr 2018 15:06:11 -0700 Subject: [PATCH 03/16] Updates from code review --- .../management/keyvault/AccessPolicy.java | 13 +- .../azure/management/keyvault/Vaults.java | 20 +- .../implementation/AccessPolicyImpl.java | 16 +- .../implementation/DeletedVaultImpl.java | 27 +- .../keyvault/implementation/VaultImpl.java | 22 +- .../keyvault/implementation/VaultsImpl.java | 12 +- .../azure/management/keyvault/VaultTests.java | 10 +- .../session-records/canCRUDVault.json | 384 +++++++------- .../canEnableSoftDeleteAndPurge.json | 482 +++++++++--------- 9 files changed, 501 insertions(+), 485 deletions(-) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java index 2816b668fe4..517035011ef 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java @@ -17,7 +17,6 @@ import com.microsoft.azure.management.resources.fluentcore.model.Settable; import java.util.List; -import java.util.UUID; /** * An immutable client-side representation of a key vault access policy. @@ -30,7 +29,7 @@ public interface AccessPolicy extends * @return The Azure Active Directory tenant ID that should be used for * authenticating requests to the key vault. */ - UUID tenantId(); + String tenantId(); /** * @return The object ID of a user or service principal in the Azure Active @@ -41,7 +40,7 @@ public interface AccessPolicy extends /** * @return Application ID of the client making request on behalf of a principal. */ - UUID applicationId(); + String applicationId(); /** * @return Permissions the identity has for keys and secrets. @@ -108,7 +107,7 @@ interface WithIdentity { * @param applicationId the application ID * @return the next stage of access policy definition */ - WithAttach forApplicationId(UUID applicationId); + WithAttach forApplicationId(String applicationId); /** * Specifies the Azure Active Directory tenant ID that should be used for @@ -117,7 +116,7 @@ interface WithIdentity { * @param tenantId the tenant ID for the key vault. * @return the next stage of access policy definition */ - WithAttach forTenantId(UUID tenantId); + WithAttach forTenantId(String tenantId); /** * Specifies the Active Directory group this access policy is for. @@ -291,7 +290,7 @@ interface WithIdentity { * @param applicationId the application ID * @return the next stage of access policy definition */ - WithAttach forApplicationId(UUID applicationId); + WithAttach forApplicationId(String applicationId); /** * Specifies the Azure Active Directory tenant ID that should be used for @@ -300,7 +299,7 @@ interface WithIdentity { * @param tenantId the tenant ID for the key vault. * @return the next stage of access policy definition */ - WithAttach forTenantId(UUID tenantId); + WithAttach forTenantId(String tenantId); /** * Specifies the Active Directory group this access policy is for. diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java index e7fccda0578..f597e0477f1 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java @@ -27,6 +27,7 @@ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") public interface Vaults extends SupportsCreating, + SupportsDeletingById, SupportsListingByResourceGroup, SupportsGettingByResourceGroup, SupportsGettingById, @@ -34,30 +35,27 @@ public interface Vaults extends HasManager, HasInner { - public PagedList listDeleted(); - /** - * Gets the deleted Azure key vault. + * Gets information about the deleted vaults in a subscription. * - * @param vaultName The name of the vault. - * @param location The location of the deleted vault. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DeletedVaultInner object if successful. + * @return the PagedList<DeletedVaultInner> object if successful. */ - public DeletedVault getDeleted(String vaultName, String location); + public PagedList listDeleted(); /** - * Deletes the specified Azure key vault. + * Gets the deleted Azure key vault. * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName The name of the vault to delete + * @param vaultName The name of the vault. + * @param location The location of the deleted vault. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DeletedVaultInner object if successful. */ - public void delete(String resourceGroupName, String vaultName); + public DeletedVault getDeleted(String vaultName, String location); /** * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java index b97ad9915bd..15213e0f594 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java @@ -56,11 +56,11 @@ String servicePrincipalName() { } @Override - public UUID tenantId() { + public String tenantId() { if (inner().tenantId() == null) { return null; } - return inner().tenantId(); + return inner().tenantId().toString(); } @Override @@ -72,11 +72,11 @@ public String objectId() { } @Override - public UUID applicationId() { + public String applicationId() { if (inner().applicationId() == null) { return null; } - return inner().applicationId(); + return inner().applicationId().toString(); } @Override @@ -236,14 +236,14 @@ public AccessPolicyImpl forUser(String userPrincipalName) { } @Override - public AccessPolicyImpl forApplicationId(UUID applicationId) { - inner().withApplicationId(applicationId); + public AccessPolicyImpl forApplicationId(String applicationId) { + inner().withApplicationId(UUID.fromString(applicationId)); return this; } @Override - public AccessPolicyImpl forTenantId(UUID tenantId) { - inner().withTenantId(tenantId); + public AccessPolicyImpl forTenantId(String tenantId) { + inner().withTenantId(UUID.fromString(tenantId)); return this; } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java index 8705ce9d6a7..d419239331b 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java @@ -1,25 +1,22 @@ package com.microsoft.azure.management.keyvault.implementation; -import java.util.Map; - import com.microsoft.azure.management.keyvault.DeletedVault; -import com.microsoft.azure.management.resources.fluentcore.arm.Region; import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; public class DeletedVaultImpl extends WrapperImpl implements DeletedVault { - - DeletedVaultImpl(DeletedVaultInner inner) { - super(inner); - } - @Override - public String name() { - return inner().name(); - } + DeletedVaultImpl(DeletedVaultInner inner) { + super(inner); + } + + @Override + public String name() { + return inner().name(); + } - @Override - public String id() { - return inner().id(); - } + @Override + public String id() { + return inner().id(); + } } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java index 809670de5c8..ec4c43638de 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java @@ -25,6 +25,8 @@ import com.microsoft.azure.management.keyvault.VaultProperties; import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; import com.microsoft.azure.management.resources.fluentcore.utils.SdkContext; +import com.microsoft.azure.management.resources.fluentcore.utils.Utils; + import rx.Observable; import rx.functions.Action1; import rx.functions.Func1; @@ -125,42 +127,42 @@ public List accessPolicies() { @Override public boolean enabledForDeployment() { - if (inner().properties() == null || inner().properties().enabledForDeployment() == null) { + if (inner().properties() == null) { return false; } - return inner().properties().enabledForDeployment(); + return Utils.toPrimitiveBoolean(inner().properties().enabledForDeployment()); } @Override public boolean enabledForDiskEncryption() { - if (inner().properties() == null || inner().properties().enabledForDiskEncryption() == null) { + if (inner().properties() == null) { return false; } - return inner().properties().enabledForDiskEncryption(); + return Utils.toPrimitiveBoolean(inner().properties().enabledForDiskEncryption()); } @Override public boolean enabledForTemplateDeployment() { - if (inner().properties() == null || inner().properties().enabledForTemplateDeployment() == null) { + if (inner().properties() == null) { return false; } - return inner().properties().enabledForTemplateDeployment(); + return Utils.toPrimitiveBoolean(inner().properties().enabledForTemplateDeployment()); } @Override public boolean softDeleteEnabled() { - if (inner().properties() == null || inner().properties().enableSoftDelete() == null) { + if (inner().properties() == null) { return false; } - return inner().properties().enableSoftDelete(); + return Utils.toPrimitiveBoolean(inner().properties().enableSoftDelete()); } @Override public boolean purgeProtectionEnabled() { - if (inner().properties() == null || inner().properties().enablePurgeProtection() == null) { + if (inner().properties() == null) { return false; } - return inner().properties().enablePurgeProtection(); + return Utils.toPrimitiveBoolean(inner().properties().enablePurgeProtection()); } @Override diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java index 12ca29e92ac..546d316244b 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java @@ -121,19 +121,13 @@ public Observable typeConvertAsync(DeletedVaultInner inner) { @Override public DeletedVault getDeleted(String vaultName, String location) { - if (inner().getDeleted(vaultName, location) == null) { + Object deletedVault = inner().getDeleted(vaultName, location); + if (deletedVault == null) { return null; } - return (DeletedVault) new DeletedVaultImpl(inner().getDeleted(vaultName, location)); + return new DeletedVaultImpl((DeletedVaultInner) deletedVault); } - - @Override - public void delete(String resourceGroupName, String vaultName) { - inner().delete(resourceGroupName, vaultName); - } - - @Override public void purgeDeleted(String vaultName, String location) { inner().purgeDeleted(vaultName, location); diff --git a/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java b/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java index 9aeb9f599ba..973eb20828b 100644 --- a/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java +++ b/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java @@ -95,8 +95,8 @@ public void canCRUDVault() throws Exception { } // DELETE - keyVaultManager.vaults().delete(RG_NAME, VAULT_NAME); - Thread.sleep(20000); + keyVaultManager.vaults().deleteById(vault.id()); + SdkContext.sleep(20000); Assert.assertNull(keyVaultManager.vaults().getDeleted(VAULT_NAME, Region.US_WEST.toString())); } finally { @@ -142,13 +142,13 @@ public void canEnableSoftDeleteAndPurge() throws InterruptedException { .create(); Assert.assertTrue(vault.softDeleteEnabled()); - keyVaultManager.vaults().delete(RG_NAME, otherVaultName);; - Thread.sleep(20000); + keyVaultManager.vaults().deleteByResourceGroup(RG_NAME, otherVaultName);; + SdkContext.sleep(20000); //Can still see deleted vault. Assert.assertNotNull(keyVaultManager.vaults().getDeleted(otherVaultName, Region.US_WEST.toString())); keyVaultManager.vaults().purgeDeleted(otherVaultName, Region.US_WEST.toString()); - Thread.sleep(20000); + SdkContext.sleep(20000); //Vault is purged Assert.assertNull(keyVaultManager.vaults().getDeleted(otherVaultName, Region.US_WEST.toString())); } finally { diff --git a/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVault.json b/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVault.json index 6bbb934157e..f92846f5a19 100644 --- a/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVault.json +++ b/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVault.json @@ -7,91 +7,91 @@ "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:45 GMT", - "content-length" : "1767", + "date" : "Thu, 26 Apr 2018 21:52:48 GMT", + "content-length" : "1789", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "IMW6rRhvlc0HlbHfD5BRMO3kcLDya6-KA9OaWJ4hEdCMNDcGgufx5InPPqOtqUHg2vgbXSXHw9surnZkngKS8CQ9vudESjWbGWb2xMOlOp6dM7EJplZN0KWnkUN4974IXGvlBmE-SCaLzxhPff8grw.nnmapUeKXi2rToVVqdqZkdLgrOsIQ17skHSb3aCztBQ", + "ocp-aad-session-key" : "01ZZLfQBwecNAAXjnxE2DYDOztLvC-WKVM4G9X-pKD5eidrekZ3MIsgXDLUUqkYSrwZN6O1SkRyhAX5yj0qAsNyxovKSSOYJM4HBdwfcnOulXNsiyloV9xXYhGCfVu6jMte4_WmdX83UnvIdZ8-95g.4aw6OPFidVtbD35Wx7bZQjmlFcTXM-_Ta-6mcVuBaIc", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "ad48f17a-5c33-4e22-baa7-d46f656e3e38", + "request-id" : "09b4789d-9e5c-4829-8250-45be87263ce1", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "7017155", + "duration" : "9112906", "x-content-type-options" : "nosniff", - "client-request-id" : "52006bb2-87ef-4147-8a09-458c68449ac0", + "client-request-id" : "d7068779-64c5-4bf3-8fe1-ba72cc90ee8e", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/580a99f0-ad64-4080-8994-2907b5c9726d/Microsoft.DirectoryServices.Application", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/e099ec9f-42cf-4cdd-8a13-b7c6f4e70d0b/Microsoft.DirectoryServices.Application", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"580a99f0-ad64-4080-8994-2907b5c9726d\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"10a96f3d-2801-47ad-a194-64ee5f2f64db\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"sp198569713e37c\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://sp198569713e37c\",\"identifierUris\":[\"http://sp198569713e37c\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"isDeviceOnlyAuthSupported\":null,\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"logo@odata.mediaContentType\":\"application/json;odata=minimalmetadata; charset=utf-8\",\"logoUrl\":null,\"oauth2AllowIdTokenImplicitFlow\":false,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp198569713e37c on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp198569713e37c\",\"id\":\"a5c81cac-1dbc-418c-9e25-e068ba0e8729\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp198569713e37c on your behalf.\",\"userConsentDisplayName\":\"Access sp198569713e37c\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"parentalControlSettings\":{\"countriesBlockedForMinors\":[],\"legalAgeGroupRule\":\"Allow\"},\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://sp198569713e37c\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"tokenEncryptionKeyId\":null}", - "ocp-aad-diagnostics-server-name" : "rFMv6jCt7k8n9zj2NyMLkO1fEa5ijjfeyD4ZP3WWKYs=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"e099ec9f-42cf-4cdd-8a13-b7c6f4e70d0b\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"5d471202-2bb9-4629-8c25-d07ba944714a\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"spd6b940244cf37\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://spd6b940244cf37\",\"identifierUris\":[\"http://spd6b940244cf37\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"isDeviceOnlyAuthSupported\":null,\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"logo@odata.mediaContentType\":\"application/json;odata=minimalmetadata; charset=utf-8\",\"logoUrl\":null,\"oauth2AllowIdTokenImplicitFlow\":false,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spd6b940244cf37 on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spd6b940244cf37\",\"id\":\"6da0851a-6fa7-4617-9d1c-93bc5f216e4e\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spd6b940244cf37 on your behalf.\",\"userConsentDisplayName\":\"Access spd6b940244cf37\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"parentalControlSettings\":{\"countriesBlockedForMinors\":[],\"legalAgeGroupRule\":\"Allow\"},\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://spd6b940244cf37\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"signInAudience\":null,\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "TYqFcwXWOChFCYe863Ass3L6LUsoEAAlBpUkoGumdpw=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/580a99f0-ad64-4080-8994-2907b5c9726d/keyCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/e099ec9f-42cf-4cdd-8a13-b7c6f4e70d0b/keyCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:45 GMT", + "date" : "Thu, 26 Apr 2018 21:52:48 GMT", "content-length" : "158", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "hpyosOGFerkpicOQZHFurwWum3AMm0l6D6omtFRqMZymci5lRDdrwI5qvBC7KzEOCnVky_8EulR8U4LgOQc3F0MnTI1BGxo2zyi31t2YDG2_lA84PVAz0rC-DvXfpvR6J1t3-ADjYvpRMtwvwpElXw.6SyziXV_7z_dBYgYMiHg__b8pf13PqVqgiCfL7aezzM", + "ocp-aad-session-key" : "7Zxf8_qrCqjm168d8b-6n96mvNYeY9arafg69uOdniQKefZIN2M6szR-CmhpDz3p99_SodSX2iQV0zznCpQYW2eaa5A_mU5RsUAHoYiOuWxE1e1adZ_amaLU2D8t0safDEQ1SrHT5IzSQXVolfQyQQ.gB99dpiV1I-DclWYX2dGd2-f40zoj4yliD-HZAeD_To", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "be39df2e-b1b9-4e35-b80e-b8a54f776be8", + "request-id" : "dce92329-7cf0-467c-8606-21468151a6fc", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "522604", + "duration" : "567245", "x-content-type-options" : "nosniff", - "client-request-id" : "379b9f10-a08b-4cdc-84f0-a3d3ebede308", + "client-request-id" : "bf6f3873-ce41-422c-a450-cd3dfb0a08b3", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "R24SEsKL6l8WwGja0LsRtb5gfSEzPaANsccbqgL6qjQ=" + "ocp-aad-diagnostics-server-name" : "EditZjTBaEYCrvrHgtCp7VwlKGMxwmW6BfXNDuF3W+4=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/580a99f0-ad64-4080-8994-2907b5c9726d/passwordCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/e099ec9f-42cf-4cdd-8a13-b7c6f4e70d0b/passwordCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:45 GMT", + "date" : "Thu, 26 Apr 2018 21:52:48 GMT", "content-length" : "163", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "jhIqI-0K2AepFLr9vjoTvz1HwbCyodhTDv0ni5vhFoigwd3XV36SONJvpWUTKuRl2_7Ek4hr5Cs_6B_k7EFdvd7ipeRuPxMO9l3tJMOmDqNTvF9f_6KBAsBbwE_CtcDzBC6neHI1wIwO0ZApAf8ZIQ.fxH6dfvkBpiYvrOKI4Y70zfRdjPvPOz49X2omvUdFVE", + "ocp-aad-session-key" : "_AUSIYshs1LkzsYY2f3x5mErm3t0HqIEpnXhTcatmF8Tpf4Ym_bpsetVPJxLlqN0wKb4csvrNSgpKANlHBRf_V9fsc0qfE_wZ0Y4P8HJ_zWSu7ftxUavVpJSbHAfmQdT5TDLhfD4A5TddLkcR1fRzQ.D17js_GKrYwp_n8snmW-ceTwvJsYvuMw-6I_aHBaZxQ", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "c5d9522e-74fd-4be9-8d4a-3538d0fa587f", + "request-id" : "688d8773-64b0-457c-98cc-8ed4cb0d6de0", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "390332", + "duration" : "381771", "x-content-type-options" : "nosniff", - "client-request-id" : "1cf13d2a-69b7-4ebd-b1cb-77115e6b5d3a", + "client-request-id" : "24a81153-35ab-441c-8f53-2608114cb4e8", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "6nXKrctRtSptRoHzozTVMUA02WQGzIDDAMhbiPlyMGM=" + "ocp-aad-diagnostics-server-name" : "Lvh0/G78olXOk4T0L5DDgaqMqxW05ALila/UzU46pxE=" } }, { "Method" : "POST", @@ -101,91 +101,91 @@ "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:46 GMT", - "content-length" : "1450", + "date" : "Thu, 26 Apr 2018 21:52:50 GMT", + "content-length" : "1472", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "L4NtG8q2JGs8cof4K0TH5_YSvQ8-k81NsCf2lY_T0QvAlO9v4ecFaZiv6pov2UNrF9iFPgbU0LpXh4rL-HoxunN1M8lIbzWAx1VFurCFZgrfygURKHNVzY2mZ2ajW2EpuKkTrOjfI8gFniBtDgSv_g.Y06-17K5x2asLMA1Cig1PAODr-urLgpa-iP6slRQqZE", + "ocp-aad-session-key" : "ifYVVthb4mjirnvWgIxQp3CfdyCarabsBkYFk2Vo_6cJkR2klNhJyqbOafWIGVS9QIq8V9gAPlIK6jwcaghH4G-2UzXAcPDmpIxK7SWILwx0eOnxoy8F57NoANZtbqxDGJJnJ02nYbfOaAH8N7C0CQ.BSWQq9PhYZJnUqrW-BM-gtaUwkDVzK7qK4hEcw3KgAA", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "5c5ab40c-fce3-4f81-af52-cccc0ca688d3", + "request-id" : "12582261-c288-41fe-b222-708cfa5d8457", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "3845010", + "duration" : "4015335", "x-content-type-options" : "nosniff", - "client-request-id" : "4a2652e7-1ebf-4ad4-a4fd-b3357eed4d5d", + "client-request-id" : "37ebbfdc-3f22-45f5-98a9-67c9b3493eba", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/083c3836-d854-4eb4-be3b-e3b4c529bc3a/Microsoft.DirectoryServices.ServicePrincipal", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/aff293ca-6d8b-4dbd-ab0b-98d87173d712/Microsoft.DirectoryServices.ServicePrincipal", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"sp198569713e37c\",\"appId\":\"10a96f3d-2801-47ad-a194-64ee5f2f64db\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"sp198569713e37c\",\"errorUrl\":null,\"homepage\":\"http://sp198569713e37c\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp198569713e37c on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp198569713e37c\",\"id\":\"a5c81cac-1dbc-418c-9e25-e068ba0e8729\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp198569713e37c on your behalf.\",\"userConsentDisplayName\":\"Access sp198569713e37c\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://sp198569713e37c\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"10a96f3d-2801-47ad-a194-64ee5f2f64db\",\"http://sp198569713e37c\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}", - "ocp-aad-diagnostics-server-name" : "fQLJJo2NQKA1MEYhE9K05hCw7w6tp5qp0L6SHCVm0xw=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"aff293ca-6d8b-4dbd-ab0b-98d87173d712\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spd6b940244cf37\",\"appId\":\"5d471202-2bb9-4629-8c25-d07ba944714a\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spd6b940244cf37\",\"errorUrl\":null,\"homepage\":\"http://spd6b940244cf37\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spd6b940244cf37 on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spd6b940244cf37\",\"id\":\"6da0851a-6fa7-4617-9d1c-93bc5f216e4e\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spd6b940244cf37 on your behalf.\",\"userConsentDisplayName\":\"Access spd6b940244cf37\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spd6b940244cf37\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"5d471202-2bb9-4629-8c25-d07ba944714a\",\"http://spd6b940244cf37\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "6sTYi6HZBwtdOliPah3Qmr6rDRaw7yUhI62lIb9BUR0=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a/keyCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/aff293ca-6d8b-4dbd-ab0b-98d87173d712/keyCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:46 GMT", + "date" : "Thu, 26 Apr 2018 21:52:50 GMT", "content-length" : "158", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "_DWW1zdx61ohuICmXd0Ws1jeTX05Tu3tH5GWR85Rur1JEgoK2INbZhD60rhK_wHor3nLo4hf2uqsIrWe4MjO4SXl4xL0ClmDjBz_bnSHLcgYuhHx3YJtdNfOvLJ11pttJNLJvVjyljI-i68PIytmkg.s3FImL4AO22bSudMmG4j0w3jHvLJpuW5Xpo1CpjsUg0", + "ocp-aad-session-key" : "P3oQd-4Kc4dDIrjHGfhHUmvhTwiNucf538EbqnGK3hgF-JknxXT2IAvD73Y8OWPNCZ_hRDjty0cOgKcypN0l6bvHWMoNZVYq_SOTA3Qs2mAb-t9yzsaw-oMazZiTTBMxqrZeX4w6MvQMYJLqSglA8g.CCYj1m7VUCbvz_x3k2q-HMRirPIuLywmaNa2a4SnHkU", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "7a93a093-eb7c-467b-b9b4-59805fcd0bb9", + "request-id" : "d90c74fe-3ac9-4b17-9ca3-0c19150da9f0", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "442777", + "duration" : "490706", "x-content-type-options" : "nosniff", - "client-request-id" : "ce9c6f93-6a8c-45c5-92a7-3c0c9e578204", + "client-request-id" : "ed941ceb-5e7d-462c-b127-312cd9e6fa8c", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "R24SEsKL6l8WwGja0LsRtb5gfSEzPaANsccbqgL6qjQ=" + "ocp-aad-diagnostics-server-name" : "8FSoKn5C+xKnzMxVB24u9W0B3o/Ls6Mt3pri2fVg6OA=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a/passwordCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/aff293ca-6d8b-4dbd-ab0b-98d87173d712/passwordCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:46 GMT", + "date" : "Thu, 26 Apr 2018 21:52:50 GMT", "content-length" : "163", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "phK4vtbVxXd5om_eNv9yqdCwYaSXvyP50BFP0Y37o_ebR6Rjt_P3MEUR3ZmJU-wu_b1AmCeNVGRuv3p1QRHy4eX5pWLeuQVkklNHCH2d-ijAY_0N8OT39W4vhhJLZAXFIJfL8V-tjHySsKFvXkxoWQ.odFn3YEbpCe9gJgbNUwQsYyJns4BTOlmachAlKkXidI", + "ocp-aad-session-key" : "yYhiNkiN33Z0e26PjLptPGnYT80TYt3zMdK3Gzuoa_G0pMIXsxdxrWBiWRgrMf12J9pSKUraxCPToRwDxFS1PAL1Xd5kQTP2DJMfrXZKuRYLiYO-g8pCTY7eWWt-HRKiaAoBvPnFNHVIoDeDUdrLQA.qwBw4CdktAo2RujjnhP3xB69t48YOECYtE-cL3Z1rE0", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "2bc6e66b-7bc7-4dbb-b957-2c41870a9663", + "request-id" : "0157788f-09d9-4b8b-84f9-a2d74eb86909", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "551142", + "duration" : "419722", "x-content-type-options" : "nosniff", - "client-request-id" : "5c11d3fb-bad6-48bb-88e7-873c0d61864a", + "client-request-id" : "3607f3a4-0685-4f37-8d18-933e837ad4e8", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "sddddXJCDv27jmu91AjCY4cjIA04nWQAsEkxbrysAOg=" + "ocp-aad-diagnostics-server-name" : "iV69uKCb5MaK0i6e/qAYSNhEb9/mkPqAEJ2SdPTOYcM=" } }, { "Method" : "GET", @@ -195,28 +195,28 @@ "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:46 GMT", + "date" : "Thu, 26 Apr 2018 21:52:50 GMT", "content-length" : "885", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "YHmXDZF7VjA1loGc8byhaL2OWVFea9poYIwDl2lflwNE4qLnqjwsDcYC1qXjlJES4ME2Ul4LuxODFEdIo3Vb85_2ZAsFmIGgZEEMzf1F5izrPFlnGJ6xiyrR16G2ZVAHD8BK9REBchnHHL5beG6upA.DObxTTqfNYx9ATQYJ31WWBux3yzl4whO-ZrRe1sp6KI", + "ocp-aad-session-key" : "YRy-u1Pzx_oU4W5VRRyyOikMG18MB1GrM4KJzdMHU1wrApcQxdmnA7wWYoZZDIFIHPZgK4M2aYdBoPCBOVrncU_QoqUxRHVuNp1JBCnfUuaWy-WZey7nH_pJjzzJx_KwNsON630IK5F3oDZu2VpOvw.bZODxyv8cl27bywXbs3RBz_xZSGS0c7DYfms8eblr0o", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "9b19af81-0c88-4c35-a43a-fc8e27e27251", + "request-id" : "ba378a6a-4627-41eb-aed8-c7d0383d4955", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "352413", + "duration" : "320121", "x-content-type-options" : "nosniff", - "client-request-id" : "9d02a032-f255-4703-9809-4f91f8da158b", + "client-request-id" : "d4074af5-ff4a-40b8-a0f5-c88d679d0b52", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#domains\",\"value\":[{\"authenticationType\":\"Federated\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":false,\"isVerified\":false,\"name\":\"BFDevOpsNonRestricted.onmicrosoft.de\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":true,\"isVerified\":true,\"name\":\"azdevextest.com\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":true,\"isInitial\":true,\"isRoot\":true,\"isVerified\":true,\"name\":\"AzureSDKTeam.onmicrosoft.com\",\"supportedServices\":[\"Email\",\"OfficeCommunicationsOnline\"],\"forceDeleteState\":null,\"state\":null}]}", - "ocp-aad-diagnostics-server-name" : "6nXKrctRtSptRoHzozTVMUA02WQGzIDDAMhbiPlyMGM=" + "ocp-aad-diagnostics-server-name" : "TXHS25292ScTeNNLyF6Lmk7CTfticyySnjF/t2td1Jk=" } }, { "Method" : "POST", @@ -226,39 +226,39 @@ "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:46 GMT", + "date" : "Thu, 26 Apr 2018 21:52:51 GMT", "content-length" : "1474", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "-XfKrMMk6Ej3xt2FXQeNzOwgTu_ox-TPrcQ7mhLP-p9ZYus0JFajCBAsMfMr1U4u68Yv9xLNmHe6NwY0WodM046l1li-M-fMN0UYhIGl2Ys5ZzdTRb69zVUdeKXBmob3o5Sp7ZModNtj4vnD7e1_OQ.75pL38ixoT2NEOhdY3hkxOEJ1KQzIdVlK8yHvodhKnk", + "ocp-aad-session-key" : "MuUtTBWHJivvDtJ1hCKDoSmdakOS_9STmXJd5ztUb1Jez6KLR6HXh8puQ_34QA6-mJjBSnDfsAeD_JlPsJLUG1jhuMJz3ryYrUu9SVLsVOxUe-tbAOXkq6K4vbArAmy92OzflAr-_v-B6ndagZWddQ.j0lyZjGwQjgaYA7SpfaHf3NhWrk43ceFxtGhXW_L8Y4", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "3c7ee655-2171-4ed9-ab75-e5f6de5b886d", + "request-id" : "4c679993-5fb2-46f3-9cdb-fa021dc63e31", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "6954962", + "duration" : "9622875", "x-content-type-options" : "nosniff", - "client-request-id" : "7ec35768-1137-4d9f-a9e0-5cace8d6fafb", + "client-request-id" : "f0b475b5-e799-4d22-9c08-e8c7ea8b8cd9", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/68b9c910-f090-4be8-863d-ffd8c9850f1f/Microsoft.DirectoryServices.User", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/c26d7cf8-8988-4ccc-afb1-8b90819b14c9/Microsoft.DirectoryServices.User", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us3089424702435\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us3089424702435\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-25T22:55:46.6750985Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us3089424702435@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}", - "ocp-aad-diagnostics-server-name" : "R24SEsKL6l8WwGja0LsRtb5gfSEzPaANsccbqgL6qjQ=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"c26d7cf8-8988-4ccc-afb1-8b90819b14c9\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"useec49575f1fbf\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"useec49575f1fbf\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-26T21:52:50.3975937Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"useec49575f1fbf@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}", + "ocp-aad-diagnostics-server-name" : "EditZjTBaEYCrvrHgtCp7VwlKGMxwmW6BfXNDuF3W+4=" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg83499?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg07817?api-version=2017-05-10", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "date" : "Thu, 26 Apr 2018 21:52:54 GMT", "content-length" : "181", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1199", @@ -266,174 +266,174 @@ "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b235b94e-0b9a-40d0-a3c2-86b0a36c1175", + "x-ms-correlation-request-id" : "531741d2-64dc-42f7-bc59-5e896e36aae9", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225550Z:b235b94e-0b9a-40d0-a3c2-86b0a36c1175", + "x-ms-routing-request-id" : "WESTUS2:20180426T215254Z:531741d2-64dc-42f7-bc59-5e896e36aae9", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "b235b94e-0b9a-40d0-a3c2-86b0a36c1175", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499\",\"name\":\"javacsmrg83499\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" + "x-ms-request-id" : "531741d2-64dc-42f7-bc59-5e896e36aae9", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817\",\"name\":\"javacsmrg07817\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://sp198569713e37c%27)&api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://spd6b940244cf37%27)&api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:50 GMT", - "content-length" : "1453", + "date" : "Thu, 26 Apr 2018 21:52:54 GMT", + "content-length" : "1475", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "fuBIXzhXikdAhE4wPgQvNA1tZhZot_v5XuWztXrbNNblY4NGX-VKCGvrhTchTo7mhgZ73XAazR0XKv9Bxji5u0do7KUKBEQPk8hZJxUdttY_aa8MZ8uQ5jxMOJhFMgPgOOxAEwFWMJdWls6Ynh1mcA.3Z6n_rUocY6eRuIB-MtyXaEYYecObAj7FeWa4YDkA9c", + "ocp-aad-session-key" : "sas66COikcb-Z13Mp11g1fp2cx9n2EH74C7yCKNa0ctJTbH3pOETWysvwFHIjs05n9IHDXUOpNagPaM1jQvmrB5lJyCaSQQR52qICpjQjn_pUmL15LHbwl8RR8PNHtIp2nbqB1t5SVTlJ4FkaqQDsg.pUf18uHoUzyGraMYqZ8K6RiRxrH1TXwfDcHiQ2Ng0YM", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "67d68c5c-2fd2-4bd8-96c4-36cd08dbae5f", + "request-id" : "7cd4854b-c587-471b-b60d-e27caf1b5acc", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "660586", + "duration" : "1428755", "x-content-type-options" : "nosniff", - "client-request-id" : "14565642-c319-43df-a013-a8f9b5ff68be", + "client-request-id" : "6b5f7a12-bf73-473c-b4e0-cbfe081dbabc", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"sp198569713e37c\",\"appId\":\"10a96f3d-2801-47ad-a194-64ee5f2f64db\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"sp198569713e37c\",\"errorUrl\":null,\"homepage\":\"http://sp198569713e37c\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp198569713e37c on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp198569713e37c\",\"id\":\"a5c81cac-1dbc-418c-9e25-e068ba0e8729\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp198569713e37c on your behalf.\",\"userConsentDisplayName\":\"Access sp198569713e37c\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://sp198569713e37c\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://sp198569713e37c\",\"10a96f3d-2801-47ad-a194-64ee5f2f64db\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}]}", - "ocp-aad-diagnostics-server-name" : "R24SEsKL6l8WwGja0LsRtb5gfSEzPaANsccbqgL6qjQ=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"aff293ca-6d8b-4dbd-ab0b-98d87173d712\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spd6b940244cf37\",\"appId\":\"5d471202-2bb9-4629-8c25-d07ba944714a\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spd6b940244cf37\",\"errorUrl\":null,\"homepage\":\"http://spd6b940244cf37\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spd6b940244cf37 on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spd6b940244cf37\",\"id\":\"6da0851a-6fa7-4617-9d1c-93bc5f216e4e\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spd6b940244cf37 on your behalf.\",\"userConsentDisplayName\":\"Access spd6b940244cf37\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spd6b940244cf37\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://spd6b940244cf37\",\"5d471202-2bb9-4629-8c25-d07ba944714a\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}]}", + "ocp-aad-diagnostics-server-name" : "tD5I1FqoHV4Zx7H+rhLmKpIX4gCOX6nOffRjGT46H8M=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a/keyCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/aff293ca-6d8b-4dbd-ab0b-98d87173d712/keyCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "date" : "Thu, 26 Apr 2018 21:52:54 GMT", "content-length" : "158", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "eR9ZiuMte-zeafZlG02tyl4vuDtv1e8CfWyfI2Txu9iY1cf4nVJx8DyvqI8HI686UltOo6AusYvMeM9NhgoK8PzykbW86CAmKDtyyn2NvOOjdt6pyNLNBoKN42bEmTyCz_uOQyQYR2BO5z2Qw_OcRQ.Pvq-9n-p-Fl0Qd8YdExRM2LUirTXEDAwPF2qWztEABk", + "ocp-aad-session-key" : "JrHvTsFE1iX8qyCE94NTe5XKBU24BaBrWHuxG9vRQgyI7GPt_69SybRuUsMIMGn4uNeXMRQWBDXuZGEwBd7Ns9Mga9CQYAGn72KLGv_ekgWJX4lc9YYXRyvycBxTFfz535kyaIwnH2wV05bOWCtILw.YRVHNYMByTZOAxFn2N5k8MUduZf-Wsui9ZSVG0QawxY", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "eae0a0d8-d2bd-4c9d-a85a-bff544186e1e", + "request-id" : "7cd0aad8-20ed-4928-ab2f-75e19de65caf", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "829682", + "duration" : "422302", "x-content-type-options" : "nosniff", - "client-request-id" : "36a43b13-80b8-4d20-ac3d-4f6f55161092", + "client-request-id" : "3f6feb73-48ca-411c-8091-045c10c44094", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "6nXKrctRtSptRoHzozTVMUA02WQGzIDDAMhbiPlyMGM=" + "ocp-aad-diagnostics-server-name" : "Lvh0/G78olXOk4T0L5DDgaqMqxW05ALila/UzU46pxE=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a/passwordCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/aff293ca-6d8b-4dbd-ab0b-98d87173d712/passwordCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "date" : "Thu, 26 Apr 2018 21:52:54 GMT", "content-length" : "163", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "e4Dj-54YUNizytnrbawEA0QsGlZ8IVr-tmp0Xxnz0jRaeAk1NX_WkIMLxLyCwOXJe3KtPFzKimkvfjvVsQMqbdXVat5m2NjfbTfoeJOXg4eKus_FtA6VcxAm7JY22-pM2Sl00Z9bUg0bvXL1dG7x-Q.q3rxtR4XXJWvt6tn_sk-B_aNJQXVCm5hlzFXZxVnCKU", + "ocp-aad-session-key" : "ZGtGhZAknkZxGbnUGMLeH0tfaIeLFaiLxPTPQaCocOjT_DHTHR5lbgis1ZWfbkrOfPbVJueSNthbsrhVJ5jyHd1qJkQXoWWp6LlDPR3kbmrFtQizBIQGY7MMT9rIJW3XNESKtzRdAw4a35D0qLV54w.Q_fa1GJPgmE043RhUgGpZ88Oj23cMmfV0fYbJl3GNGo", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "e34d1f4e-b1bc-4754-8636-e7ed31fc65fa", + "request-id" : "30c9b959-db00-4d5c-a34d-54b103e67556", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "714423", + "duration" : "1453370", "x-content-type-options" : "nosniff", - "client-request-id" : "1d2869fb-5d4d-4230-ae17-a544ec54cdc4", + "client-request-id" : "98a0b1b0-8d2c-4222-9b8f-5fe54348c7e7", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "YPT0bBpwREL5IJMIvN9GoYV1GS3mAXpIf09yabKcdz0=" + "ocp-aad-diagnostics-server-name" : "TXHS25292ScTeNNLyF6Lmk7CTfticyySnjF/t2td1Jk=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/us3089424702435?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/useec49575f1fbf?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "date" : "Thu, 26 Apr 2018 21:52:54 GMT", "content-length" : "193", "server" : "Microsoft-IIS/10.0", - "ocp-aad-session-key" : "KCuGzS5QtQcmPQiKPDwpA9sYcgKcgzCe-FkKfgyqZ1zOtlX1gzra-W6w6_rn1ltYcFKx0kdoobgT4woYFTmREi9kIjgp76Yv7e6OWP-_KVcnma9tb2t_i7HEVCeuVTppeypREnYSA9JaDkhQrNn35g._3_MTDuCLDXLlTVQ-pLxm1w3QA8uXu_ngcg5XW-q-Ck", + "ocp-aad-session-key" : "1qqzyzaAQNFYxJL1601ySHWvHp_lPa5SjLNyG-djG58zo8wD9HYxTzS1uWi21lbpYYu29sNzqrXND7ufClVblH4185INA_8bwO2Vcr1bGCOXkibGPkddtlxBZYFWqS3SYPhGvyq1MSh8i8FMuFhsEA.D5Qj0llwU21grS6B55F4tNtgvpxkKIjibKaDsuwrnGQ", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "baed9d28-8b4f-46ff-92f4-b5aa302fb6a6", + "request-id" : "3d17a03a-b8a2-4637-87f1-cb43a0174171", "StatusCode" : "404", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "373347", - "client-request-id" : "f0dca9c2-d9fd-4f85-857e-89c549ae3b56", + "duration" : "361767", + "client-request-id" : "e7cfb5fc-2960-42dc-9350-dacf7ceaaef3", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; charset=utf-8", "cache-control" : "private", "x-ms-dirapi-data-contract-version" : "1.6", - "Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'us3089424702435' does not exist or one of its queried reference-property objects are not present.\"}}}", - "ocp-aad-diagnostics-server-name" : "03tJtVtrK59o2WrrDjJFasNQO9BoGoGL+dG53QSLpQQ=" + "Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'useec49575f1fbf' does not exist or one of its queried reference-property objects are not present.\"}}}", + "ocp-aad-diagnostics-server-name" : "TXHS25292ScTeNNLyF6Lmk7CTfticyySnjF/t2td1Jk=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27us3089424702435%27&api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27useec49575f1fbf%27&api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:50 GMT", + "date" : "Thu, 26 Apr 2018 21:52:54 GMT", "content-length" : "1469", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "uA_egkZHVEEQkSoxrLdUZkEkeHnWsfuj3OQIHk-j-fdU_HObNitGpxocTajLKa9KYMxq9xVourPbiQjiGd83hZbzXFmkbYhWEGvBxTpQVoTA91p_SjxYS8se0qvrGh44o0TAjRZ1YB4fmGFJXlvXZQ.hMYDSp9Qo7iBIC1rWOuXxiZdAkHTF8K5lJvIZ-jiixE", + "ocp-aad-session-key" : "M2Spfi8fpnqZmIKhCyF-FPwceqXrXwCfzHju4H9gpdMY0Uhudher0WcfO6P2TIbu7x8lLYe-sFxZYiHMCbwK-IsVpZ3Qr3SkyWB_7Ktl6BtZ5GBvrj6VPczoLSmSyZc-pmeVz45P_29CWO80pDdh7g.kOAvpGJV9i7Evfi3kR2gPgmB339FOYdPMLSOAN8jLJU", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "b1c84b2d-6dca-4a62-9a18-29597389d1c5", + "request-id" : "0387c0c0-4ad9-455c-88d7-b33cd3cc5aaf", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "578934", + "duration" : "404324", "x-content-type-options" : "nosniff", - "client-request-id" : "2e7805ed-fc03-44c7-a488-f635ee27915b", + "client-request-id" : "723db086-1378-431e-bd0a-a42f5000c741", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us3089424702435\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us3089424702435\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-25T22:55:46Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us3089424702435@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}", - "ocp-aad-diagnostics-server-name" : "9GQqI6S1ECS4j4T2qnjxLorVEkd1sq21GP7tQfmsPNE=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"c26d7cf8-8988-4ccc-afb1-8b90819b14c9\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"useec49575f1fbf\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"useec49575f1fbf\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-26T21:52:50Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"useec49575f1fbf@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}", + "ocp-aad-diagnostics-server-name" : "MjPAJVvgC3key9HyT1tst0r01pKZJnpyPQ4YiB+LaOA=" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:53 GMT", + "date" : "Thu, 26 Apr 2018 21:52:56 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "1107", "expires" : "-1", @@ -445,24 +445,24 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "27a80ce4-a2c2-47c4-90d4-126550c02feb", + "x-ms-correlation-request-id" : "479dca06-c944-4740-a4ea-8f580838ff07", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225553Z:27a80ce4-a2c2-47c4-90d4-126550c02feb", + "x-ms-routing-request-id" : "WESTUS2:20180426T215257Z:479dca06-c944-4740-a4ea-8f580838ff07", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "27a80ce4-a2c2-47c4-90d4-126550c02feb", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net\",\"provisioningState\":\"RegisteringDns\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "479dca06-c944-4740-a4ea-8f580838ff07", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738\",\"name\":\"java-keyvault-52738\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"aff293ca-6d8b-4dbd-ab0b-98d87173d712\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c26d7cf8-8988-4ccc-afb1-8b90819b14c9\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-52738.vault.azure.net\",\"provisioningState\":\"RegisteringDns\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:55:53 GMT", + "date" : "Thu, 26 Apr 2018 21:52:56 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "1108", "expires" : "-1", @@ -470,28 +470,28 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14992", + "x-ms-ratelimit-remaining-subscription-reads" : "14998", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "0ae65251-d865-4cf8-bc09-ffca84beebb8", + "x-ms-correlation-request-id" : "e17a1922-5f6a-4050-baf9-29b8ec293e19", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225553Z:0ae65251-d865-4cf8-bc09-ffca84beebb8", + "x-ms-routing-request-id" : "WESTUS2:20180426T215257Z:e17a1922-5f6a-4050-baf9-29b8ec293e19", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "0ae65251-d865-4cf8-bc09-ffca84beebb8", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"RegisteringDns\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "e17a1922-5f6a-4050-baf9-29b8ec293e19", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738\",\"name\":\"java-keyvault-52738\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"aff293ca-6d8b-4dbd-ab0b-98d87173d712\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c26d7cf8-8988-4ccc-afb1-8b90819b14c9\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-52738.vault.azure.net/\",\"provisioningState\":\"RegisteringDns\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:22 GMT", + "date" : "Thu, 26 Apr 2018 21:53:26 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "1103", "expires" : "-1", @@ -499,29 +499,29 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14991", + "x-ms-ratelimit-remaining-subscription-reads" : "14997", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "036ae588-16c7-45ae-af43-be3af6e58d4f", + "x-ms-correlation-request-id" : "516b9ed6-beaa-4ea8-8937-053219c15f52", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:036ae588-16c7-45ae-af43-be3af6e58d4f", + "x-ms-routing-request-id" : "WESTUS2:20180426T215327Z:516b9ed6-beaa-4ea8-8937-053219c15f52", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "036ae588-16c7-45ae-af43-be3af6e58d4f", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "516b9ed6-beaa-4ea8-8937-053219c15f52", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738\",\"name\":\"java-keyvault-52738\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"aff293ca-6d8b-4dbd-ab0b-98d87173d712\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c26d7cf8-8988-4ccc-afb1-8b90819b14c9\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-52738.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:22 GMT", + "date" : "Thu, 26 Apr 2018 21:53:26 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "1103", "expires" : "-1", @@ -529,29 +529,29 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14990", + "x-ms-ratelimit-remaining-subscription-reads" : "14996", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "84386aca-ef8f-4acd-9d7a-f889fead6119", + "x-ms-correlation-request-id" : "e48e7587-565c-4bee-9e4a-8fda860f7a8b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:84386aca-ef8f-4acd-9d7a-f889fead6119", + "x-ms-routing-request-id" : "WESTUS2:20180426T215327Z:e48e7587-565c-4bee-9e4a-8fda860f7a8b", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "84386aca-ef8f-4acd-9d7a-f889fead6119", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "e48e7587-565c-4bee-9e4a-8fda860f7a8b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738\",\"name\":\"java-keyvault-52738\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"aff293ca-6d8b-4dbd-ab0b-98d87173d712\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c26d7cf8-8988-4ccc-afb1-8b90819b14c9\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-52738.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:22 GMT", + "date" : "Thu, 26 Apr 2018 21:53:26 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "1345", "expires" : "-1", @@ -559,29 +559,29 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14989", + "x-ms-ratelimit-remaining-subscription-reads" : "14995", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "e02d847e-f0f3-4a3e-8d92-f1583b48be68", + "x-ms-correlation-request-id" : "55acad73-9917-4f33-ac1b-e0e9575e819d", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:e02d847e-f0f3-4a3e-8d92-f1583b48be68", + "x-ms-routing-request-id" : "WESTUS2:20180426T215327Z:55acad73-9917-4f33-ac1b-e0e9575e819d", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "e02d847e-f0f3-4a3e-8d92-f1583b48be68", - "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}],\"nextLink\":\"http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC0wNDg0Mw==\"}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "55acad73-9917-4f33-ac1b-e0e9575e819d", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738\",\"name\":\"java-keyvault-52738\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"aff293ca-6d8b-4dbd-ab0b-98d87173d712\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c26d7cf8-8988-4ccc-afb1-8b90819b14c9\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-52738.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}],\"nextLink\":\"http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC01MjczOA==\"}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC0wNDg0Mw==", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC01MjczOA==", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:23 GMT", + "date" : "Thu, 26 Apr 2018 21:53:26 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "12", "expires" : "-1", @@ -589,29 +589,29 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14988", + "x-ms-ratelimit-remaining-subscription-reads" : "14994", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "da5f0250-948c-474e-8b3f-10543af4ffc3", + "x-ms-correlation-request-id" : "7b4af509-564e-45a7-adfe-6381705900d9", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:da5f0250-948c-474e-8b3f-10543af4ffc3", + "x-ms-routing-request-id" : "WESTUS2:20180426T215327Z:7b4af509-564e-45a7-adfe-6381705900d9", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "da5f0250-948c-474e-8b3f-10543af4ffc3", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "7b4af509-564e-45a7-adfe-6381705900d9", "Body" : "{\"value\":[]}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC0wNDg0Mw==", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC01MjczOA==", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:23 GMT", + "date" : "Thu, 26 Apr 2018 21:53:26 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "12", "expires" : "-1", @@ -619,29 +619,29 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14987", + "x-ms-ratelimit-remaining-subscription-reads" : "14993", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "232d1323-da9f-4a6e-a1ca-f105b2743b3a", + "x-ms-correlation-request-id" : "b16ad6a7-10ab-4db0-8102-167b0120a8cf", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225623Z:232d1323-da9f-4a6e-a1ca-f105b2743b3a", + "x-ms-routing-request-id" : "WESTUS2:20180426T215327Z:b16ad6a7-10ab-4db0-8102-167b0120a8cf", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "232d1323-da9f-4a6e-a1ca-f105b2743b3a", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "b16ad6a7-10ab-4db0-8102-167b0120a8cf", "Body" : "{\"value\":[]}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:23 GMT", + "date" : "Thu, 26 Apr 2018 21:53:27 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "1356", "expires" : "-1", @@ -653,25 +653,25 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "13cd28c0-3146-46cb-9dcb-ddd65176cd2c", + "x-ms-correlation-request-id" : "b93f2890-f911-4f56-b30c-752671a91231", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225624Z:13cd28c0-3146-46cb-9dcb-ddd65176cd2c", + "x-ms-routing-request-id" : "WESTUS2:20180426T215328Z:b93f2890-f911-4f56-b30c-752671a91231", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "13cd28c0-3146-46cb-9dcb-ddd65176cd2c", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843\",\"name\":\"java-keyvault-04843\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{\"foo\":\"bar\"},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"083c3836-d854-4eb4-be3b-e3b4c529bc3a\",\"permissions\":{\"keys\":[\"list\",\"decrypt\",\"wrapKey\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[],\"certificates\":[\"get\",\"getissuers\",\"manageissuers\",\"update\",\"list\",\"delete\",\"restore\",\"managecontacts\",\"deleteissuers\",\"recover\",\"listissuers\",\"import\",\"backup\",\"create\",\"setissuers\",\"purge\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"68b9c910-f090-4be8-863d-ffd8c9850f1f\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-04843.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "b93f2890-f911-4f56-b30c-752671a91231", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738\",\"name\":\"java-keyvault-52738\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{\"foo\":\"bar\"},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"aff293ca-6d8b-4dbd-ab0b-98d87173d712\",\"permissions\":{\"keys\":[\"list\",\"decrypt\",\"wrapKey\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[],\"certificates\":[\"get\",\"getissuers\",\"manageissuers\",\"update\",\"list\",\"delete\",\"restore\",\"managecontacts\",\"deleteissuers\",\"recover\",\"listissuers\",\"import\",\"backup\",\"create\",\"setissuers\",\"purge\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c26d7cf8-8988-4ccc-afb1-8b90819b14c9\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-52738.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg83499/providers/Microsoft.KeyVault/vaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg07817/providers/Microsoft.KeyVault/vaults/java-keyvault-52738?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:25 GMT", + "date" : "Thu, 26 Apr 2018 21:53:30 GMT", "content-length" : "0", "server" : "Microsoft-IIS/10.0", "expires" : "-1", @@ -681,81 +681,81 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "de5a3d91-41cd-4a5b-8946-8713ad7f1f95", + "x-ms-correlation-request-id" : "6d39073b-5cf5-4265-bdb9-99cf91e3aa1c", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225626Z:de5a3d91-41cd-4a5b-8946-8713ad7f1f95", + "x-ms-routing-request-id" : "WESTUS2:20180426T215330Z:6d39073b-5cf5-4265-bdb9-99cf91e3aa1c", "x-powered-by" : "ASP.NET", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "de5a3d91-41cd-4a5b-8946-8713ad7f1f95", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "6d39073b-5cf5-4265-bdb9-99cf91e3aa1c", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-04843?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-52738?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:45 GMT", + "date" : "Thu, 26 Apr 2018 21:53:50 GMT", "content-length" : "88", "server" : "Microsoft-IIS/10.0", "expires" : "-1", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14986", + "x-ms-ratelimit-remaining-subscription-reads" : "14992", "StatusCode" : "404", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "0d9636ac-b608-4c6d-8c29-bea8ccdb56da", + "x-ms-correlation-request-id" : "f240efc7-c0a1-4f65-be8b-8ff5cdf369d3", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225646Z:0d9636ac-b608-4c6d-8c29-bea8ccdb56da", + "x-ms-routing-request-id" : "WESTUS2:20180426T215350Z:f240efc7-c0a1-4f65-be8b-8ff5cdf369d3", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "0d9636ac-b608-4c6d-8c29-bea8ccdb56da", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "f240efc7-c0a1-4f65-be8b-8ff5cdf369d3", "Body" : "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The specified resource does not exist.\"}}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/083c3836-d854-4eb4-be3b-e3b4c529bc3a?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/aff293ca-6d8b-4dbd-ab0b-98d87173d712?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:45 GMT", + "date" : "Thu, 26 Apr 2018 21:53:50 GMT", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "YI7DICF90UucDsSCyF6Wz4bqfaHjWdktpC600X3J6_HuWPh2DdY9JWquN6sUNrKzo53DLjt2pjsgHem810omHXiB5QrrlMl3HDP5HmvZDhRVk6TR1wnv3l0vwWdOxqxN6wCo3GWYIOX6yKgcX7aDIQ.CctlyLpz3k4BCzJQtoBjwAE6nzIFZUWgX3OU4yuZDxE", + "ocp-aad-session-key" : "yX4MAwNrZtFQM8I2M0ca1RBnhQdaIhXBONvd8ZteN5eQIRBXsF3nv4icJCV55vBVnWVGt3V7qMTtlRw7wxqn-bBo1QigqULOmlvOLbG4fMX6X4Dtk514R9Ht8OH04_HeEQLETxXK3eqyF6jH6nfPNA.RkgmAEvHwlIOZ5oSGApQBvv7U_BYzO3NKVMdbzlrusA", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "63ca0105-ba43-42f0-8f42-58ea869a359e", + "request-id" : "0883082a-4f27-4745-97c0-384862a996c9", "StatusCode" : "204", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "3257719", + "duration" : "2164173", "x-content-type-options" : "nosniff", - "client-request-id" : "5a11dda5-4e8d-4edc-a42d-cba6269abab5", + "client-request-id" : "1868fea8-e9cb-48a6-82a4-daac4635881c", "x-powered-by" : "ASP.NET", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "1.0;", "Body" : "", - "ocp-aad-diagnostics-server-name" : "raR8JNajDTfwSzq60owihwvzZvfOxnwzwr6uWdDMZbM=" + "ocp-aad-diagnostics-server-name" : "03tJtVtrK59o2WrrDjJFasNQO9BoGoGL+dG53QSLpQQ=" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg83499?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg07817?api-version=2017-05-10", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:46 GMT", + "date" : "Thu, 26 Apr 2018 21:53:51 GMT", "content-length" : "0", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1195", @@ -763,14 +763,14 @@ "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "39e06cd2-ca41-466d-8201-d4374cdbfb3e", + "x-ms-correlation-request-id" : "56e0a2a1-ab83-448a-a72e-5b172ddfac38", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225647Z:39e06cd2-ca41-466d-8201-d4374cdbfb3e", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4MzQ5OS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10", + "x-ms-routing-request-id" : "WESTUS2:20180426T215351Z:56e0a2a1-ab83-448a-a72e-5b172ddfac38", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwNzgxNy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10", "cache-control" : "no-cache", - "x-ms-request-id" : "39e06cd2-ca41-466d-8201-d4374cdbfb3e", + "x-ms-request-id" : "56e0a2a1-ab83-448a-a72e-5b172ddfac38", "Body" : "" } } ], - "variables" : [ "javacsmrg83499", "java-keyvault-04843", "sp198569713e37c", "us3089424702435", "0be89a7e-f775-4f81-a1d7-f508ca0b0c8a", "10dfa443-6902-4863-b4c6-c68527f1e5ee", "abe44835-b043-45d1-9e09-c00be20d9d78", "f968e276-9820-4cf8-8fe8-e5e6e6a34cb8", "803da237-8317-4b8e-8e1d-eaff92d261a9", "f9771119-c23f-4e66-88b2-d8efae85a186", "4638ff03-aeb2-4ee9-ac5d-f8d9c3deb9ee", "448450b0-dac9-45e6-9a4a-77e6387c8e4a", "ae5fece2-c67f-4630-8b34-6f1baec9dbd8" ] + "variables" : [ "javacsmrg07817", "java-keyvault-52738", "spd6b940244cf37", "useec49575f1fbf", "6b9efeb4-fe53-4cec-9dca-6fc9d60e0e68", "2a62dd8e-6994-4bd0-b5f0-aa68584a4c33", "0b05bdc6-b4f8-471f-9431-fa3e5365f161", "dbc6974e-add2-4d5f-b103-0f436ec2db2d", "270166e5-6c92-4c6b-bc18-808c4c74a6eb", "8220f2ed-cbaa-4382-bb99-78452dd0a38d", "9f18f42f-1942-4392-a46f-426fd56e6413", "dbfb3981-017e-4466-a627-bdc97ed75997", "77784558-6e97-4768-b61c-4c4b9ea94c5f" ] } \ No newline at end of file diff --git a/azure-mgmt-keyvault/src/test/resources/session-records/canEnableSoftDeleteAndPurge.json b/azure-mgmt-keyvault/src/test/resources/session-records/canEnableSoftDeleteAndPurge.json index 4dc53566250..8e57b659046 100644 --- a/azure-mgmt-keyvault/src/test/resources/session-records/canEnableSoftDeleteAndPurge.json +++ b/azure-mgmt-keyvault/src/test/resources/session-records/canEnableSoftDeleteAndPurge.json @@ -7,91 +7,91 @@ "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:47 GMT", - "content-length" : "1767", + "date" : "Thu, 26 Apr 2018 21:53:52 GMT", + "content-length" : "1789", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "GBAyOKHILGnZh6o_93O3dEdlVlYJ5GnazxZJ-aWksylaUqhiQWvZNkT3aLDtwOdbfD0GpWWuEq9zKAYMBOlkd14pAz2q3rKdiu6gPf-SEfpkxIyhxcOr_5WZXaAigwY2L0m8Au6orItje57tjkoB5w.d7W6VQCeydr61Mc0gElvFL0MSmpFTBpH2O5sTq-8bzo", + "ocp-aad-session-key" : "yrFeChFY9UAauVBYF4jICdzoYtpceX1Nodn_F1cg17Z28-zexHtTFs1k4g3lxQZ-oraIjK9m4EzNt2PSmIlVLFMgZ2pVvTfFT6_WPe6CmbPEwqpGJLts8BfEKIDtXZHKr_i7-vIBOwk9sGrcduOb-g._xRbZwtVBq6OT-y7krAplw8ZB6aA8QM_fbWN3O3_Kis", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "ea37aa6a-4834-46d1-95ac-c5563f107f33", + "request-id" : "0e0f4486-668f-4768-87e7-907fb2e2f986", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "6656366", + "duration" : "10155531", "x-content-type-options" : "nosniff", - "client-request-id" : "68bafe60-308d-44c4-8eef-358982db1cd9", + "client-request-id" : "97604912-9563-4542-bd81-f0515e672225", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/a94d286c-3975-421e-8a57-1b9f411e8487/Microsoft.DirectoryServices.Application", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/505c9c1c-f2c1-4629-bd24-9114ecea4728/Microsoft.DirectoryServices.Application", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"a94d286c-3975-421e-8a57-1b9f411e8487\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"spc483368568f0d\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://spc483368568f0d\",\"identifierUris\":[\"http://spc483368568f0d\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"isDeviceOnlyAuthSupported\":null,\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"logo@odata.mediaContentType\":\"application/json;odata=minimalmetadata; charset=utf-8\",\"logoUrl\":null,\"oauth2AllowIdTokenImplicitFlow\":false,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc483368568f0d on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc483368568f0d\",\"id\":\"7d6299a0-c31c-44f0-9aee-9ac0e97da0a3\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc483368568f0d on your behalf.\",\"userConsentDisplayName\":\"Access spc483368568f0d\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"parentalControlSettings\":{\"countriesBlockedForMinors\":[],\"legalAgeGroupRule\":\"Allow\"},\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://spc483368568f0d\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"tokenEncryptionKeyId\":null}", - "ocp-aad-diagnostics-server-name" : "Sv8LAqxM3Xd8KdoykW0mGkYyWG5hzFClI07Ok7DI0I8=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"505c9c1c-f2c1-4629-bd24-9114ecea4728\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"d7e50a14-1fcc-4177-a400-2da71651d573\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"sp71880485984b9\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://sp71880485984b9\",\"identifierUris\":[\"http://sp71880485984b9\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"isDeviceOnlyAuthSupported\":null,\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"logo@odata.mediaContentType\":\"application/json;odata=minimalmetadata; charset=utf-8\",\"logoUrl\":null,\"oauth2AllowIdTokenImplicitFlow\":false,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp71880485984b9 on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp71880485984b9\",\"id\":\"0731881e-2161-48ff-ad93-8548a9e0d8ee\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp71880485984b9 on your behalf.\",\"userConsentDisplayName\":\"Access sp71880485984b9\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"parentalControlSettings\":{\"countriesBlockedForMinors\":[],\"legalAgeGroupRule\":\"Allow\"},\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://sp71880485984b9\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"signInAudience\":null,\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "ISbjmcjIryw8imO8hLdMu3pPCFK4JbNjsBFNQwzSQzU=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/a94d286c-3975-421e-8a57-1b9f411e8487/keyCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/505c9c1c-f2c1-4629-bd24-9114ecea4728/keyCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:47 GMT", + "date" : "Thu, 26 Apr 2018 21:53:52 GMT", "content-length" : "158", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "o-11wGqdjNEsdWUBM8euGQFNGWPEXIfEJFxA-DYQNBq6IgoiKm-LZK8JJrEiAqIc-RiswaDo3Qhwc9hK-urTF3RAKYYtw_IbMzKBnsh-d5TTUZOBQhYcYmHHp83ZuKFCB-ALkw5KTyrjYoR3in3OTw.CprBK2ab54Zh35DcGpR5kZKLBRDQkjr_bz3sRwWuT2Y", + "ocp-aad-session-key" : "03r_MDOS0cPq9wT87k1ug-zU19VWSP5ZRbDeKteTwICTL5cOI6W46kdllFRCIG1IJ2b076l4T-KKyToEB__bw3ZTqcgb_-oul254fl7klhmFyHOtjEu88irdJWv8OEVAZvyiJ1b-xlxEymYJxIcXiw.Zba4ulnawr5wvAmOqzvWjPmbfaNxCRG96ZFbKf2rUyc", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "a72fc05a-3e58-4e81-bcba-f256757d5fb2", + "request-id" : "e62eb45b-fca3-458c-aada-85cee84900a3", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "365983", + "duration" : "394672", "x-content-type-options" : "nosniff", - "client-request-id" : "9b093ed8-ad72-4c4e-aba4-3777f5f572ae", + "client-request-id" : "23e94e8a-98e7-4bf2-9068-b0ad353f782a", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "EditZjTBaEYCrvrHgtCp7VwlKGMxwmW6BfXNDuF3W+4=" + "ocp-aad-diagnostics-server-name" : "Pv4UBIo2f7FKm/qOeGQAbn1U4hE/glaJfHaiirx+LwU=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/a94d286c-3975-421e-8a57-1b9f411e8487/passwordCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/505c9c1c-f2c1-4629-bd24-9114ecea4728/passwordCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:47 GMT", + "date" : "Thu, 26 Apr 2018 21:53:52 GMT", "content-length" : "163", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "o8s8Y49ZQ3OV8v3dsTDfzzcQR-q2vo3YqCpJlIiKfIehvw_3k_rNsn3zR9thTqvGTjFgAQiddwoFiW1gob9qJs-zi8vHRxox0xr2T7x6uEb_Awmy6hFLf_s-K3hQ_SDyOqi_MHXt05MvRgG8bE0APw.Cn0nkrZSH3U5yAu0U_mPXKvsR_jYb8GvwHy2Kh6Lglw", + "ocp-aad-session-key" : "UKMWu2UBl9bH8MMD_Hw7CI9frOHVKsEk2qm5hpymlimZmhuNF-LqXKjBFsAr25cNL6i-ezOm8QJu5T2MqpLN3oTNjpKkreJw7iPkqRoLOAKXQ3B8nL3wvYk1mkZjb_9_oSs3sZTP0nr27YHj4kpk7w.846nC0vhA-s0YI5ozOBY6KByP3DdTcHC4nAtTa2yhS4", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "4176bfab-85b5-4eb5-a894-24aee976ae00", + "request-id" : "626df39e-36b1-4cc5-954d-59d479035f29", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "382192", + "duration" : "487898", "x-content-type-options" : "nosniff", - "client-request-id" : "b794b763-1312-48b1-9915-0f28f35aafd6", + "client-request-id" : "0aa36724-5ce5-4fa2-942b-8f12f22835fa", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "qbLQHeemSYnF6GFzxWPxyco92r/HwDdCBwNHurdokdI=" + "ocp-aad-diagnostics-server-name" : "3tNvVkm/Zj7QKWAs1YPTXA5TJ87jXEFFrif+RYkOm5g=" } }, { "Method" : "POST", @@ -101,91 +101,91 @@ "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:48 GMT", - "content-length" : "1450", + "date" : "Thu, 26 Apr 2018 21:53:52 GMT", + "content-length" : "1472", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "trcLcrI9GGsjq0Gwxuavh-92jYD1tBDYyHnPtDGvu7nq4vtwEZxMaF-SZRO_khqloPmTwMPSQcCaw6_1F_VYk3jIDp_qckBQq5GxiGuTJRD7e-KoAMQ0pArOigguhoU8nGt1OBftz9ejwWopCg7bCQ.4G8rhQFrKxvXu3-Y8d-fi3r6dCQ4vQyFwVFaoiS1Z4c", + "ocp-aad-session-key" : "x0oqi2jINNNXejmCMg90DfPeIEuXu5YFcH1D9ag6g52KL1U1nP25MWi-qi1JTRBnZ9Kkeoc7lgGAav3s5rzv6JXwoWu9nHBBtgcQrHe58IrwWBRVT_OFDvvx7oLuhIdxN0IR9cfRJ7Iw7OQY6Y759Q.1phStTVoNpEoCbQU8NC-Dw6Qg4W3iG-9EqGmmvINjdo", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "45b8a074-5240-4ed7-9756-ed189a68b995", + "request-id" : "1d61da5a-e91a-42d6-ad37-861aadb2a491", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "3752129", + "duration" : "3805838", "x-content-type-options" : "nosniff", - "client-request-id" : "aced4f7b-49f2-4e4a-9c14-f86ea9b687fd", + "client-request-id" : "24574b27-942c-4952-ba85-8bc09c0c51c8", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/5cc52486-38d2-42be-a9f6-541518e3e453/Microsoft.DirectoryServices.ServicePrincipal", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/Microsoft.DirectoryServices.ServicePrincipal", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spc483368568f0d\",\"appId\":\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spc483368568f0d\",\"errorUrl\":null,\"homepage\":\"http://spc483368568f0d\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc483368568f0d on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc483368568f0d\",\"id\":\"7d6299a0-c31c-44f0-9aee-9ac0e97da0a3\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc483368568f0d on your behalf.\",\"userConsentDisplayName\":\"Access spc483368568f0d\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spc483368568f0d\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\",\"http://spc483368568f0d\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}", - "ocp-aad-diagnostics-server-name" : "MjPAJVvgC3key9HyT1tst0r01pKZJnpyPQ4YiB+LaOA=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"sp71880485984b9\",\"appId\":\"d7e50a14-1fcc-4177-a400-2da71651d573\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"sp71880485984b9\",\"errorUrl\":null,\"homepage\":\"http://sp71880485984b9\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp71880485984b9 on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp71880485984b9\",\"id\":\"0731881e-2161-48ff-ad93-8548a9e0d8ee\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp71880485984b9 on your behalf.\",\"userConsentDisplayName\":\"Access sp71880485984b9\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://sp71880485984b9\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"d7e50a14-1fcc-4177-a400-2da71651d573\",\"http://sp71880485984b9\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "uCCQbpgVHNC8rue1lL9wVVx/oAWeG8jNKc51+E8x6H4=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453/keyCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/keyCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:48 GMT", + "date" : "Thu, 26 Apr 2018 21:53:52 GMT", "content-length" : "158", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "XtWdbQKHPMLT5yBoVhxPReNPgImd75fcE_W9Ryrkz4eCOtlAyNtr9nd73kxaB6vvdZmnABYtwDvWS516XorBE9CJOTMMmVLw-dcsPwhzxNYGKV4EDvznmJFBJPny2Vw35kPS_tVc_7CJFzraER0RGA.e4Fj3ncfqvJ7jZm-gnvb3KW1TAtq5--Ju5JJRl1GPkU", + "ocp-aad-session-key" : "3TaS46AvSc66pHgGDq-X30uV2yoK_zDMM-psWgxyImYVxtck_gKOZuKl1fZyBb_paWtt2__DiZn0LS9lWBVlt5TSZudNTK6BMIH9ITqbRPLeAhR8qEKt-Fgy1VcNT6gmMD7iMBkewjgWiJ5wYaflDg.vNEOZPnMfT6RxfOA-6lhYBpC2j6fEuCNsYwIHAVTwrc", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "74e8f590-4c57-4538-9200-f4f13339da98", + "request-id" : "d1ce75c0-e5a7-4e70-b965-38060ae8b65c", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "722425", + "duration" : "400534", "x-content-type-options" : "nosniff", - "client-request-id" : "55b5b610-d3dc-4a6a-968d-cd5e07db8d26", + "client-request-id" : "edb20106-fb2d-4eca-8a35-322240d909c4", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "Y5fnsaXih/izETO5cgkZ+YM4xOA2rFM9Za4eUALb424=" + "ocp-aad-diagnostics-server-name" : "uCCQbpgVHNC8rue1lL9wVVx/oAWeG8jNKc51+E8x6H4=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453/passwordCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/passwordCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:48 GMT", + "date" : "Thu, 26 Apr 2018 21:53:52 GMT", "content-length" : "163", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "y6GCU9fej5CcduGArUMIHDYkpHX2jaP_hk0_ORO92mqy0qOdjhWbOVu8-YCOLGssq_5By4dJ9JF5aLWVFivrTSF2eQSYpIBGhijtDS2muS5u6Ge0D0hL-vT5WD6yCm_cHALRYQbvFjCHw-MjgV03SQ.l0uVIFA_qB8B1OUf68FOkqxNiNATb309DHTLNcaFCBs", + "ocp-aad-session-key" : "FwoE-_AkdD8fEX96VA9O_9IJMQhhQshsgORxpxEgrPoUnEXKF2EoqglQivraGOJt-gOVe1a_WKG2R9v1roSptSJj6RuQjG80CqDoWP5Oil_bHU5pHDT_pkSXINKA6O1c2Z5q4BQxPkZNXm9fEeTvFg.Dbgu37ya5J-aonNKGQpAV5RkOlrVHB7xY1EZB7vz74s", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "8c0f8d23-ea05-4403-819f-da557758735e", + "request-id" : "f4b66ced-c306-4c76-a27b-40d1cad5151e", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "1113047", + "duration" : "395814", "x-content-type-options" : "nosniff", - "client-request-id" : "31459a99-682d-4211-b0ee-abbd3206c618", + "client-request-id" : "5eb4bee0-aa4d-49ba-889e-346314fb94b6", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "MjPAJVvgC3key9HyT1tst0r01pKZJnpyPQ4YiB+LaOA=" + "ocp-aad-diagnostics-server-name" : "uCCQbpgVHNC8rue1lL9wVVx/oAWeG8jNKc51+E8x6H4=" } }, { "Method" : "GET", @@ -195,28 +195,28 @@ "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:48 GMT", + "date" : "Thu, 26 Apr 2018 21:53:52 GMT", "content-length" : "885", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "JY2wEaK02KWe4aK9xXv-S5UiMpA3OqqxvWMTOAZffiYbON7y7wSaacVJ96jzCVZDJ5uLSmOHzNbNFX5uLXlpaV89Z5Gu28e0Amt9v4W8o0VMefvJvv0BTfn7WGKtMwatlK_MJ6-KTtYbnUupFB1Aqg.lR8z0Wc-HEZtLvz9fPXz89Jq8nfPvSs3fWWu426UI34", + "ocp-aad-session-key" : "tPSoVI2qf-bReqe7G74BKlnnLBxiBX6NB67wk69wlL7OogqPpDJr8Hap3uJjZdCjzPiXu1nDIF6hwCIfyxoVpol-BhdXCMPS3PIWQtZ_tAvyngDJX_0BBU-aIfv7axaiEGzZFlblptEVhMwyv6-Hfg.VYtkczsobwr5fD_xnUVEQtMYJXAm-ZmP-k0Tw97cXuA", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "aee53754-ff59-45b7-9c92-9780a69de719", + "request-id" : "d3f1aae1-9b5c-45c1-ae98-b9e6d3ea2055", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "331679", + "duration" : "335911", "x-content-type-options" : "nosniff", - "client-request-id" : "ca28196c-7cd0-4ab4-89c6-609aac540dfe", + "client-request-id" : "b25f7ddd-b389-4584-85d8-654fba03318d", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#domains\",\"value\":[{\"authenticationType\":\"Federated\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":false,\"isVerified\":false,\"name\":\"BFDevOpsNonRestricted.onmicrosoft.de\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":true,\"isVerified\":true,\"name\":\"azdevextest.com\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":true,\"isInitial\":true,\"isRoot\":true,\"isVerified\":true,\"name\":\"AzureSDKTeam.onmicrosoft.com\",\"supportedServices\":[\"Email\",\"OfficeCommunicationsOnline\"],\"forceDeleteState\":null,\"state\":null}]}", - "ocp-aad-diagnostics-server-name" : "Hmgcuy1hpGi6KCpCk4BrqM0RyCbBpwqDLCqIAEp//qg=" + "ocp-aad-diagnostics-server-name" : "s5K/P2xKeCZaZ6FdSGG0Z9eYryzDiYVRewZeoHCyeCQ=" } }, { "Method" : "POST", @@ -226,243 +226,243 @@ "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:49 GMT", + "date" : "Thu, 26 Apr 2018 21:53:53 GMT", "content-length" : "1474", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "PR8jCNuCVWk79kI_LR6xn0gbYxkGFUS9pkwDCOYM-H-YQaHonLczwgTdNtvr9r2n85-gKqzHVgUyyx33JU_lqhEAhQ6z3Mk6dMUiAOHZjpl0_Iwl8JoJwXskpWA31QIloXsS2o_L9uAAAia3YQok7A.GWL3RjdI88fLXd5lJ0_lar200slr15aezUthESZ8hR0", + "ocp-aad-session-key" : "L23Wsw-60LjMHd8mJnDvqZoWiZEJ2fAHTHGj09HRPogjEhjR1HcW7pWBTkTaWcOH17nipQFt-GUAq9l90_YnGTZ6xDX1JpxgqpXFgKtlXmD0QTXupuEowso4kHE1OwbaSGv2lbseGDrQgu8uF3GagA.1EQkbU2lp6JHVXVZuEi9lgvkuuUywfvEKo0vGGK-8VE", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "10763fd9-ecd3-4487-88db-e910c2071598", + "request-id" : "8b8850fd-3971-4b53-95b5-ec377bc848cf", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "10217032", + "duration" : "9333676", "x-content-type-options" : "nosniff", - "client-request-id" : "76a2f8b9-8989-4584-a0ef-7af1f6f22d3b", + "client-request-id" : "c8d868ce-40aa-48ef-9807-587535bae534", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", - "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/690c1ebb-3d2a-446f-b07a-890789e56445/Microsoft.DirectoryServices.User", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654/Microsoft.DirectoryServices.User", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"usf3e668749015a\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"usf3e668749015a\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-25T22:56:49.2134804Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"usf3e668749015a@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}", - "ocp-aad-diagnostics-server-name" : "CLBFhp12uVA5Nnh6MG2VC8aF6kYj6BwyK0Y6WAoeTzc=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"usc43658948e498\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"usc43658948e498\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-26T21:53:53.7576041Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"usc43658948e498@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}", + "ocp-aad-diagnostics-server-name" : "nJFXIGamvjq0WNq3R+NL4/o8lLasHivlbg5vcxwnAHk=" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg73244?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg97607?api-version=2017-05-10", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "date" : "Thu, 26 Apr 2018 21:53:55 GMT", "content-length" : "181", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", "retry-after" : "0", "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d84939de-a4de-407e-bc0b-09f949b7f1eb", + "x-ms-correlation-request-id" : "b096f8e5-bdb4-4a27-a853-1ff75adba9f2", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225652Z:d84939de-a4de-407e-bc0b-09f949b7f1eb", + "x-ms-routing-request-id" : "WESTUS2:20180426T215356Z:b096f8e5-bdb4-4a27-a853-1ff75adba9f2", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "d84939de-a4de-407e-bc0b-09f949b7f1eb", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244\",\"name\":\"javacsmrg73244\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" + "x-ms-request-id" : "b096f8e5-bdb4-4a27-a853-1ff75adba9f2", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607\",\"name\":\"javacsmrg97607\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://spc483368568f0d%27)&api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://sp71880485984b9%27)&api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:51 GMT", - "content-length" : "1453", + "date" : "Thu, 26 Apr 2018 21:53:55 GMT", + "content-length" : "1475", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "LUKPniVY63gNQC9XIhQ4E5K9h1r221u6phIG61QD3OQ-esuogzT36Wc2bDBMPAKCVZdpYaM1gKY-wnrQhWg9SpCaTW7XVvuf1pWHFBT0-d_a-crdulU83oJI-nKr8MqtQ6241654ybMEdQW53eKMhw.pyPtMK5J_fOYR82jnbmvD4DWZVRV-LnMh5XMep-OZnY", + "ocp-aad-session-key" : "3AIM9BG7XEMoMe7Xi6GOkXcPNGu3AfNi-WKZxq0hA4A24dlIUc6vMNJsDsnNnzNPZOhqRTwlpyMNXz_h91l0DUn3AlzJvRbin9Spg2VLpV8ztdCaiDzdGhXcF7M18wJSIm7RqC3A8dayL72qKor70g.ehlbrLZuEEYV5YbfLnCap6zVDiFSRmPxx-ePPU-fw-Q", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "c7d32b43-26d6-4747-bb92-fbb391c19aaa", + "request-id" : "b779e520-45e0-417c-8f6a-39fd9edbf223", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "360726", + "duration" : "380424", "x-content-type-options" : "nosniff", - "client-request-id" : "295769bf-98bb-4534-86ce-c6cf864a8fba", + "client-request-id" : "7c24b003-74d6-4b93-8f7d-ee2fb07fc47d", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spc483368568f0d\",\"appId\":\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spc483368568f0d\",\"errorUrl\":null,\"homepage\":\"http://spc483368568f0d\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc483368568f0d on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc483368568f0d\",\"id\":\"7d6299a0-c31c-44f0-9aee-9ac0e97da0a3\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc483368568f0d on your behalf.\",\"userConsentDisplayName\":\"Access spc483368568f0d\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spc483368568f0d\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://spc483368568f0d\",\"5cc56cf7-4b34-4fe1-92a8-913b02747d16\"],\"servicePrincipalType\":\"Application\",\"tags\":[],\"tokenEncryptionKeyId\":null}]}", - "ocp-aad-diagnostics-server-name" : "aLjul60AojNkmrHXU2K8UCWjsiSBDyBxA+NSaz2RTqQ=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"sp71880485984b9\",\"appId\":\"d7e50a14-1fcc-4177-a400-2da71651d573\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"sp71880485984b9\",\"errorUrl\":null,\"homepage\":\"http://sp71880485984b9\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp71880485984b9 on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp71880485984b9\",\"id\":\"0731881e-2161-48ff-ad93-8548a9e0d8ee\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp71880485984b9 on your behalf.\",\"userConsentDisplayName\":\"Access sp71880485984b9\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://sp71880485984b9\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://sp71880485984b9\",\"d7e50a14-1fcc-4177-a400-2da71651d573\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}]}", + "ocp-aad-diagnostics-server-name" : "nJFXIGamvjq0WNq3R+NL4/o8lLasHivlbg5vcxwnAHk=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453/keyCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/keyCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "date" : "Thu, 26 Apr 2018 21:53:56 GMT", "content-length" : "158", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "RNJlO7dQ9lTC1dXY2z52cvTlV1Jn4nF9HAuKHWPezDPydCOUuTRZJ_Di0iVsgiFyCphmU83LaLIkSOJsUSiIfcajsO2WmNrfIzKBfSFBeZ7gl1WnFPyT6GKZ3qWZnr56NjXxmVQ8xnXTaIqyWvmbkg.Nav5YUju2apxBNIM04-bKxOjYnoXuV4a9I2NM3Vh4BQ", + "ocp-aad-session-key" : "7DlbuVVU2URt3r4tX7hSm8dq0eo905kQcjnxke4wCDR6Gvi1AjMKV0LAsujWUkM-imCkQAyCEw3wSigAzuoV_R6zWaTFtiw9_qjrtZPkZ7BW3oq6mvqYrCljx55VYKvFwaqreLfx8NIr2VzF43OJTA.rnoKYb1yctynX3BvKAybA8S8gvLjb6o4i1YUrfGSc2Q", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "dc9bf77c-4acb-4ce7-86db-4429247826fb", + "request-id" : "667832a1-60f8-445b-a91e-c12dab71d259", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "3175308", + "duration" : "405842", "x-content-type-options" : "nosniff", - "client-request-id" : "72e2c6a9-b8b2-4032-b373-feee455542e3", + "client-request-id" : "dcea0af4-a2fd-4fee-997e-b75f6e9ef5e6", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "Sv8LAqxM3Xd8KdoykW0mGkYyWG5hzFClI07Ok7DI0I8=" + "ocp-aad-diagnostics-server-name" : "oNrsfdz3Fhte7wfqy+uUhdb2Yij4mN6MnViek/b/vco=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453/passwordCredentials?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/passwordCredentials?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "date" : "Thu, 26 Apr 2018 21:53:56 GMT", "content-length" : "163", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "2JznrRnwSR8z6Wnan-o-YxsUI_ei89fmufa1r0s16ZcvF7HhIAuLm5qVTnciVxQfMUsIOTeXoUoTFxrQG9ypIT68b5P-d1kHPhPVy9HXUhhMIPOHFTNP2kzETYiGAmoYzP8d50DAMOltTCo9Eg9ATA.oNwBvoDf7fdgb6Wd1WGUrm-Yx2rDaMjVZQ_lcEW6h6Q", + "ocp-aad-session-key" : "h2966Eqc2HtgqXOWZZYWUrWhwAeH7Ea26IMUCk0dpN7zGMhDTwOS_natVbLWvE_yxpdcz8IUEoKGlM9tCtaGUKaHl2-CpQyRoJ5XnvWWfftT3oGncPVjZQTdCYDA1WBsvrsBfN7WvK5kBVxw6TtH8Q.8gj8PkSyOB-8ENCAdKGSDnouQZpVnstcouRiGYCTwd8", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "63a33b65-7dc1-4f20-aa87-60186f7d40fc", + "request-id" : "55a96ece-9502-4d84-8a12-6bb63ec58175", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "518449", + "duration" : "633963", "x-content-type-options" : "nosniff", - "client-request-id" : "6f074414-2ba7-462c-bd05-85e9f25e31fc", + "client-request-id" : "714bfa73-2952-4bc1-8d41-1ad78f95d307", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", - "ocp-aad-diagnostics-server-name" : "pMP8f8RT8BuYgTu1dfMWey3W85KBh0EioUNuKG1c8Zw=" + "ocp-aad-diagnostics-server-name" : "Rfijphx7ecKN3DhXco+oic4mwfgJcbBApkH8ISsM3TI=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/usf3e668749015a?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/usc43658948e498?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "date" : "Thu, 26 Apr 2018 21:53:56 GMT", "content-length" : "193", "server" : "Microsoft-IIS/10.0", - "ocp-aad-session-key" : "NIX_Pk7tQ0qjZGtdLPOlD7Glo-ppFm-4AQPKqZrLQa6SuLJMsLZxyAORUhC0ZNmI6YFjrS6i21JrNbf1pTSQAbmPvni6W8vMSoysqyUsG4xw5aqqPjHOEh-lrOFyqj3zwTzSENj6Y4Nnu4R71Y5ZUg.E1Ee7p2KoPATqf260bPXCMe_ycSSuCoSmd7VoZVkTpo", + "ocp-aad-session-key" : "FRl8dDvTMm6Xpyuj5nuZLOoAlC1a7YFqTsQYhbLUv3PSTMRVHYWfOc1H-50SMqP0bAKCw5QuxdH-vn3n4v9vTpJtaSS23rxHM6dTNxsUegXMyjJw3tuoyHHmTy545qX-Jr-PxEu-uBNH9xZFvSLeeg.7LrTM01zentPET4l-zk-0W7KZA3eOOTosoLlRotaU8I", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "905cb4fb-8267-47c5-9181-bd12f69b2a5b", + "request-id" : "5a016510-af1a-4e37-b21e-db31ad1febb4", "StatusCode" : "404", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "2383821", - "client-request-id" : "102045ce-65f1-4198-bee6-516af83f6bf9", + "duration" : "382243", + "client-request-id" : "28660bfb-b5b6-477c-9d49-1afbe605da68", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; charset=utf-8", "cache-control" : "private", "x-ms-dirapi-data-contract-version" : "1.6", - "Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'usf3e668749015a' does not exist or one of its queried reference-property objects are not present.\"}}}", - "ocp-aad-diagnostics-server-name" : "Hmgcuy1hpGi6KCpCk4BrqM0RyCbBpwqDLCqIAEp//qg=" + "Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'usc43658948e498' does not exist or one of its queried reference-property objects are not present.\"}}}", + "ocp-aad-diagnostics-server-name" : "pzQHTy7r+x2jeTcZ8TKtQx8joPNyc9z8ZcFALhRJEfI=" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27usf3e668749015a%27&api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27usc43658948e498%27&api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:52 GMT", + "date" : "Thu, 26 Apr 2018 21:53:56 GMT", "content-length" : "1469", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "f6HRFtepZ7rVoL2Zhaka-c_ZmWUtmvH9bDQR7HbnWB8qE13yEFTNkCE0zI6hCrHBnJumHjNshBhysXqQtXAMYFM84_hkqKQmCAgkb4HRerHGDnEukmRmyGeHec-7eiKizmUMou6hzKcpzI4y3w-tZg.S9thwsOYfQgd-zwheYO1ulFVS_gSeZa8AsztyK1vNZg", + "ocp-aad-session-key" : "-SfdzR6fiwr23T3ZlRMwGn_zsIT_vtlAzcUmOoGLLxAjaoOMNLNQSyLNNm1rnN5fRyEDSDI-g8NIKiMoqenecH7x-llQpZMicVIOHufZC5ITDKkANAamiEgenZc6A4S_KRxHQ2HmrPzlkj-zLV9ZYA.t5xcu-TeVRwSiZblZQV3eHmKstPc9T3IqQaUefhmQtA", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "97a497cd-05c8-429d-8cf0-db346f821fa1", + "request-id" : "ccb3c0b1-73aa-4328-9ede-36170ab80fb7", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "729869", + "duration" : "451453", "x-content-type-options" : "nosniff", - "client-request-id" : "7d87a76b-3c53-4661-bf75-9c5a65edada3", + "client-request-id" : "a09e938a-e9f5-470d-8c4f-04479d03103a", "x-powered-by" : "ASP.NET", "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "3.0;", - "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"usf3e668749015a\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"usf3e668749015a\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-25T22:56:49Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"usf3e668749015a@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}", - "ocp-aad-diagnostics-server-name" : "Hmgcuy1hpGi6KCpCk4BrqM0RyCbBpwqDLCqIAEp//qg=" + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"usc43658948e498\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"usc43658948e498\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-26T21:53:53Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"usc43658948e498@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}", + "ocp-aad-diagnostics-server-name" : "nJFXIGamvjq0WNq3R+NL4/o8lLasHivlbg5vcxwnAHk=" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:55 GMT", + "date" : "Thu, 26 Apr 2018 21:53:59 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "1146", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", - "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d81d5db6-895b-400a-a4dd-0ff63953bfee", + "x-ms-correlation-request-id" : "f3d70771-9c19-4246-8d1f-1fd454510a2b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225655Z:d81d5db6-895b-400a-a4dd-0ff63953bfee", + "x-ms-routing-request-id" : "WESTUS2:20180426T215359Z:f3d70771-9c19-4246-8d1f-1fd454510a2b", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "d81d5db6-895b-400a-a4dd-0ff63953bfee", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-90388other.vault.azure.net\",\"provisioningState\":\"RegisteringDns\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "f3d70771-9c19-4246-8d1f-1fd454510a2b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other\",\"name\":\"java-keyvault-37318other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-37318other.vault.azure.net\",\"provisioningState\":\"RegisteringDns\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:56:55 GMT", + "date" : "Thu, 26 Apr 2018 21:53:59 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "1147", "expires" : "-1", @@ -470,28 +470,28 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14986", + "x-ms-ratelimit-remaining-subscription-reads" : "14999", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "db458e7d-8fcc-405e-9e60-26010a2aa1ed", + "x-ms-correlation-request-id" : "3b1b89d4-1d5c-4a5f-ae0a-7181da04ac46", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225655Z:db458e7d-8fcc-405e-9e60-26010a2aa1ed", + "x-ms-routing-request-id" : "WESTUS2:20180426T215359Z:3b1b89d4-1d5c-4a5f-ae0a-7181da04ac46", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "db458e7d-8fcc-405e-9e60-26010a2aa1ed", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-90388other.vault.azure.net/\",\"provisioningState\":\"RegisteringDns\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "3b1b89d4-1d5c-4a5f-ae0a-7181da04ac46", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other\",\"name\":\"java-keyvault-37318other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-37318other.vault.azure.net/\",\"provisioningState\":\"RegisteringDns\"}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:57:25 GMT", + "date" : "Thu, 26 Apr 2018 21:54:28 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "1142", "expires" : "-1", @@ -499,56 +499,56 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14985", + "x-ms-ratelimit-remaining-subscription-reads" : "14998", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "f623b823-8d6c-4568-80c7-b0faa5cb9452", + "x-ms-correlation-request-id" : "255b1977-3706-4ae9-a8e8-cff4b8c0bb95", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225726Z:f623b823-8d6c-4568-80c7-b0faa5cb9452", + "x-ms-routing-request-id" : "WESTUS2:20180426T215429Z:255b1977-3706-4ae9-a8e8-cff4b8c0bb95", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "f623b823-8d6c-4568-80c7-b0faa5cb9452", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"5cc52486-38d2-42be-a9f6-541518e3e453\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"690c1ebb-3d2a-446f-b07a-890789e56445\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-90388other.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "255b1977-3706-4ae9-a8e8-cff4b8c0bb95", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other\",\"name\":\"java-keyvault-37318other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-37318other.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:57:26 GMT", + "date" : "Thu, 26 Apr 2018 21:54:29 GMT", "content-length" : "0", "server" : "Microsoft-IIS/10.0", "expires" : "-1", "x-aspnet-version" : "4.0.30319", - "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a2547106-74a0-4042-92fa-216a04e548ea", + "x-ms-correlation-request-id" : "1bf785cd-01a8-476a-a928-3cccb5a02ad5", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225726Z:a2547106-74a0-4042-92fa-216a04e548ea", + "x-ms-routing-request-id" : "WESTUS2:20180426T215430Z:1bf785cd-01a8-476a-a928-3cccb5a02ad5", "x-powered-by" : "ASP.NET", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "a2547106-74a0-4042-92fa-216a04e548ea", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "1bf785cd-01a8-476a-a928-3cccb5a02ad5", "Body" : "" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-37318other?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:57:46 GMT", + "date" : "Thu, 26 Apr 2018 21:54:50 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "503", "expires" : "-1", @@ -556,170 +556,196 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14984", + "x-ms-ratelimit-remaining-subscription-reads" : "14997", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "cbdf89a9-16e9-454a-bf11-04fc2711578f", + "x-ms-correlation-request-id" : "f088f5b2-021d-403f-ad8f-04b1eeab1dea", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225747Z:cbdf89a9-16e9-454a-bf11-04fc2711578f", + "x-ms-routing-request-id" : "WESTUS2:20180426T215450Z:f088f5b2-021d-403f-ad8f-04b1eeab1dea", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "cbdf89a9-16e9-454a-bf11-04fc2711578f", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/deletedVaults\",\"properties\":{\"vaultId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"location\":\"westus\",\"tags\":{},\"deletionDate\":\"2018-04-25T22:57:26Z\",\"scheduledPurgeDate\":\"2018-07-24T22:57:26Z\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "f088f5b2-021d-403f-ad8f-04b1eeab1dea", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-37318other\",\"name\":\"java-keyvault-37318other\",\"type\":\"Microsoft.KeyVault/deletedVaults\",\"properties\":{\"vaultId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other\",\"location\":\"westus\",\"tags\":{},\"deletionDate\":\"2018-04-26T21:54:29Z\",\"scheduledPurgeDate\":\"2018-07-25T21:54:29Z\"}}" } }, { - "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-37318other/purge?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:57:46 GMT", + "date" : "Thu, 26 Apr 2018 21:54:50 GMT", + "content-length" : "0", "server" : "Microsoft-IIS/10.0", - "content-length" : "503", "expires" : "-1", - "transfer-encoding" : "chunked", - "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14983", - "StatusCode" : "200", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "419db9b3-4942-40b7-8711-fd76e0f79655", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180426T215450Z:419db9b3-4942-40b7-8711-fd76e0f79655", + "x-powered-by" : "ASP.NET", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "419db9b3-4942-40b7-8711-fd76e0f79655", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Thu, 26 Apr 2018 21:54:51 GMT", + "content-length" : "64", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14996", + "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "c0cbc7ba-c76c-4cae-9f35-f56506dcdcb7", + "x-ms-correlation-request-id" : "0e0393e3-bab6-482d-8f84-4cece1fcd40c", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225747Z:c0cbc7ba-c76c-4cae-9f35-f56506dcdcb7", + "x-ms-routing-request-id" : "WESTUS2:20180426T215451Z:0e0393e3-bab6-482d-8f84-4cece1fcd40c", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "c0cbc7ba-c76c-4cae-9f35-f56506dcdcb7", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other\",\"name\":\"java-keyvault-90388other\",\"type\":\"Microsoft.KeyVault/deletedVaults\",\"properties\":{\"vaultId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg73244/providers/Microsoft.KeyVault/vaults/java-keyvault-90388other\",\"location\":\"westus\",\"tags\":{},\"deletionDate\":\"2018-04-25T22:57:26Z\",\"scheduledPurgeDate\":\"2018-07-24T22:57:26Z\"}}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "0e0393e3-bab6-482d-8f84-4cece1fcd40c", + "Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}" } }, { - "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other/purge?api-version=2018-02-14-preview", + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", - "Content-Type" : "application/json; charset=utf-8" + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:57:46 GMT", - "content-length" : "0", + "date" : "Thu, 26 Apr 2018 21:54:55 GMT", + "content-length" : "64", "server" : "Microsoft-IIS/10.0", "expires" : "-1", "x-aspnet-version" : "4.0.30319", - "x-ms-ratelimit-remaining-subscription-writes" : "1194", "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14995", "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "5be17f5b-5fe7-4c80-b9d9-a87e919a8a03", + "x-ms-correlation-request-id" : "427d4df8-e43d-4934-be02-68eb66b5b3ac", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225747Z:5be17f5b-5fe7-4c80-b9d9-a87e919a8a03", + "x-ms-routing-request-id" : "WESTUS2:20180426T215456Z:427d4df8-e43d-4934-be02-68eb66b5b3ac", "x-powered-by" : "ASP.NET", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "5be17f5b-5fe7-4c80-b9d9-a87e919a8a03", - "Body" : "" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "427d4df8-e43d-4934-be02-68eb66b5b3ac", + "Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:57:47 GMT", + "date" : "Thu, 26 Apr 2018 21:55:00 GMT", "content-length" : "64", "server" : "Microsoft-IIS/10.0", "expires" : "-1", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14982", + "x-ms-ratelimit-remaining-subscription-reads" : "14994", "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "015f23a4-5095-4211-8970-332b78c8715e", + "x-ms-correlation-request-id" : "2103d82a-2425-49ab-af44-b1d180bf520c", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225747Z:015f23a4-5095-4211-8970-332b78c8715e", + "x-ms-routing-request-id" : "WESTUS2:20180426T215501Z:2103d82a-2425-49ab-af44-b1d180bf520c", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "015f23a4-5095-4211-8970-332b78c8715e", - "Body" : "{\"createdDateTime\":\"2018-04-25 22:57:47Z\",\"status\":\"NotStarted\"}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "2103d82a-2425-49ab-af44-b1d180bf520c", + "Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:57:52 GMT", + "date" : "Thu, 26 Apr 2018 21:55:05 GMT", "content-length" : "64", "server" : "Microsoft-IIS/10.0", "expires" : "-1", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14981", + "x-ms-ratelimit-remaining-subscription-reads" : "14993", "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "ec982a80-d100-4e65-a98f-bc9efc24df7a", + "x-ms-correlation-request-id" : "0ff4e02b-6f0b-4710-a898-7ce3345dd148", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225752Z:ec982a80-d100-4e65-a98f-bc9efc24df7a", + "x-ms-routing-request-id" : "WESTUS2:20180426T215506Z:0ff4e02b-6f0b-4710-a898-7ce3345dd148", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "ec982a80-d100-4e65-a98f-bc9efc24df7a", - "Body" : "{\"createdDateTime\":\"2018-04-25 22:57:47Z\",\"status\":\"NotStarted\"}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "0ff4e02b-6f0b-4710-a898-7ce3345dd148", + "Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:57:57 GMT", + "date" : "Thu, 26 Apr 2018 21:55:10 GMT", "content-length" : "64", "server" : "Microsoft-IIS/10.0", "expires" : "-1", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14980", + "x-ms-ratelimit-remaining-subscription-reads" : "14992", "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "c8a7062c-14d3-49f8-b78c-89464aa03f3f", + "x-ms-correlation-request-id" : "79bc3b8a-7b36-4ff0-b5d7-4ccb91b01358", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225757Z:c8a7062c-14d3-49f8-b78c-89464aa03f3f", + "x-ms-routing-request-id" : "WESTUS2:20180426T215511Z:79bc3b8a-7b36-4ff0-b5d7-4ccb91b01358", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "c8a7062c-14d3-49f8-b78c-89464aa03f3f", - "Body" : "{\"createdDateTime\":\"2018-04-25 22:57:47Z\",\"status\":\"NotStarted\"}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "79bc3b8a-7b36-4ff0-b5d7-4ccb91b01358", + "Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMjkzODY4MTk3Mjk0N3wwQ0VFOTcxODhGRDc0NTdDQTAxRDRCRkYyQ0NENTZGRg?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:58:02 GMT", + "date" : "Thu, 26 Apr 2018 21:55:15 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "107", "expires" : "-1", @@ -727,101 +753,101 @@ "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14979", + "x-ms-ratelimit-remaining-subscription-reads" : "14991", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "0300ab90-d9ef-4fc5-830a-6bb799634d2e", + "x-ms-correlation-request-id" : "e2c5dcbd-f768-4710-bfab-284450ca44cd", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225802Z:0300ab90-d9ef-4fc5-830a-6bb799634d2e", + "x-ms-routing-request-id" : "WESTUS2:20180426T215516Z:e2c5dcbd-f768-4710-bfab-284450ca44cd", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "0300ab90-d9ef-4fc5-830a-6bb799634d2e", - "Body" : "{\"createdDateTime\":\"2018-04-25 22:57:47Z\",\"lastActionDateTime\":\"2018-04-25 22:58:02Z\",\"status\":\"Succeeded\"}" + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "e2c5dcbd-f768-4710-bfab-284450ca44cd", + "Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"lastActionDateTime\":\"2018-04-26 21:55:15Z\",\"status\":\"Succeeded\"}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-90388other?api-version=2018-02-14-preview", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-37318other?api-version=2018-02-14-preview", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:58:21 GMT", + "date" : "Thu, 26 Apr 2018 21:55:35 GMT", "content-length" : "88", "server" : "Microsoft-IIS/10.0", "expires" : "-1", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "14978", + "x-ms-ratelimit-remaining-subscription-reads" : "14990", "StatusCode" : "404", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d81fdfc9-9a26-4091-9c76-1ea1834d5ce8", + "x-ms-correlation-request-id" : "eb5b658b-440b-4949-a81b-4e27a94d874f", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225822Z:d81fdfc9-9a26-4091-9c76-1ea1834d5ce8", + "x-ms-routing-request-id" : "WESTUS2:20180426T215536Z:eb5b658b-440b-4949-a81b-4e27a94d874f", "x-powered-by" : "ASP.NET", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-keyvault-service-version" : "1.0.0.214", - "x-ms-request-id" : "d81fdfc9-9a26-4091-9c76-1ea1834d5ce8", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "eb5b658b-440b-4949-a81b-4e27a94d874f", "Body" : "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The specified resource does not exist.\"}}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/5cc52486-38d2-42be-a9f6-541518e3e453?api-version=1.6", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4?api-version=1.6", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:58:22 GMT", + "date" : "Thu, 26 Apr 2018 21:55:36 GMT", "server" : "Microsoft-IIS/10.0", "expires" : "-1", - "ocp-aad-session-key" : "eQdiGvaafZkDSzroy10yYb52yQRtmANaoV-aLDEsDiyn_jvZJUZzJDBGGibCTN0ksNKSRoIsIev1_bJbPg00yuEWACO53lES8I9uaXCkFZM83Al2CmoSA2kJo0j6pPfxVsZv6LphNGHzGjlywx-EHg.QqxtbXCXdS9mqvxetZoIxFNViv6RniKLxj36553aqKE", + "ocp-aad-session-key" : "TO8LUeRdcm7CsR6Pn4F1_ns5FGcgdJmeeIl3ZjiUHhgCu74bET6GR_8uh9OYJron27CToVEhcrVzx10z4lhSS4CtZTmSCTD6opoPW2ea4GogRraf5Z-C7vOuYwa4rOhopEhSMfR6_vRhCgYxzLrOpQ.MNvOgvHwBRc71yQvpnIng_kFzbjzuhFtEWBx0EL3YHQ", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "request-id" : "f7860f91-4a94-426f-bb0c-623f1bb6af5b", + "request-id" : "2c149d4a-c209-4bd7-bdbd-6fb24331a4d4", "StatusCode" : "204", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", "access-control-allow-origin" : "*", - "duration" : "3070022", + "duration" : "2672116", "x-content-type-options" : "nosniff", - "client-request-id" : "42a7ae1c-6ff5-43c9-91a9-5b2f3afdabdd", + "client-request-id" : "e21b1309-6ed3-445d-b90c-1ee3ae0956ab", "x-powered-by" : "ASP.NET", "cache-control" : "no-cache", "x-ms-dirapi-data-contract-version" : "1.6", "dataserviceversion" : "1.0;", "Body" : "", - "ocp-aad-diagnostics-server-name" : "PWJF5MXsNJeXfk2GpX0VavQ33Q7BBlAFQ1PBOgmVl+Y=" + "ocp-aad-diagnostics-server-name" : "A0TISAaaPyfZDtlqv77d4kTKQUFjSgfdf+Q69DXpj+0=" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg73244?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg97607?api-version=2017-05-10", "Headers" : { "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Wed, 25 Apr 2018 22:58:22 GMT", + "date" : "Thu, 26 Apr 2018 21:55:36 GMT", "content-length" : "0", "expires" : "-1", - "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", "retry-after" : "0", "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9aa40311-8fc5-4421-91f0-18b660e8fbfa", + "x-ms-correlation-request-id" : "ecfc1a27-4f5f-4bab-9cde-1ffb78b1885a", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20180425T225823Z:9aa40311-8fc5-4421-91f0-18b660e8fbfa", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3MzI0NC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10", + "x-ms-routing-request-id" : "WESTUS2:20180426T215537Z:ecfc1a27-4f5f-4bab-9cde-1ffb78b1885a", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc5NzYwNy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10", "cache-control" : "no-cache", - "x-ms-request-id" : "9aa40311-8fc5-4421-91f0-18b660e8fbfa", + "x-ms-request-id" : "ecfc1a27-4f5f-4bab-9cde-1ffb78b1885a", "Body" : "" } } ], - "variables" : [ "javacsmrg73244", "java-keyvault-90388", "spc483368568f0d", "usf3e668749015a", "d37703d1-6289-445e-be74-cf2f4ccd3218", "b96b5bd8-2fa2-4685-8c88-271771cf78d6", "c50ce790-acf4-471f-9209-4dedecdb13e7", "4bd4e900-7bca-46c9-9c1c-b42641478bd0", "640fd95c-409f-49df-be9a-8bde8cadefcb", "d37d0162-1db2-4712-8ebc-bec692a7581e", "cf825de6-5654-4b62-a2ca-0b464361a860" ] + "variables" : [ "javacsmrg97607", "java-keyvault-37318", "sp71880485984b9", "usc43658948e498", "1174a0fb-b453-42fb-9dac-629388ba3dbe", "d7a2fc13-a95c-41ef-831c-6e10dbbdc6b3", "a76f7e99-e964-4d27-9af5-ec0633158cf1", "d36ebb6d-2c1b-4f8f-9bf0-fd84f9a887a9", "c1cd0bde-558d-449e-ac27-8001ef00f1fa", "7ffdc500-c8e7-49fa-bde3-889c9b4b486b", "bdf3dfb0-88fe-41f6-94d5-15d5287e2c2a" ] } \ No newline at end of file From e3cedf97c16014cf82b181feb066c209bc2807a5 Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Tue, 1 May 2018 14:43:42 -0700 Subject: [PATCH 04/16] Updated access policy to include storage --- .../management/keyvault/AccessPolicy.java | 96 +++++++++++++++++++ .../implementation/AccessPolicyImpl.java | 63 ++++++++++++ 2 files changed, 159 insertions(+) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java index 517035011ef..266ac03b36a 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java @@ -219,6 +219,30 @@ interface WithPermissions { * @return the next stage of access policy definition */ WithAttach allowCertificatePermissions(List permissions); + + /** + * Allow all permissions for the Ad identity to access storage. + * + * @param the next stage of access policy definition + */ + @Method + WithAttach allowStorageAllPermissions(); + + /** + * Allow a list of permissions for the AD identity to access storage. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + WithAttach allowStoragePermissions(StoragePermissions...permissions); + + /** + * Allow a list of permissions for the AD identity to access storage. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + WithAttach allowStoragePermissions(List permissions); } /** The final stage of the access policy definition. @@ -378,6 +402,30 @@ interface WithPermissions { * @return the next stage of access policy definition */ WithAttach allowSecretPermissions(List permissions); + + /** + * Allow all permissions for the Ad identity to access storage. + * + * @param the next stage of access policy definition + */ + @Method + WithAttach allowStorageAllPermissions(); + + /** + * Allow a list of permissions for the AD identity to access storage. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + WithAttach allowStoragePermissions(StoragePermissions...permissions); + + /** + * Allow a list of permissions for the AD identity to access storage. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + WithAttach allowStoragePermissions(List permissions); } /** The final stage of the access policy definition. @@ -544,6 +592,54 @@ interface WithPermissions { * @return the next stage of access policy update */ Update disallowCertificatePermissions(List permissions); + + /** + * Allow all permissions for the Ad identity to access storage. + * + * @param the next stage of access policy definition + */ + @Method + Update allowStorageAllPermissions(); + + /** + * Allow a list of permissions for the AD identity to access storage. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + Update allowStoragePermissions(StoragePermissions...permissions); + + /** + * Allow a list of permissions for the AD identity to access storage. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + Update allowStoragePermissions(List permissions); + + /** + * Revoke all permissions for the Ad identity to access storage. + * + * @param the next stage of access policy definition + */ + @Method + Update disallowStorageAllPermissions(); + + /** + * Revoke a list of permissions for the AD identity to access storage. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + Update disallowStoragePermissions(StoragePermissions...permissions); + + /** + * Revoke a list of permissions for the AD identity to access storage. + * + * @param permissions the list of permissions allowed + * @return the next stage of access policy definition + */ + Update disallowStoragePermissions(List permissions); } } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java index 15213e0f594..df92a8eb5da 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java @@ -17,6 +17,7 @@ import com.microsoft.azure.management.keyvault.KeyPermissions; import com.microsoft.azure.management.keyvault.Permissions; import com.microsoft.azure.management.keyvault.SecretPermissions; +import com.microsoft.azure.management.keyvault.StoragePermissions; import com.microsoft.azure.management.keyvault.Vault; import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ChildResourceImpl; @@ -115,6 +116,15 @@ private void initializeCertificatePermissions() { inner().permissions().withCertificates(new ArrayList()); } } + + private void initializeStoragePermissions() { + if (inner().permissions() == null) { + inner().withPermissions(new Permissions()); + } + if (inner().permissions().storage() == null) { + inner().permissions().withStorage(new ArrayList()); + } + } @Override public AccessPolicyImpl allowKeyPermissions(KeyPermissions... permissions) { @@ -190,6 +200,37 @@ public AccessPolicyImpl allowCertificatePermissions(List return this; } + + @Override + public AccessPolicyImpl allowStorageAllPermissions() { + for (StoragePermissions permission : StoragePermissions.values()) { + allowStoragePermissions(permission); + } + return this; + } + + @Override + public AccessPolicyImpl allowStoragePermissions(StoragePermissions... permissions) { + initializeStoragePermissions(); + for (StoragePermissions permission : permissions) { + if (!inner().permissions().storage().contains(permission)) { + inner().permissions().storage().add(permission); + } + } + return this; + } + + @Override + public AccessPolicyImpl allowStoragePermissions(List permissions) { + initializeStoragePermissions(); + for (StoragePermissions permission : permissions) { + if (!inner().permissions().storage().contains(permission)) { + inner().permissions().storage().add(permission); + } + } + return this; + } + @Override public AccessPolicyImpl disallowCertificateAllPermissions() { initializeCertificatePermissions(); @@ -323,4 +364,26 @@ public AccessPolicyImpl disallowSecretPermissions(List permis return this; } + + @Override + public AccessPolicyImpl disallowStorageAllPermissions() { + initializeStoragePermissions(); + inner().permissions().storage().clear(); + return this; + } + + @Override + public AccessPolicyImpl disallowStoragePermissions(StoragePermissions... permissions) { + initializeStoragePermissions(); + inner().permissions().storage().removeAll(Arrays.asList(permissions)); + return this; + } + + @Override + public AccessPolicyImpl disallowStoragePermissions(List permissions) { + initializeStoragePermissions(); + inner().permissions().storage().removeAll(permissions); + return this; + } + } From ffb3d8cf4d3403fde420ca4f19c68510b9abd520 Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Tue, 1 May 2018 14:44:18 -0700 Subject: [PATCH 05/16] Moved converter for DeletedVaultInner --- .../keyvault/implementation/VaultsImpl.java | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java index 546d316244b..69deeccdfcc 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java @@ -104,19 +104,15 @@ public Observable listByResourceGroupAsync(String resourceGroupName) { @Override public PagedList listDeleted() { - return wrapPage(this.inner().listDeleted()); - } - - //Hacky method to convert from DeletedVaultInner to DeletedVault - private PagedList wrapPage(PagedList listDeleted) { - PagedListConverter converter = - new PagedListConverter () { - @Override - public Observable typeConvertAsync(DeletedVaultInner inner) { - return Observable.just((DeletedVault) new DeletedVaultImpl(inner)); - } - }; - return converter.convert(listDeleted); + PagedList listDeleted = this.inner().listDeleted(); + PagedListConverter converter = + new PagedListConverter () { + @Override + public Observable typeConvertAsync(DeletedVaultInner inner) { + return Observable.just((DeletedVault) new DeletedVaultImpl(inner)); + } + }; + return converter.convert(listDeleted); } @Override From 8ee4d5b9cec780e9b4c4b41ba31309350ea0b6c5 Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Mon, 7 May 2018 09:42:50 -0700 Subject: [PATCH 06/16] Added async methods --- .../keyvault/CheckNameAvailabilityResult.java | 16 + .../management/keyvault/DeletedVault.java | 3 - .../keyvault/VaultAccessPolicyParameters.java | 11 + .../azure/management/keyvault/Vaults.java | 517 +++++++++++- .../CheckNameAvailabilityResultImpl.java | 13 + .../VaultAccessPolicyParametersImpl.java | 11 + .../keyvault/implementation/VaultsImpl.java | 649 ++++++++++++++- .../azure/management/keyvault/VaultTests.java | 88 +++ .../session-records/canCRUDVaultAsync.json | 746 ++++++++++++++++++ 9 files changed, 2040 insertions(+), 14 deletions(-) create mode 100644 azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java create mode 100644 azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java create mode 100644 azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java create mode 100644 azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java create mode 100644 azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVaultAsync.json diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java new file mode 100644 index 00000000000..25bc3e94e8f --- /dev/null +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java @@ -0,0 +1,16 @@ +package com.microsoft.azure.management.keyvault; + +import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.keyvault.implementation.CheckNameAvailabilityResultInner; +import com.microsoft.azure.management.resources.fluentcore.model.HasInner; + +/** + * Wrapper for CheckNameAvailabilityResultInner + * @author tifchen + * + */ +@Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") +public interface CheckNameAvailabilityResult extends + HasInner{ + +} diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java index 354e73eb17a..a9a1d0f8905 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java @@ -2,12 +2,9 @@ import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.keyvault.implementation.DeletedVaultInner; -import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager; -import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasName; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; -import com.microsoft.azure.management.resources.fluentcore.model.Refreshable; /** * An immutable client-side representation of an Azure Key Vault. diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java new file mode 100644 index 00000000000..33fb7c0aa1c --- /dev/null +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java @@ -0,0 +1,11 @@ +package com.microsoft.azure.management.keyvault; +import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.keyvault.implementation.VaultAccessPolicyParametersInner; +import com.microsoft.azure.management.resources.fluentcore.model.HasInner; + + +@Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") +public interface VaultAccessPolicyParameters extends + HasInner{ + +} diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java index f597e0477f1..b8a6e365215 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java @@ -6,20 +6,29 @@ package com.microsoft.azure.management.keyvault; +import java.util.List; + import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager; import com.microsoft.azure.management.keyvault.implementation.VaultsInner; import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup; -import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup; import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById; +import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup; import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByResourceGroup; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager; import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating; import com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById; import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; + +import rx.Observable; /** * Entry point for key vaults management API. @@ -28,6 +37,7 @@ public interface Vaults extends SupportsCreating, SupportsDeletingById, + SupportsListing, SupportsListingByResourceGroup, SupportsGettingByResourceGroup, SupportsGettingById, @@ -35,16 +45,252 @@ public interface Vaults extends HasManager, HasInner { + /** + * Create or update a key vault in the specified subscription. + * + * @param resourceGroupName The name of the Resource Group to which the server belongs. + * @param vaultName Name of the vault + * @param parameters Parameters to create or update the vault + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback); + + /** + * Create or update a key vault in the specified subscription. + * + * @param resourceGroupName The name of the Resource Group to which the server belongs. + * @param vaultName Name of the vault + * @param parameters Parameters to create or update the vault + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters); + + /** + * Create or update a key vault in the specified subscription. + * + * @param resourceGroupName The name of the Resource Group to which the server belongs. + * @param vaultName Name of the vault + * @param parameters Parameters to create or update the vault + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters); + + /** + * Update a key vault in the specified subscription. + * + * @param resourceGroupName The name of the Resource Group to which the server belongs. + * @param vaultName Name of the vault + * @param parameters Parameters to patch the vault + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters, final ServiceCallback serviceCallback); + + /** + * Update a key vault in the specified subscription. + * + * @param resourceGroupName The name of the Resource Group to which the server belongs. + * @param vaultName Name of the vault + * @param parameters Parameters to patch the vault + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Vault object + */ + public Observable updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters); + + /** + * Update a key vault in the specified subscription. + * + * @param resourceGroupName The name of the Resource Group to which the server belongs. + * @param vaultName Name of the vault + * @param parameters Parameters to patch the vault + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Vault object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters); + + /** + * Deletes the specified Azure key vault. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName The name of the vault to delete + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String vaultName, final ServiceCallback serviceCallback); + /** + * Deletes the specified Azure key vault. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName The name of the vault to delete + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String vaultName); + + /** + * Deletes the specified Azure key vault. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName The name of the vault to delete + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String vaultName); + + /** + * Gets the specified Azure key vault. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName The name of the vault. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String vaultName, final ServiceCallback serviceCallback); + + /** + * Gets the specified Azure key vault. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName The name of the vault. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Vault object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String vaultName); + + /** + * The List operation gets information about the vaults associated with the subscription and within the specified resource group. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback); + + /** + * The List operation gets information about the vaults associated with the subscription and within the specified resource group. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Vault> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName); + + /** + * The List operation gets information about the vaults associated with the subscription and within the specified resource group. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<Vault> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName); + + /** + * Update access policies in a key vault in the specified subscription. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName Name of the vault + * @param operationKind Name of the operation. Possible values include: 'add', 'replace', 'remove' + * @param properties Properties of the access policy + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties, final ServiceCallback serviceCallback); + + /** + * Update access policies in a key vault in the specified subscription. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName Name of the vault + * @param operationKind Name of the operation. Possible values include: 'add', 'replace', 'remove' + * @param properties Properties of the access policy + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VaultAccessPolicyParameters object + */ + public Observable updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties); + + /** + * Update access policies in a key vault in the specified subscription. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName Name of the vault + * @param operationKind Name of the operation. Possible values include: 'add', 'replace', 'remove' + * @param properties Properties of the access policy + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VaultAccessPolicyParameters object + */ + public Observable> updateAccessPolicyWithServiceResponseAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties); + + /** + * Gets the specified Azure key vault. + * + * @param resourceGroupName The name of the Resource Group to which the vault belongs. + * @param vaultName The name of the vault. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Vault object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String vaultName); + /** * Gets information about the deleted vaults in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<DeletedVaultInner> object if successful. + * @return the PagedList<DeletedVault> object if successful. */ public PagedList listDeleted(); + /** + * Gets information about the deleted vaults in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listDeletedAsync(final ListOperationCallback serviceCallback); + + /** + * Gets information about the deleted vaults in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DeletedVault> object + */ + public Observable listDeletedAsync(); + + /** + * Gets information about the deleted vaults in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DeletedVault> object + */ + public Observable>> listDeletedWithServiceResponseAsync(); + + /** + * Gets information about the deleted vaults in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DeletedVault> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listDeletedSinglePageAsync(); + + /** + * Gets information about the deleted vaults in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DeletedVault> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listDeletedNextSinglePageAsync(final String nextPageLink); + /** * Gets the deleted Azure key vault. * @@ -53,11 +299,68 @@ public interface Vaults extends * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DeletedVaultInner object if successful. + * @return the DeletedVault object if successful. */ public DeletedVault getDeleted(String vaultName, String location); /** + * Gets the deleted Azure key vault. + * + * @param vaultName The name of the vault. + * @param location The location of the deleted vault. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public Observable getDeletedAsync(String vaultName, String location); + + /** + * Gets the deleted Azure key vault. + * + * @param vaultName The name of the vault. + * @param location The location of the deleted vault. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DeletedVault object + */ + public Observable> getDeletedWithServiceResponseAsync(String vaultName, String location); + + /** + * Gets the deleted Azure key vault. + * + * @param vaultName The name of the vault. + * @param location The location of the deleted vault. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getDeletedAsync(String vaultname, String location, final ServiceCallback serviceCallback); + + /** + * The List operation gets information about the vaults associated with the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Resource> object + */ + public Observable>> listWithServiceResponseAsync(); + + /** + * The List operation gets information about the vaults associated with the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Resource> object + */ + public Observable>> listSinglePageAsync(); + + /** + * The List operation gets information about the vaults associated with the subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(ListOperationCallback serviceCallback); + + /** * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. * * @param vaultName The name of the soft-deleted vault. @@ -67,4 +370,212 @@ public interface Vaults extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ public void purgeDeleted(String vaultName, String location); + + /** + * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + * + * @param vaultName The name of the soft-deleted vault. + * @param location The location of the soft-deleted vault. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture purgeDeletedAsync(String vaultName, String location, final ServiceCallback serviceCallback); + + /** + * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + * + * @param vaultName The name of the soft-deleted vault. + * @param location The location of the soft-deleted vault. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable purgeDeletedAsync(String vaultName, String location); + + /** + * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + * + * @param vaultName The name of the soft-deleted vault. + * @param location The location of the soft-deleted vault. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> purgeDeletedWithServiceResponseAsync(String vaultName, String location); + + /** + * Checks that the vault name is valid and is not already in use. + * + * @param name The vault name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CheckNameAvailabilityResult object if successful. + */ + public CheckNameAvailabilityResult checkNameAvailability(String name); + + /** + * Checks that the vault name is valid and is not already in use. + * + * @param name The vault name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture checkNameAvailabilityAsync(String name, final ServiceCallback serviceCallback); + + /** + * Checks that the vault name is valid and is not already in use. + * + * @param name The vault name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckNameAvailabilityResult object + */ + public Observable checkNameAvailabilityAsync(String name); + + /** + * Checks that the vault name is valid and is not already in use. + * + * @param name The vault name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CheckNameAvailabilityResult object + */ + public Observable> checkNameAvailabilityWithServiceResponseAsync(String name); + + /** + * The List operation gets information about the vaults associated with the subscription and within the specified resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<Vault> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink); + + /** + * The List operation gets information about the vaults associated with the subscription and within the specified resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback); + + /** + * The List operation gets information about the vaults associated with the subscription and within the specified resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Vault> object + */ + public Observable listByResourceGroupNextAsync(final String nextPageLink); + + /** + * The List operation gets information about the vaults associated with the subscription and within the specified resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Vault> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink); + + /** + * The List operation gets information about the vaults associated with the subscription and within the specified resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<Vault> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink); + + /** + * Gets information about the deleted vaults in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<DeletedVault> object if successful. + */ + public PagedList listDeletedNext(final String nextPageLink); + + /** + * Gets information about the deleted vaults in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listDeletedNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback); + + /** + * Gets information about the deleted vaults in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DeletedVault> object + */ + public Observable listDeletedNextAsync(final String nextPageLink); + + /** + * Gets information about the deleted vaults in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DeletedVault> object + */ + public Observable>> listDeletedNextWithServiceResponseAsync(final String nextPageLink); + + /** + * The List operation gets information about the vaults associated with the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<Resource> object if successful. + */ + public PagedList listNext(final String nextPageLink); + + /** + * The List operation gets information about the vaults associated with the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback); + + /** + * The List operation gets information about the vaults associated with the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Resource> object + */ + public Observable listNextAsync(final String nextPageLink); + + /** + * The List operation gets information about the vaults associated with the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<Resource> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink); + + /** + * The List operation gets information about the vaults associated with the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<Resource> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java new file mode 100644 index 00000000000..2385ee75640 --- /dev/null +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java @@ -0,0 +1,13 @@ +package com.microsoft.azure.management.keyvault.implementation; + +import com.microsoft.azure.management.keyvault.CheckNameAvailabilityResult; +import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; + + +public class CheckNameAvailabilityResultImpl extends WrapperImpl implements CheckNameAvailabilityResult{ + + protected CheckNameAvailabilityResultImpl(CheckNameAvailabilityResultInner innerObject) { + super(innerObject); + } + +} diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java new file mode 100644 index 00000000000..b0a38028104 --- /dev/null +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java @@ -0,0 +1,11 @@ +package com.microsoft.azure.management.keyvault.implementation; + +import com.microsoft.azure.management.keyvault.VaultAccessPolicyParameters; +import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; + +public class VaultAccessPolicyParametersImpl extends WrapperImpl implements VaultAccessPolicyParameters { + VaultAccessPolicyParametersImpl(VaultAccessPolicyParametersInner inner) { + super(inner); + } + +} diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java index 69deeccdfcc..6543fae535c 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java @@ -6,21 +6,37 @@ package com.microsoft.azure.management.keyvault.implementation; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; +import com.microsoft.azure.Resource; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager; +import com.microsoft.azure.management.keyvault.AccessPolicyUpdateKind; +import com.microsoft.azure.management.keyvault.CheckNameAvailabilityResult; import com.microsoft.azure.management.keyvault.DeletedVault; import com.microsoft.azure.management.keyvault.SkuName; import com.microsoft.azure.management.keyvault.Vault; +import com.microsoft.azure.management.keyvault.VaultAccessPolicyParameters; +import com.microsoft.azure.management.keyvault.VaultAccessPolicyProperties; +import com.microsoft.azure.management.keyvault.VaultCreateOrUpdateParameters; +import com.microsoft.azure.management.keyvault.VaultPatchParameters; import com.microsoft.azure.management.keyvault.VaultProperties; import com.microsoft.azure.management.keyvault.Vaults; import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.GroupableResourcesImpl; import com.microsoft.azure.management.resources.fluentcore.utils.PagedListConverter; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; import rx.Completable; import rx.Observable; - -import java.util.UUID; +import rx.functions.Func1; /** * The implementation of Vaults and its parent interfaces. @@ -36,6 +52,7 @@ class VaultsImpl implements Vaults { private final GraphRbacManager graphRbacManager; private final String tenantId; + private final KeyVaultManager keyVaultManager; VaultsImpl( final KeyVaultManager keyVaultManager, @@ -44,6 +61,7 @@ class VaultsImpl super(keyVaultManager.inner().vaults(), keyVaultManager); this.graphRbacManager = graphRbacManager; this.tenantId = tenantId; + this.keyVaultManager = keyVaultManager; } @@ -51,6 +69,11 @@ class VaultsImpl public PagedList listByResourceGroup(String groupName) { return wrapList(this.inner().listByResourceGroup(groupName)); } + + @Override + public Observable listByResourceGroupAsync(String resourceGroupName) { + return wrapPageAsync(this.inner().listByResourceGroupAsync(resourceGroupName)); + } @Override protected Observable getInnerAsync(String resourceGroupName, String name) { @@ -95,12 +118,7 @@ protected VaultImpl wrapModel(VaultInner vaultInner) { vaultInner, super.manager(), graphRbacManager); - } - - @Override - public Observable listByResourceGroupAsync(String resourceGroupName) { - return wrapPageAsync(this.inner().listByResourceGroupAsync(resourceGroupName)); - } + } @Override public PagedList listDeleted() { @@ -129,4 +147,619 @@ public void purgeDeleted(String vaultName, String location) { inner().purgeDeleted(vaultName, location); } + + @Override + public Observable getDeletedAsync(String vaultName, String location) { + VaultsInner client = this.inner(); + return client.getDeletedAsync(vaultName, location).map(new Func1() { + @Override + public DeletedVault call(DeletedVaultInner inner) { + return new DeletedVaultImpl(inner); + } + }); + } + + @Override + public Observable> getDeletedWithServiceResponseAsync(String vaultName, String location) { + VaultsInner client = this.inner(); + return client.getDeletedWithServiceResponseAsync(vaultName, location).map(new Func1, ServiceResponse>() { + @Override + public ServiceResponse call(ServiceResponse inner) { + return new ServiceResponse(new DeletedVaultImpl(inner.body()), inner.response()); + } + }); + } + + @Override + public ServiceFuture getDeletedAsync(String vaultName, String location, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getDeletedWithServiceResponseAsync(vaultName, location), serviceCallback); + } + + + @Override + public ServiceFuture purgeDeletedAsync(String vaultName, String location, + ServiceCallback serviceCallback) { + return this.inner().purgeDeletedAsync(vaultName, location, serviceCallback); + } + + + @Override + public Observable purgeDeletedAsync(String vaultName, String location) { + return this.inner().purgeDeletedAsync(vaultName, location); + } + + + @Override + public Observable> purgeDeletedWithServiceResponseAsync(String vaultName, String location) { + return this.inner().purgeDeletedWithServiceResponseAsync(vaultName, location); + } + + + @Override + public ServiceFuture> listDeletedAsync( + ListOperationCallback serviceCallback) { + //Reimplemented this due to different callback types + return AzureServiceFuture.fromPageResponse(listDeletedSinglePageAsync(), + new Func1>>> () { + @Override + public Observable>> call(String nextPageLink) { + return listDeletedNextSinglePageAsync(nextPageLink); + } + }, serviceCallback); + } + + @Override + public Observable>> listDeletedSinglePageAsync() { + VaultsInner client = this.inner(); + return client.listDeletedSinglePageAsync().map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> inner) { + return new ServiceResponse>(convertPageDeletedVaultInner(inner.body()), inner.response()); + } + }); + } + + @Override + public Observable>> listDeletedNextSinglePageAsync(final String nextPageLink) { + VaultsInner client = this.inner(); + return client.listDeletedNextSinglePageAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> inner) { + return new ServiceResponse>(convertPageDeletedVaultInner(inner.body()), inner.response()); + } + }); + } + + private Observable convertPageDeletedVaultToDeletedVaultAsync(Observable> page) { + return page.flatMap(new Func1, Observable>() { + @Override + public Observable call(Page inner) { + return Observable.from(inner.items()); + } + }); + } + + @Override + public Observable listDeletedAsync() { + VaultsInner client = this.inner(); + Observable> page = client.listDeletedAsync().map(new Func1, Page>() { + @Override + public Page call(Page inner) { + return convertPageDeletedVaultInner(inner); + } + }); + return convertPageDeletedVaultToDeletedVaultAsync(page); + } + + @Override + public Observable>> listDeletedWithServiceResponseAsync() { + VaultsInner client = this.inner(); + return client.listDeletedWithServiceResponseAsync().map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call (ServiceResponse> inner) { + return new ServiceResponse>(convertPageDeletedVaultInner(inner.body()), inner.response()); + } + }); + } + + private Page convertPageDeletedVaultInner(Page inner) { + List items = new ArrayList<>(); + for (DeletedVaultInner item : inner.items()) { + items.add(new DeletedVaultImpl(item)); + } + PageImpl deletedVaultPage = new PageImpl(); + deletedVaultPage.setItems(items); + return deletedVaultPage; + } + + + @Override + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String vaultName, + VaultCreateOrUpdateParameters parameters, ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters), serviceCallback); + } + + + @Override + public Observable createOrUpdateAsync(String resourceGroupName, String vaultName, + VaultCreateOrUpdateParameters parameters) { + VaultsInner client = this.inner(); + final String VAULT_NAME = vaultName; + return client.createOrUpdateAsync(resourceGroupName, vaultName, parameters).map(new Func1() { + @Override + public Vault call(VaultInner inner) { + return new VaultImpl(VAULT_NAME, inner, keyVaultManager, graphRbacManager); + } + }); + } + + + @Override + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, + String vaultName, VaultCreateOrUpdateParameters parameters) { + VaultsInner client = this.inner(); + final String VAULT_NAME = vaultName; + return client.createOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).map(new Func1, ServiceResponse>() { + @Override + public ServiceResponse call(ServiceResponse inner) { + return new ServiceResponse(new VaultImpl(VAULT_NAME, inner.body(), keyVaultManager, graphRbacManager), inner.response()); + } + }); + } + + + @Override + public ServiceFuture updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters, + ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, vaultName, parameters), serviceCallback); + } + + + @Override + public Observable updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters) { + VaultsInner client = this.inner(); + final String VAULT_NAME = vaultName; + return client.updateAsync(resourceGroupName, vaultName, parameters).map(new Func1() { + @Override + public Vault call(VaultInner inner) { + return new VaultImpl(VAULT_NAME, inner, keyVaultManager, graphRbacManager); + } + }); + } + + + @Override + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String vaultName, + VaultPatchParameters parameters) { + VaultsInner client = this.inner(); + final String VAULT_NAME = vaultName; + return client.updateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).map(new Func1, ServiceResponse> () { + @Override + public ServiceResponse call(ServiceResponse inner) { + return new ServiceResponse(new VaultImpl(VAULT_NAME, inner.body(), keyVaultManager, graphRbacManager), inner.response()); + } + }); + } + + + @Override + public ServiceFuture deleteAsync(String resourceGroupName, String vaultName, + ServiceCallback serviceCallback) { + return inner().deleteAsync(resourceGroupName, vaultName, serviceCallback); + } + + + @Override + public Observable deleteAsync(String resourceGroupName, String vaultName) { + return inner().deleteAsync(resourceGroupName, vaultName); + } + + + @Override + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, + String vaultName) { + return inner().deleteWithServiceResponseAsync(resourceGroupName, vaultName); + } + + @Override + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String vaultName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, vaultName), serviceCallback); + } + + @Override + public Observable getByResourceGroupAsync(String resourceGroupName, String vaultName) { + VaultsInner client = this.inner(); + final String VAULT_NAME = vaultName; + return client.getByResourceGroupAsync(resourceGroupName, vaultName).map(new Func1() { + @Override + public Vault call(VaultInner inner) { + return new VaultImpl(VAULT_NAME, inner, keyVaultManager, graphRbacManager); + } + }); + } + + @Override + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, + String vaultName) { + VaultsInner client = this.inner(); + final String VAULT_NAME = vaultName; + return client.getByResourceGroupWithServiceResponseAsync(resourceGroupName, vaultName).map(new Func1, ServiceResponse> () { + @Override + public ServiceResponse call(ServiceResponse inner) { + return new ServiceResponse(new VaultImpl(VAULT_NAME, inner.body(), keyVaultManager, graphRbacManager), inner.response()); + } + }); + } + + @Override + public ServiceFuture updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateAccessPolicyWithServiceResponseAsync(resourceGroupName, vaultName, operationKind, properties), serviceCallback); + } + + @Override + public Observable updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties) { + VaultsInner client = this.inner(); + return client.updateAccessPolicyAsync(resourceGroupName, vaultName, operationKind, properties).map(new Func1() { + @Override + public VaultAccessPolicyParameters call(VaultAccessPolicyParametersInner inner) { + return new VaultAccessPolicyParametersImpl(inner); + } + }); + } + + @Override + public Observable> updateAccessPolicyWithServiceResponseAsync(String resourceGroupName, + String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties) { + VaultsInner client = this.inner(); + return client.updateAccessPolicyWithServiceResponseAsync(resourceGroupName, vaultName, operationKind, properties).map(new Func1, ServiceResponse> () { + @Override + public ServiceResponse call(ServiceResponse inner) { + return new ServiceResponse(new VaultAccessPolicyParametersImpl(inner.body()), inner.response()); + } + }); + } + + + @Override + public ServiceFuture> listByResourceGroupAsync(String resourceGroupName, + ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse(listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + + @Override + public Observable>> listByResourceGroupWithServiceResponseAsync( + String resourceGroupName) { + VaultsInner client = this.inner(); + return client.listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> inner) { + return new ServiceResponse>(convertPageVaultInner(inner.body()), inner.response()); + } + }); + } + + + @Override + public Observable>> listByResourceGroupSinglePageAsync(String resourceGroupName) { + VaultsInner client = this.inner(); + return client.listByResourceGroupSinglePageAsync(resourceGroupName).map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> inner) { + return new ServiceResponse>(convertPageVaultInner(inner.body()), inner.response()); + } + + }); + } + + private Page convertPageVaultInner(Page inner) { + List items = new ArrayList<>(); + for (VaultInner item : inner.items()) { + items.add(new VaultImpl(item.name(), item, keyVaultManager, graphRbacManager)); + } + PageImpl vaultPage = new PageImpl(); + vaultPage.setItems(items); + return vaultPage; + } + + + @Override + public ServiceFuture> listAsync(ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse(listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, serviceCallback); + } + + @Override + public Observable listAsync() { + return convertObservableResourceToVaultAsync(this.inner().listAsync()); + } + + + @Override + public Observable>> listWithServiceResponseAsync() { + VaultsInner client = this.inner(); + return client.listWithServiceResponseAsync().map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> resource) { + PageImpl page = new PageImpl<>(); + return new ServiceResponse>(page.setItems(convertResourceListToVaultList(resource.body().items())), resource.response()); + } + }); + } + + @Override + public Observable>> listSinglePageAsync() { + VaultsInner client = this.inner(); + return client.listSinglePageAsync().map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> resource) { + PageImpl page = new PageImpl<>(); + return new ServiceResponse>(page.setItems(convertResourceListToVaultList(resource.body().items())), resource.response()); + } + }); + } + + @Override + public PagedList list() { + return convertToPagedListVault(inner().list()); + } + + private static Observable convertObservableResourceToVaultAsync(Observable> vaultList) { + return vaultList.flatMap(new Func1, Observable>() { + @Override + public Observable call(Page pageResource) { + return Observable.from(convertResourceListToVaultList(pageResource.items())); + } + }); + } + + private static List convertResourceListToVaultList(List resources) { + List vaults = new ArrayList<>(); + for (Resource item : resources) { + vaults.add((Vault) item); + } + return vaults; + } + + private static PagedList convertToPagedListVault(PagedList vaultList) { + final PageImpl page = new PageImpl<>(); + List vaults = convertResourceListToVaultList(vaultList.currentPage().items()); + page.setItems(vaults); + page.setNextPageLink(vaultList.currentPage().nextPageLink()); + return new PagedList(page) { + @Override + public Page nextPage(String nextPageLink) { + return page.setNextPageLink(nextPageLink); + } + }; + } + + + @Override + public CheckNameAvailabilityResult checkNameAvailability(String name) { + return new CheckNameAvailabilityResultImpl(inner().checkNameAvailability(name)); + } + + + @Override + public ServiceFuture checkNameAvailabilityAsync(String name, + ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(checkNameAvailabilityWithServiceResponseAsync(name), serviceCallback); + } + + + @Override + public Observable checkNameAvailabilityAsync(String name) { + VaultsInner client = this.inner(); + return client.checkNameAvailabilityAsync(name).map(new Func1 () { + @Override + public CheckNameAvailabilityResult call(CheckNameAvailabilityResultInner inner) { + return new CheckNameAvailabilityResultImpl(inner); + } + }); + } + + + @Override + public Observable> checkNameAvailabilityWithServiceResponseAsync( + String name) { + VaultsInner client = this.inner(); + return client.checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1, ServiceResponse>() { + @Override + public ServiceResponse call(ServiceResponse inner) { + return new ServiceResponse(new CheckNameAvailabilityResultImpl(inner.body()), inner.response()); + } + }); + } + + + @Override + public PagedList listByResourceGroupNext(String nextPageLink) { + return wrapList(this.inner().listByResourceGroupNext(nextPageLink)); + } + + + @Override + public ServiceFuture> listByResourceGroupNextAsync(String nextPageLink, + ServiceFuture> serviceFuture, ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse(listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, serviceCallback); + } + + + @Override + public Observable listByResourceGroupNextAsync(String nextPageLink) { + return wrapPageAsync(this.inner().listByResourceGroupNextAsync(nextPageLink)); + } + + + @Override + public Observable>> listByResourceGroupNextWithServiceResponseAsync( + String nextPageLink) { + VaultsInner client = this.inner(); + return client.listByResourceGroupNextWithServiceResponseAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> inner) { + return new ServiceResponse>(convertPageVaultInner(inner.body()), inner.response()); + } + }); + } + + + @Override + public Observable>> listByResourceGroupNextSinglePageAsync(String nextPageLink) { + VaultsInner client = this.inner(); + return client.listByResourceGroupNextSinglePageAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> inner) { + return new ServiceResponse>(convertPageVaultInner(inner.body()), inner.response()); + } + }); + } + + + @Override + public PagedList listDeletedNext(String nextPageLink) { + PagedList listDeleted = this.inner().listDeletedNext(nextPageLink); + PagedListConverter converter = + new PagedListConverter () { + @Override + public Observable typeConvertAsync(DeletedVaultInner inner) { + return Observable.just((DeletedVault) new DeletedVaultImpl(inner)); + } + }; + return converter.convert(listDeleted); + } + + + @Override + public ServiceFuture> listDeletedNextAsync(String nextPageLink, + ServiceFuture> serviceFuture, ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse(listDeletedNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listDeletedNextSinglePageAsync(nextPageLink); + } + }, serviceCallback); + } + + + @Override + public Observable listDeletedNextAsync(String nextPageLink) { + VaultsInner client = this.inner(); + Observable> page = client.listDeletedNextAsync(nextPageLink).map(new Func1, Page>() { + @Override + public Page call(Page inner) { + return convertPageDeletedVaultInner(inner); + } + }); + return convertPageDeletedVaultToDeletedVaultAsync(page); + } + + + @Override + public Observable>> listDeletedNextWithServiceResponseAsync( + String nextPageLink) { + VaultsInner client = this.inner(); + return client.listDeletedNextWithServiceResponseAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call (ServiceResponse> inner) { + return new ServiceResponse>(convertPageDeletedVaultInner(inner.body()), inner.response()); + } + }); + } + + + @Override + public PagedList listNext(String nextPageLink) { + return convertToPagedListVault(inner().listNext(nextPageLink)); + } + + + @Override + public ServiceFuture> listNextAsync(String nextPageLink, ServiceFuture> serviceFuture, + ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + private Page convertPageResource(Page inner) { + List items = new ArrayList<>(); + for (Resource item : inner.items()) { + items.add((Vault) item); + } + PageImpl vaultPage = new PageImpl(); + vaultPage.setItems(items); + return vaultPage; + } + + @Override + public Observable listNextAsync(String nextPageLink) { + VaultsInner client = this.inner(); + Observable> page = client.listNextAsync(nextPageLink).map(new Func1, Page>() { + @Override + public Page call(Page inner) { + return convertPageResource(inner); + } + }); + return page.flatMap(new Func1, Observable> () { + @Override + public Observable call(Page inner) { + return Observable.from(inner.items()); + } + }); + } + + + @Override + public Observable>> listNextWithServiceResponseAsync(String nextPageLink) { + VaultsInner client = this.inner(); + return client.listNextWithServiceResponseAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> resource) { + PageImpl page = new PageImpl<>(); + return new ServiceResponse>(page.setItems(convertResourceListToVaultList(resource.body().items())), resource.response()); + } + }); + } + + + @Override + public Observable>> listNextSinglePageAsync(String nextPageLink) { + VaultsInner client = this.inner(); + return client.listNextSinglePageAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { + @Override + public ServiceResponse> call(ServiceResponse> resource) { + PageImpl page = new PageImpl<>(); + return new ServiceResponse>(page.setItems(convertResourceListToVaultList(resource.body().items())), resource.response()); + } + }); + } + + } diff --git a/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java b/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java index 973eb20828b..9dd438a73e4 100644 --- a/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java +++ b/azure-mgmt-keyvault/src/test/java/com/microsoft/azure/management/keyvault/VaultTests.java @@ -105,6 +105,94 @@ public void canCRUDVault() throws Exception { } } + @Test + public void canCRUDVaultAsync() throws Exception { + // Create user service principal + String sp = SdkContext.randomResourceName("sp", 20); + String us = SdkContext.randomResourceName("us", 20); + ServicePrincipal servicePrincipal = graphRbacManager.servicePrincipals() + .define(sp) + .withNewApplication("http://" + sp) + .create(); + + ActiveDirectoryUser user = graphRbacManager.users() + .define(us) + .withEmailAlias(us) + .withPassword("P@$$w0rd") + .create(); + + try { + // CREATE + Vault vault = keyVaultManager.vaults().define(VAULT_NAME) + .withRegion(Region.US_WEST) + .withNewResourceGroup(RG_NAME) + .defineAccessPolicy() + .forServicePrincipal("http://" + sp) + .allowKeyPermissions(KeyPermissions.LIST) + .allowSecretAllPermissions() + .allowCertificatePermissions(CertificatePermissions.GET) + .attach() + .defineAccessPolicy() + .forUser(us) + .allowKeyAllPermissions() + .allowSecretAllPermissions() + .allowCertificatePermissions(CertificatePermissions.GET, CertificatePermissions.LIST, CertificatePermissions.CREATE) + .attach() + .create(); + Assert.assertNotNull(vault); + Assert.assertFalse(vault.softDeleteEnabled()); + // GET + vault = keyVaultManager.vaults().getByResourceGroupAsync(RG_NAME, VAULT_NAME).toBlocking().single(); + Assert.assertNotNull(vault); + for (AccessPolicy policy : vault.accessPolicies()) { + if (policy.objectId().equals(servicePrincipal.id())) { + Assert.assertArrayEquals(new KeyPermissions[] { KeyPermissions.LIST }, policy.permissions().keys().toArray()); + Assert.assertEquals(SecretPermissions.values().size(), policy.permissions().secrets().size()); + Assert.assertArrayEquals(new CertificatePermissions[] { CertificatePermissions.GET }, policy.permissions().certificates().toArray()); + } + if (policy.objectId().equals(user.id())) { + Assert.assertEquals(KeyPermissions.values().size(), policy.permissions().keys().size()); + Assert.assertEquals(SecretPermissions.values().size(), policy.permissions().secrets().size()); + Assert.assertEquals(3, policy.permissions().certificates().size()); + } + } + // LIST + List vaults = keyVaultManager.vaults().listByResourceGroupAsync(RG_NAME).toList().toBlocking().single(); + for (Vault v : vaults) { + if (VAULT_NAME.equals(v.name())) { + vault = v; + break; + } + } + Assert.assertNotNull(vault); + // UPDATE + vault.update() + .updateAccessPolicy(servicePrincipal.id()) + .allowKeyAllPermissions() + .disallowSecretAllPermissions() + .allowCertificateAllPermissions() + .parent() + .withTag("foo", "bar") + .apply(); + for (AccessPolicy policy : vault.accessPolicies()) { + if (policy.objectId().equals(servicePrincipal.id())) { + Assert.assertEquals(KeyPermissions.values().size(), policy.permissions().keys().size()); + Assert.assertEquals(0, policy.permissions().secrets().size()); + Assert.assertEquals(CertificatePermissions.values().size(), policy.permissions().certificates().size()); + } + } + + // DELETE + keyVaultManager.vaults().deleteByIdAsync(vault.id()).get(); + SdkContext.sleep(20000); + Assert.assertNull(keyVaultManager.vaults().getDeleted(VAULT_NAME, Region.US_WEST.toString())); + + } finally { + graphRbacManager.servicePrincipals().deleteByIdAsync(servicePrincipal.id()).get(); +// graphRbacManager.users().deleteById(user.id()); + } + } + @Test public void canEnableSoftDeleteAndPurge() throws InterruptedException { String otherVaultName = VAULT_NAME + "other"; diff --git a/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVaultAsync.json b/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVaultAsync.json new file mode 100644 index 00000000000..656cf203f41 --- /dev/null +++ b/azure-mgmt-keyvault/src/test/resources/session-records/canCRUDVaultAsync.json @@ -0,0 +1,746 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:21 GMT", + "content-length" : "1789", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "fDv1n0brCE3TnU0P4TnuFhXd7ok_OG7hl2GDg4YckurNjY-2cjYmoXZqKWn_GWSvmjZsfPvoN0GAOqz8ABfeqcIk32mO0L8TrtqXRfyGauFHtat9l8CQ7v9TA6iRdpxR6PeF6uh8IjnL7NgQkwabsA.d99MHL3n5SegriHe18tIMZr0xUIF7xxmPL1JLUhcG4k", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "02e45f39-d9d7-4967-951b-ad0cceb22a91", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "2886617", + "x-content-type-options" : "nosniff", + "client-request-id" : "208b7b51-b0c7-4200-a6d1-5c4a5d6b9944", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/f37870ad-cc80-47c9-97cc-87798bd6ca21/Microsoft.DirectoryServices.Application", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"f37870ad-cc80-47c9-97cc-87798bd6ca21\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"bb000086-9315-4585-9fb4-adae09accd55\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"spc2d07874f249b\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://spc2d07874f249b\",\"identifierUris\":[\"http://spc2d07874f249b\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"isDeviceOnlyAuthSupported\":null,\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"logo@odata.mediaContentType\":\"application/json;odata=minimalmetadata; charset=utf-8\",\"logoUrl\":null,\"oauth2AllowIdTokenImplicitFlow\":false,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc2d07874f249b on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc2d07874f249b\",\"id\":\"83eb55d5-cb01-4963-9b28-b8b940a82b73\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc2d07874f249b on your behalf.\",\"userConsentDisplayName\":\"Access spc2d07874f249b\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"parentalControlSettings\":{\"countriesBlockedForMinors\":[],\"legalAgeGroupRule\":\"Allow\"},\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://spc2d07874f249b\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"signInAudience\":null,\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "Ctepklg2J0Yv0+dqQJ0Z2DWorgOts60ilDVLun/aW5g=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/f37870ad-cc80-47c9-97cc-87798bd6ca21/keyCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:21 GMT", + "content-length" : "158", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "5bju1YsX5_EthRIK49EzxP1yLkR-I2fNs8dqqVdoNForvrfB4Ed16N1wyMqemRTr8mAbF8AnUCSBSB5ttGXNn-fmPLY6XJyemsOAgX_Dyn-QSudnT7NZ_ZHXJgMuFxYr_bQ8_MFiXHS-PXZssVftlg.jhamJBezlsPGWxQTf5qZM9AbUzGKDaIKgXc6yyHNcik", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "90529263-bb58-4c90-9be1-45096e828d8f", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "1788617", + "x-content-type-options" : "nosniff", + "client-request-id" : "ba9356b7-5e73-4481-a9b8-db80b975e9a5", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "P/tDxbol/t/SHzUNioyqKdq2GrU43GGviWp8LrIIFjs=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/f37870ad-cc80-47c9-97cc-87798bd6ca21/passwordCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:21 GMT", + "content-length" : "163", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "enegAOwzD_XD6ncynZXP_IZnLq8qyKW5Y6J7FFBwUpscodpMgVBOcrf274LzG7FPrMBWPM9HQh9xseUHLSS-ur8uSs5qvW2DoiQaCapvCYJXZDJN8RAxxdvI2btN8AQmqig-A2iOsIXT3sZP-ZVl4Q.vKZjUejhF5Alrm6dUc2mlGrm0FJymrpdnCz9Jfw50fI", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "63c518b8-79ec-4a0b-8c7c-6c87436d9984", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "2971636", + "x-content-type-options" : "nosniff", + "client-request-id" : "af7051d5-e565-4dbd-b99c-831c3b476743", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "P/tDxbol/t/SHzUNioyqKdq2GrU43GGviWp8LrIIFjs=" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:22 GMT", + "content-length" : "1472", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "UX6IXSUqE9PM_PNo1SaZe3qQr6JEmk20utB0KjyqemEbR2H4pkmGOvumEnNM3uKjqH03c82UZsbNvdQZNoVJ_Iy38in21lcN6RYI3bN0ZaxgzjFPoAoESG2qZH4rTQdDZox09ldW184TqR4K25-lfA.P8fbwVeS3_giXfUEjUIfS8UpZ3nwWp8QU2q2HF2giUg", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "4a7b9bd7-5d13-4568-b973-727b96a9ba98", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "2237835", + "x-content-type-options" : "nosniff", + "client-request-id" : "016853e0-7b95-430f-bcd0-b68283dcf612", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/54b7b406-0503-49f3-b1d0-78a45ed6083a/Microsoft.DirectoryServices.ServicePrincipal", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spc2d07874f249b\",\"appId\":\"bb000086-9315-4585-9fb4-adae09accd55\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spc2d07874f249b\",\"errorUrl\":null,\"homepage\":\"http://spc2d07874f249b\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc2d07874f249b on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc2d07874f249b\",\"id\":\"83eb55d5-cb01-4963-9b28-b8b940a82b73\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc2d07874f249b on your behalf.\",\"userConsentDisplayName\":\"Access spc2d07874f249b\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spc2d07874f249b\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"bb000086-9315-4585-9fb4-adae09accd55\",\"http://spc2d07874f249b\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}", + "ocp-aad-diagnostics-server-name" : "vdUmtydNTpMx136Z9PTgdhjXCVJ7LZw+B1PUKRqBNeo=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a/keyCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:22 GMT", + "content-length" : "158", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "3ySSuOTZkFciC5eTAlso1nyWVFmA5-cYuGW8R41dmBaKbuplgv2plMAsH8uAh2uilJ1qVaL3ROA0AvAiI6cRCXfSHJDIhkyx109ajGIYNQV-m2KAIli3mBi7Kn8E6gq9Gpm0AEmqABQ7myjC6zpdxA.fB3EGTijvC-sU0csjFgYIgzjmw5Lz05vIJTt-MvTEEI", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "4c7842c1-da49-40ae-9df8-e44b75d08401", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "356137", + "x-content-type-options" : "nosniff", + "client-request-id" : "11fbac95-8193-45a1-9ffc-764a663c0c6e", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "n89Keg3phw3NGk9ObUqYNFrQ8gN7RlXt/txUE8fYons=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a/passwordCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:22 GMT", + "content-length" : "163", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "dISw-gStC26k7i0siU64PIXVvEKm3aisLRm8JfxTTmGFgLtWSCFyE5LdG8mtBNiDKCrQFjmESpHrvtJJfDtL7GjtKohs53eAw85Sqizpbz2jFUxCDySZozaCnX9DGBHtdYoVKGRxRcYVFFqRwzUIzA.HztTq2FzMf-EvrVUj_c2ySmo5rdq2yNFuh-504T6QSw", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "3bdbb43d-a48a-47c5-8a38-8b35fab138b4", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "608057", + "x-content-type-options" : "nosniff", + "client-request-id" : "c4b0da29-7530-47fb-be68-024231a2711a", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "TYqFcwXWOChFCYe863Ass3L6LUsoEAAlBpUkoGumdpw=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/domains?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:22 GMT", + "content-length" : "885", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "kYFcTfvW5i2HoIm0BRvp-MCJfmdIL3l00ZBs9AF9y9QrsPXm3OYnijxXyENQcUnYc2l9jXYwWq-uDhG3UzYdeKYH4ERx0P-bgVEOuHyxXGZKHybUPOZVNK-KysWGn2Ias1IuRXKiE1vc2NU3Iy85_Q.hjXs5QEcsPAQXeSotsbSWP9VBeaVU4iYNAGB_PWdZxk", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "29de040d-e355-4be6-82be-4122ef217638", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "538637", + "x-content-type-options" : "nosniff", + "client-request-id" : "2393fc45-2902-4cd3-8bf9-2ff436b04afd", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#domains\",\"value\":[{\"authenticationType\":\"Federated\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":false,\"isVerified\":false,\"name\":\"BFDevOpsNonRestricted.onmicrosoft.de\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":true,\"isVerified\":true,\"name\":\"azdevextest.com\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":true,\"isInitial\":true,\"isRoot\":true,\"isVerified\":true,\"name\":\"AzureSDKTeam.onmicrosoft.com\",\"supportedServices\":[\"Email\",\"OfficeCommunicationsOnline\"],\"forceDeleteState\":null,\"state\":null}]}", + "ocp-aad-diagnostics-server-name" : "P/tDxbol/t/SHzUNioyqKdq2GrU43GGviWp8LrIIFjs=" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:23 GMT", + "content-length" : "1474", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "_YnrGqVbDxnfkWXgWrJkgcDTk809knPqlRLL3na9zo8WPCtZzbZWSudSDGaZIWplKbuT2tXsw_lrJCP3P_m7cgzkxZqTfRXWQF0Labq-oAJpViRgTluGfcyFAHb--Lh8I5ZNN2lo2SW6aRjHTeXTuQ.GhQxGh9bXiSaD2mcpBowLkkAa36KAhKYwgO_dsE2W-g", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "1a1d6d7b-30c1-4c09-8ce6-50a57cc8750f", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "8193632", + "x-content-type-options" : "nosniff", + "client-request-id" : "7eb96848-ecd5-4224-863c-330147e28e38", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/e73a8fe8-c7e6-4836-91f2-436ab20da51e/Microsoft.DirectoryServices.User", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us13a8404911719\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us13a8404911719\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-05-07T03:45:22.7642751Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us13a8404911719@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}", + "ocp-aad-diagnostics-server-name" : "TYqFcwXWOChFCYe863Ass3L6LUsoEAAlBpUkoGumdpw=" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg35388?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:25 GMT", + "content-length" : "181", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "55815537-0729-413e-96b9-5585acf05414", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034526Z:55815537-0729-413e-96b9-5585acf05414", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "55815537-0729-413e-96b9-5585acf05414", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388\",\"name\":\"javacsmrg35388\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://spc2d07874f249b%27)&api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:26 GMT", + "content-length" : "1475", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "Ov1zPklsEIVR0iZrdrIaMsG0n6hf7Fz6FdQ8yzTEsdLKkGJkTp7gdspBhwRVRP4WWA_NGxy5nA_PFIKF6xdbOO_BCXgyfPgVSYWmR0BvkP__ePw81mFkifJbc9oROjQ-eZBQuuyq5ElP5UFW9dk3XA.d0VjxwklQyz90_LU4vkgwOItm-dCe1hyLQkgZjmJzus", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "4bf3c014-c70a-4c50-af16-be7cfee662cb", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "394836", + "x-content-type-options" : "nosniff", + "client-request-id" : "c581ecb5-2191-4bef-b001-01c3d83a0eee", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spc2d07874f249b\",\"appId\":\"bb000086-9315-4585-9fb4-adae09accd55\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spc2d07874f249b\",\"errorUrl\":null,\"homepage\":\"http://spc2d07874f249b\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc2d07874f249b on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc2d07874f249b\",\"id\":\"83eb55d5-cb01-4963-9b28-b8b940a82b73\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc2d07874f249b on your behalf.\",\"userConsentDisplayName\":\"Access spc2d07874f249b\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spc2d07874f249b\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://spc2d07874f249b\",\"bb000086-9315-4585-9fb4-adae09accd55\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}]}", + "ocp-aad-diagnostics-server-name" : "vdUmtydNTpMx136Z9PTgdhjXCVJ7LZw+B1PUKRqBNeo=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a/keyCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:26 GMT", + "content-length" : "158", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "Ik6Ro9Ok1k42cD3n-SI41wj5QGt6c0Og2Tt86G_h2COAji86qGGycjNOEJND20FHVFlVSCg8iXDgHtSVHSu7_hQDb2oAYbLeMsSeVsYW7vqPSVdM6YKdb_ypv9wZU9CxuhnyxK_vfCpunnYrtCPkRA.R3yXfj22U9whhpKjDndFq4oX9DzMwn_MBGsa-qChkE4", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "25743bac-f943-4398-9a13-aae4e8ebaf5e", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "453569", + "x-content-type-options" : "nosniff", + "client-request-id" : "bd2661cb-c076-462c-80fb-d0eb640c0bdf", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "/ixj3U5tIdjsTF7jhrxO6gaWUFJzDmFQ2+8C7xVSngI=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a/passwordCredentials?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:26 GMT", + "content-length" : "163", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "eN71SJwvJKAYW-H_bRTdnoRuHycQdUaPOtt8uFk7jwM4PgDgFBpSJlXY6DHhECzuwggqWHjCNkZFC4ru-ohx83qo76jGr2U3lOzKq8wfqr6NbsHRsRbvWRig2aOvA5BnDaWztXRKZigCKvIFmfXX8A.G08ByTDkBPM_08Z1KDIi_f3lrOeq95hyrU1f_7oav5o", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "c48e61c7-3f57-4271-8f55-30c30caeaca5", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "444467", + "x-content-type-options" : "nosniff", + "client-request-id" : "2ae95fe0-4a6c-48df-a879-30c94254575f", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}", + "ocp-aad-diagnostics-server-name" : "LgXAcbVEU6vczw1+dJY77u/nuJ5/uLYq6pT3Y4X/6fM=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/us13a8404911719?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:26 GMT", + "content-length" : "193", + "server" : "Microsoft-IIS/10.0", + "ocp-aad-session-key" : "oVkA9nwBoXsTEl4mSrA5uGyEMDiESqlsqaGotWQ22y8MiIcVxayxKWjcz2NGlt5pqplcvfwYdwP91Fs4hQrEbHDPm36d_JUaW17aRAGALlmNsY9gWvO5Nv-cjmaXm7D829W7DM7twWwvxbuHT5F1HA.FIFb-tjvjZacBplXbB8IY4Qtoncm1dbjM00f4Nsrhek", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "3de11a01-76f6-4d6b-ab31-3baba5e83f33", + "StatusCode" : "404", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "345378", + "client-request-id" : "7415e4c8-3f80-492b-be27-817a22e7afb4", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; charset=utf-8", + "cache-control" : "private", + "x-ms-dirapi-data-contract-version" : "1.6", + "Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'us13a8404911719' does not exist or one of its queried reference-property objects are not present.\"}}}", + "ocp-aad-diagnostics-server-name" : "LgXAcbVEU6vczw1+dJY77u/nuJ5/uLYq6pT3Y4X/6fM=" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27us13a8404911719%27&api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:26 GMT", + "content-length" : "1469", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "awwGYfa1YZg_eyViNwkUqWYUPXX1TetJSwyLbqNAVOX23yOdZv99yjIqV6iEplIfujXfPoN9sOVWyEZaQBGjqG-bp9C-izhooUo3BilOMNv4HtNUGD9PbVOeTPkcpHhiEVSKUKB3HqOVC94c2IFxXg.ycMvm_AkhuViudJ2vJdNvuksg60zUTiwP7Nu6OpB9cA", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "826b3927-c98f-41ba-b3d3-fd9dabce8829", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "465432", + "x-content-type-options" : "nosniff", + "client-request-id" : "489c4bc6-e2cd-4522-a0bf-8a3224d64c4e", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "3.0;", + "Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us13a8404911719\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us13a8404911719\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-05-07T03:45:22Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us13a8404911719@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}", + "ocp-aad-diagnostics-server-name" : "P/tDxbol/t/SHzUNioyqKdq2GrU43GGviWp8LrIIFjs=" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:27 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "4b201383-5a18-47e9-8c30-18061ab15c49", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034528Z:4b201383-5a18-47e9-8c30-18061ab15c49", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "4b201383-5a18-47e9-8c30-18061ab15c49", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net\",\"provisioningState\":\"RegisteringDns\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:27 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14999", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "25cf2e1e-b1d8-43d4-9126-333eaddd2344", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034528Z:25cf2e1e-b1d8-43d4-9126-333eaddd2344", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "25cf2e1e-b1d8-43d4-9126-333eaddd2344", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"RegisteringDns\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:57 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1103", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14998", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "975533e7-7d52-4fbb-8f78-07d8db8c3836", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034558Z:975533e7-7d52-4fbb-8f78-07d8db8c3836", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "975533e7-7d52-4fbb-8f78-07d8db8c3836", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:57 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1103", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14997", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "496b4945-588f-4998-a13a-ca7426a89d00", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034558Z:496b4945-588f-4998-a13a-ca7426a89d00", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "496b4945-588f-4998-a13a-ca7426a89d00", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:58 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1345", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14996", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "93aa2a6b-2103-4fec-b180-cd20bb57061d", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034559Z:93aa2a6b-2103-4fec-b180-cd20bb57061d", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "93aa2a6b-2103-4fec-b180-cd20bb57061d", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}],\"nextLink\":\"http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC04MTA5NA==\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC04MTA5NA==", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:58 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "12", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14995", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "d6b9ad8f-02fc-428c-b4f1-4f23e49793d5", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034559Z:d6b9ad8f-02fc-428c-b4f1-4f23e49793d5", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "d6b9ad8f-02fc-428c-b4f1-4f23e49793d5", + "Body" : "{\"value\":[]}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:45:58 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1356", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b62c41b8-8f31-4d2d-a104-af00db907ac0", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034559Z:b62c41b8-8f31-4d2d-a104-af00db907ac0", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "b62c41b8-8f31-4d2d-a104-af00db907ac0", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{\"foo\":\"bar\"},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\",\"decrypt\",\"wrapKey\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[],\"certificates\":[\"get\",\"getissuers\",\"manageissuers\",\"update\",\"list\",\"delete\",\"restore\",\"managecontacts\",\"deleteissuers\",\"recover\",\"listissuers\",\"import\",\"backup\",\"create\",\"setissuers\",\"purge\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:46:00 GMT", + "content-length" : "0", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b103677c-cbca-404b-8156-0f511bc367d3", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034601Z:b103677c-cbca-404b-8156-0f511bc367d3", + "x-powered-by" : "ASP.NET", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "b103677c-cbca-404b-8156-0f511bc367d3", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-81094?api-version=2018-02-14-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:46:21 GMT", + "content-length" : "88", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14994", + "StatusCode" : "404", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "580c540d-3197-4b57-9bbf-fbcf034d5e55", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034621Z:580c540d-3197-4b57-9bbf-fbcf034d5e55", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-keyvault-service-version" : "1.0.0.215", + "x-ms-request-id" : "580c540d-3197-4b57-9bbf-fbcf034d5e55", + "Body" : "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The specified resource does not exist.\"}}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a?api-version=1.6", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:46:21 GMT", + "server" : "Microsoft-IIS/10.0", + "expires" : "-1", + "ocp-aad-session-key" : "J7Y7kK70Pn8k0MWltW8GrcG2Goef2QawlKKvhWy41OSRcjA6c_gnHkn8KPnLWd0dcUj26qBv5Od_ncS3DOvjiNB8vcQWJyaiLsR2nwEdP7t9fcEK4ZATFkCOi0b5eKhuGwfHIx_r0zjl0Xg_T0Dinw.9jxa5hDN8awLzoILUVgoKhFu2EMS70pg9DBa41ACLcU", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "request-id" : "c75760ae-cca9-4bfe-9f65-959a2683c814", + "StatusCode" : "204", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "access-control-allow-origin" : "*", + "duration" : "1599372", + "x-content-type-options" : "nosniff", + "client-request-id" : "c00e6948-867f-4792-9300-752b79d7c21b", + "x-powered-by" : "ASP.NET", + "cache-control" : "no-cache", + "x-ms-dirapi-data-contract-version" : "1.6", + "dataserviceversion" : "1.0;", + "Body" : "", + "ocp-aad-diagnostics-server-name" : "/ixj3U5tIdjsTF7jhrxO6gaWUFJzDmFQ2+8C7xVSngI=" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg35388?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 07 May 2018 03:46:22 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0895a9d8-0fc2-4657-aa9e-7dbbbe46ef47", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180507T034622Z:0895a9d8-0fc2-4657-aa9e-7dbbbe46ef47", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkczNTM4OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "0895a9d8-0fc2-4657-aa9e-7dbbbe46ef47", + "Body" : "" + } + } ], + "variables" : [ "javacsmrg35388", "java-keyvault-81094", "spc2d07874f249b", "us13a8404911719", "6adfd149-bcb7-4561-b31b-df9cd45cbb4e", "c0cdbeaf-1743-41c1-9e70-fc0158a01297", "01889c72-5890-4612-8368-c7201c3149b0", "3f973c20-4b57-4ce8-ac26-c9f3652b9d88", "8afc7fe8-e494-49ec-8e5f-d01d3e2b19c0", "fecfc711-81d7-427e-99f1-48fcc5a8a007", "f0764f96-dd48-4d65-941e-211ab5ffb79d", "bb6aefa7-e0be-48ac-82b5-e1493e81fd92", "483f53ba-8856-476c-b2e4-36a7cd1768ce" ] +} \ No newline at end of file From 665b61d4e825cdd4167740e48eecf6beca5154ca Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Wed, 9 May 2018 09:56:58 -0700 Subject: [PATCH 07/16] Removed unecessary async methods and SupportsListing from Vaults, updates to checkNameAvailabilityResult --- .../keyvault/CheckNameAvailabilityResult.java | 24 +- .../keyvault/VaultAccessPolicyParameters.java | 4 +- .../VaultCheckNameAvailabilityParameters.java | 2 +- .../azure/management/keyvault/Vaults.java | 320 +------------- .../CheckNameAvailabilityResultImpl.java | 16 + .../keyvault/implementation/VaultsImpl.java | 406 ------------------ 6 files changed, 44 insertions(+), 728 deletions(-) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java index 25bc3e94e8f..200fd87bd85 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java @@ -5,12 +5,32 @@ import com.microsoft.azure.management.resources.fluentcore.model.HasInner; /** - * Wrapper for CheckNameAvailabilityResultInner - * @author tifchen + * The CheckNameAvailability operation response wrapper. * */ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") public interface CheckNameAvailabilityResult extends HasInner{ + + /** + * Get the nameAvailable value. + * + * @return the nameAvailable value + */ + public Boolean nameAvailable(); + + /** + * Get the reason value. + * + * @return the reason value + */ + public Reason reason(); + + /** + * Get the message value. + * + * @return the message value + */ + public String message(); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java index 33fb7c0aa1c..32c43566e13 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java @@ -3,7 +3,9 @@ import com.microsoft.azure.management.keyvault.implementation.VaultAccessPolicyParametersInner; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; - +/** + * Parameters for updating the access policy in a vault. + */ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") public interface VaultAccessPolicyParameters extends HasInner{ diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultCheckNameAvailabilityParameters.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultCheckNameAvailabilityParameters.java index c6c2abc1f35..e2e782029a2 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultCheckNameAvailabilityParameters.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultCheckNameAvailabilityParameters.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The parameters used to check the availabity of the vault name. + * The parameters used to check the availability of the vault name. */ public class VaultCheckNameAvailabilityParameters { /** diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java index b8a6e365215..33397b461a7 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java @@ -37,208 +37,13 @@ public interface Vaults extends SupportsCreating, SupportsDeletingById, - SupportsListing, SupportsListingByResourceGroup, SupportsGettingByResourceGroup, SupportsGettingById, SupportsDeletingByResourceGroup, HasManager, HasInner { - - /** - * Create or update a key vault in the specified subscription. - * - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param vaultName Name of the vault - * @param parameters Parameters to create or update the vault - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture createOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback); - - /** - * Create or update a key vault in the specified subscription. - * - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param vaultName Name of the vault - * @param parameters Parameters to create or update the vault - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - public Observable createOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters); - - /** - * Create or update a key vault in the specified subscription. - * - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param vaultName Name of the vault - * @param parameters Parameters to create or update the vault - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters); - - /** - * Update a key vault in the specified subscription. - * - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param vaultName Name of the vault - * @param parameters Parameters to patch the vault - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters, final ServiceCallback serviceCallback); - - /** - * Update a key vault in the specified subscription. - * - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param vaultName Name of the vault - * @param parameters Parameters to patch the vault - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Vault object - */ - public Observable updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters); - - /** - * Update a key vault in the specified subscription. - * - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param vaultName Name of the vault - * @param parameters Parameters to patch the vault - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Vault object - */ - public Observable> updateWithServiceResponseAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters); - - /** - * Deletes the specified Azure key vault. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName The name of the vault to delete - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture deleteAsync(String resourceGroupName, String vaultName, final ServiceCallback serviceCallback); - /** - * Deletes the specified Azure key vault. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName The name of the vault to delete - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable deleteAsync(String resourceGroupName, String vaultName); - - /** - * Deletes the specified Azure key vault. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName The name of the vault to delete - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String vaultName); - - /** - * Gets the specified Azure key vault. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName The name of the vault. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String vaultName, final ServiceCallback serviceCallback); - - /** - * Gets the specified Azure key vault. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName The name of the vault. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Vault object - */ - public Observable getByResourceGroupAsync(String resourceGroupName, String vaultName); - - /** - * The List operation gets information about the vaults associated with the subscription and within the specified resource group. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback); - - /** - * The List operation gets information about the vaults associated with the subscription and within the specified resource group. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<Vault> object - */ - public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName); - - /** - * The List operation gets information about the vaults associated with the subscription and within the specified resource group. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<Vault> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName); - - /** - * Update access policies in a key vault in the specified subscription. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName Name of the vault - * @param operationKind Name of the operation. Possible values include: 'add', 'replace', 'remove' - * @param properties Properties of the access policy - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties, final ServiceCallback serviceCallback); - - /** - * Update access policies in a key vault in the specified subscription. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName Name of the vault - * @param operationKind Name of the operation. Possible values include: 'add', 'replace', 'remove' - * @param properties Properties of the access policy - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the VaultAccessPolicyParameters object - */ - public Observable updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties); - - /** - * Update access policies in a key vault in the specified subscription. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName Name of the vault - * @param operationKind Name of the operation. Possible values include: 'add', 'replace', 'remove' - * @param properties Properties of the access policy - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the VaultAccessPolicyParameters object - */ - public Observable> updateAccessPolicyWithServiceResponseAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties); - - /** - * Gets the specified Azure key vault. - * - * @param resourceGroupName The name of the Resource Group to which the vault belongs. - * @param vaultName The name of the vault. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Vault object - */ - public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String vaultName); - + /** * Gets information about the deleted vaults in a subscription. * @@ -335,31 +140,7 @@ public interface Vaults extends */ public ServiceFuture getDeletedAsync(String vaultname, String location, final ServiceCallback serviceCallback); - /** - * The List operation gets information about the vaults associated with the subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<Resource> object - */ - public Observable>> listWithServiceResponseAsync(); - - /** - * The List operation gets information about the vaults associated with the subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<Resource> object - */ - public Observable>> listSinglePageAsync(); - - /** - * The List operation gets information about the vaults associated with the subscription. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listAsync(ListOperationCallback serviceCallback); - + /** * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. * @@ -441,55 +222,6 @@ public interface Vaults extends */ public Observable> checkNameAvailabilityWithServiceResponseAsync(String name); - /** - * The List operation gets information about the vaults associated with the subscription and within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<Vault> object if successful. - */ - public PagedList listByResourceGroupNext(final String nextPageLink); - - /** - * The List operation gets information about the vaults associated with the subscription and within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param serviceFuture the ServiceFuture object tracking the Retrofit calls - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback); - - /** - * The List operation gets information about the vaults associated with the subscription and within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<Vault> object - */ - public Observable listByResourceGroupNextAsync(final String nextPageLink); - - /** - * The List operation gets information about the vaults associated with the subscription and within the specified resource group. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<Vault> object - */ - public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink); - - /** - * The List operation gets information about the vaults associated with the subscription and within the specified resource group. - * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<Vault> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink); - /** * Gets information about the deleted vaults in a subscription. * @@ -530,52 +262,4 @@ public interface Vaults extends */ public Observable>> listDeletedNextWithServiceResponseAsync(final String nextPageLink); - /** - * The List operation gets information about the vaults associated with the subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<Resource> object if successful. - */ - public PagedList listNext(final String nextPageLink); - - /** - * The List operation gets information about the vaults associated with the subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param serviceFuture the ServiceFuture object tracking the Retrofit calls - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback); - - /** - * The List operation gets information about the vaults associated with the subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<Resource> object - */ - public Observable listNextAsync(final String nextPageLink); - - /** - * The List operation gets information about the vaults associated with the subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<Resource> object - */ - public Observable>> listNextWithServiceResponseAsync(final String nextPageLink); - - /** - * The List operation gets information about the vaults associated with the subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<Resource> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listNextSinglePageAsync(final String nextPageLink); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java index 2385ee75640..83457235ccc 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java @@ -1,6 +1,7 @@ package com.microsoft.azure.management.keyvault.implementation; import com.microsoft.azure.management.keyvault.CheckNameAvailabilityResult; +import com.microsoft.azure.management.keyvault.Reason; import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; @@ -10,4 +11,19 @@ protected CheckNameAvailabilityResultImpl(CheckNameAvailabilityResultInner inner super(innerObject); } + @Override + public Boolean nameAvailable() { + return inner().nameAvailable(); + } + + @Override + public Reason reason() { + return inner().reason(); + } + + @Override + public String message() { + return inner().message(); + } + } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java index 6543fae535c..370d89caea3 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java @@ -14,18 +14,12 @@ import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; -import com.microsoft.azure.Resource; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager; -import com.microsoft.azure.management.keyvault.AccessPolicyUpdateKind; import com.microsoft.azure.management.keyvault.CheckNameAvailabilityResult; import com.microsoft.azure.management.keyvault.DeletedVault; import com.microsoft.azure.management.keyvault.SkuName; import com.microsoft.azure.management.keyvault.Vault; -import com.microsoft.azure.management.keyvault.VaultAccessPolicyParameters; -import com.microsoft.azure.management.keyvault.VaultAccessPolicyProperties; -import com.microsoft.azure.management.keyvault.VaultCreateOrUpdateParameters; -import com.microsoft.azure.management.keyvault.VaultPatchParameters; import com.microsoft.azure.management.keyvault.VaultProperties; import com.microsoft.azure.management.keyvault.Vaults; import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.GroupableResourcesImpl; @@ -52,7 +46,6 @@ class VaultsImpl implements Vaults { private final GraphRbacManager graphRbacManager; private final String tenantId; - private final KeyVaultManager keyVaultManager; VaultsImpl( final KeyVaultManager keyVaultManager, @@ -61,7 +54,6 @@ class VaultsImpl super(keyVaultManager.inner().vaults(), keyVaultManager); this.graphRbacManager = graphRbacManager; this.tenantId = tenantId; - this.keyVaultManager = keyVaultManager; } @@ -273,280 +265,6 @@ private Page convertPageDeletedVaultInner(Page } - @Override - public ServiceFuture createOrUpdateAsync(String resourceGroupName, String vaultName, - VaultCreateOrUpdateParameters parameters, ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters), serviceCallback); - } - - - @Override - public Observable createOrUpdateAsync(String resourceGroupName, String vaultName, - VaultCreateOrUpdateParameters parameters) { - VaultsInner client = this.inner(); - final String VAULT_NAME = vaultName; - return client.createOrUpdateAsync(resourceGroupName, vaultName, parameters).map(new Func1() { - @Override - public Vault call(VaultInner inner) { - return new VaultImpl(VAULT_NAME, inner, keyVaultManager, graphRbacManager); - } - }); - } - - - @Override - public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, - String vaultName, VaultCreateOrUpdateParameters parameters) { - VaultsInner client = this.inner(); - final String VAULT_NAME = vaultName; - return client.createOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).map(new Func1, ServiceResponse>() { - @Override - public ServiceResponse call(ServiceResponse inner) { - return new ServiceResponse(new VaultImpl(VAULT_NAME, inner.body(), keyVaultManager, graphRbacManager), inner.response()); - } - }); - } - - - @Override - public ServiceFuture updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters, - ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, vaultName, parameters), serviceCallback); - } - - - @Override - public Observable updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters) { - VaultsInner client = this.inner(); - final String VAULT_NAME = vaultName; - return client.updateAsync(resourceGroupName, vaultName, parameters).map(new Func1() { - @Override - public Vault call(VaultInner inner) { - return new VaultImpl(VAULT_NAME, inner, keyVaultManager, graphRbacManager); - } - }); - } - - - @Override - public Observable> updateWithServiceResponseAsync(String resourceGroupName, String vaultName, - VaultPatchParameters parameters) { - VaultsInner client = this.inner(); - final String VAULT_NAME = vaultName; - return client.updateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).map(new Func1, ServiceResponse> () { - @Override - public ServiceResponse call(ServiceResponse inner) { - return new ServiceResponse(new VaultImpl(VAULT_NAME, inner.body(), keyVaultManager, graphRbacManager), inner.response()); - } - }); - } - - - @Override - public ServiceFuture deleteAsync(String resourceGroupName, String vaultName, - ServiceCallback serviceCallback) { - return inner().deleteAsync(resourceGroupName, vaultName, serviceCallback); - } - - - @Override - public Observable deleteAsync(String resourceGroupName, String vaultName) { - return inner().deleteAsync(resourceGroupName, vaultName); - } - - - @Override - public Observable> deleteWithServiceResponseAsync(String resourceGroupName, - String vaultName) { - return inner().deleteWithServiceResponseAsync(resourceGroupName, vaultName); - } - - @Override - public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String vaultName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, vaultName), serviceCallback); - } - - @Override - public Observable getByResourceGroupAsync(String resourceGroupName, String vaultName) { - VaultsInner client = this.inner(); - final String VAULT_NAME = vaultName; - return client.getByResourceGroupAsync(resourceGroupName, vaultName).map(new Func1() { - @Override - public Vault call(VaultInner inner) { - return new VaultImpl(VAULT_NAME, inner, keyVaultManager, graphRbacManager); - } - }); - } - - @Override - public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, - String vaultName) { - VaultsInner client = this.inner(); - final String VAULT_NAME = vaultName; - return client.getByResourceGroupWithServiceResponseAsync(resourceGroupName, vaultName).map(new Func1, ServiceResponse> () { - @Override - public ServiceResponse call(ServiceResponse inner) { - return new ServiceResponse(new VaultImpl(VAULT_NAME, inner.body(), keyVaultManager, graphRbacManager), inner.response()); - } - }); - } - - @Override - public ServiceFuture updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateAccessPolicyWithServiceResponseAsync(resourceGroupName, vaultName, operationKind, properties), serviceCallback); - } - - @Override - public Observable updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties) { - VaultsInner client = this.inner(); - return client.updateAccessPolicyAsync(resourceGroupName, vaultName, operationKind, properties).map(new Func1() { - @Override - public VaultAccessPolicyParameters call(VaultAccessPolicyParametersInner inner) { - return new VaultAccessPolicyParametersImpl(inner); - } - }); - } - - @Override - public Observable> updateAccessPolicyWithServiceResponseAsync(String resourceGroupName, - String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties) { - VaultsInner client = this.inner(); - return client.updateAccessPolicyWithServiceResponseAsync(resourceGroupName, vaultName, operationKind, properties).map(new Func1, ServiceResponse> () { - @Override - public ServiceResponse call(ServiceResponse inner) { - return new ServiceResponse(new VaultAccessPolicyParametersImpl(inner.body()), inner.response()); - } - }); - } - - - @Override - public ServiceFuture> listByResourceGroupAsync(String resourceGroupName, - ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse(listByResourceGroupSinglePageAsync(resourceGroupName), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - - @Override - public Observable>> listByResourceGroupWithServiceResponseAsync( - String resourceGroupName) { - VaultsInner client = this.inner(); - return client.listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> inner) { - return new ServiceResponse>(convertPageVaultInner(inner.body()), inner.response()); - } - }); - } - - - @Override - public Observable>> listByResourceGroupSinglePageAsync(String resourceGroupName) { - VaultsInner client = this.inner(); - return client.listByResourceGroupSinglePageAsync(resourceGroupName).map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> inner) { - return new ServiceResponse>(convertPageVaultInner(inner.body()), inner.response()); - } - - }); - } - - private Page convertPageVaultInner(Page inner) { - List items = new ArrayList<>(); - for (VaultInner item : inner.items()) { - items.add(new VaultImpl(item.name(), item, keyVaultManager, graphRbacManager)); - } - PageImpl vaultPage = new PageImpl(); - vaultPage.setItems(items); - return vaultPage; - } - - - @Override - public ServiceFuture> listAsync(ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse(listSinglePageAsync(), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink); - } - }, serviceCallback); - } - - @Override - public Observable listAsync() { - return convertObservableResourceToVaultAsync(this.inner().listAsync()); - } - - - @Override - public Observable>> listWithServiceResponseAsync() { - VaultsInner client = this.inner(); - return client.listWithServiceResponseAsync().map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> resource) { - PageImpl page = new PageImpl<>(); - return new ServiceResponse>(page.setItems(convertResourceListToVaultList(resource.body().items())), resource.response()); - } - }); - } - - @Override - public Observable>> listSinglePageAsync() { - VaultsInner client = this.inner(); - return client.listSinglePageAsync().map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> resource) { - PageImpl page = new PageImpl<>(); - return new ServiceResponse>(page.setItems(convertResourceListToVaultList(resource.body().items())), resource.response()); - } - }); - } - - @Override - public PagedList list() { - return convertToPagedListVault(inner().list()); - } - - private static Observable convertObservableResourceToVaultAsync(Observable> vaultList) { - return vaultList.flatMap(new Func1, Observable>() { - @Override - public Observable call(Page pageResource) { - return Observable.from(convertResourceListToVaultList(pageResource.items())); - } - }); - } - - private static List convertResourceListToVaultList(List resources) { - List vaults = new ArrayList<>(); - for (Resource item : resources) { - vaults.add((Vault) item); - } - return vaults; - } - - private static PagedList convertToPagedListVault(PagedList vaultList) { - final PageImpl page = new PageImpl<>(); - List vaults = convertResourceListToVaultList(vaultList.currentPage().items()); - page.setItems(vaults); - page.setNextPageLink(vaultList.currentPage().nextPageLink()); - return new PagedList(page) { - @Override - public Page nextPage(String nextPageLink) { - return page.setNextPageLink(nextPageLink); - } - }; - } - - @Override public CheckNameAvailabilityResult checkNameAvailability(String name) { return new CheckNameAvailabilityResultImpl(inner().checkNameAvailability(name)); @@ -585,56 +303,6 @@ public ServiceResponse call(ServiceResponse listByResourceGroupNext(String nextPageLink) { - return wrapList(this.inner().listByResourceGroupNext(nextPageLink)); - } - - - @Override - public ServiceFuture> listByResourceGroupNextAsync(String nextPageLink, - ServiceFuture> serviceFuture, ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse(listByResourceGroupNextSinglePageAsync(nextPageLink), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listByResourceGroupNextSinglePageAsync(nextPageLink); - } - }, serviceCallback); - } - - - @Override - public Observable listByResourceGroupNextAsync(String nextPageLink) { - return wrapPageAsync(this.inner().listByResourceGroupNextAsync(nextPageLink)); - } - - - @Override - public Observable>> listByResourceGroupNextWithServiceResponseAsync( - String nextPageLink) { - VaultsInner client = this.inner(); - return client.listByResourceGroupNextWithServiceResponseAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> inner) { - return new ServiceResponse>(convertPageVaultInner(inner.body()), inner.response()); - } - }); - } - - - @Override - public Observable>> listByResourceGroupNextSinglePageAsync(String nextPageLink) { - VaultsInner client = this.inner(); - return client.listByResourceGroupNextSinglePageAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> inner) { - return new ServiceResponse>(convertPageVaultInner(inner.body()), inner.response()); - } - }); - } - - @Override public PagedList listDeletedNext(String nextPageLink) { PagedList listDeleted = this.inner().listDeletedNext(nextPageLink); @@ -688,78 +356,4 @@ public ServiceResponse> call (ServiceResponse listNext(String nextPageLink) { - return convertToPagedListVault(inner().listNext(nextPageLink)); - } - - - @Override - public ServiceFuture> listNextAsync(String nextPageLink, ServiceFuture> serviceFuture, - ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listNextSinglePageAsync(nextPageLink), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - private Page convertPageResource(Page inner) { - List items = new ArrayList<>(); - for (Resource item : inner.items()) { - items.add((Vault) item); - } - PageImpl vaultPage = new PageImpl(); - vaultPage.setItems(items); - return vaultPage; - } - - @Override - public Observable listNextAsync(String nextPageLink) { - VaultsInner client = this.inner(); - Observable> page = client.listNextAsync(nextPageLink).map(new Func1, Page>() { - @Override - public Page call(Page inner) { - return convertPageResource(inner); - } - }); - return page.flatMap(new Func1, Observable> () { - @Override - public Observable call(Page inner) { - return Observable.from(inner.items()); - } - }); - } - - - @Override - public Observable>> listNextWithServiceResponseAsync(String nextPageLink) { - VaultsInner client = this.inner(); - return client.listNextWithServiceResponseAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> resource) { - PageImpl page = new PageImpl<>(); - return new ServiceResponse>(page.setItems(convertResourceListToVaultList(resource.body().items())), resource.response()); - } - }); - } - - - @Override - public Observable>> listNextSinglePageAsync(String nextPageLink) { - VaultsInner client = this.inner(); - return client.listNextSinglePageAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> resource) { - PageImpl page = new PageImpl<>(); - return new ServiceResponse>(page.setItems(convertResourceListToVaultList(resource.body().items())), resource.response()); - } - }); - } - - } From 5f55bb335795ad140fd0e15c0a735c09ddb50661 Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Thu, 10 May 2018 13:35:24 -0700 Subject: [PATCH 08/16] Simplified async access and elevated properties for Vault and DeletedVault --- .../management/keyvault/DeletedVault.java | 33 ++++++- .../keyvault/VaultAccessPolicyParameters.java | 19 +++- .../azure/management/keyvault/Vaults.java | 82 +---------------- .../implementation/DeletedVaultImpl.java | 24 +++++ .../VaultAccessPolicyParametersImpl.java | 20 +++++ .../keyvault/implementation/VaultsImpl.java | 89 +------------------ 6 files changed, 97 insertions(+), 170 deletions(-) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java index a9a1d0f8905..dd445f86c7c 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java @@ -1,5 +1,9 @@ package com.microsoft.azure.management.keyvault; +import java.util.Map; + +import org.joda.time.DateTime; + import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.keyvault.implementation.DeletedVaultInner; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; @@ -14,5 +18,32 @@ public interface DeletedVault extends HasInner, HasName, HasId { - + + /** + * Get the location value. + * + * @return the location value + */ + public String location(); + + /** + * Get the deletionDate value. + * + * @return the deletionDate value + */ + public DateTime deletionDate(); + + /** + * Get the scheduledPurgeDate value. + * + * @return the scheduledPurgeDate value + */ + public DateTime scheduledPurgeDate(); + + /** + * Get the tags value. + * + * @return the tags value + */ + public Map tags(); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java index 32c43566e13..0975560ccfd 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java @@ -1,6 +1,8 @@ package com.microsoft.azure.management.keyvault; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.keyvault.implementation.VaultAccessPolicyParametersInner; +import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; +import com.microsoft.azure.management.resources.fluentcore.arm.models.HasName; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; /** @@ -8,6 +10,21 @@ */ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") public interface VaultAccessPolicyParameters extends - HasInner{ + HasInner, + HasId, + HasName { + /** + * Get the type value. + * + * @return the type value + */ + public String type(); + + /** + * Get the location value. + * + * @return the location value + */ + public String location(); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java index 33397b461a7..fa6e2aa36bf 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java @@ -152,17 +152,6 @@ public interface Vaults extends */ public void purgeDeleted(String vaultName, String location); - /** - * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. - * - * @param vaultName The name of the soft-deleted vault. - * @param location The location of the soft-deleted vault. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture purgeDeletedAsync(String vaultName, String location, final ServiceCallback serviceCallback); - /** * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. * @@ -172,17 +161,7 @@ public interface Vaults extends * @return the observable for the request */ public Observable purgeDeletedAsync(String vaultName, String location); - - /** - * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. - * - * @param vaultName The name of the soft-deleted vault. - * @param location The location of the soft-deleted vault. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - public Observable> purgeDeletedWithServiceResponseAsync(String vaultName, String location); - + /** * Checks that the vault name is valid and is not already in use. * @@ -194,16 +173,6 @@ public interface Vaults extends */ public CheckNameAvailabilityResult checkNameAvailability(String name); - /** - * Checks that the vault name is valid and is not already in use. - * - * @param name The vault name. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture checkNameAvailabilityAsync(String name, final ServiceCallback serviceCallback); - /** * Checks that the vault name is valid and is not already in use. * @@ -213,53 +182,4 @@ public interface Vaults extends */ public Observable checkNameAvailabilityAsync(String name); - /** - * Checks that the vault name is valid and is not already in use. - * - * @param name The vault name. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the CheckNameAvailabilityResult object - */ - public Observable> checkNameAvailabilityWithServiceResponseAsync(String name); - - /** - * Gets information about the deleted vaults in a subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<DeletedVault> object if successful. - */ - public PagedList listDeletedNext(final String nextPageLink); - - /** - * Gets information about the deleted vaults in a subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param serviceFuture the ServiceFuture object tracking the Retrofit calls - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listDeletedNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback); - - /** - * Gets information about the deleted vaults in a subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DeletedVault> object - */ - public Observable listDeletedNextAsync(final String nextPageLink); - - /** - * Gets information about the deleted vaults in a subscription. - * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DeletedVault> object - */ - public Observable>> listDeletedNextWithServiceResponseAsync(final String nextPageLink); - } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java index d419239331b..6207df007d8 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java @@ -1,5 +1,9 @@ package com.microsoft.azure.management.keyvault.implementation; +import java.util.Map; + +import org.joda.time.DateTime; + import com.microsoft.azure.management.keyvault.DeletedVault; import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; @@ -19,4 +23,24 @@ public String id() { return inner().id(); } + @Override + public String location() { + return inner().properties().location(); + } + + @Override + public DateTime deletionDate() { + return inner().properties().deletionDate(); + } + + @Override + public DateTime scheduledPurgeDate() { + return inner().properties().scheduledPurgeDate(); + } + + @Override + public Map tags() { + return inner().properties().tags(); + } + } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java index b0a38028104..38a9e8ea845 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java @@ -8,4 +8,24 @@ public class VaultAccessPolicyParametersImpl extends WrapperImpl listDeleted() { new PagedListConverter () { @Override public Observable typeConvertAsync(DeletedVaultInner inner) { - return Observable.just((DeletedVault) new DeletedVaultImpl(inner)); + DeletedVault deletedVault = new DeletedVaultImpl(inner); + return Observable.just(deletedVault); } }; return converter.convert(listDeleted); @@ -168,25 +169,12 @@ public ServiceFuture getDeletedAsync(String vaultName, String loca } - @Override - public ServiceFuture purgeDeletedAsync(String vaultName, String location, - ServiceCallback serviceCallback) { - return this.inner().purgeDeletedAsync(vaultName, location, serviceCallback); - } - - @Override public Observable purgeDeletedAsync(String vaultName, String location) { return this.inner().purgeDeletedAsync(vaultName, location); } - @Override - public Observable> purgeDeletedWithServiceResponseAsync(String vaultName, String location) { - return this.inner().purgeDeletedWithServiceResponseAsync(vaultName, location); - } - - @Override public ServiceFuture> listDeletedAsync( ListOperationCallback serviceCallback) { @@ -271,13 +259,6 @@ public CheckNameAvailabilityResult checkNameAvailability(String name) { } - @Override - public ServiceFuture checkNameAvailabilityAsync(String name, - ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(checkNameAvailabilityWithServiceResponseAsync(name), serviceCallback); - } - - @Override public Observable checkNameAvailabilityAsync(String name) { VaultsInner client = this.inner(); @@ -290,70 +271,4 @@ public CheckNameAvailabilityResult call(CheckNameAvailabilityResultInner inner) } - @Override - public Observable> checkNameAvailabilityWithServiceResponseAsync( - String name) { - VaultsInner client = this.inner(); - return client.checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1, ServiceResponse>() { - @Override - public ServiceResponse call(ServiceResponse inner) { - return new ServiceResponse(new CheckNameAvailabilityResultImpl(inner.body()), inner.response()); - } - }); - } - - - @Override - public PagedList listDeletedNext(String nextPageLink) { - PagedList listDeleted = this.inner().listDeletedNext(nextPageLink); - PagedListConverter converter = - new PagedListConverter () { - @Override - public Observable typeConvertAsync(DeletedVaultInner inner) { - return Observable.just((DeletedVault) new DeletedVaultImpl(inner)); - } - }; - return converter.convert(listDeleted); - } - - - @Override - public ServiceFuture> listDeletedNextAsync(String nextPageLink, - ServiceFuture> serviceFuture, ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse(listDeletedNextSinglePageAsync(nextPageLink), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listDeletedNextSinglePageAsync(nextPageLink); - } - }, serviceCallback); - } - - - @Override - public Observable listDeletedNextAsync(String nextPageLink) { - VaultsInner client = this.inner(); - Observable> page = client.listDeletedNextAsync(nextPageLink).map(new Func1, Page>() { - @Override - public Page call(Page inner) { - return convertPageDeletedVaultInner(inner); - } - }); - return convertPageDeletedVaultToDeletedVaultAsync(page); - } - - - @Override - public Observable>> listDeletedNextWithServiceResponseAsync( - String nextPageLink) { - VaultsInner client = this.inner(); - return client.listDeletedNextWithServiceResponseAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call (ServiceResponse> inner) { - return new ServiceResponse>(convertPageDeletedVaultInner(inner.body()), inner.response()); - } - }); - } - - } From 531c6704998818e860763fb816003605448fb763 Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Thu, 10 May 2018 14:31:20 -0700 Subject: [PATCH 09/16] Updated checkstyle --- .../keyvault/CheckNameAvailabilityResult.java | 22 +- .../management/keyvault/DeletedVault.java | 28 +-- .../azure/management/keyvault/Vault.java | 2 +- .../keyvault/VaultAccessPolicyParameters.java | 11 +- .../azure/management/keyvault/Vaults.java | 190 +++++++----------- .../implementation/AccessPolicyImpl.java | 52 ++--- .../CheckNameAvailabilityResultImpl.java | 14 +- .../implementation/DeletedVaultImpl.java | 10 + .../VaultAccessPolicyParametersImpl.java | 10 + .../keyvault/implementation/VaultImpl.java | 157 +++++++-------- .../keyvault/implementation/VaultsImpl.java | 187 +++++------------ 11 files changed, 292 insertions(+), 391 deletions(-) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java index 200fd87bd85..aeefb79db4c 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java @@ -1,3 +1,10 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + */ + package com.microsoft.azure.management.keyvault; import com.microsoft.azure.management.apigeneration.Fluent; @@ -9,28 +16,27 @@ * */ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") -public interface CheckNameAvailabilityResult extends - HasInner{ - +public interface CheckNameAvailabilityResult extends HasInner { + /** * Get the nameAvailable value. * * @return the nameAvailable value */ - public Boolean nameAvailable(); - + Boolean nameAvailable(); + /** * Get the reason value. * * @return the reason value */ - public Reason reason(); - + Reason reason(); + /** * Get the message value. * * @return the message value */ - public String message(); + String message(); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java index dd445f86c7c..9cdc060d354 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java @@ -1,3 +1,10 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + */ + package com.microsoft.azure.management.keyvault; import java.util.Map; @@ -14,36 +21,33 @@ * An immutable client-side representation of an Azure Key Vault. */ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") -public interface DeletedVault extends - HasInner, - HasName, - HasId { - +public interface DeletedVault extends HasInner, HasName, HasId { + /** * Get the location value. * * @return the location value */ - public String location(); - + String location(); + /** * Get the deletionDate value. * * @return the deletionDate value */ - public DateTime deletionDate(); - + DateTime deletionDate(); + /** * Get the scheduledPurgeDate value. * * @return the scheduledPurgeDate value */ - public DateTime scheduledPurgeDate(); - + DateTime scheduledPurgeDate(); + /** * Get the tags value. * * @return the tags value */ - public Map tags(); + Map tags(); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java index 778680d9113..db1515049eb 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java @@ -104,7 +104,7 @@ public interface Vault extends * * @return the createMode value */ - public CreateMode createMode(); + CreateMode createMode(); /************************************************************** * Fluent interfaces to provision a Vault diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java index 0975560ccfd..48e8c429adb 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java @@ -1,3 +1,10 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + */ + package com.microsoft.azure.management.keyvault; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.keyvault.implementation.VaultAccessPolicyParametersInner; @@ -19,12 +26,12 @@ public interface VaultAccessPolicyParameters extends * * @return the type value */ - public String type(); + String type(); /** * Get the location value. * * @return the location value */ - public String location(); + String location(); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java index fa6e2aa36bf..efbdd25180b 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java @@ -6,11 +6,7 @@ package com.microsoft.azure.management.keyvault; -import java.util.List; - import com.microsoft.azure.CloudException; -import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager; @@ -22,11 +18,8 @@ import com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager; import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating; import com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById; -import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; -import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; -import com.microsoft.rest.ServiceResponse; import rx.Observable; @@ -34,152 +27,121 @@ * Entry point for key vaults management API. */ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") -public interface Vaults extends - SupportsCreating, - SupportsDeletingById, - SupportsListingByResourceGroup, - SupportsGettingByResourceGroup, - SupportsGettingById, - SupportsDeletingByResourceGroup, - HasManager, - HasInner { - +public interface Vaults extends SupportsCreating, SupportsDeletingById, + SupportsListingByResourceGroup, SupportsGettingByResourceGroup, SupportsGettingById, + SupportsDeletingByResourceGroup, HasManager, HasInner { + /** * Gets information about the deleted vaults in a subscription. * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @throws IllegalArgumentException + * thrown if parameters fail the validation + * @throws CloudException + * thrown if the request is rejected by server + * @throws RuntimeException + * all other wrapped checked exceptions if the request fails to be + * sent * @return the PagedList<DeletedVault> object if successful. */ - public PagedList listDeleted(); - - /** - * Gets information about the deleted vaults in a subscription. - * - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture> listDeletedAsync(final ListOperationCallback serviceCallback); + PagedList listDeleted(); /** * Gets information about the deleted vaults in a subscription. * - * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws IllegalArgumentException + * thrown if parameters fail the validation * @return the observable to the PagedList<DeletedVault> object */ - public Observable listDeletedAsync(); - - /** - * Gets information about the deleted vaults in a subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DeletedVault> object - */ - public Observable>> listDeletedWithServiceResponseAsync(); - - /** - * Gets information about the deleted vaults in a subscription. - * - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<DeletedVault> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listDeletedSinglePageAsync(); - - /** - * Gets information about the deleted vaults in a subscription. - * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<DeletedVault> object wrapped in {@link ServiceResponse} if successful. - */ - public Observable>> listDeletedNextSinglePageAsync(final String nextPageLink); + Observable listDeletedAsync(); /** * Gets the deleted Azure key vault. * - * @param vaultName The name of the vault. - * @param location The location of the deleted vault. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @param vaultName + * The name of the vault. + * @param location + * The location of the deleted vault. + * @throws IllegalArgumentException + * thrown if parameters fail the validation + * @throws CloudException + * thrown if the request is rejected by server + * @throws RuntimeException + * all other wrapped checked exceptions if the request fails to be + * sent * @return the DeletedVault object if successful. */ - public DeletedVault getDeleted(String vaultName, String location); - + DeletedVault getDeleted(String vaultName, String location); + /** * Gets the deleted Azure key vault. * - * @param vaultName The name of the vault. - * @param location The location of the deleted vault. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation + * @param vaultName + * The name of the vault. + * @param location + * The location of the deleted vault. + * @throws IllegalArgumentException + * thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public Observable getDeletedAsync(String vaultName, String location); - - /** - * Gets the deleted Azure key vault. - * - * @param vaultName The name of the vault. - * @param location The location of the deleted vault. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DeletedVault object - */ - public Observable> getDeletedWithServiceResponseAsync(String vaultName, String location); - + Observable getDeletedAsync(String vaultName, String location); + /** - * Gets the deleted Azure key vault. - * - * @param vaultName The name of the vault. - * @param location The location of the deleted vault. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture getDeletedAsync(String vaultname, String location, final ServiceCallback serviceCallback); - - - /** - * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + * Permanently deletes the specified vault. aka Purges the deleted Azure key + * vault. * - * @param vaultName The name of the soft-deleted vault. - * @param location The location of the soft-deleted vault. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @param vaultName + * The name of the soft-deleted vault. + * @param location + * The location of the soft-deleted vault. + * @throws IllegalArgumentException + * thrown if parameters fail the validation + * @throws CloudException + * thrown if the request is rejected by server + * @throws RuntimeException + * all other wrapped checked exceptions if the request fails to be + * sent */ - public void purgeDeleted(String vaultName, String location); - + void purgeDeleted(String vaultName, String location); + /** - * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + * Permanently deletes the specified vault. aka Purges the deleted Azure key + * vault. * - * @param vaultName The name of the soft-deleted vault. - * @param location The location of the soft-deleted vault. - * @throws IllegalArgumentException thrown if parameters fail the validation + * @param vaultName + * The name of the soft-deleted vault. + * @param location + * The location of the soft-deleted vault. + * @throws IllegalArgumentException + * thrown if parameters fail the validation * @return the observable for the request */ - public Observable purgeDeletedAsync(String vaultName, String location); - + Observable purgeDeletedAsync(String vaultName, String location); + /** * Checks that the vault name is valid and is not already in use. * - * @param name The vault name. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @param name + * The vault name. + * @throws IllegalArgumentException + * thrown if parameters fail the validation + * @throws CloudException + * thrown if the request is rejected by server + * @throws RuntimeException + * all other wrapped checked exceptions if the request fails to be + * sent * @return the CheckNameAvailabilityResult object if successful. */ - public CheckNameAvailabilityResult checkNameAvailability(String name); + CheckNameAvailabilityResult checkNameAvailability(String name); /** * Checks that the vault name is valid and is not already in use. * - * @param name The vault name. - * @throws IllegalArgumentException thrown if parameters fail the validation + * @param name + * The vault name. + * @throws IllegalArgumentException + * thrown if parameters fail the validation * @return the observable to the CheckNameAvailabilityResult object */ - public Observable checkNameAvailabilityAsync(String name); + Observable checkNameAvailabilityAsync(String name); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java index df92a8eb5da..5954104821f 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/AccessPolicyImpl.java @@ -6,12 +6,16 @@ package com.microsoft.azure.management.keyvault.implementation; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; + import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.graphrbac.ActiveDirectoryGroup; import com.microsoft.azure.management.graphrbac.ActiveDirectoryUser; import com.microsoft.azure.management.graphrbac.ServicePrincipal; import com.microsoft.azure.management.keyvault.AccessPolicy; -import com.microsoft.azure.management.keyvault.AccessPolicy.UpdateDefinitionStages.WithAttach; import com.microsoft.azure.management.keyvault.AccessPolicyEntry; import com.microsoft.azure.management.keyvault.CertificatePermissions; import com.microsoft.azure.management.keyvault.KeyPermissions; @@ -21,25 +25,13 @@ import com.microsoft.azure.management.keyvault.Vault; import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ChildResourceImpl; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; - /** * Implementation for AccessPolicy and its parent interfaces. */ @LangDefinition -class AccessPolicyImpl - extends ChildResourceImpl< - AccessPolicyEntry, - VaultImpl, - Vault> - implements - AccessPolicy, - AccessPolicy.Definition, - AccessPolicy.UpdateDefinition, - AccessPolicy.Update { +class AccessPolicyImpl extends ChildResourceImpl + implements AccessPolicy, AccessPolicy.Definition, + AccessPolicy.UpdateDefinition, AccessPolicy.Update { private String userPrincipalName; private String servicePrincipalName; @@ -116,7 +108,7 @@ private void initializeCertificatePermissions() { inner().permissions().withCertificates(new ArrayList()); } } - + private void initializeStoragePermissions() { if (inner().permissions() == null) { inner().withPermissions(new Permissions()); @@ -200,7 +192,6 @@ public AccessPolicyImpl allowCertificatePermissions(List return this; } - @Override public AccessPolicyImpl allowStorageAllPermissions() { for (StoragePermissions permission : StoragePermissions.values()) { @@ -230,7 +221,7 @@ public AccessPolicyImpl allowStoragePermissions(List permiss } return this; } - + @Override public AccessPolicyImpl disallowCertificateAllPermissions() { initializeCertificatePermissions(); @@ -275,18 +266,18 @@ public AccessPolicyImpl forUser(String userPrincipalName) { this.userPrincipalName = userPrincipalName; return this; } - - @Override - public AccessPolicyImpl forApplicationId(String applicationId) { - inner().withApplicationId(UUID.fromString(applicationId)); - return this; - } - @Override - public AccessPolicyImpl forTenantId(String tenantId) { - inner().withTenantId(UUID.fromString(tenantId)); - return this; - } + @Override + public AccessPolicyImpl forApplicationId(String applicationId) { + inner().withApplicationId(UUID.fromString(applicationId)); + return this; + } + + @Override + public AccessPolicyImpl forTenantId(String tenantId) { + inner().withTenantId(UUID.fromString(tenantId)); + return this; + } @Override public AccessPolicyImpl forGroup(ActiveDirectoryGroup activeDirectoryGroup) { @@ -364,7 +355,6 @@ public AccessPolicyImpl disallowSecretPermissions(List permis return this; } - @Override public AccessPolicyImpl disallowStorageAllPermissions() { initializeStoragePermissions(); diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java index 83457235ccc..d7e9b4db422 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/CheckNameAvailabilityResultImpl.java @@ -1,11 +1,21 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + */ + package com.microsoft.azure.management.keyvault.implementation; import com.microsoft.azure.management.keyvault.CheckNameAvailabilityResult; import com.microsoft.azure.management.keyvault.Reason; import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; - -public class CheckNameAvailabilityResultImpl extends WrapperImpl implements CheckNameAvailabilityResult{ +/** + * The CheckNameAvailability operation response. + */ +public class CheckNameAvailabilityResultImpl extends WrapperImpl + implements CheckNameAvailabilityResult { protected CheckNameAvailabilityResultImpl(CheckNameAvailabilityResultInner innerObject) { super(innerObject); diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java index 6207df007d8..98e66cd5cab 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/DeletedVaultImpl.java @@ -1,3 +1,10 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + */ + package com.microsoft.azure.management.keyvault.implementation; import java.util.Map; @@ -7,6 +14,9 @@ import com.microsoft.azure.management.keyvault.DeletedVault; import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; +/** + * Deleted vault information with extended details. + */ public class DeletedVaultImpl extends WrapperImpl implements DeletedVault { DeletedVaultImpl(DeletedVaultInner inner) { diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java index 38a9e8ea845..f038d1ddd98 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java @@ -1,8 +1,18 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + */ + package com.microsoft.azure.management.keyvault.implementation; import com.microsoft.azure.management.keyvault.VaultAccessPolicyParameters; import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; +/** + * Deleted vault information with extended details. + */ public class VaultAccessPolicyParametersImpl extends WrapperImpl implements VaultAccessPolicyParameters { VaultAccessPolicyParametersImpl(VaultAccessPolicyParametersInner inner) { super(inner); diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java index ec4c43638de..55477fa6757 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java @@ -41,16 +41,8 @@ * Implementation for Vault and its parent interfaces. */ @LangDefinition -class VaultImpl - extends GroupableResourceImpl< - Vault, - VaultInner, - VaultImpl, - KeyVaultManager> - implements - Vault, - Vault.Definition, - Vault.Update { +class VaultImpl extends GroupableResourceImpl + implements Vault, Vault.Definition, Vault.Update { private GraphRbacManager graphRbacManager; private List accessPolicies; @@ -62,13 +54,14 @@ class VaultImpl super(key, innerObject, manager); this.graphRbacManager = graphRbacManager; this.accessPolicies = new ArrayList<>(); - if (innerObject != null && innerObject.properties() != null && innerObject.properties().accessPolicies() != null) { + if (innerObject != null && innerObject.properties() != null + && innerObject.properties().accessPolicies() != null) { for (AccessPolicyEntry entry : innerObject.properties().accessPolicies()) { this.accessPolicies.add(new AccessPolicyImpl(entry, this)); } } - this.client = new KeyVaultClient(manager.inner().restClient().newBuilder() - .withBaseUrl("https://{vaultBaseUrl}").build()); + this.client = new KeyVaultClient( + manager.inner().restClient().newBuilder().withBaseUrl("https://{vaultBaseUrl}").build()); } @Override @@ -148,22 +141,22 @@ public boolean enabledForTemplateDeployment() { } return Utils.toPrimitiveBoolean(inner().properties().enabledForTemplateDeployment()); } - - @Override - public boolean softDeleteEnabled() { - if (inner().properties() == null) { - return false; - } - return Utils.toPrimitiveBoolean(inner().properties().enableSoftDelete()); - } - - @Override - public boolean purgeProtectionEnabled() { - if (inner().properties() == null) { - return false; - } - return Utils.toPrimitiveBoolean(inner().properties().enablePurgeProtection()); - } + + @Override + public boolean softDeleteEnabled() { + if (inner().properties() == null) { + return false; + } + return Utils.toPrimitiveBoolean(inner().properties().enableSoftDelete()); + } + + @Override + public boolean purgeProtectionEnabled() { + if (inner().properties() == null) { + return false; + } + return Utils.toPrimitiveBoolean(inner().properties().enablePurgeProtection()); + } @Override public VaultImpl withEmptyAccessPolicy() { @@ -221,19 +214,18 @@ public VaultImpl withTemplateDeploymentEnabled() { return this; } + @Override + public VaultImpl withSoftDeleteEnabled() { + inner().properties().withEnableSoftDelete(true); + return this; + } - @Override - public VaultImpl withSoftDeleteEnabled() { - inner().properties().withEnableSoftDelete(true); - return this; - } + @Override + public VaultImpl withPurgeProtectionEnabled() { + inner().properties().withEnablePurgeProtection(true); + return this; + } - @Override - public VaultImpl withPurgeProtectionEnabled() { - inner().properties().withEnablePurgeProtection(true); - return this; - } - @Override public VaultImpl withDeploymentDisabled() { inner().properties().withEnabledForDeployment(false); @@ -262,35 +254,38 @@ public VaultImpl withSku(SkuName skuName) { } private Observable> populateAccessPolicies() { - List>observables = new ArrayList<>(); + List> observables = new ArrayList<>(); for (final AccessPolicyImpl accessPolicy : accessPolicies) { if (accessPolicy.objectId() == null) { if (accessPolicy.userPrincipalName() != null) { observables.add(graphRbacManager.users().getByNameAsync(accessPolicy.userPrincipalName()) - .subscribeOn(SdkContext.getRxScheduler()) - .doOnNext(new Action1() { + .subscribeOn(SdkContext.getRxScheduler()).doOnNext(new Action1() { @Override public void call(ActiveDirectoryUser user) { if (user == null) { - throw new CloudException(String.format("User principal name %s is not found in tenant %s", - accessPolicy.userPrincipalName(), graphRbacManager.tenantId()), null); + throw new CloudException( + String.format("User principal name %s is not found in tenant %s", + accessPolicy.userPrincipalName(), graphRbacManager.tenantId()), + null); } accessPolicy.forObjectId(user.id()); } })); } else if (accessPolicy.servicePrincipalName() != null) { - observables.add(graphRbacManager.servicePrincipals().getByNameAsync(accessPolicy.servicePrincipalName()) - .subscribeOn(SdkContext.getRxScheduler()) - .doOnNext(new Action1() { - @Override - public void call(ServicePrincipal sp) { - if (sp == null) { - throw new CloudException(String.format("User principal name %s is not found in tenant %s", - accessPolicy.userPrincipalName(), graphRbacManager.tenantId()), null); - } - accessPolicy.forObjectId(sp.id()); - } - })); + observables.add( + graphRbacManager.servicePrincipals().getByNameAsync(accessPolicy.servicePrincipalName()) + .subscribeOn(SdkContext.getRxScheduler()).doOnNext(new Action1() { + @Override + public void call(ServicePrincipal sp) { + if (sp == null) { + throw new CloudException(String.format( + "User principal name %s is not found in tenant %s", + accessPolicy.userPrincipalName(), graphRbacManager.tenantId()), + null); + } + accessPolicy.forObjectId(sp.id()); + } + })); } else { throw new IllegalArgumentException("Access policy must specify object ID."); } @@ -311,22 +306,20 @@ public List call(Object... args) { @Override public Observable createResourceAsync() { final VaultsInner client = this.manager().inner().vaults(); - return populateAccessPolicies() - .flatMap(new Func1>() { - @Override - public Observable call(Object o) { - VaultCreateOrUpdateParameters parameters = new VaultCreateOrUpdateParameters(); - parameters.withLocation(regionName()); - parameters.withProperties(inner().properties()); - parameters.withTags(inner().getTags()); - parameters.properties().withAccessPolicies(new ArrayList()); - for (AccessPolicy accessPolicy : accessPolicies) { - parameters.properties().accessPolicies().add(accessPolicy.inner()); - } - return client.createOrUpdateAsync(resourceGroupName(), name(), parameters); - } - }) - .map(innerToFluentMap(this)); + return populateAccessPolicies().flatMap(new Func1>() { + @Override + public Observable call(Object o) { + VaultCreateOrUpdateParameters parameters = new VaultCreateOrUpdateParameters(); + parameters.withLocation(regionName()); + parameters.withProperties(inner().properties()); + parameters.withTags(inner().getTags()); + parameters.properties().withAccessPolicies(new ArrayList()); + for (AccessPolicy accessPolicy : accessPolicies) { + parameters.properties().accessPolicies().add(accessPolicy.inner()); + } + return client.createOrUpdateAsync(resourceGroupName(), name(), parameters); + } + }).map(innerToFluentMap(this)); } @Override @@ -334,14 +327,14 @@ protected Observable getInnerAsync() { return this.manager().inner().vaults().getByResourceGroupAsync(resourceGroupName(), name()); } - @Override - public CreateMode createMode() { - return inner().properties().createMode(); - } + @Override + public CreateMode createMode() { + return inner().properties().createMode(); + } - @Override - public WithCreate withCreateMode(CreateMode createMode) { - inner().properties().withCreateMode(createMode); - return this; - } + @Override + public WithCreate withCreateMode(CreateMode createMode) { + inner().properties().withCreateMode(createMode); + return this; + } } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java index e153575c352..d61596f7982 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java @@ -1,7 +1,8 @@ /** - * Copyright (c) Microsot Corporation. All rights reserved. + * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. + * */ package com.microsoft.azure.management.keyvault.implementation; @@ -10,8 +11,6 @@ import java.util.List; import java.util.UUID; -import com.microsoft.azure.AzureServiceFuture; -import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.LangDefinition; @@ -24,9 +23,6 @@ import com.microsoft.azure.management.keyvault.Vaults; import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.GroupableResourcesImpl; import com.microsoft.azure.management.resources.fluentcore.utils.PagedListConverter; -import com.microsoft.rest.ServiceCallback; -import com.microsoft.rest.ServiceFuture; -import com.microsoft.rest.ServiceResponse; import rx.Completable; import rx.Observable; @@ -36,32 +32,22 @@ * The implementation of Vaults and its parent interfaces. */ @LangDefinition -class VaultsImpl - extends GroupableResourcesImpl< - Vault, - VaultImpl, - VaultInner, - VaultsInner, - KeyVaultManager> +class VaultsImpl extends GroupableResourcesImpl implements Vaults { private final GraphRbacManager graphRbacManager; private final String tenantId; - VaultsImpl( - final KeyVaultManager keyVaultManager, - final GraphRbacManager graphRbacManager, - final String tenantId) { + VaultsImpl(final KeyVaultManager keyVaultManager, final GraphRbacManager graphRbacManager, final String tenantId) { super(keyVaultManager.inner().vaults(), keyVaultManager); this.graphRbacManager = graphRbacManager; this.tenantId = tenantId; } - @Override public PagedList listByResourceGroup(String groupName) { return wrapList(this.inner().listByResourceGroup(groupName)); } - + @Override public Observable listByResourceGroupAsync(String resourceGroupName) { return wrapPageAsync(this.inner().listByResourceGroupAsync(resourceGroupName)); @@ -84,20 +70,14 @@ public Completable deleteByResourceGroupAsync(String groupName, String name) { @Override public VaultImpl define(String name) { - return wrapModel(name) - .withSku(SkuName.STANDARD) - .withEmptyAccessPolicy(); + return wrapModel(name).withSku(SkuName.STANDARD).withEmptyAccessPolicy(); } @Override protected VaultImpl wrapModel(String name) { VaultInner inner = new VaultInner().withProperties(new VaultProperties()); inner.properties().withTenantId(UUID.fromString(tenantId)); - return new VaultImpl( - name, - inner, - this.manager(), - graphRbacManager); + return new VaultImpl(name, inner, this.manager(), graphRbacManager); } @Override @@ -105,41 +85,35 @@ protected VaultImpl wrapModel(VaultInner vaultInner) { if (vaultInner == null) { return null; } - return new VaultImpl( - vaultInner.name(), - vaultInner, - super.manager(), - graphRbacManager); - } - - @Override - public PagedList listDeleted() { - PagedList listDeleted = this.inner().listDeleted(); - PagedListConverter converter = - new PagedListConverter () { - @Override - public Observable typeConvertAsync(DeletedVaultInner inner) { - DeletedVault deletedVault = new DeletedVaultImpl(inner); - return Observable.just(deletedVault); - } + return new VaultImpl(vaultInner.name(), vaultInner, super.manager(), graphRbacManager); + } + + @Override + public PagedList listDeleted() { + PagedList listDeleted = this.inner().listDeleted(); + PagedListConverter converter = new PagedListConverter() { + @Override + public Observable typeConvertAsync(DeletedVaultInner inner) { + DeletedVault deletedVault = new DeletedVaultImpl(inner); + return Observable.just(deletedVault); + } }; return converter.convert(listDeleted); - } - - @Override - public DeletedVault getDeleted(String vaultName, String location) { - Object deletedVault = inner().getDeleted(vaultName, location); - if (deletedVault == null) { - return null; - } - return new DeletedVaultImpl((DeletedVaultInner) deletedVault); - } + } - @Override - public void purgeDeleted(String vaultName, String location) { - inner().purgeDeleted(vaultName, location); - } + @Override + public DeletedVault getDeleted(String vaultName, String location) { + Object deletedVault = inner().getDeleted(vaultName, location); + if (deletedVault == null) { + return null; + } + return new DeletedVaultImpl((DeletedVaultInner) deletedVault); + } + @Override + public void purgeDeleted(String vaultName, String location) { + inner().purgeDeleted(vaultName, location); + } @Override public Observable getDeletedAsync(String vaultName, String location) { @@ -151,65 +125,12 @@ public DeletedVault call(DeletedVaultInner inner) { } }); } - - @Override - public Observable> getDeletedWithServiceResponseAsync(String vaultName, String location) { - VaultsInner client = this.inner(); - return client.getDeletedWithServiceResponseAsync(vaultName, location).map(new Func1, ServiceResponse>() { - @Override - public ServiceResponse call(ServiceResponse inner) { - return new ServiceResponse(new DeletedVaultImpl(inner.body()), inner.response()); - } - }); - } - - @Override - public ServiceFuture getDeletedAsync(String vaultName, String location, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getDeletedWithServiceResponseAsync(vaultName, location), serviceCallback); - } - @Override public Observable purgeDeletedAsync(String vaultName, String location) { return this.inner().purgeDeletedAsync(vaultName, location); } - - @Override - public ServiceFuture> listDeletedAsync( - ListOperationCallback serviceCallback) { - //Reimplemented this due to different callback types - return AzureServiceFuture.fromPageResponse(listDeletedSinglePageAsync(), - new Func1>>> () { - @Override - public Observable>> call(String nextPageLink) { - return listDeletedNextSinglePageAsync(nextPageLink); - } - }, serviceCallback); - } - - @Override - public Observable>> listDeletedSinglePageAsync() { - VaultsInner client = this.inner(); - return client.listDeletedSinglePageAsync().map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> inner) { - return new ServiceResponse>(convertPageDeletedVaultInner(inner.body()), inner.response()); - } - }); - } - - @Override - public Observable>> listDeletedNextSinglePageAsync(final String nextPageLink) { - VaultsInner client = this.inner(); - return client.listDeletedNextSinglePageAsync(nextPageLink).map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call(ServiceResponse> inner) { - return new ServiceResponse>(convertPageDeletedVaultInner(inner.body()), inner.response()); - } - }); - } - private Observable convertPageDeletedVaultToDeletedVaultAsync(Observable> page) { return page.flatMap(new Func1, Observable>() { @Override @@ -218,57 +139,45 @@ public Observable call(Page inner) { } }); } - + @Override public Observable listDeletedAsync() { VaultsInner client = this.inner(); - Observable> page = client.listDeletedAsync().map(new Func1, Page>() { - @Override - public Page call(Page inner) { - return convertPageDeletedVaultInner(inner); - } - }); + Observable> page = client.listDeletedAsync() + .map(new Func1, Page>() { + @Override + public Page call(Page inner) { + return convertPageDeletedVaultInner(inner); + } + }); return convertPageDeletedVaultToDeletedVaultAsync(page); } - @Override - public Observable>> listDeletedWithServiceResponseAsync() { - VaultsInner client = this.inner(); - return client.listDeletedWithServiceResponseAsync().map(new Func1>, ServiceResponse>>() { - @Override - public ServiceResponse> call (ServiceResponse> inner) { - return new ServiceResponse>(convertPageDeletedVaultInner(inner.body()), inner.response()); - } - }); - } - private Page convertPageDeletedVaultInner(Page inner) { List items = new ArrayList<>(); for (DeletedVaultInner item : inner.items()) { - items.add(new DeletedVaultImpl(item)); + items.add(new DeletedVaultImpl(item)); } PageImpl deletedVaultPage = new PageImpl(); deletedVaultPage.setItems(items); return deletedVaultPage; } - @Override public CheckNameAvailabilityResult checkNameAvailability(String name) { return new CheckNameAvailabilityResultImpl(inner().checkNameAvailability(name)); } - @Override public Observable checkNameAvailabilityAsync(String name) { VaultsInner client = this.inner(); - return client.checkNameAvailabilityAsync(name).map(new Func1 () { - @Override - public CheckNameAvailabilityResult call(CheckNameAvailabilityResultInner inner) { - return new CheckNameAvailabilityResultImpl(inner); - } - }); + return client.checkNameAvailabilityAsync(name) + .map(new Func1() { + @Override + public CheckNameAvailabilityResult call(CheckNameAvailabilityResultInner inner) { + return new CheckNameAvailabilityResultImpl(inner); + } + }); } - } From a4dca559be6a5076e48cb94f48c108fdbf0a60de Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Fri, 11 May 2018 09:22:53 -0700 Subject: [PATCH 10/16] Elevated access policies --- .../management/keyvault/VaultAccessPolicyParameters.java | 9 +++++++++ .../implementation/VaultAccessPolicyParametersImpl.java | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java index 48e8c429adb..518cc1429a4 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java @@ -6,6 +6,8 @@ */ package com.microsoft.azure.management.keyvault; +import java.util.List; + import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.keyvault.implementation.VaultAccessPolicyParametersInner; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; @@ -34,4 +36,11 @@ public interface VaultAccessPolicyParameters extends * @return the location value */ String location(); + + /** + * Get the accessPolicies value. + * + * @return the accessPolicies value + */ + public List accessPolicies(); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java index f038d1ddd98..24d0ae5422d 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java @@ -7,6 +7,9 @@ package com.microsoft.azure.management.keyvault.implementation; +import java.util.List; + +import com.microsoft.azure.management.keyvault.AccessPolicyEntry; import com.microsoft.azure.management.keyvault.VaultAccessPolicyParameters; import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; @@ -38,4 +41,9 @@ public String location() { return inner().location(); } + @Override + public List accessPolicies() { + return inner().properties().accessPolicies(); + } + } From 929fb8b56c9ce08e0d581a772d944d2e7a1215cf Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Fri, 11 May 2018 10:38:24 -0700 Subject: [PATCH 11/16] Moved recovery of softDeletedVault to independent method --- .../azure/management/keyvault/Vault.java | 7 ---- .../azure/management/keyvault/Vaults.java | 20 +++++++++++ .../keyvault/implementation/VaultImpl.java | 5 --- .../keyvault/implementation/VaultsImpl.java | 36 +++++++++++++++++++ 4 files changed, 56 insertions(+), 12 deletions(-) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java index db1515049eb..379764e6997 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java @@ -236,13 +236,6 @@ interface WithConfigurations { * @return the next stage of key vault definition */ WithCreate withTemplateDeploymentDisabled(); - - /** - * Set the createMode value. - * - * @return the next stage of key vault definition - */ - WithCreate withCreateMode(CreateMode createMode); } /** diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java index efbdd25180b..b54864e1043 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java @@ -143,5 +143,25 @@ public interface Vaults extends SupportsCreating, * @return the observable to the CheckNameAvailabilityResult object */ Observable checkNameAvailabilityAsync(String name); + + /** + * Recovers a soft deleted vault. + * + * @param resourceGroupName The name of the Resource Group to which the server belongs. + * @param vaultName Name of the vault + * @param location The location of the deleted vault. + * @return the recovered Vault object if successful + */ + Vault recoverSoftDeletedVault(String resourceGroupName, String vaultName, String location); + + /** + * Recovers a soft deleted vault. + * + * @param resourceGroupName The name of the Resource Group to which the server belongs. + * @param vaultName Name of the vault + * @param location The location of the deleted vault. + * @return the recovered Vault object if successful + */ + Observable recoverSoftDeletedVaultAsync(String resourceGroupName, String vaultName, String location); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java index 55477fa6757..b3bf5fdee83 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java @@ -332,9 +332,4 @@ public CreateMode createMode() { return inner().properties().createMode(); } - @Override - public WithCreate withCreateMode(CreateMode createMode) { - inner().properties().withCreateMode(createMode); - return this; - } } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java index d61596f7982..71d0bc48294 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java @@ -15,10 +15,15 @@ import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager; +import com.microsoft.azure.management.keyvault.AccessPolicy; +import com.microsoft.azure.management.keyvault.AccessPolicyEntry; import com.microsoft.azure.management.keyvault.CheckNameAvailabilityResult; +import com.microsoft.azure.management.keyvault.CreateMode; import com.microsoft.azure.management.keyvault.DeletedVault; +import com.microsoft.azure.management.keyvault.Sku; import com.microsoft.azure.management.keyvault.SkuName; import com.microsoft.azure.management.keyvault.Vault; +import com.microsoft.azure.management.keyvault.VaultCreateOrUpdateParameters; import com.microsoft.azure.management.keyvault.VaultProperties; import com.microsoft.azure.management.keyvault.Vaults; import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.GroupableResourcesImpl; @@ -36,6 +41,7 @@ class VaultsImpl extends GroupableResourcesImpl recoverSoftDeletedVaultAsync(final String resourceGroupName, final String vaultName, String location) { + final KeyVaultManager manager = this.manager(); + return getDeletedAsync(vaultName, location).flatMap(new Func1>() { + @Override + public Observable call(DeletedVault deletedVault) { + VaultCreateOrUpdateParameters parameters = new VaultCreateOrUpdateParameters(); + parameters.withLocation(deletedVault.location()); + parameters.withTags(deletedVault.inner().properties().tags()); + parameters.withProperties(new VaultProperties() + .withCreateMode(CreateMode.RECOVER) + .withSku(new Sku().withName(SkuName.STANDARD)) + .withTenantId(UUID.fromString(tenantId)) + ); + return inner().createOrUpdateAsync(resourceGroupName, vaultName, parameters).map(new Func1() { + @Override + public Vault call(VaultInner inner) { + return new VaultImpl(inner.id(), inner, manager, graphRbacManager); + } + }); + } + + }); + } + } From b4cdc48e1f1a647ed4ebe0d7334143d52231d493 Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Fri, 11 May 2018 10:45:48 -0700 Subject: [PATCH 12/16] Changed purgeDeletedAsync to return Completable --- .../java/com/microsoft/azure/management/keyvault/Vaults.java | 3 ++- .../azure/management/keyvault/implementation/VaultsImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java index b54864e1043..0ad68e6e5da 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java @@ -21,6 +21,7 @@ import com.microsoft.azure.management.resources.fluentcore.model.HasInner; import com.microsoft.rest.ServiceFuture; +import rx.Completable; import rx.Observable; /** @@ -115,7 +116,7 @@ public interface Vaults extends SupportsCreating, * thrown if parameters fail the validation * @return the observable for the request */ - Observable purgeDeletedAsync(String vaultName, String location); + Completable purgeDeletedAsync(String vaultName, String location); /** * Checks that the vault name is valid and is not already in use. diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java index 71d0bc48294..e7cf64ab04e 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java @@ -133,8 +133,8 @@ public DeletedVault call(DeletedVaultInner inner) { } @Override - public Observable purgeDeletedAsync(String vaultName, String location) { - return this.inner().purgeDeletedAsync(vaultName, location); + public Completable purgeDeletedAsync(String vaultName, String location) { + return this.inner().purgeDeletedAsync(vaultName, location).toCompletable(); } private Observable convertPageDeletedVaultToDeletedVaultAsync(Observable> page) { From bec43269feef874a0dbe54c6fd5ea0f05e96388e Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Fri, 11 May 2018 11:00:55 -0700 Subject: [PATCH 13/16] Removed unused interfaces and added beta annotations --- .../keyvault/CheckNameAvailabilityResult.java | 3 ++ .../management/keyvault/DeletedVault.java | 3 ++ .../azure/management/keyvault/Vault.java | 7 +++ .../keyvault/VaultAccessPolicyParameters.java | 46 ----------------- .../azure/management/keyvault/Vaults.java | 12 +++++ .../VaultAccessPolicyParametersImpl.java | 49 ------------------- .../keyvault/implementation/VaultsImpl.java | 2 - 7 files changed, 25 insertions(+), 97 deletions(-) delete mode 100644 azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java delete mode 100644 azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java index aeefb79db4c..41780f4aaaa 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/CheckNameAvailabilityResult.java @@ -7,7 +7,9 @@ package com.microsoft.azure.management.keyvault; +import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; import com.microsoft.azure.management.keyvault.implementation.CheckNameAvailabilityResultInner; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; @@ -16,6 +18,7 @@ * */ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") +@Beta(SinceVersion.V1_11_0) public interface CheckNameAvailabilityResult extends HasInner { /** diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java index 9cdc060d354..bde8939c2ff 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/DeletedVault.java @@ -11,7 +11,9 @@ import org.joda.time.DateTime; +import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; import com.microsoft.azure.management.keyvault.implementation.DeletedVaultInner; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasName; @@ -21,6 +23,7 @@ * An immutable client-side representation of an Azure Key Vault. */ @Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") +@Beta(SinceVersion.V1_11_0) public interface DeletedVault extends HasInner, HasName, HasId { /** diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java index 379764e6997..8681702db47 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java @@ -91,12 +91,14 @@ public interface Vault extends /** * @return whether soft delete is enabled for this key vault. */ + @Beta(SinceVersion.V1_11_0) boolean softDeleteEnabled(); /** * @return whether purge protection is enabled for this key vault. * Purge protection can only be enabled if soft delete is enabled. */ + @Beta(SinceVersion.V1_11_0) boolean purgeProtectionEnabled(); /** @@ -104,6 +106,7 @@ public interface Vault extends * * @return the createMode value */ + @Beta(SinceVersion.V1_11_0) CreateMode createMode(); /************************************************************** @@ -207,6 +210,7 @@ interface WithConfigurations { * * @return the next stage of key vault definition */ + @Beta(SinceVersion.V1_11_0) WithCreate withSoftDeleteEnabled(); /** @@ -214,6 +218,7 @@ interface WithConfigurations { * * @return the next stage of key vault definition. */ + @Beta(SinceVersion.V1_11_0) WithCreate withPurgeProtectionEnabled(); /** @@ -323,6 +328,7 @@ interface WithConfigurations { * * @return the next stage of key vault definition */ + @Beta(SinceVersion.V1_11_0) Update withSoftDeleteEnabled(); /** @@ -330,6 +336,7 @@ interface WithConfigurations { * * @return the next stage of key vault definition. */ + @Beta(SinceVersion.V1_11_0) Update withPurgeProtectionEnabled(); /** diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java deleted file mode 100644 index 518cc1429a4..00000000000 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/VaultAccessPolicyParameters.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - */ - -package com.microsoft.azure.management.keyvault; -import java.util.List; - -import com.microsoft.azure.management.apigeneration.Fluent; -import com.microsoft.azure.management.keyvault.implementation.VaultAccessPolicyParametersInner; -import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; -import com.microsoft.azure.management.resources.fluentcore.arm.models.HasName; -import com.microsoft.azure.management.resources.fluentcore.model.HasInner; - -/** - * Parameters for updating the access policy in a vault. - */ -@Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault") -public interface VaultAccessPolicyParameters extends - HasInner, - HasId, - HasName { - - /** - * Get the type value. - * - * @return the type value - */ - String type(); - - /** - * Get the location value. - * - * @return the location value - */ - String location(); - - /** - * Get the accessPolicies value. - * - * @return the accessPolicies value - */ - public List accessPolicies(); -} diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java index 0ad68e6e5da..3fa336df1b8 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vaults.java @@ -8,6 +8,8 @@ import com.microsoft.azure.CloudException; import com.microsoft.azure.PagedList; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager; import com.microsoft.azure.management.keyvault.implementation.VaultsInner; @@ -44,6 +46,7 @@ public interface Vaults extends SupportsCreating, * sent * @return the PagedList<DeletedVault> object if successful. */ + @Beta(SinceVersion.V1_11_0) PagedList listDeleted(); /** @@ -53,6 +56,7 @@ public interface Vaults extends SupportsCreating, * thrown if parameters fail the validation * @return the observable to the PagedList<DeletedVault> object */ + @Beta(SinceVersion.V1_11_0) Observable listDeletedAsync(); /** @@ -71,6 +75,7 @@ public interface Vaults extends SupportsCreating, * sent * @return the DeletedVault object if successful. */ + @Beta(SinceVersion.V1_11_0) DeletedVault getDeleted(String vaultName, String location); /** @@ -84,6 +89,7 @@ public interface Vaults extends SupportsCreating, * thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ + @Beta(SinceVersion.V1_11_0) Observable getDeletedAsync(String vaultName, String location); /** @@ -102,6 +108,7 @@ public interface Vaults extends SupportsCreating, * all other wrapped checked exceptions if the request fails to be * sent */ + @Beta(SinceVersion.V1_11_0) void purgeDeleted(String vaultName, String location); /** @@ -116,6 +123,7 @@ public interface Vaults extends SupportsCreating, * thrown if parameters fail the validation * @return the observable for the request */ + @Beta(SinceVersion.V1_11_0) Completable purgeDeletedAsync(String vaultName, String location); /** @@ -132,6 +140,7 @@ public interface Vaults extends SupportsCreating, * sent * @return the CheckNameAvailabilityResult object if successful. */ + @Beta(SinceVersion.V1_11_0) CheckNameAvailabilityResult checkNameAvailability(String name); /** @@ -143,6 +152,7 @@ public interface Vaults extends SupportsCreating, * thrown if parameters fail the validation * @return the observable to the CheckNameAvailabilityResult object */ + @Beta(SinceVersion.V1_11_0) Observable checkNameAvailabilityAsync(String name); /** @@ -153,6 +163,7 @@ public interface Vaults extends SupportsCreating, * @param location The location of the deleted vault. * @return the recovered Vault object if successful */ + @Beta(SinceVersion.V1_11_0) Vault recoverSoftDeletedVault(String resourceGroupName, String vaultName, String location); /** @@ -163,6 +174,7 @@ public interface Vaults extends SupportsCreating, * @param location The location of the deleted vault. * @return the recovered Vault object if successful */ + @Beta(SinceVersion.V1_11_0) Observable recoverSoftDeletedVaultAsync(String resourceGroupName, String vaultName, String location); } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java deleted file mode 100644 index 24d0ae5422d..00000000000 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultAccessPolicyParametersImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - */ - -package com.microsoft.azure.management.keyvault.implementation; - -import java.util.List; - -import com.microsoft.azure.management.keyvault.AccessPolicyEntry; -import com.microsoft.azure.management.keyvault.VaultAccessPolicyParameters; -import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl; - -/** - * Deleted vault information with extended details. - */ -public class VaultAccessPolicyParametersImpl extends WrapperImpl implements VaultAccessPolicyParameters { - VaultAccessPolicyParametersImpl(VaultAccessPolicyParametersInner inner) { - super(inner); - } - - @Override - public String id() { - return inner().id(); - } - - @Override - public String name() { - return inner().name(); - } - - @Override - public String type() { - return inner().type(); - } - - @Override - public String location() { - return inner().location(); - } - - @Override - public List accessPolicies() { - return inner().properties().accessPolicies(); - } - -} diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java index e7cf64ab04e..16f58d83933 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultsImpl.java @@ -15,8 +15,6 @@ import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager; -import com.microsoft.azure.management.keyvault.AccessPolicy; -import com.microsoft.azure.management.keyvault.AccessPolicyEntry; import com.microsoft.azure.management.keyvault.CheckNameAvailabilityResult; import com.microsoft.azure.management.keyvault.CreateMode; import com.microsoft.azure.management.keyvault.DeletedVault; From e547233b1cde444ebc2b6daa15e3b64882d71235 Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Fri, 11 May 2018 11:06:21 -0700 Subject: [PATCH 14/16] Unused imports in vaultImpl --- .../management/keyvault/implementation/VaultImpl.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java index b3bf5fdee83..b433bcb0d0f 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java @@ -6,6 +6,11 @@ package com.microsoft.azure.management.keyvault.implementation; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.NoSuchElementException; + import com.microsoft.azure.CloudException; import com.microsoft.azure.keyvault.KeyVaultClient; import com.microsoft.azure.management.apigeneration.LangDefinition; @@ -20,7 +25,6 @@ import com.microsoft.azure.management.keyvault.Sku; import com.microsoft.azure.management.keyvault.SkuName; import com.microsoft.azure.management.keyvault.Vault; -import com.microsoft.azure.management.keyvault.Vault.DefinitionStages.WithCreate; import com.microsoft.azure.management.keyvault.VaultCreateOrUpdateParameters; import com.microsoft.azure.management.keyvault.VaultProperties; import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; @@ -32,11 +36,6 @@ import rx.functions.Func1; import rx.functions.FuncN; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.NoSuchElementException; - /** * Implementation for Vault and its parent interfaces. */ From b7398520c2bb2cbc7623a4c34a8fbbcbcb783cff Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Fri, 11 May 2018 11:18:41 -0700 Subject: [PATCH 15/16] Updated javadocs for accessPolicy --- .../microsoft/azure/management/keyvault/AccessPolicy.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java index 266ac03b36a..217818f0934 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java @@ -406,7 +406,7 @@ interface WithPermissions { /** * Allow all permissions for the Ad identity to access storage. * - * @param the next stage of access policy definition + * @return the next stage of access policy definition */ @Method WithAttach allowStorageAllPermissions(); @@ -596,7 +596,7 @@ interface WithPermissions { /** * Allow all permissions for the Ad identity to access storage. * - * @param the next stage of access policy definition + * @return the next stage of access policy definition */ @Method Update allowStorageAllPermissions(); @@ -620,7 +620,7 @@ interface WithPermissions { /** * Revoke all permissions for the Ad identity to access storage. * - * @param the next stage of access policy definition + * @return the next stage of access policy definition */ @Method Update disallowStorageAllPermissions(); From 91fd957d017d9cbc9ac8f160193d9a7fd89acace Mon Sep 17 00:00:00 2001 From: tiffanyachen Date: Mon, 14 May 2018 12:24:22 -0700 Subject: [PATCH 16/16] Added networkAcl access create/update --- .../azure/management/keyvault/Vault.java | 38 +++++++++++++++++++ .../keyvault/implementation/VaultImpl.java | 15 ++++++++ 2 files changed, 53 insertions(+) diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java index 8681702db47..e32a00d11a7 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/Vault.java @@ -108,6 +108,14 @@ public interface Vault extends */ @Beta(SinceVersion.V1_11_0) CreateMode createMode(); + + /** + * Get the networkAcls value. + * + * @return the networkAcls value + */ + @Beta(SinceVersion.V1_11_0) + NetworkRuleSet networkAcls(); /************************************************************** * Fluent interfaces to provision a Vault @@ -179,6 +187,20 @@ interface WithAccessPolicy { @Method AccessPolicy.DefinitionStages.Blank defineAccessPolicy(); } + + /** + * A key vault definition allowing the networkAcl to be set. + */ + interface WithNetworkAcls { + + /** + * Set the networkAcls value. + * + * @param networkAcls the networkAcls value to set + * @return the next stage of key vault definition + */ + WithCreate withNetworkAcls(NetworkRuleSet networkAcls); + } /** * A key vault definition allowing various configurations to be set. @@ -252,6 +274,7 @@ interface WithCreate extends Creatable, GroupableResource.DefinitionWithTags, DefinitionStages.WithSku, + DefinitionStages.WithNetworkAcls, DefinitionStages.WithConfigurations, DefinitionStages.WithAccessPolicy { } @@ -298,6 +321,20 @@ interface WithAccessPolicy { AccessPolicy.Update updateAccessPolicy(String objectId); } + /** + * A key vault update allowing the networkAcl to be set. + */ + interface WithNetworkAcls { + + /** + * Set the networkAcls value. + * + * @param networkAcls the networkAcls value to set + * @return the next stage of key vault definition + */ + Update withNetworkAcls(NetworkRuleSet networkAcls); + } + /** * A key vault update allowing various configurations to be set. */ @@ -369,6 +406,7 @@ interface Update extends GroupableResource.UpdateWithTags, Appliable, UpdateStages.WithAccessPolicy, + UpdateStages.WithNetworkAcls, UpdateStages.WithConfigurations { } } diff --git a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java index b433bcb0d0f..2a01b26ed87 100644 --- a/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java +++ b/azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/implementation/VaultImpl.java @@ -21,6 +21,7 @@ import com.microsoft.azure.management.keyvault.AccessPolicyEntry; import com.microsoft.azure.management.keyvault.CreateMode; import com.microsoft.azure.management.keyvault.Keys; +import com.microsoft.azure.management.keyvault.NetworkRuleSet; import com.microsoft.azure.management.keyvault.Secrets; import com.microsoft.azure.management.keyvault.Sku; import com.microsoft.azure.management.keyvault.SkuName; @@ -331,4 +332,18 @@ public CreateMode createMode() { return inner().properties().createMode(); } + @Override + public VaultImpl withNetworkAcls(NetworkRuleSet networkAcls) { + if (inner().properties() == null) { + inner().withProperties(new VaultProperties()); + } + inner().properties().withNetworkAcls(networkAcls); + return this; + } + + @Override + public NetworkRuleSet networkAcls() { + return inner().properties().networkAcls(); + } + }