forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
CodeGen from PR 32207 in Azure/azure-rest-api-specs
Merge 616d8461b48f899522b59669cbb30577c7a677d0 into 668d0dcdf4aaa83322ed1ebc51ec44cad0bf23eb
SDKAuto
committed
Jan 17, 2025
1 parent
af2aacb
commit 7297e67
Showing
112 changed files
with
14,129 additions
and
2,058 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
sdk/resourcemanager/kubernetesconfiguration/armextensions/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 | ||
|
||
## 1.0.0 (2025-01-17) | ||
### Other Changes | ||
|
||
The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armextensions` 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/kubernetesconfiguration/armextensions/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/kubernetesconfiguration/armextensions/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 Kubernetesconfiguration Module for Go | ||
|
||
The `armextensions` module provides operations for working with Azure Kubernetesconfiguration. | ||
|
||
[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/kubernetesconfiguration/armextensions) | ||
|
||
# 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 Kubernetesconfiguration module: | ||
|
||
```sh | ||
go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armextensions | ||
``` | ||
|
||
## Authorization | ||
|
||
When creating a client, you will need to provide a credential for authenticating with Azure Kubernetesconfiguration. 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 Kubernetesconfiguration 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 := armextensions.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 := armextensions.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.NewClient() | ||
``` | ||
|
||
## 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 `Kubernetesconfiguration` 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. |
13 changes: 13 additions & 0 deletions
13
sdk/resourcemanager/kubernetesconfiguration/armextensions/autorest.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,13 @@ | ||
### AutoRest Configuration | ||
|
||
> see https://aka.ms/autorest | ||
``` yaml | ||
azure-arm: true | ||
require: | ||
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensions/readme.md | ||
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensions/readme.go.md | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
module-version: 1.0.0 | ||
|
||
``` |
7 changes: 7 additions & 0 deletions
7
sdk/resourcemanager/kubernetesconfiguration/armextensions/build.go
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,7 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
// This file enables 'go generate' to regenerate this specific SDK | ||
//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate -alwaysSetBodyParamRequired -removeUnreferencedTypes resourcemanager/kubernetesconfiguration/armextensions | ||
|
||
package armextensions |
28 changes: 28 additions & 0 deletions
28
sdk/resourcemanager/kubernetesconfiguration/armextensions/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/kubernetesconfiguration/armextensions/ | ||
|
||
pr: | ||
branches: | ||
include: | ||
- main | ||
- feature/* | ||
- hotfix/* | ||
- release/* | ||
paths: | ||
include: | ||
- sdk/resourcemanager/kubernetesconfiguration/armextensions/ | ||
|
||
extends: | ||
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
parameters: | ||
IncludeRelease: true | ||
ServiceDirectory: 'resourcemanager/kubernetesconfiguration/armextensions' |
487 changes: 487 additions & 0 deletions
487
sdk/resourcemanager/kubernetesconfiguration/armextensions/client.go
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
sdk/resourcemanager/kubernetesconfiguration/armextensions/client_factory.go
Oops, something went wrong.
92 changes: 92 additions & 0 deletions
92
sdk/resourcemanager/kubernetesconfiguration/armextensions/constants.go
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
sdk/resourcemanager/kubernetesconfiguration/armextensions/fake/internal.go
Oops, something went wrong.
116 changes: 116 additions & 0 deletions
116
sdk/resourcemanager/kubernetesconfiguration/armextensions/fake/operationstatus_server.go
Oops, something went wrong.
388 changes: 388 additions & 0 deletions
388
sdk/resourcemanager/kubernetesconfiguration/armextensions/fake/server.go
Large diffs are not rendered by default.
Oops, something went wrong.
82 changes: 82 additions & 0 deletions
82
sdk/resourcemanager/kubernetesconfiguration/armextensions/fake/server_factory.go
Oops, something went wrong.
110 changes: 110 additions & 0 deletions
110
sdk/resourcemanager/kubernetesconfiguration/armextensions/fake/time_rfc3339.go
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
sdk/resourcemanager/kubernetesconfiguration/armextensions/go.mod
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,11 @@ | ||
module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armextensions | ||
|
||
go 1.18 | ||
|
||
require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2 | ||
|
||
require ( | ||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.2 // indirect | ||
golang.org/x/net v0.20.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
) |
12 changes: 12 additions & 0 deletions
12
sdk/resourcemanager/kubernetesconfiguration/armextensions/go.sum
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,12 @@ | ||
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2 h1:c4k2FIYIh4xtwqrQwV0Ct1v5+ehlNXj5NI/MWVsiTkQ= | ||
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2/go.mod h1:5FDJtLEO/GxwNgUxbwrY3LP0pEoThTQJtk2oysdXHxM= | ||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.2 h1:LqbJ/WzJUwBf8UiaSzgX7aMclParm9/5Vgp+TY51uBQ= | ||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.2/go.mod h1:yInRyqWXAuaPrgI7p70+lDDgh3mlBohis29jGMISnmc= | ||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= | ||
golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= | ||
golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= | ||
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= | ||
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= | ||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= |
271 changes: 271 additions & 0 deletions
271
sdk/resourcemanager/kubernetesconfiguration/armextensions/models.go
Oops, something went wrong.
686 changes: 686 additions & 0 deletions
686
sdk/resourcemanager/kubernetesconfiguration/armextensions/models_serde.go
Large diffs are not rendered by default.
Oops, something went wrong.
129 changes: 129 additions & 0 deletions
129
sdk/resourcemanager/kubernetesconfiguration/armextensions/operationstatus_client.go
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
sdk/resourcemanager/kubernetesconfiguration/armextensions/options.go
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
sdk/resourcemanager/kubernetesconfiguration/armextensions/responses.go
Oops, something went wrong.
110 changes: 110 additions & 0 deletions
110
sdk/resourcemanager/kubernetesconfiguration/armextensions/time_rfc3339.go
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/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-17) | ||
### Other Changes | ||
|
||
The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armextensiontypes` 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/kubernetesconfiguration/armextensiontypes/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/kubernetesconfiguration/armextensiontypes/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 Kubernetesconfiguration Module for Go | ||
|
||
The `armextensiontypes` module provides operations for working with Azure Kubernetesconfiguration. | ||
|
||
[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/kubernetesconfiguration/armextensiontypes) | ||
|
||
# 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 Kubernetesconfiguration module: | ||
|
||
```sh | ||
go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armextensiontypes | ||
``` | ||
|
||
## Authorization | ||
|
||
When creating a client, you will need to provide a credential for authenticating with Azure Kubernetesconfiguration. 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 Kubernetesconfiguration 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 := armextensiontypes.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 := armextensiontypes.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.NewClient() | ||
``` | ||
|
||
## 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 `Kubernetesconfiguration` 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. |
13 changes: 13 additions & 0 deletions
13
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/autorest.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,13 @@ | ||
### AutoRest Configuration | ||
|
||
> see https://aka.ms/autorest | ||
``` yaml | ||
azure-arm: true | ||
require: | ||
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/readme.md | ||
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/extensionTypes/readme.go.md | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
module-version: 0.1.0 | ||
|
||
``` |
7 changes: 7 additions & 0 deletions
7
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/build.go
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,7 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
// This file enables 'go generate' to regenerate this specific SDK | ||
//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate -alwaysSetBodyParamRequired -removeUnreferencedTypes resourcemanager/kubernetesconfiguration/armextensiontypes | ||
|
||
package armextensiontypes |
28 changes: 28 additions & 0 deletions
28
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/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/kubernetesconfiguration/armextensiontypes/ | ||
|
||
pr: | ||
branches: | ||
include: | ||
- main | ||
- feature/* | ||
- hotfix/* | ||
- release/* | ||
paths: | ||
include: | ||
- sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/ | ||
|
||
extends: | ||
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
parameters: | ||
IncludeRelease: true | ||
ServiceDirectory: 'resourcemanager/kubernetesconfiguration/armextensiontypes' |
670 changes: 670 additions & 0 deletions
670
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/client.go
Large diffs are not rendered by default.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/client_factory.go
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/constants.go
Oops, something went wrong.
83 changes: 83 additions & 0 deletions
83
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/fake/internal.go
Oops, something went wrong.
591 changes: 591 additions & 0 deletions
591
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/fake/server.go
Large diffs are not rendered by default.
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/fake/server_factory.go
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/go.mod
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,11 @@ | ||
module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armextensiontypes | ||
|
||
go 1.18 | ||
|
||
require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2 | ||
|
||
require ( | ||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.2 // indirect | ||
golang.org/x/net v0.20.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
) |
12 changes: 12 additions & 0 deletions
12
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/go.sum
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,12 @@ | ||
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2 h1:c4k2FIYIh4xtwqrQwV0Ct1v5+ehlNXj5NI/MWVsiTkQ= | ||
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2/go.mod h1:5FDJtLEO/GxwNgUxbwrY3LP0pEoThTQJtk2oysdXHxM= | ||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.2 h1:LqbJ/WzJUwBf8UiaSzgX7aMclParm9/5Vgp+TY51uBQ= | ||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.2/go.mod h1:yInRyqWXAuaPrgI7p70+lDDgh3mlBohis29jGMISnmc= | ||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= | ||
golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= | ||
golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= | ||
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= | ||
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= | ||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= |
154 changes: 154 additions & 0 deletions
154
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/models.go
Oops, something went wrong.
468 changes: 468 additions & 0 deletions
468
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/models_serde.go
Large diffs are not rendered by default.
Oops, something went wrong.
89 changes: 89 additions & 0 deletions
89
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/options.go
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
sdk/resourcemanager/kubernetesconfiguration/armextensiontypes/responses.go
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations/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 | ||
|
||
## 1.0.0 (2025-01-17) | ||
### Other Changes | ||
|
||
The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations` 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/kubernetesconfiguration/armfluxconfigurations/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/kubernetesconfiguration/armfluxconfigurations/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 Kubernetesconfiguration Module for Go | ||
|
||
The `armfluxconfigurations` module provides operations for working with Azure Kubernetesconfiguration. | ||
|
||
[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations) | ||
|
||
# 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 Kubernetesconfiguration module: | ||
|
||
```sh | ||
go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations | ||
``` | ||
|
||
## Authorization | ||
|
||
When creating a client, you will need to provide a credential for authenticating with Azure Kubernetesconfiguration. 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 Kubernetesconfiguration 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 := armfluxconfigurations.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 := armfluxconfigurations.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.NewClient() | ||
``` | ||
|
||
## 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 `Kubernetesconfiguration` 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. |
13 changes: 13 additions & 0 deletions
13
sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations/autorest.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,13 @@ | ||
### AutoRest Configuration | ||
|
||
> see https://aka.ms/autorest | ||
``` yaml | ||
azure-arm: true | ||
require: | ||
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/fluxConfigurations/readme.md | ||
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/fluxConfigurations/readme.go.md | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
module-version: 1.0.0 | ||
|
||
``` |
7 changes: 7 additions & 0 deletions
7
sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations/build.go
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,7 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
// This file enables 'go generate' to regenerate this specific SDK | ||
//go:generate pwsh ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate -alwaysSetBodyParamRequired -removeUnreferencedTypes resourcemanager/kubernetesconfiguration/armfluxconfigurations | ||
|
||
package armfluxconfigurations |
28 changes: 28 additions & 0 deletions
28
sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations/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/kubernetesconfiguration/armfluxconfigurations/ | ||
|
||
pr: | ||
branches: | ||
include: | ||
- main | ||
- feature/* | ||
- hotfix/* | ||
- release/* | ||
paths: | ||
include: | ||
- sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations/ | ||
|
||
extends: | ||
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
parameters: | ||
IncludeRelease: true | ||
ServiceDirectory: 'resourcemanager/kubernetesconfiguration/armfluxconfigurations' |
489 changes: 489 additions & 0 deletions
489
sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations/client.go
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations/client_factory.go
Oops, something went wrong.
151 changes: 151 additions & 0 deletions
151
sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations/constants.go
Oops, something went wrong.
116 changes: 116 additions & 0 deletions
116
...er/kubernetesconfiguration/armfluxconfigurations/fake/fluxconfigoperationstatus_server.go
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
sdk/resourcemanager/kubernetesconfiguration/armfluxconfigurations/fake/internal.go
Oops, something went wrong.
Oops, something went wrong.