Skip to content

Commit

Permalink
azartifacts preview v0.1.0 (#14677)
Browse files Browse the repository at this point in the history
* azartifacts preview v0.1.0

* add README and bump azcore version
  • Loading branch information
jhendrixMSFT committed May 20, 2021
1 parent 023238f commit 4291d7a
Show file tree
Hide file tree
Showing 31 changed files with 48,090 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sdk/synapse/azartifacts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Release History

## v0.1.0 (released)

Generated from https://github.com/Azure/azure-rest-api-specs/tree/e0624d2b17a8dcee07acfb08f39508a773a8dc21

Code generator @autorest/go@4.0.0-preview.20
21 changes: 21 additions & 0 deletions sdk/synapse/azartifacts/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
74 changes: 74 additions & 0 deletions sdk/synapse/azartifacts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Azure Synapse Artifacts Module for Go

[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/synapse/azartifacts)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/synapse/azartifacts)

The `azartifacts` module provides operations for working with Azure synapse.

[Source code](https://github.com/Azure/azure-sdk-for-go/tree/master/sdk/synapse/azartifacts)

# Getting started

## Prerequisites

- an [Azure subscription](https://azure.microsoft.com/free/)
- Go 1.13 or above

## Install the package

This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management.

Install the Azure Synapse Artifacts module:

```sh
go get github.com/Azure/azure-sdk-for-go/sdk/synapse/azartifacts
```

## Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Synapse. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

```go
cred, err := azidentity.NewDefaultAzureCredential(nil)
```

For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity).

## Connecting to Azure Synapse

Once you have a credential, create a connection to the desired Synapse endpoint URL.

```go
con := azartifacts.NewConnection("<endpoint>", cred, nil)
```

## Clients

Azure Synapse artifacts modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality for the associated endpoint. Create one or more clients to access the APIs you require using your `azartifacts.Connection`.

```go
client := azartifacts.NewNotebookClient(con)
```

## Provide Feedback

If you encounter bugs or have suggestions, please
[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `Synapse` label.

# Contributing

This project welcomes contributions and suggestions. Most contributions require
you to agree to a Contributor License Agreement (CLA) declaring that you have
the right to, and actually do, grant us the rights to use your contribution.
For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).

When you submit a pull request, a CLA-bot will automatically determine whether
you need to provide a CLA and decorate the PR appropriately (e.g., label,
comment). Simply follow the instructions provided by the bot. You will only
need to do this once across all repos using our CLA.

This project has adopted the
[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information, see the
[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any
additional questions or comments.
16 changes: 16 additions & 0 deletions sdk/synapse/azartifacts/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger:
paths:
include:
- sdk/synapse/azartifacts/

pr:
paths:
include:
- sdk/synapse/azartifacts/

stages:
- template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client-samples.yml
parameters:
ServiceDirectory: 'synapse/azartifacts'

5 changes: 5 additions & 0 deletions sdk/synapse/azartifacts/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/Azure/azure-sdk-for-go/sdk/synapse/azartifacts

go 1.13

require github.com/Azure/azure-sdk-for-go/sdk/azcore v0.16.1
16 changes: 16 additions & 0 deletions sdk/synapse/azartifacts/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.16.1 h1:yQw8Ah26gBP4dv66ZNjZpRBRV+gaHH/0TLn1taU4FZ4=
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.16.1/go.mod h1:MVdrcUC4Hup35qHym3VdzoW+NBgBxrta9Vei97jRtM8=
github.com/Azure/azure-sdk-for-go/sdk/internal v0.5.1 h1:vx8McI56N5oLSQu8xa+xdiE0fjQq8W8Zt49vHP8Rygw=
github.com/Azure/azure-sdk-for-go/sdk/internal v0.5.1/go.mod h1:k4KbFSunV/+0hOHL1vyFaPsiYQ1Vmvy1TBpmtvCDLZM=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb h1:mUVeFHoDKis5nxCAzoAi7E8Ghb86EXh/RK6wtvJIqRY=
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
141 changes: 141 additions & 0 deletions sdk/synapse/azartifacts/zz_generated_bigdatapools_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions sdk/synapse/azartifacts/zz_generated_connection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4291d7a

Please sign in to comment.