environments

package
v0.20230204.1200350 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2023 License: MPL-2.0 Imports: 5 Imported by: 11,659

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PublishedApis = map[string]string{}/* 106 elements not displayed */

PublishedApis is a map containing Application IDs for well known APIs published by Microsoft. They can be used to acquire access tokens, but are primarily described here for easy inclusion in application manifests and service principal assignments.

Functions

func Resource

func Resource(endpoint Api) (*string, error)

func Scope

func Scope(endpoint Api) (*string, error)

Types

type Api

type Api interface {
	DomainSuffix() (*string, bool)
	Endpoint() (*string, bool)
	MicrosoftGraphAppId() (*string, bool)
	Name() string
	ResourceIdentifier() (*string, bool)
}

func ApiManagementAPI

func ApiManagementAPI(domainSuffix string) Api

func CDNFrontDoorAPI

func CDNFrontDoorAPI(domainSuffix string) Api

func ContainerRegistryAPI

func ContainerRegistryAPI(domainSuffix string) Api

func CosmosDBAPI

func CosmosDBAPI(domainSuffix string) Api

func DataLakeAPI

func DataLakeAPI(domainSuffix string) Api

func ManagedHSMAPI

func ManagedHSMAPI(endpoint, domainSuffix string) Api

func ResourceManagerAPI

func ResourceManagerAPI(endpoint string) Api

func ServiceBusAPI

func ServiceBusAPI(endpoint, domainSuffix string) Api

func StorageAPI

func StorageAPI(domainSuffix string) Api

func StorageSyncAPI

func StorageSyncAPI(domainSuffix string) Api

func TrafficManagerAPI

func TrafficManagerAPI(domainSuffix string) Api

type ApiEndpoint

type ApiEndpoint struct {
	// contains filtered or unexported fields
}

func BatchAPI

func BatchAPI(endpoint string) *ApiEndpoint

func KeyVaultAPI

func KeyVaultAPI(domainSuffix string) *ApiEndpoint

func MariaDBAPI

func MariaDBAPI(domainSuffix string) *ApiEndpoint

func MicrosoftGraphAPI

func MicrosoftGraphAPI(endpoint string) *ApiEndpoint

func MySqlAPI

func MySqlAPI(domainSuffix string) *ApiEndpoint

func NewApiEndpoint

func NewApiEndpoint(name, endpoint string, microsoftGraphAppId *string) *ApiEndpoint

func OperationalInsightsAPI

func OperationalInsightsAPI() *ApiEndpoint

func PostgresqlAPI

func PostgresqlAPI(domainSuffix string) *ApiEndpoint

func SqlAPI

func SqlAPI(domainSuffix string) *ApiEndpoint

func SynapseAPI

func SynapseAPI(domainSuffix string) *ApiEndpoint

func (*ApiEndpoint) DomainSuffix

func (e *ApiEndpoint) DomainSuffix() (*string, bool)

func (*ApiEndpoint) Endpoint

func (e *ApiEndpoint) Endpoint() (*string, bool)

func (*ApiEndpoint) MicrosoftGraphAppId

func (e *ApiEndpoint) MicrosoftGraphAppId() (*string, bool)

func (*ApiEndpoint) Name

func (e *ApiEndpoint) Name() string

func (*ApiEndpoint) ResourceIdentifier

func (e *ApiEndpoint) ResourceIdentifier() (*string, bool)

type Authorization

type Authorization struct {
	Audiences     []string
	LoginEndpoint string
}

type Environment

type Environment struct {
	Name string

	Authorization   *Authorization
	MicrosoftGraph  Api
	ResourceManager Api

	AnalysisServices                  Api
	ApiManagement                     Api
	AppConfiguration                  Api
	ApplicationInsights               Api
	AppService                        Api
	Attestation                       Api
	AzureADIdentityGovernanceInsights Api
	AzureADIntegratedApp              Api
	AzureADNotification               Api
	AzureCLI                          Api
	AzureDevOps                       Api
	AzureVPN                          Api
	Batch                             Api
	Bing                              Api
	BotFrameworkDevPortal             Api
	BranchConnectWebService           Api
	CDNFrontDoor                      Api
	Cognitive                         Api
	ComputeRecommendations            Api
	ContainerRegistry                 Api
	Connections                       Api
	CortanaAtWork                     Api
	CortanaAtWorkBing                 Api
	CortanaRuntime                    Api
	CosmosDB                          Api
	CustomerInsights                  Api
	DataBricks                        Api
	DataCatalog                       Api
	DataLake                          Api
	DataMigrations                    Api
	DigitalTwins                      Api
	DomainController                  Api
	Dynamic365BusinessCentral         Api
	Dynamics365DataExportService      Api
	DynamicsCRM                       Api
	DynamicsERP                       Api
	EventHubs                         Api
	Flow                              Api
	GraphConnector                    Api
	HDInsight                         Api
	HealthCare                        Api
	IamSupportability                 Api
	ImportExport                      Api
	InformationProtectionSyncService  Api
	InTune                            Api
	IoTCentral                        Api
	IoTHubDeviceProvisioning          Api
	KeyVault                          Api
	KubernetesServiceAADServer        Api
	Kusto                             Api
	KustoMFA                          Api
	LogAnalytics                      Api
	ManagedHSM                        Api
	Maps                              Api
	MariaDB                           Api
	MediaServices                     Api
	Microsoft365DataAtRestEncryption  Api
	MicrosoftInvoicing                Api
	MileIqAdminCenter                 Api
	MileIqDashboard                   Api
	MileIqRestService                 Api
	MixedReality                      Api
	MySql                             Api
	Office365Connectors               Api
	Office365Demeter                  Api
	Office365DwEngineV2               Api
	Office365ExchangeOnline           Api
	Office365ExchangeOnlineProtection Api
	Office365InformationProtection    Api
	Office365Management               Api
	Office365Portal                   Api
	Office365SharePointOnline         Api
	Office365Zoom                     Api
	OneNote                           Api
	OneProfile                        Api
	OperationalInsights               Api
	OSSRDMBS                          Api
	PeopleCards                       Api
	PolicyAdministration              Api
	Portal                            Api
	Postgresql                        Api
	PowerAppsRuntime                  Api
	PowerAppsRuntimeService           Api
	PowerBiService                    Api
	Purview                           Api
	RightsManagement                  Api
	SecurityInsights                  Api
	ServiceBus                        Api
	ServiceDeploy                     Api
	ServiceTrust                      Api
	SkypeForBusinessOnline            Api
	Signup                            Api
	SpeechRecognition                 Api
	Sql                               Api
	StackHCI                          Api
	StreamAnalytics                   Api
	Storage                           Api
	StorageSync                       Api
	Synapse                           Api
	SynapseGateway                    Api
	SynapseStudio                     Api
	TargetedMessaging                 Api
	TimeSeriesInsights                Api
	Teams                             Api
	ThreatProtection                  Api
	TrafficManager                    Api
	UniversalPrint                    Api
	WindowsDefenderATP                Api
	WindowsVirtualDesktop             Api
	Yammer                            Api
}

func AzureChina

func AzureChina() *Environment

func AzurePublic

func AzurePublic() *Environment

func AzurePublicCanary

func AzurePublicCanary() *Environment

func AzureUSGovernment

func AzureUSGovernment() *Environment

func AzureUSGovernmentL5

func AzureUSGovernmentL5() *Environment

func FromEndpoint

func FromEndpoint(ctx context.Context, endpoint, name string) (*Environment, error)

FromEndpoint attempts to load an environment from the given Endpoint.

func FromName

func FromName(name string) (*Environment, error)

func (*Environment) RefreshMetaDataFromEndpoint

func (e *Environment) RefreshMetaDataFromEndpoint(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL