-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Mgmt: Appplatform #12350
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
Merged
Merged
Mgmt: Appplatform #12350
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 38b778a
feat: generate app platform
ChenTanyi 72dc3ec
add pom.xml
ChenTanyi e9feeb6
Add spring interface
ChenTanyi 8516956
fix compile error
ChenTanyi 5f512d2
add implementation
ChenTanyi 841202d
add piggymetrics source code for test
ChenTanyi 0ea7e1d
add unit test
ChenTanyi bacdf9d
update test and some impl
ChenTanyi b11d293
Merge branch 'master' into appplatform
ChenTanyi 58f80c6
add spring service api in azure
ChenTanyi d807eb4
regen app platform
ChenTanyi caf76a9
fix compile error
ChenTanyi d20e8e5
fix checkstyle
ChenTanyi d02ec9c
compress source code to temp file rather than memory
ChenTanyi 0fe73ab
rename app.deploy to app.deployments
ChenTanyi fdbf0e1
seperate client creation and file creation
ChenTanyi a9dfa9c
rename withCurrentActiveSetting to withSettingsFromActiveDeployment
ChenTanyi 5240c6e
rename sourceCode param to sourceCodeFolder
ChenTanyi 8c2dcbb
remove deployment with byte[]
ChenTanyi 748c0c8
align deployment update interface with definition
ChenTanyi 6902850
change deployment cache to settings cache
ChenTanyi 3792a8d
delete tmp file when exit
ChenTanyi 5cc04b3
fix compile error
ChenTanyi 1a50978
change WithPublicEndpoint to WithEndpoint
ChenTanyi 99348c2
change sourceCode to sourceCodeFolder
ChenTanyi c5c6d72
close inputstream and disconnect url connection
ChenTanyi 7ab3f39
check deployment removed
ChenTanyi 4d21828
remove resource code
ChenTanyi 3178cad
decompress source code from github
ChenTanyi 77668ab
update gitignore
ChenTanyi 44411e1
change activate in deployment to withActivation
ChenTanyi aa243e0
fix compile error
ChenTanyi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /piggymetrics | ||
| # folder created in unit test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.commons</groupId> | ||
| <artifactId>commons-compress</artifactId> | ||
| <version>1.20</version> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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> | ||
196 changes: 196 additions & 0 deletions
196
...mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClient.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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