Skip to content
Merged
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
1 change: 1 addition & 0 deletions eng/.docsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ known_content_issues:
- ['sdk/cosmos/faq/README.md', '#3113']
- ['sdk/cosmos/azure-cosmos-benchmark/README.md', '#3113']
- ['sdk/cosmos/azure-cosmos-examples/README.md', '#3113']
- ['sdk/cosmos/azure-cosmos-table/swagger/README.md', '#3113']
- ['sdk/cosmos/azure-cosmos/README.md', '#3113']
- ['sdk/e2e/README.md', '#3113']
- ['sdk/eventgrid/microsoft-azure-eventgrid/README.md', '#3113']
Expand Down
5 changes: 5 additions & 0 deletions eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@
<artifactId>azure-cosmos</artifactId>
<version>4.0.1-beta.4</version> <!-- {x-version-update;com.azure:azure-cosmos;current} -->
</dependency>
<dependency>
<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} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-sdk-template</artifactId>
Expand Down
1 change: 1 addition & 0 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ com.azure:azure-core-tracing-opentelemetry;1.0.0-beta.4;1.0.0-beta.5
com.azure:azure-cosmos;4.0.1-beta.3;4.0.1-beta.4
com.azure:azure-cosmos-examples;4.0.1-beta.1;4.0.1-beta.1
com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1
com.azure:azure-cosmos-table;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-data-appconfiguration;1.1.1;1.2.0-beta.1
com.azure:azure-e2e;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-identity;1.0.6;1.1.0-beta.5
Expand Down
38 changes: 38 additions & 0 deletions sdk/cosmos/azure-cosmos-table/README.md
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
68 changes: 68 additions & 0 deletions sdk/cosmos/azure-cosmos-table/pom.xml
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>
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;
}
}
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);
}
}
Loading