Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR sdk/search/mgmt-resource-manager/v2020_03_13] Updated default tag to latest stable version. #2938

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,47 +45,35 @@ public interface PrivateEndpointConnection extends HasInner<PrivateEndpointConne
/**
* The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithSearchManagementRequestOptions, UpdateStages.WithId, UpdateStages.WithProperties {
interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithProperties, UpdateStages.WithSearchManagementRequestOptions {
}

/**
* Grouping of PrivateEndpointConnection update stages.
*/
interface UpdateStages {
/**
* The stage of the privateendpointconnection update allowing to specify SearchManagementRequestOptions.
*/
interface WithSearchManagementRequestOptions {
/**
* Specifies searchManagementRequestOptions.
* @param searchManagementRequestOptions Additional parameters for the operation
* @return the next update stage
*/
Update withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions);
}

/**
* The stage of the privateendpointconnection update allowing to specify Id.
* The stage of the privateendpointconnection update allowing to specify Properties.
*/
interface WithId {
interface WithProperties {
/**
* Specifies id.
* @param id The ID of the private endpoint connection. This can be used with the Azure Resource Manager to link resources together
* Specifies properties.
* @param properties Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service
* @return the next update stage
*/
Update withId(String id);
Update withProperties(PrivateEndpointConnectionProperties properties);
}

/**
* The stage of the privateendpointconnection update allowing to specify Properties.
* The stage of the privateendpointconnection update allowing to specify SearchManagementRequestOptions.
*/
interface WithProperties {
interface WithSearchManagementRequestOptions {
/**
* Specifies properties.
* @param properties Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service
* Specifies searchManagementRequestOptions.
* @param searchManagementRequestOptions Additional parameters for the operation
* @return the next update stage
*/
Update withProperties(PrivateEndpointConnectionProperties properties);
Update withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.search.v2020_03_13.implementation.SharedPrivateLinkResourceInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.search.v2020_03_13.implementation.SearchManager;
Expand All @@ -19,7 +22,12 @@
/**
* Type representing SharedPrivateLinkResource.
*/
public interface SharedPrivateLinkResource extends HasInner<SharedPrivateLinkResourceInner>, Indexable, HasManager<SearchManager> {
public interface SharedPrivateLinkResource extends HasInner<SharedPrivateLinkResourceInner>, Indexable, Refreshable<SharedPrivateLinkResource>, Updatable<SharedPrivateLinkResource.Update>, HasManager<SearchManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the name value.
*/
Expand All @@ -30,10 +38,15 @@ public interface SharedPrivateLinkResource extends HasInner<SharedPrivateLinkRes
*/
SharedPrivateLinkResourceProperties properties();

/**
* @return the type value.
*/
String type();

/**
* The entirety of the SharedPrivateLinkResource definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithSearchService, DefinitionStages.WithSearchManagementRequestOptions, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithSearchService, DefinitionStages.WithProperties, DefinitionStages.WithSearchManagementRequestOptions, DefinitionStages.WithCreate {
}

/**
Expand All @@ -56,7 +69,19 @@ interface WithSearchService {
* @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group
* @return the next definition stage
*/
WithSearchManagementRequestOptions withExistingSearchService(String resourceGroupName, String searchServiceName);
WithProperties withExistingSearchService(String resourceGroupName, String searchServiceName);
}

/**
* The stage of the sharedprivatelinkresource definition allowing to specify Properties.
*/
interface WithProperties {
/**
* Specifies properties.
* @param properties Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service
* @return the next definition stage
*/
WithSearchManagementRequestOptions withProperties(SharedPrivateLinkResourceProperties properties);
}

/**
Expand All @@ -72,35 +97,46 @@ interface WithSearchManagementRequestOptions {
}

/**
* The stage of the sharedprivatelinkresource definition allowing to specify Name.
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithName {
/**
* Specifies name.
* @param name The name of the shared private link resource
* @return the next definition stage
*/
WithCreate withName(String name);
interface WithCreate extends Creatable<SharedPrivateLinkResource> {
}
}
/**
* The template for a SharedPrivateLinkResource update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<SharedPrivateLinkResource>, UpdateStages.WithProperties, UpdateStages.WithSearchManagementRequestOptions {
}

/**
* Grouping of SharedPrivateLinkResource update stages.
*/
interface UpdateStages {
/**
* The stage of the sharedprivatelinkresource definition allowing to specify Properties.
* The stage of the sharedprivatelinkresource update allowing to specify Properties.
*/
interface WithProperties {
/**
* Specifies properties.
* @param properties Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service
* @return the next definition stage
* @return the next update stage
*/
WithCreate withProperties(SharedPrivateLinkResourceProperties properties);
Update withProperties(SharedPrivateLinkResourceProperties properties);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
* The stage of the sharedprivatelinkresource update allowing to specify SearchManagementRequestOptions.
*/
interface WithCreate extends Creatable<SharedPrivateLinkResource>, DefinitionStages.WithName, DefinitionStages.WithProperties {
interface WithSearchManagementRequestOptions {
/**
* Specifies searchManagementRequestOptions.
* @param searchManagementRequestOptions Additional parameters for the operation
* @return the next update stage
*/
Update withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
import com.microsoft.azure.management.search.v2020_03_13.PrivateEndpointConnection;
import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
import rx.Observable;
import com.microsoft.azure.management.search.v2020_03_13.PrivateEndpointConnectionProperties;
import com.microsoft.azure.management.search.v2020_03_13.SearchManagementRequestOptions;
import java.util.UUID;
import com.microsoft.azure.management.search.v2020_03_13.PrivateEndpointConnectionProperties;
import rx.functions.Func1;

class PrivateEndpointConnectionImpl extends CreatableUpdatableImpl<PrivateEndpointConnection, PrivateEndpointConnectionInner, PrivateEndpointConnectionImpl> implements PrivateEndpointConnection, PrivateEndpointConnection.Update {
private final SearchManager manager;
private String resourceGroupName;
private String searchServiceName;
private String privateEndpointConnectionName;
private PrivateEndpointConnectionProperties uproperties;
private SearchManagementRequestOptions usearchManagementRequestOptions;

PrivateEndpointConnectionImpl(String name, SearchManager manager) {
Expand All @@ -29,6 +30,7 @@ class PrivateEndpointConnectionImpl extends CreatableUpdatableImpl<PrivateEndpoi
// Set resource name
this.privateEndpointConnectionName = name;
//
this.uproperties = new PrivateEndpointConnectionProperties();
this.usearchManagementRequestOptions = new SearchManagementRequestOptions();
}

Expand All @@ -42,6 +44,7 @@ class PrivateEndpointConnectionImpl extends CreatableUpdatableImpl<PrivateEndpoi
this.searchServiceName = IdParsingUtils.getValueFromIdByName(inner.id(), "searchServices");
this.privateEndpointConnectionName = IdParsingUtils.getValueFromIdByName(inner.id(), "privateEndpointConnections");
//
this.uproperties = new PrivateEndpointConnectionProperties();
this.usearchManagementRequestOptions = new SearchManagementRequestOptions();
}

Expand All @@ -59,7 +62,7 @@ public Observable<PrivateEndpointConnection> createResourceAsync() {
@Override
public Observable<PrivateEndpointConnection> updateResourceAsync() {
PrivateEndpointConnectionsInner client = this.manager().inner().privateEndpointConnections();
return client.updateAsync(this.resourceGroupName, this.searchServiceName, this.privateEndpointConnectionName, this.inner(), this.usearchManagementRequestOptions)
return client.updateAsync(this.resourceGroupName, this.searchServiceName, this.privateEndpointConnectionName, this.uproperties, this.usearchManagementRequestOptions)
.map(new Func1<PrivateEndpointConnectionInner, PrivateEndpointConnectionInner>() {
@Override
public PrivateEndpointConnectionInner call(PrivateEndpointConnectionInner resource) {
Expand All @@ -82,6 +85,7 @@ public boolean isInCreateMode() {
}

private void resetCreateUpdateParameters() {
this.uproperties = new PrivateEndpointConnectionProperties();
this.usearchManagementRequestOptions = new SearchManagementRequestOptions();
}

Expand All @@ -106,20 +110,14 @@ public String type() {
}

@Override
public PrivateEndpointConnectionImpl withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions) {
this.usearchManagementRequestOptions = searchManagementRequestOptions;
return this;
}

@Override
public PrivateEndpointConnectionImpl withId(String id) {
this.inner().withId(id);
public PrivateEndpointConnectionImpl withProperties(PrivateEndpointConnectionProperties properties) {
this.uproperties = properties;
return this;
}

@Override
public PrivateEndpointConnectionImpl withProperties(PrivateEndpointConnectionProperties properties) {
this.inner().withProperties(properties);
public PrivateEndpointConnectionImpl withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions) {
this.usearchManagementRequestOptions = searchManagementRequestOptions;
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,76 +10,20 @@

import com.microsoft.azure.management.search.v2020_03_13.PrivateEndpointConnectionProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.azure.ProxyResource;

/**
* Describes an existing Private Endpoint connection to the Azure Cognitive
* Search service.
*/
public class PrivateEndpointConnectionInner {
/**
* The ID of the private endpoint connection. This can be used with the
* Azure Resource Manager to link resources together.
*/
@JsonProperty(value = "id")
private String id;

/**
* The name of the private endpoint connection.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;

/**
* The resource type.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;

public class PrivateEndpointConnectionInner extends ProxyResource {
/**
* Describes the properties of an existing Private Endpoint connection to
* the Azure Cognitive Search service.
*/
@JsonProperty(value = "properties")
private PrivateEndpointConnectionProperties properties;

/**
* Get the ID of the private endpoint connection. This can be used with the Azure Resource Manager to link resources together.
*
* @return the id value
*/
public String id() {
return this.id;
}

/**
* Set the ID of the private endpoint connection. This can be used with the Azure Resource Manager to link resources together.
*
* @param id the id value to set
* @return the PrivateEndpointConnectionInner object itself.
*/
public PrivateEndpointConnectionInner withId(String id) {
this.id = id;
return this;
}

/**
* Get the name of the private endpoint connection.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Get the resource type.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Get describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.
*
Expand Down
Loading