Skip to content

Commit

Permalink
CodeGen from PR 11712 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge f65e72b5d45a939d2fa41a7890a5ffcb875f88da into 3b16e57e9283512eecd049963f344319479d81f9
  • Loading branch information
SDKAuto committed Nov 17, 2020
1 parent 7def120 commit b5427d2
Show file tree
Hide file tree
Showing 14 changed files with 674 additions and 144 deletions.
4 changes: 2 additions & 2 deletions sdk/managedapplications/mgmt-v2019_07_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-managedapplications</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ interface WithCreate extends Creatable<Application>, Resource.DefinitionWithTags
/**
* The template for a Application update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<Application>, Resource.UpdateWithTags<Update>, UpdateStages.WithApplicationDefinitionId, UpdateStages.WithIdentity, UpdateStages.WithJitAccessPolicy, UpdateStages.WithManagedBy, UpdateStages.WithManagedResourceGroupId, UpdateStages.WithParameters, UpdateStages.WithPlan, UpdateStages.WithSku {
interface Update extends Appliable<Application>, Resource.UpdateWithTags<Update>, UpdateStages.WithApplicationDefinitionId, UpdateStages.WithIdentity, UpdateStages.WithJitAccessPolicy, UpdateStages.WithKind, UpdateStages.WithManagedBy, UpdateStages.WithManagedResourceGroupId, UpdateStages.WithParameters, UpdateStages.WithPlan, UpdateStages.WithSku {
}

/**
Expand Down Expand Up @@ -309,6 +309,18 @@ interface WithJitAccessPolicy {
Update withJitAccessPolicy(ApplicationJitAccessPolicy jitAccessPolicy);
}

/**
* The stage of the application update allowing to specify Kind.
*/
interface WithKind {
/**
* Specifies kind.
* @param kind The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog
* @return the next update stage
*/
Update withKind(String kind);
}

/**
* The stage of the application update allowing to specify ManagedBy.
*/
Expand Down Expand Up @@ -354,7 +366,7 @@ interface WithPlan {
* @param plan The plan information
* @return the next update stage
*/
Update withPlan(Plan plan);
Update withPlan(PlanPatchable plan);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,34 @@
*/
public interface ApplicationDefinitions extends SupportsCreating<ApplicationDefinition.DefinitionStages.Blank>, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup<ApplicationDefinition>, SupportsListingByResourceGroup<ApplicationDefinition>, HasInner<ApplicationDefinitionsInner> {
/**
* Gets the managed application definition.
* Deletes the managed application definition.
*
* @param applicationDefinitionId The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applicationDefinitions/{applicationDefinition-name}
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationDefinitionName The name of the managed application definition to delete.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ApplicationDefinition> getByIdAsync(String applicationDefinitionId);
Completable deleteAsync(String resourceGroupName, String applicationDefinitionName);

/**
* Deletes the managed application definition.
* Gets the managed application definition.
*
* @param applicationDefinitionId The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applicationDefinitions/{applicationDefinition-name}
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationDefinitionName The name of the managed application definition.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable deleteByIdAsync(String applicationDefinitionId);
Observable<ApplicationDefinition> getByIdAsync(String resourceGroupName, String applicationDefinitionName);

/**
* Creates a new managed application definition.
*
* @param applicationDefinitionId The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applicationDefinitions/{applicationDefinition-name}
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationDefinitionName The name of the managed application definition.
* @param parameters Parameters supplied to the create or update a managed application definition.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ApplicationDefinition> createOrUpdateByIdAsync(String applicationDefinitionId, ApplicationDefinitionInner parameters);
Observable<ApplicationDefinition> createOrUpdateByIdAsync(String resourceGroupName, String applicationDefinitionName, ApplicationDefinitionInner parameters);

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package com.microsoft.azure.management.managedapplications.v2019_07_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

Expand Down Expand Up @@ -49,6 +50,70 @@ public class ApplicationPatchable extends GenericResource {
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;

/**
* The managed application billing details.
*/
@JsonProperty(value = "properties.billingDetails", access = JsonProperty.Access.WRITE_ONLY)
private ApplicationBillingDetailsDefinition billingDetails;

/**
* The managed application Jit access policy.
*/
@JsonProperty(value = "properties.jitAccessPolicy")
private ApplicationJitAccessPolicy jitAccessPolicy;

/**
* The publisher tenant Id.
*/
@JsonProperty(value = "properties.publisherTenantId", access = JsonProperty.Access.WRITE_ONLY)
private String publisherTenantId;

/**
* The read-only authorizations property that is retrieved from the
* application package.
*/
@JsonProperty(value = "properties.authorizations", access = JsonProperty.Access.WRITE_ONLY)
private List<ApplicationAuthorization> authorizations;

/**
* The managed application management mode. Possible values include:
* 'NotSpecified', 'Unmanaged', 'Managed'.
*/
@JsonProperty(value = "properties.managementMode", access = JsonProperty.Access.WRITE_ONLY)
private ApplicationManagementMode managementMode;

/**
* The read-only customer support property that is retrieved from the
* application package.
*/
@JsonProperty(value = "properties.customerSupport", access = JsonProperty.Access.WRITE_ONLY)
private ApplicationPackageContact customerSupport;

/**
* The read-only support URLs property that is retrieved from the
* application package.
*/
@JsonProperty(value = "properties.supportUrls", access = JsonProperty.Access.WRITE_ONLY)
private ApplicationPackageSupportUrls supportUrls;

/**
* The collection of managed application artifacts.
*/
@JsonProperty(value = "properties.artifacts", access = JsonProperty.Access.WRITE_ONLY)
private List<ApplicationArtifact> artifacts;

/**
* The client entity that created the JIT request.
*/
@JsonProperty(value = "properties.createdBy", access = JsonProperty.Access.WRITE_ONLY)
private ApplicationClientDetails createdBy;

/**
* The client entity that last updated the JIT request.
*/
@JsonProperty(value = "properties.updatedBy", access = JsonProperty.Access.WRITE_ONLY)
private ApplicationClientDetails updatedBy;

/**
* The plan information.
*/
Expand Down Expand Up @@ -146,6 +211,107 @@ public ProvisioningState provisioningState() {
return this.provisioningState;
}

/**
* Get the managed application billing details.
*
* @return the billingDetails value
*/
public ApplicationBillingDetailsDefinition billingDetails() {
return this.billingDetails;
}

/**
* Get the managed application Jit access policy.
*
* @return the jitAccessPolicy value
*/
public ApplicationJitAccessPolicy jitAccessPolicy() {
return this.jitAccessPolicy;
}

/**
* Set the managed application Jit access policy.
*
* @param jitAccessPolicy the jitAccessPolicy value to set
* @return the ApplicationPatchable object itself.
*/
public ApplicationPatchable withJitAccessPolicy(ApplicationJitAccessPolicy jitAccessPolicy) {
this.jitAccessPolicy = jitAccessPolicy;
return this;
}

/**
* Get the publisher tenant Id.
*
* @return the publisherTenantId value
*/
public String publisherTenantId() {
return this.publisherTenantId;
}

/**
* Get the read-only authorizations property that is retrieved from the application package.
*
* @return the authorizations value
*/
public List<ApplicationAuthorization> authorizations() {
return this.authorizations;
}

/**
* Get the managed application management mode. Possible values include: 'NotSpecified', 'Unmanaged', 'Managed'.
*
* @return the managementMode value
*/
public ApplicationManagementMode managementMode() {
return this.managementMode;
}

/**
* Get the read-only customer support property that is retrieved from the application package.
*
* @return the customerSupport value
*/
public ApplicationPackageContact customerSupport() {
return this.customerSupport;
}

/**
* Get the read-only support URLs property that is retrieved from the application package.
*
* @return the supportUrls value
*/
public ApplicationPackageSupportUrls supportUrls() {
return this.supportUrls;
}

/**
* Get the collection of managed application artifacts.
*
* @return the artifacts value
*/
public List<ApplicationArtifact> artifacts() {
return this.artifacts;
}

/**
* Get the client entity that created the JIT request.
*
* @return the createdBy value
*/
public ApplicationClientDetails createdBy() {
return this.createdBy;
}

/**
* Get the client entity that last updated the JIT request.
*
* @return the updatedBy value
*/
public ApplicationClientDetails updatedBy() {
return this.updatedBy;
}

/**
* Get the plan information.
*
Expand Down
Loading

0 comments on commit b5427d2

Please sign in to comment.