-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Create Autorest Models, pom File and README for Azure Tables #11471
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
eboyd23
merged 10 commits into
Azure:master
from
eboyd23:autorestModelsAzureTables10963
May 29, 2020
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9daf8bd
autogenerated swagger files and pom.xml
eboyd23 df5a939
adding readme file
eboyd23 a5ef2e5
changing README and pom file to be based on template
eboyd23 85ee9be
fixing with naming, version and things connie suggested
eboyd23 cac5002
Fixed pom and some version issues which were in Jim's comments
eboyd23 ebde35e
pom file changes
eboyd23 1439b84
fix swagger location and pom mistake
eboyd23 ad87118
quick fixes
eboyd23 d41297e
regenerated swaggger, fix build issue
eboyd23 669d116
readme fix
eboyd23 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
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
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
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,38 @@ | ||
| # Azure Table client library for Java | ||
| Azure Tables Azure Table storage is a service that stores structured NoSQL data in the cloud, providing a key/attribute store with a schemaless design. | ||
| Tables storage gives developers flexibility and scalability with all the best parts of Azure cloud. | ||
|
|
||
| ## Examples | ||
| Use the client library for Tables to: | ||
| - manages tables | ||
| - edit and access table contents | ||
|
|
||
| ## Getting started | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| - Java Development Kit (JDK) with version 8 or above | ||
| - [Azure Subscription][azure_subscription] | ||
|
|
||
|
|
||
| ### Include the Package | ||
|
|
||
| [//]: # ({x-version-update-start;com.azure:cosmos:azure-cosmos-table;current}) | ||
| ```xml | ||
| <dependency> | ||
| <groupId>com.azure</groupId> | ||
| <artifactId>azure-cosmos-table</artifactId> | ||
| <version>1.0.0-beta.1</version> | ||
| </dependency> | ||
| ``` | ||
| [//]: # ({x-version-update-end}) | ||
|
|
||
| ## Key concepts | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| ## Next steps | ||
|
|
||
| ## Contributing | ||
|
|
||
| ## License |
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,68 @@ | ||
| <!-- | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Licensed under the MIT License. | ||
| --> | ||
| <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</groupId> | ||
| <artifactId>azure-client-sdk-parent</artifactId> | ||
| <version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} --> | ||
| <relativePath>../../parents/azure-client-sdk-parent</relativePath> | ||
| </parent> | ||
|
|
||
| <groupId>com.azure</groupId> | ||
| <artifactId>azure-cosmos-table</artifactId> | ||
| <version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure:azure-cosmos-table;current} --> | ||
| <name>Microsoft Azure SDK for Azure Table</name> | ||
| <description>This package contains the Microsoft Azure Cosmos Table client library.</description> | ||
| <packaging>jar</packaging> | ||
| <url>https://github.com/Azure/azure-sdk-for-java</url> | ||
|
|
||
| <distributionManagement> | ||
| <site> | ||
| <id>azure-java-build-docs</id> | ||
| <url>${site.url}/site/${project.artifactId}</url> | ||
| </site> | ||
| </distributionManagement> | ||
|
|
||
| <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> | ||
|
|
||
| <!-- CosmosTableSkip - Needed temporary values to 10% not fail. --> | ||
| <properties> | ||
| <jacoco.skip.coverage.check>true</jacoco.skip.coverage.check> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>com.azure</groupId> | ||
| <artifactId>azure-core</artifactId> | ||
| <version>1.5.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} --> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> | ||
| <plugins> | ||
|
|
||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-enforcer-plugin</artifactId> | ||
| <version>3.0.0-M3</version> <!-- {x-version-update;org.apache.maven.plugins:maven-enforcer-plugin;external_dependency} --> | ||
| <configuration> | ||
| <rules> | ||
| <bannedDependencies> | ||
| <includes> | ||
| <include>com.azure:*</include> | ||
| </includes> | ||
| </bannedDependencies> | ||
| </rules> | ||
| </configuration> | ||
| </plugin> | ||
|
|
||
| </plugins> | ||
| </build> | ||
| </project> | ||
eboyd23 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
83 changes: 83 additions & 0 deletions
83
...e-cosmos-table/src/main/java/com/azure/cosmos/table/implementation/AzureTableBuilder.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,83 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
|
||
| package com.azure.cosmos.table.implementation; | ||
|
|
||
| import com.azure.core.annotation.ServiceClientBuilder; | ||
| import com.azure.core.http.HttpPipeline; | ||
| import com.azure.core.http.HttpPipelineBuilder; | ||
| import com.azure.core.http.policy.CookiePolicy; | ||
| import com.azure.core.http.policy.RetryPolicy; | ||
| import com.azure.core.http.policy.UserAgentPolicy; | ||
|
|
||
| /** A builder for creating a new instance of the AzureTable type. */ | ||
| @ServiceClientBuilder(serviceClients = {AzureTableImpl.class}) | ||
| public final class AzureTableBuilder { | ||
| /* | ||
| * The URL of the service account or table that is the targe of the desired | ||
| * operation. | ||
| */ | ||
| private String url; | ||
|
|
||
| /** | ||
| * Sets The URL of the service account or table that is the targe of the desired operation. | ||
| * | ||
| * @param url the url value. | ||
| * @return the AzureTableBuilder. | ||
| */ | ||
| public AzureTableBuilder url(String url) { | ||
| this.url = url; | ||
| return this; | ||
| } | ||
|
|
||
| /* | ||
| * Specifies the version of the operation to use for this request. | ||
| */ | ||
| private String version; | ||
|
|
||
| /** | ||
| * Sets Specifies the version of the operation to use for this request. | ||
| * | ||
| * @param version the version value. | ||
| * @return the AzureTableBuilder. | ||
| */ | ||
| public AzureTableBuilder version(String version) { | ||
| this.version = version; | ||
| return this; | ||
| } | ||
|
|
||
| /* | ||
| * The HTTP pipeline to send requests through | ||
| */ | ||
| private HttpPipeline pipeline; | ||
|
|
||
| /** | ||
| * Sets The HTTP pipeline to send requests through. | ||
| * | ||
| * @param pipeline the pipeline value. | ||
| * @return the AzureTableBuilder. | ||
| */ | ||
| public AzureTableBuilder pipeline(HttpPipeline pipeline) { | ||
| this.pipeline = pipeline; | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Builds an instance of AzureTableImpl with the provided parameters. | ||
| * | ||
| * @return an instance of AzureTableImpl. | ||
| */ | ||
| public AzureTableImpl buildClient() { | ||
| if (pipeline == null) { | ||
| this.pipeline = | ||
| new HttpPipelineBuilder() | ||
| .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) | ||
| .build(); | ||
| } | ||
| AzureTableImpl client = new AzureTableImpl(pipeline); | ||
| client.setUrl(this.url); | ||
| client.setVersion(this.version); | ||
| return client; | ||
| } | ||
| } |
112 changes: 112 additions & 0 deletions
112
...zure-cosmos-table/src/main/java/com/azure/cosmos/table/implementation/AzureTableImpl.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,112 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
|
||
| package com.azure.cosmos.table.implementation; | ||
|
|
||
| import com.azure.core.http.HttpPipeline; | ||
| import com.azure.core.http.HttpPipelineBuilder; | ||
| import com.azure.core.http.policy.CookiePolicy; | ||
| import com.azure.core.http.policy.RetryPolicy; | ||
| import com.azure.core.http.policy.UserAgentPolicy; | ||
|
|
||
| /** Initializes a new instance of the AzureTable type. */ | ||
| public final class AzureTableImpl { | ||
| /** The URL of the service account or table that is the targe of the desired operation. */ | ||
| private String url; | ||
|
|
||
| /** | ||
| * Gets The URL of the service account or table that is the targe of the desired operation. | ||
| * | ||
| * @return the url value. | ||
| */ | ||
| public String getUrl() { | ||
| return this.url; | ||
| } | ||
|
|
||
| /** | ||
| * Sets The URL of the service account or table that is the targe of the desired operation. | ||
| * | ||
| * @param url the url value. | ||
| * @return the service client itself. | ||
| */ | ||
| public AzureTableImpl setUrl(String url) { | ||
| this.url = url; | ||
| return this; | ||
| } | ||
|
|
||
| /** Specifies the version of the operation to use for this request. */ | ||
| private String version; | ||
|
|
||
| /** | ||
| * Gets Specifies the version of the operation to use for this request. | ||
| * | ||
| * @return the version value. | ||
| */ | ||
| public String getVersion() { | ||
| return this.version; | ||
| } | ||
|
|
||
| /** | ||
| * Sets Specifies the version of the operation to use for this request. | ||
| * | ||
| * @param version the version value. | ||
| * @return the service client itself. | ||
| */ | ||
| public AzureTableImpl setVersion(String version) { | ||
| this.version = version; | ||
| return this; | ||
| } | ||
|
|
||
| /** 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 TablesImpl object to access its operations. */ | ||
| private final TablesImpl tables; | ||
|
|
||
| /** | ||
| * Gets the TablesImpl object to access its operations. | ||
| * | ||
| * @return the TablesImpl object. | ||
| */ | ||
| public TablesImpl getTables() { | ||
| return this.tables; | ||
| } | ||
|
|
||
| /** The ServicesImpl object to access its operations. */ | ||
| private final ServicesImpl services; | ||
|
|
||
| /** | ||
| * Gets the ServicesImpl object to access its operations. | ||
| * | ||
| * @return the ServicesImpl object. | ||
| */ | ||
| public ServicesImpl getServices() { | ||
| return this.services; | ||
| } | ||
|
|
||
| /** Initializes an instance of AzureTable client. */ | ||
| public AzureTableImpl() { | ||
| this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build()); | ||
| } | ||
|
|
||
| /** | ||
| * Initializes an instance of AzureTable client. | ||
| * | ||
| * @param httpPipeline The HTTP pipeline to send requests through. | ||
| */ | ||
| public AzureTableImpl(HttpPipeline httpPipeline) { | ||
| this.httpPipeline = httpPipeline; | ||
| this.tables = new TablesImpl(this); | ||
| this.services = new ServicesImpl(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.
Uh oh!
There was an error while loading. Please reload this page.