-
Notifications
You must be signed in to change notification settings - Fork 862
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
[Release] sdk/resourcemanager/pineconevectordb/armpineconevectordb/0.1.0 #23980
Open
jliusan
wants to merge
2
commits into
Azure:main
Choose a base branch
from
jliusan:release-pineconevectordb-armpineconevectordb-0.1.0-1737355532
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
8 changes: 8 additions & 0 deletions
8
sdk/resourcemanager/pineconevectordb/armpineconevectordb/CHANGELOG.md
This file contains 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,8 @@ | ||
# Release History | ||
|
||
## 0.1.0 (2025-01-20) | ||
### Other Changes | ||
|
||
The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/pineconevectordb/armpineconevectordb` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). | ||
|
||
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt). |
21 changes: 21 additions & 0 deletions
21
sdk/resourcemanager/pineconevectordb/armpineconevectordb/LICENSE.txt
This file contains 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
|
||
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. |
90 changes: 90 additions & 0 deletions
90
sdk/resourcemanager/pineconevectordb/armpineconevectordb/README.md
This file contains 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,90 @@ | ||
# Azure Pinecone Vectordb Module for Go | ||
|
||
The `armpineconevectordb` module provides operations for working with Azure Pinecone Vectordb. | ||
|
||
[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/pineconevectordb/armpineconevectordb) | ||
|
||
# Getting started | ||
|
||
## Prerequisites | ||
|
||
- an [Azure subscription](https://azure.microsoft.com/free/) | ||
- Go 1.18 or above (You could download and install the latest version of Go from [here](https://go.dev/doc/install). It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this [doc](https://go.dev/doc/manage-install).) | ||
|
||
## Install the package | ||
|
||
This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management. | ||
|
||
Install the Azure Pinecone Vectordb module: | ||
|
||
```sh | ||
go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/pineconevectordb/armpineconevectordb | ||
``` | ||
|
||
## Authorization | ||
|
||
When creating a client, you will need to provide a credential for authenticating with Azure Pinecone Vectordb. 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). | ||
|
||
## Client Factory | ||
|
||
Azure Pineconevectordb module consists of one or more clients. We provide a client factory which could be used to create any client in this module. | ||
|
||
```go | ||
clientFactory, err := armpineconevectordb.NewClientFactory(<subscription ID>, cred, nil) | ||
``` | ||
|
||
You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). | ||
|
||
```go | ||
options := arm.ClientOptions { | ||
ClientOptions: azcore.ClientOptions { | ||
Cloud: cloud.AzureChina, | ||
}, | ||
} | ||
clientFactory, err := armpineconevectordb.NewClientFactory(<subscription ID>, cred, &options) | ||
``` | ||
|
||
## Clients | ||
|
||
A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. | ||
|
||
```go | ||
client := clientFactory.NewOrganizationsClient() | ||
``` | ||
|
||
## Fakes | ||
|
||
The fake package contains types used for constructing in-memory fake servers used in unit tests. | ||
This allows writing tests to cover various success/error conditions without the need for connecting to a live service. | ||
|
||
Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. | ||
|
||
## 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 `Pineconevectordb` 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 [[email protected]](mailto:[email protected]) with any | ||
additional questions or comments. |
28 changes: 28 additions & 0 deletions
28
sdk/resourcemanager/pineconevectordb/armpineconevectordb/ci.yml
This file contains 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,28 @@ | ||
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. | ||
trigger: | ||
branches: | ||
include: | ||
- main | ||
- feature/* | ||
- hotfix/* | ||
- release/* | ||
paths: | ||
include: | ||
- sdk/resourcemanager/pineconevectordb/armpineconevectordb/ | ||
|
||
pr: | ||
branches: | ||
include: | ||
- main | ||
- feature/* | ||
- hotfix/* | ||
- release/* | ||
paths: | ||
include: | ||
- sdk/resourcemanager/pineconevectordb/armpineconevectordb/ | ||
|
||
extends: | ||
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
parameters: | ||
IncludeRelease: true | ||
ServiceDirectory: 'resourcemanager/pineconevectordb/armpineconevectordb' |
48 changes: 48 additions & 0 deletions
48
sdk/resourcemanager/pineconevectordb/armpineconevectordb/client_factory.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
180 changes: 180 additions & 0 deletions
180
sdk/resourcemanager/pineconevectordb/armpineconevectordb/constants.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.
Is there needed to be add 'UsePipelineProxy: false' according the release guideline? https://github.com/jliusan/azure-sdk-for-go/blob/sdk-release-guideline/documentation/go-mgmt-sdk-release-guideline.md
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.
template in generator tool has not added this line. this line only affects live test. @jliusan please add this line to the ci config.