com.microsoft.azure.management.cosmosdb.implementation.PrivateEndpointConnectionsImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-cosmosdb Show documentation
Show all versions of azure-mgmt-cosmosdb Show documentation
This package contains Microsoft Azure CosmosDB SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* 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.cosmosdb.implementation;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.cosmosdb.CosmosDBAccount;
import com.microsoft.azure.management.cosmosdb.PrivateEndpointConnection;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesCachedImpl;
import rx.Observable;
import rx.functions.Func1;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Represents a private endpoint connection collection.
*/
@LangDefinition
class PrivateEndpointConnectionsImpl extends
ExternalChildResourcesCachedImpl {
private final PrivateEndpointConnectionsInner client;
PrivateEndpointConnectionsImpl(PrivateEndpointConnectionsInner client, CosmosDBAccountImpl parent) {
super(parent, parent.taskGroup(), "PrivateEndpointConnection");
this.client = client;
}
public PrivateEndpointConnectionImpl define(String name) {
return this.prepareInlineDefine(name);
}
public PrivateEndpointConnectionImpl update(String name) {
if (this.collection().size() == 0) {
this.cacheCollection();
}
return this.prepareInlineUpdate(name);
}
public void remove(String name) {
if (this.collection().size() == 0) {
this.cacheCollection();
}
this.prepareInlineRemove(name);
}
public Map asMap() {
return asMapAsync().toBlocking().last();
}
public Observable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy