Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
168b983
feat: add api specs
ChenTanyi Jun 8, 2020
38b778a
feat: generate app platform
ChenTanyi Jun 8, 2020
72dc3ec
add pom.xml
ChenTanyi Jun 15, 2020
e9feeb6
Add spring interface
ChenTanyi Jun 15, 2020
8516956
fix compile error
ChenTanyi Jun 22, 2020
5f512d2
add implementation
ChenTanyi Jul 1, 2020
841202d
add piggymetrics source code for test
ChenTanyi Jul 1, 2020
0ea7e1d
add unit test
ChenTanyi Jul 2, 2020
bacdf9d
update test and some impl
ChenTanyi Jul 2, 2020
b11d293
Merge branch 'master' into appplatform
ChenTanyi Jul 2, 2020
58f80c6
add spring service api in azure
ChenTanyi Jul 2, 2020
d807eb4
regen app platform
ChenTanyi Jul 2, 2020
caf76a9
fix compile error
ChenTanyi Jul 2, 2020
d20e8e5
fix checkstyle
ChenTanyi Jul 3, 2020
d02ec9c
compress source code to temp file rather than memory
ChenTanyi Jul 3, 2020
0fe73ab
rename app.deploy to app.deployments
ChenTanyi Jul 3, 2020
fdbf0e1
seperate client creation and file creation
ChenTanyi Jul 3, 2020
a9dfa9c
rename withCurrentActiveSetting to withSettingsFromActiveDeployment
ChenTanyi Jul 3, 2020
5240c6e
rename sourceCode param to sourceCodeFolder
ChenTanyi Jul 3, 2020
8c2dcbb
remove deployment with byte[]
ChenTanyi Jul 3, 2020
748c0c8
align deployment update interface with definition
ChenTanyi Jul 3, 2020
6902850
change deployment cache to settings cache
ChenTanyi Jul 3, 2020
3792a8d
delete tmp file when exit
ChenTanyi Jul 3, 2020
5cc04b3
fix compile error
ChenTanyi Jul 3, 2020
1a50978
change WithPublicEndpoint to WithEndpoint
ChenTanyi Jul 3, 2020
99348c2
change sourceCode to sourceCodeFolder
ChenTanyi Jul 3, 2020
c5c6d72
close inputstream and disconnect url connection
ChenTanyi Jul 3, 2020
7ab3f39
check deployment removed
ChenTanyi Jul 3, 2020
4d21828
remove resource code
ChenTanyi Jul 3, 2020
3178cad
decompress source code from github
ChenTanyi Jul 3, 2020
77668ab
update gitignore
ChenTanyi Jul 6, 2020
44411e1
change activate in deployment to withActivation
ChenTanyi Jul 6, 2020
aa243e0
fix compile error
ChenTanyi Jul 6, 2020
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
2 changes: 2 additions & 0 deletions sdk/appplatform/mgmt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/piggymetrics
# folder created in unit test
139 changes: 139 additions & 0 deletions sdk/appplatform/mgmt/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-parent</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../../management/pom.xml</relativePath>
</parent>

<artifactId>azure-resourcemanager-appplatform</artifactId>
<packaging>jar</packaging>

<name>Microsoft Azure SDK for App Platform Management</name>
<description>This package contains Microsoft Azure App Platform Management SDK.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
</properties>

<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>

<dependencies>
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-resources</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-file-share</artifactId>
<version>12.5.0</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we move the dependency to parent pom so the version control only happen there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we'll separate all dependency into package pom later. So I don't add it to parent pom anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although, it is not the final shape for the pom.xml

</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.20</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above azure-storage-file-share

</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-netty</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>azure-mgmt-sdk-test-jar</id>
<activation>
<property>
<name>!maven.test.skip</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-resources</artifactId>
<version>2.0.0-SNAPSHOT</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<debug>true</debug>
<optimize>true</optimize>
<compilerArguments>
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
<Adebug>true</Adebug>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.appplatform;

import com.azure.core.annotation.ServiceClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.management.AzureEnvironment;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.AzureServiceClient;
import com.azure.resourcemanager.appplatform.fluent.AppsClient;
import com.azure.resourcemanager.appplatform.fluent.BindingsClient;
import com.azure.resourcemanager.appplatform.fluent.CertificatesClient;
import com.azure.resourcemanager.appplatform.fluent.CustomDomainsClient;
import com.azure.resourcemanager.appplatform.fluent.DeploymentsClient;
import com.azure.resourcemanager.appplatform.fluent.OperationsClient;
import com.azure.resourcemanager.appplatform.fluent.ServicesClient;
import com.azure.resourcemanager.appplatform.fluent.SkusClient;

/** Initializes a new instance of the AppPlatformManagementClient type. */
@ServiceClient(builder = AppPlatformManagementClientBuilder.class)
public final class AppPlatformManagementClient extends AzureServiceClient {
private final ClientLogger logger = new ClientLogger(AppPlatformManagementClient.class);

/**
* Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of
* the URI for every service call.
*/
private final String subscriptionId;

/**
* Gets Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms
* part of the URI for every service call.
*
* @return the subscriptionId value.
*/
public String getSubscriptionId() {
return this.subscriptionId;
}

/** server parameter. */
private final String endpoint;

/**
* Gets server parameter.
*
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}

/** Api Version. */
private final String apiVersion;

/**
* Gets Api Version.
*
* @return the apiVersion value.
*/
public String getApiVersion() {
return this.apiVersion;
}

/** The HTTP pipeline to send requests through. */
private final HttpPipeline httpPipeline;

/**
* Gets The HTTP pipeline to send requests through.
*
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}

/** The ServicesClient object to access its operations. */
private final ServicesClient services;

/**
* Gets the ServicesClient object to access its operations.
*
* @return the ServicesClient object.
*/
public ServicesClient getServices() {
return this.services;
}

/** The AppsClient object to access its operations. */
private final AppsClient apps;

/**
* Gets the AppsClient object to access its operations.
*
* @return the AppsClient object.
*/
public AppsClient getApps() {
return this.apps;
}

/** The BindingsClient object to access its operations. */
private final BindingsClient bindings;

/**
* Gets the BindingsClient object to access its operations.
*
* @return the BindingsClient object.
*/
public BindingsClient getBindings() {
return this.bindings;
}

/** The CertificatesClient object to access its operations. */
private final CertificatesClient certificates;

/**
* Gets the CertificatesClient object to access its operations.
*
* @return the CertificatesClient object.
*/
public CertificatesClient getCertificates() {
return this.certificates;
}

/** The CustomDomainsClient object to access its operations. */
private final CustomDomainsClient customDomains;

/**
* Gets the CustomDomainsClient object to access its operations.
*
* @return the CustomDomainsClient object.
*/
public CustomDomainsClient getCustomDomains() {
return this.customDomains;
}

/** The DeploymentsClient object to access its operations. */
private final DeploymentsClient deployments;

/**
* Gets the DeploymentsClient object to access its operations.
*
* @return the DeploymentsClient object.
*/
public DeploymentsClient getDeployments() {
return this.deployments;
}

/** The OperationsClient object to access its operations. */
private final OperationsClient operations;

/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
public OperationsClient getOperations() {
return this.operations;
}

/** The SkusClient object to access its operations. */
private final SkusClient skus;

/**
* Gets the SkusClient object to access its operations.
*
* @return the SkusClient object.
*/
public SkusClient getSkus() {
return this.skus;
}

/**
* Initializes an instance of AppPlatformManagementClient client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param environment The Azure environment.
*/
AppPlatformManagementClient(
HttpPipeline httpPipeline, AzureEnvironment environment, String subscriptionId, String endpoint) {
super(httpPipeline, environment);
this.httpPipeline = httpPipeline;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2019-05-01-preview";
this.services = new ServicesClient(this);
this.apps = new AppsClient(this);
this.bindings = new BindingsClient(this);
this.certificates = new CertificatesClient(this);
this.customDomains = new CustomDomainsClient(this);
this.deployments = new DeploymentsClient(this);
this.operations = new OperationsClient(this);
this.skus = new SkusClient(this);
}
}
Loading