azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice
Judy Liu 6cd7b60420
[Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790)
2024-11-20 17:57:39 +08:00
..
fake [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
CHANGELOG.md [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
LICENSE.txt Release sdk/resourcemanager/appservice/armappservice/0.1.0 (#16711) 2021-12-24 14:53:14 +08:00
README.md remove pkg.go.dev link in readme (#23708) 2024-11-12 22:14:23 +08:00
autorest.md [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
build.go Remove suffix .exe of pwsh.exe in any scripts and to be cross platform compatible (#18773) 2022-08-02 15:03:05 +08:00
certificateorders_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
certificateorders_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
certificateordersdiagnostics_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
certificateordersdiagnostics_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
certificateregistrationprovider_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
certificateregistrationprovider_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
certificates_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
certificates_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
ci.yml * update ci.yml for azcosmos to _pass_ the injected stage rather than calling it directly 2024-03-15 11:17:06 -07:00
client_factory.go [Release] sdk/resourcemanager/appservice/armappservice/3.0.0 (#22864) 2024-06-21 16:38:59 +08:00
constants.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
containerapps_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
containerapps_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
containerappsrevisions_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
containerappsrevisions_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
deletedwebapps_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
deletedwebapps_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
diagnostics_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
diagnostics_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
domainregistrationprovider_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
domainregistrationprovider_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
domains_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
domains_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
environments_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
environments_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
getusagesinlocation_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
getusagesinlocation_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
global_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
global_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
go.mod [Release] sdk/resourcemanager/appservice/armappservice/4.0.0 generation from spec commit: 21c2852d62ccc3abe9cc3800c989c6826f8363dc (#23296) 2024-08-21 13:56:46 +08:00
go.sum Upgrade dependencies [azp skip] 2024-07-17 15:56:28 +00:00
kubeenvironments_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
kubeenvironments_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
models.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
models_serde.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
options.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
plans_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
plans_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
provider_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
provider_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
recommendations_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
resourcehealthmetadata_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
resourcehealthmetadata_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
responses.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
staticsites_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
staticsites_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
time_rfc3339.go [Release] sdk/resourcemanager/appservice/armappservice/3.0.0 (#22864) 2024-06-21 16:38:59 +08:00
topleveldomains_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
topleveldomains_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
webapps_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
webapps_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
websitemanagement_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
websitemanagement_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowrunactionrepetitions_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowrunactionrepetitions_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowrunactionrepetitionsrequesthistories_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowrunactionrepetitionsrequesthistories_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowrunactions_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowrunactions_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowrunactionscoperepetitions_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowrunactionscoperepetitions_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowruns_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowruns_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflows_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflows_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowtriggerhistories_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowtriggerhistories_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowtriggers_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowtriggers_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowversions_client.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00
workflowversions_client_example_test.go [Release] sdk/resourcemanager/appservice/armappservice/4.1.0 generation from spec commit: d477c7caa09bf82e22c419be0a99d170552b5892 (#23790) 2024-11-20 17:57:39 +08:00

README.md

Azure App Service Module for Go

The armappservice module provides operations for working with Azure App Service.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. 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.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure App Service module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4

Authorization

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

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.

Client Factory

Azure App Service module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armappservice.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.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armappservice.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.

client := clientFactory.NewCertificateOrdersClient()

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.

More sample code

Major Version Upgrade

Go uses semantic import versioning to ensure a good backward compatibility for modules. For Azure Go management SDK, we usually upgrade module version according to cooresponding service's API version. Regarding it could be a complicated experience for major version upgrade, we will try our best to keep the SDK API stable and release new version in backward compatible way. However, if any unavoidable breaking changes and a new major version releases for SDK modules, you could use these commands under your module folder to upgrade:

go install github.com/icholy/gomajor@latest
gomajor get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute@latest

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the App Service 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.

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. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.