1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-12 14:23:24 +00:00

Compare commits

..

26 Commits

Author SHA1 Message Date
Nick Craig-Wood
87d64e7fb4 mount: use the equivalent of kernel_cache by default #FIXME WIP 2018-07-11 14:56:17 +01:00
Nick Craig-Wood
793f594b07 gcs: fix index out of range error with --fast-list fixes #2388 2018-07-09 17:00:52 +01:00
Nick Craig-Wood
4fe6614ae1 s3: fix index out of range error with --fast-list fixes #2388 2018-07-09 17:00:52 +01:00
Nick Craig-Wood
4c2fbf9b36 Add Jasper Lievisse Adriaanse to contributors 2018-07-08 11:01:56 +01:00
Jasper Lievisse Adriaanse
ed4f1b2936 sftp: fix typo in help text 2018-07-08 11:01:35 +01:00
Nick Craig-Wood
144c1a04d4 fs: Fix parsing of paths under Windows - fixes #2353
Before this copyto would parse windows paths incorrectly.

This change moves the parsing code into fspath and makes sure
fspath.Split calls fspath.Parse which does the parsing correctly for

This also renames fspath.RemoteParse to fspath.Parse for consistency
2018-07-06 23:16:43 +01:00
Nick Craig-Wood
25ec7f5c00 Add Onno Zweers to contributors 2018-07-05 10:05:24 +01:00
Onno Zweers
b15603d5ea webdav: document dCache and Macaroons 2018-07-05 10:04:57 +01:00
Nick Craig-Wood
71c974bf9a azureblob: documentation for authentication methods 2018-07-05 09:39:06 +01:00
Nick Craig-Wood
03c5b8232e Update github.com/Azure/azure-sdk-for-go #2118
This pulls in https://github.com/Azure/azure-sdk-for-go/issues/2119
which fixes the SAS URL support.
2018-07-04 09:25:13 +01:00
Nick Craig-Wood
72392a2d72 azureblob: list the container to see if it exists #2118
This means that SAS URLs which are tied to a single container will work.
2018-07-04 09:23:00 +01:00
Nick Craig-Wood
b062ae9d13 azureblob: add connection string and SAS URL auth - fixes #2118 2018-07-04 09:22:59 +01:00
Nick Craig-Wood
8c0335a176 build: fix for goimports format change
See https://github.com/golang/go/issues/23709
2018-07-03 22:33:15 +01:00
Nick Craig-Wood
794e55de27 mega: wait for events instead of arbitrary sleeping 2018-07-02 14:50:09 +01:00
Nick Craig-Wood
038ed1aaf0 vendor: update github.com/t3rm1n4l/go-mega - fixes #2366
This update fixes files being missing from mega directory listings.
2018-07-02 14:50:09 +01:00
Nick Craig-Wood
97beff5370 build: keep track of compile failures better in cross-compile 2018-07-02 10:09:18 +01:00
Nick Craig-Wood
b9b9bce0db ftp: fix Put mkParentDir failed: 521 for BunnyCDN - fixes #2363
According to RFC 959, error 521 is the correct error return to mean
"dir already exists", so add support for this.
2018-06-30 14:29:47 +01:00
Nick Craig-Wood
947e10eb2b config: fix error reading password from piped input - fixes #1308 2018-06-28 11:54:15 +01:00
Nick Craig-Wood
6b42421374 build: build macOS beta releases with native compiler on travis #2309 2018-06-26 09:39:44 +01:00
Nick Craig-Wood
fa051ff970 webdav: add bearer token (Macaroon) support for dCache - fixes #2360 2018-06-25 17:54:36 +01:00
Nick Craig-Wood
69164b3dda build: move non master beta builds into branch subdirectory 2018-06-25 16:49:04 +01:00
Nick Craig-Wood
935533e57f filter: raise --include and --exclude warning to ERROR so it appears without -v 2018-06-22 22:18:55 +01:00
Nick Craig-Wood
1550f70865 webdav: Don't accept redirects when reading metadata #2350
Go can't redirect PROPFIND requests properly, it changes the method to
GET, so we disable redirects when reading the metadata and assume the
object does not exist if we receive a redirect.

This is to work-around the qnap redirecting requests for directories
without /.
2018-06-18 12:22:13 +01:00
Nick Craig-Wood
1a65c3a740 rest: add NoRedirect flag to Options 2018-06-18 12:21:50 +01:00
Nick Craig-Wood
a29a1de43d webdav: if root ends with / then don't check if it is a file 2018-06-18 12:13:47 +01:00
Nick Craig-Wood
e7ae5e8ee0 webdav: ensure we call MKCOL with a URL with a trailing / #2350
This is an attempt to fix rclone and qnap interop.
2018-06-18 11:16:58 +01:00
621 changed files with 270274 additions and 6087 deletions

View File

@@ -47,4 +47,4 @@ deploy:
on:
all_branches: true
go: "1.10.1"
condition: $TRAVIS_OS_NAME == linux && $TRAVIS_PULL_REQUEST == false
condition: $TRAVIS_PULL_REQUEST == false

10
Gopkg.lock generated
View File

@@ -23,8 +23,8 @@
"storage",
"version"
]
revision = "cd93ccfe0395e70031704ca68f14606588eec120"
version = "v17.3.0"
revision = "fbe7db0e3f9793ba3e5704efbab84f51436c136e"
version = "v18.0.0"
[[projects]]
name = "github.com/Azure/go-autorest"
@@ -34,8 +34,8 @@
"autorest/azure",
"autorest/date"
]
revision = "f04d503958a4fe854c1b41667c73f8813c9dd9c3"
version = "v10.11.2"
revision = "1f7cd6cfe0adea687ad44a512dfe76140f804318"
version = "v10.12.0"
[[projects]]
branch = "master"
@@ -331,7 +331,7 @@
branch = "master"
name = "github.com/t3rm1n4l/go-mega"
packages = ["."]
revision = "3ba49835f4db01d6329782cbdc7a0a8bb3a26c5f"
revision = "57978a63bd3f91fa7e188b751a7e7e6dd4e33813"
[[projects]]
branch = "master"

View File

@@ -1,12 +1,22 @@
SHELL = bash
TAG := $(shell echo $$(git describe --abbrev=8 --tags)-$${APPVEYOR_REPO_BRANCH:-$${TRAVIS_BRANCH:-$$(git rev-parse --abbrev-ref HEAD)}} | sed 's/-\([0-9]\)-/-00\1-/; s/-\([0-9][0-9]\)-/-0\1-/; s/-\(HEAD\|master\)$$//')
BRANCH := $(or $(APPVEYOR_REPO_BRANCH),$(TRAVIS_BRANCH),$(shell git rev-parse --abbrev-ref HEAD))
TAG_BRANCH := -$(BRANCH)
BRANCH_PATH := branch/
ifeq ($(subst HEAD,,$(subst master,,$(BRANCH))),)
TAG_BRANCH :=
BRANCH_PATH :=
endif
TAG := $(shell echo $$(git describe --abbrev=8 --tags | sed 's/-\([0-9]\)-/-00\1-/; s/-\([0-9][0-9]\)-/-0\1-/'))$(TAG_BRANCH)
LAST_TAG := $(shell git describe --tags --abbrev=0)
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)')
GO_VERSION := $(shell go version)
GO_FILES := $(shell go list ./... | grep -v /vendor/ )
# Run full tests if go >= go1.9
FULL_TESTS := $(shell go version | perl -lne 'print "go$$1.$$2" if /go(\d+)\.(\d+)/ && ($$1 > 1 || $$2 >= 9)')
BETA_URL := https://beta.rclone.org/$(TAG)/
BETA_PATH := $(BRANCH_PATH)$(TAG)
BETA_URL := https://beta.rclone.org/$(BETA_PATH)/
BETA_UPLOAD_ROOT := memstore:beta-rclone-org
BETA_UPLOAD := $(BETA_UPLOAD_ROOT)/$(BETA_PATH)
# Pass in GOTAGS=xyz on the make command line to set build tags
ifdef GOTAGS
BUILDTAGS=-tags "$(GOTAGS)"
@@ -21,6 +31,7 @@ rclone:
vars:
@echo SHELL="'$(SHELL)'"
@echo BRANCH="'$(BRANCH)'"
@echo TAG="'$(TAG)'"
@echo LAST_TAG="'$(LAST_TAG)'"
@echo NEW_TAG="'$(NEW_TAG)'"
@@ -160,25 +171,32 @@ else
endif
appveyor_upload:
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ memstore:beta-rclone-org/$(TAG)
ifeq ($(APPVEYOR_REPO_BRANCH),master)
rclone --config bin/travis.rclone.conf -v copy --include '*beta-latest*' --include version.txt build/ memstore:beta-rclone-org
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ $(BETA_UPLOAD)
ifndef BRANCH_PATH
rclone --config bin/travis.rclone.conf -v copy --include '*beta-latest*' --include version.txt build/ $(BETA_UPLOAD_ROOT)
endif
@echo Beta release ready at $(BETA_URL)
BUILD_FLAGS := -exclude "^(windows|darwin)/"
ifeq ($(TRAVIS_OS_NAME),osx)
BUILD_FLAGS := -include "^darwin/" -cgo
endif
travis_beta:
ifeq ($(TRAVIS_OS_NAME),linux)
go run bin/get-github-release.go -extract nfpm goreleaser/nfpm 'nfpm_.*_Linux_x86_64.tar.gz'
endif
git log $(LAST_TAG).. > /tmp/git-log.txt
go run bin/cross-compile.go -release beta-latest -git-log /tmp/git-log.txt -exclude "^windows/" -parallel 8 $(BUILDTAGS) $(TAG)β
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ memstore:beta-rclone-org/$(TAG)
ifeq ($(TRAVIS_BRANCH),master)
rclone --config bin/travis.rclone.conf -v copy --include '*beta-latest*' --include version.txt build/ memstore:beta-rclone-org
go run bin/cross-compile.go -release beta-latest -git-log /tmp/git-log.txt $(BUILD_FLAGS) -parallel 8 $(BUILDTAGS) $(TAG)β
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ $(BETA_UPLOAD)
ifndef BRANCH_PATH
rclone --config bin/travis.rclone.conf -v copy --include '*beta-latest*' --include version.txt build/ $(BETA_UPLOAD_ROOT)
endif
@echo Beta release ready at $(BETA_URL)
# Fetch the windows builds from appveyor
fetch_windows:
rclone -v copy --include 'rclone-v*-windows-*.zip' memstore:beta-rclone-org/$(TAG) build/
rclone -v copy --include 'rclone-v*-windows-*.zip' $(BETA_UPLOAD) build/
-#cp -av build/rclone-v*-windows-386.zip build/rclone-current-windows-386.zip
-#cp -av build/rclone-v*-windows-amd64.zip build/rclone-current-windows-amd64.zip
md5sum build/rclone-*-windows-*.zip | sort

View File

@@ -194,15 +194,19 @@ func NewFs(name, root string) (fs.Fs, error) {
sasURL := config.FileGet(name, "sas_url")
endpoint := config.FileGet(name, "endpoint", storage.DefaultBaseURL)
var client storage.Client
var (
oclient storage.Client
client = &oclient
cc *storage.Container
)
switch {
case account != "" && key != "":
client, err = storage.NewClient(account, key, endpoint, apiVersion, true)
oclient, err = storage.NewClient(account, key, endpoint, apiVersion, true)
if err != nil {
return nil, errors.Wrap(err, "failed to make azure storage client from account/key")
}
case connectionString != "":
client, err = storage.NewClientFromConnectionString(connectionString)
oclient, err = storage.NewClientFromConnectionString(connectionString)
if err != nil {
return nil, errors.Wrap(err, "failed to make azure storage client from connection string")
}
@@ -211,16 +215,19 @@ func NewFs(name, root string) (fs.Fs, error) {
if err != nil {
return nil, errors.Wrapf(err, "failed to parse SAS URL")
}
container, err := storage.GetContainerReferenceFromSASURI(*URL)
cc, err = storage.GetContainerReferenceFromSASURI(*URL)
if err != nil {
return nil, errors.Wrapf(err, "failed to make azure storage client from SAS URL")
}
client = *container.Client()
client = cc.Client()
default:
return nil, errors.New("Need account+key or connectionString or sasURL")
}
client.HTTPClient = fshttp.NewClient(fs.Config)
bc := client.GetBlobService()
if cc == nil {
cc = bc.GetContainerReference(container)
}
f := &Fs{
name: name,
@@ -229,7 +236,7 @@ func NewFs(name, root string) (fs.Fs, error) {
account: account,
endpoint: endpoint,
bc: &bc,
cc: bc.GetContainerReference(container),
cc: cc,
pacer: pacer.New().SetMinSleep(minSleep).SetMaxSleep(maxSleep).SetDecayConstant(decayConstant),
uploadToken: pacer.NewTokenDispenser(fs.Config.Transfers),
}
@@ -566,10 +573,19 @@ func (f *Fs) Mkdir(dir string) error {
if f.containerOK {
return nil
}
// List the container to see if it exists
err := f.list("", false, 1, func(remote string, object *storage.Blob, isDirectory bool) error {
return nil
})
if err == nil {
f.markContainerOK()
return nil
}
// now try to create the container
options := storage.CreateContainerOptions{
Access: storage.ContainerAccessTypePrivate,
}
err := f.pacer.Call(func() (bool, error) {
err = f.pacer.Call(func() (bool, error) {
err := f.cc.Create(&options)
if err != nil {
if storageErr, ok := err.(storage.AzureStorageServiceError); ok {

View File

@@ -480,6 +480,8 @@ func (f *Fs) mkdir(abspath string) error {
switch errX.Code {
case ftp.StatusFileUnavailable: // dir already exists: see issue #2181
err = nil
case 521: // dir already exists: error number according to RFC 959: issue #2363
err = nil
}
}
return err

View File

@@ -480,7 +480,7 @@ func (f *Fs) list(dir string, recurse bool, fn listFn) (err error) {
remote := object.Name[rootLength:]
// is this a directory marker?
if (strings.HasSuffix(remote, "/") || remote == "") && object.Size == 0 {
if recurse {
if recurse && remote != "" {
// add a directory in if --fast-list since will have no prefixes
err = fn(remote[:len(remote)-1], object, true)
if err != nil {

View File

@@ -38,6 +38,7 @@ import (
const (
minSleep = 10 * time.Millisecond
maxSleep = 2 * time.Second
eventWaitTime = 500 * time.Millisecond
decayConstant = 2 // bigger for slower decay, exponential
useTrash = true // FIXME make configurable - rclone global
)
@@ -570,6 +571,8 @@ func (f *Fs) purgeCheck(dir string, check bool) error {
}
}
waitEvent := f.srv.WaitEventsStart()
err = f.deleteNode(dirNode)
if err != nil {
return errors.Wrap(err, "delete directory node failed")
@@ -579,7 +582,8 @@ func (f *Fs) purgeCheck(dir string, check bool) error {
if dirNode == rootNode {
f.clearRoot()
}
time.Sleep(100 * time.Millisecond) // FIXME give the callback a chance
f.srv.WaitEvents(waitEvent, eventWaitTime)
return nil
}
@@ -653,6 +657,8 @@ func (f *Fs) move(dstRemote string, srcFs *Fs, srcRemote string, info *mega.Node
}
}
waitEvent := f.srv.WaitEventsStart()
// rename the object if required
if srcLeaf != dstLeaf {
//log.Printf("rename %q to %q", srcLeaf, dstLeaf)
@@ -665,7 +671,8 @@ func (f *Fs) move(dstRemote string, srcFs *Fs, srcRemote string, info *mega.Node
}
}
time.Sleep(100 * time.Millisecond) // FIXME give events a chance...
f.srv.WaitEvents(waitEvent, eventWaitTime)
return nil
}

View File

@@ -864,7 +864,7 @@ func (f *Fs) list(dir string, recurse bool, fn listFn) error {
remote := key[rootLength:]
// is this a directory marker?
if (strings.HasSuffix(remote, "/") || remote == "") && *object.Size == 0 {
if recurse {
if recurse && remote != "" {
// add a directory in if --fast-list since will have no prefixes
remote = remote[:len(remote)-1]
err = fn(remote, &s3.Object{Key: &remote}, true)

View File

@@ -76,7 +76,7 @@ func init() {
Optional: true,
}, {
Name: "use_insecure_cipher",
Help: "Enable the user of the aes128-cbc cipher. This cipher is insecure and may allow plaintext data to be recovered by an attacker.",
Help: "Enable the use of the aes128-cbc cipher. This cipher is insecure and may allow plaintext data to be recovered by an attacker.",
Optional: true,
Examples: []fs.OptionExample{
{

View File

@@ -87,6 +87,10 @@ func init() {
Help: "Password.",
Optional: true,
IsPassword: true,
}, {
Name: "bearer_token",
Help: "Bearer token instead of user/pass (eg a Macaroon)",
Optional: true,
}},
})
}
@@ -182,6 +186,7 @@ func (f *Fs) readMetaDataForPath(path string) (info *api.Prop, err error) {
ExtraHeaders: map[string]string{
"Depth": "1",
},
NoRedirect: true,
}
var result api.Multistatus
var resp *http.Response
@@ -191,7 +196,13 @@ func (f *Fs) readMetaDataForPath(path string) (info *api.Prop, err error) {
})
if apiErr, ok := err.(*api.Error); ok {
// does not exist
if apiErr.StatusCode == http.StatusNotFound {
switch apiErr.StatusCode {
case http.StatusNotFound:
return nil, fs.ErrorObjectNotFound
case http.StatusMovedPermanently, http.StatusFound, http.StatusSeeOther:
// Some sort of redirect - go doesn't deal with these properly (it resets
// the method to GET). However we can assume that if it was redirected the
// object was not found.
return nil, fs.ErrorObjectNotFound
}
}
@@ -258,10 +269,12 @@ func NewFs(name, root string) (fs.Fs, error) {
if !strings.HasSuffix(endpoint, "/") {
endpoint += "/"
}
rootIsDir := strings.HasSuffix(root, "/")
root = strings.Trim(root, "/")
user := config.FileGet(name, "user")
pass := config.FileGet(name, "pass")
bearerToken := config.FileGet(name, "bearer_token")
if pass != "" {
var err error
pass, err = obscure.Reveal(pass)
@@ -282,7 +295,7 @@ func NewFs(name, root string) (fs.Fs, error) {
root: root,
endpoint: u,
endpointURL: u.String(),
srv: rest.NewClient(fshttp.NewClient(fs.Config)).SetRoot(u.String()).SetUserPass(user, pass),
srv: rest.NewClient(fshttp.NewClient(fs.Config)).SetRoot(u.String()),
pacer: pacer.New().SetMinSleep(minSleep).SetMaxSleep(maxSleep).SetDecayConstant(decayConstant),
user: user,
pass: pass,
@@ -291,13 +304,18 @@ func NewFs(name, root string) (fs.Fs, error) {
f.features = (&fs.Features{
CanHaveEmptyDirectories: true,
}).Fill(f)
if user != "" || pass != "" {
f.srv.SetUserPass(user, pass)
} else if bearerToken != "" {
f.srv.SetHeader("Authorization", "BEARER "+bearerToken)
}
f.srv.SetErrorHandler(errorHandler)
err = f.setQuirks(vendor)
if err != nil {
return nil, err
}
if root != "" {
if root != "" && !rootIsDir {
// Check to see if the root actually an existing file
remote := path.Base(root)
f.root = path.Dir(root)
@@ -542,6 +560,11 @@ func (f *Fs) PutStream(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption
// mkParentDir makes the parent of the native path dirPath if
// necessary and any directories above that
func (f *Fs) mkParentDir(dirPath string) error {
// defer log.Trace(dirPath, "")("")
// chop off trailing / if it exists
if strings.HasSuffix(dirPath, "/") {
dirPath = dirPath[:len(dirPath)-1]
}
parent := path.Dir(dirPath)
if parent == "." {
parent = ""
@@ -551,10 +574,15 @@ func (f *Fs) mkParentDir(dirPath string) error {
// mkdir makes the directory and parents using native paths
func (f *Fs) mkdir(dirPath string) error {
// defer log.Trace(dirPath, "")("")
// We assume the root is already ceated
if dirPath == "" {
return nil
}
// Collections must end with /
if !strings.HasSuffix(dirPath, "/") {
dirPath += "/"
}
opts := rest.Opts{
Method: "MKCOL",
Path: dirPath,

View File

@@ -15,6 +15,7 @@ import (
"path/filepath"
"regexp"
"runtime"
"sort"
"strings"
"sync"
"text/template"
@@ -66,28 +67,33 @@ var archFlags = map[string][]string{
}
// runEnv - run a shell command with env
func runEnv(args, env []string) {
func runEnv(args, env []string) error {
if *debug {
args = append([]string{"echo"}, args...)
}
cmd := exec.Command(args[0], args[1:]...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if env != nil {
cmd.Env = append(os.Environ(), env...)
}
if *debug {
log.Printf("args = %v, env = %v\n", args, cmd.Env)
}
err := cmd.Run()
out, err := cmd.CombinedOutput()
if err != nil {
log.Fatalf("Failed to run %v: %v", args, err)
log.Print("----------------------------")
log.Printf("Failed to run %v: %v", args, err)
log.Printf("Command output was:\n%s", out)
log.Print("----------------------------")
}
return err
}
// run a shell command
func run(args ...string) {
runEnv(args, nil)
err := runEnv(args, nil)
if err != nil {
log.Fatalf("Exiting after error: %v", err)
}
}
// chdir or die
@@ -160,8 +166,8 @@ func buildDebAndRpm(dir, version, goarch string) []string {
return artifacts
}
// build the binary in dir
func compileArch(version, goos, goarch, dir string) {
// build the binary in dir returning success or failure
func compileArch(version, goos, goarch, dir string) bool {
log.Printf("Compiling %s/%s", goos, goarch)
output := filepath.Join(dir, "rclone")
if goos == "windows" {
@@ -191,7 +197,11 @@ func compileArch(version, goos, goarch, dir string) {
if flags, ok := archFlags[goarch]; ok {
env = append(env, flags...)
}
runEnv(args, env)
err = runEnv(args, env)
if err != nil {
log.Printf("Error compiling %s/%s: %v", goos, goarch, err)
return false
}
if !*compileOnly {
artifacts := []string{buildZip(dir)}
// build a .deb and .rpm if appropriate
@@ -207,6 +217,7 @@ func compileArch(version, goos, goarch, dir string) {
run("rm", "-rf", dir)
}
log.Printf("Done compiling %s/%s", goos, goarch)
return true
}
func compile(version string) {
@@ -231,6 +242,8 @@ func compile(version string) {
log.Fatalf("Bad -exclude regexp: %v", err)
}
compiled := 0
var failuresMu sync.Mutex
var failures []string
for _, osarch := range osarches {
if excludeRe.MatchString(osarch) || !includeRe.MatchString(osarch) {
continue
@@ -246,13 +259,22 @@ func compile(version string) {
}
dir := filepath.Join("rclone-" + version + "-" + userGoos + "-" + goarch)
run <- func() {
compileArch(version, goos, goarch, dir)
if !compileArch(version, goos, goarch, dir) {
failuresMu.Lock()
failures = append(failures, goos+"/"+goarch)
failuresMu.Unlock()
}
}
compiled++
}
close(run)
wg.Wait()
log.Printf("Compiled %d arches in %v", compiled, time.Since(start))
if len(failures) > 0 {
sort.Strings(failures)
log.Printf("%d compile failures:\n %s\n", len(failures), strings.Join(failures, "\n "))
os.Exit(1)
}
}
func main() {

View File

@@ -245,7 +245,7 @@ func NewFsSrcDstFiles(args []string) (fsrc fs.Fs, srcFileName string, fdst fs.Fs
// If file exists then srcFileName != "", however if the file
// doesn't exist then we assume it is a directory...
if srcFileName != "" {
dstRemote, dstFileName = fspath.RemoteSplit(dstRemote)
dstRemote, dstFileName = fspath.Split(dstRemote)
if dstRemote == "" {
dstRemote = "."
}
@@ -268,7 +268,7 @@ func NewFsSrcDstFiles(args []string) (fsrc fs.Fs, srcFileName string, fdst fs.Fs
// NewFsDstFile creates a new dst fs with a destination file name from the arguments
func NewFsDstFile(args []string) (fdst fs.Fs, dstFileName string) {
dstRemote, dstFileName := fspath.RemoteSplit(args[0])
dstRemote, dstFileName := fspath.Split(args[0])
if dstRemote == "" {
dstRemote = "."
}

View File

@@ -79,6 +79,9 @@ func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenR
resp.Flags |= fuse.OpenNonSeekable
}
// Keep the file in the cache - equivalent of kernel_cache
resp.Flags |= fuse.OpenKeepCache
return &FileHandle{handle}, nil
}

View File

@@ -16,6 +16,7 @@ import (
"github.com/ncw/rclone/vfs/vfsflags"
"github.com/spf13/cobra"
"golang.org/x/net/context" // switch to "context" when we stop supporting go1.8
"golang.org/x/net/webdav"
)

View File

@@ -169,3 +169,5 @@ Contributors
* Kasper Byrdal Nielsen <byrdal76@gmail.com>
* Benjamin Joseph Dag <bjdag1234@users.noreply.github.com>
* themylogin <themylogin@gmail.com>
* Onno Zweers <onno.zweers@surfsara.nl>
* Jasper Lievisse Adriaanse <jasper@humppa.nl>

View File

@@ -117,6 +117,39 @@ MD5 hashes are stored with blobs. However blobs that were uploaded in
chunks only have an MD5 if the source remote was capable of MD5
hashes, eg the local disk.
### Authenticating with Azure Blob Storage
Rclone has 3 ways of authenticating with Azure Blob Storage:
#### Account and Key
This is the most straight forward and least flexible way. Just fill in the `account` and `key` lines and leave the rest blank.
#### Connection string
This supports all the possible connection string variants. Leave `account`, `key` and `sas_url` blank and put the connection string into the `connection_string` configuration parameter.
Use this method if using an account level SAS; the Azure Portal shows connection strings you can cut and paste.
#### SAS URL
This only for a container level SAS URL - it does not work with an account level SAS URL. For account level SAS use the connection string method.
To use it leave `account`, `key` and `connection_string` blank and fill in `sas_url`.
To get a container level SAS URL right click on a container in the Azure Blob explorer in the Azure portal.
You will only be able to use the container specified in the SAS URL with rclone, eg
rclone ls azureblob:container
However these will not work
rclone lsd azureblob:
rclone ls azureblob:othercontainer
This would be useful for temporarily allowing third parties access to a single container or putting credentials into an untrusted environment.
### Multipart uploads ###
Rclone supports multipart uploads with Azure Blob storage. Files

View File

@@ -30,53 +30,17 @@ n/s/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
1 / Amazon Drive
\ "amazon cloud drive"
2 / Amazon S3 (also Dreamhost, Ceph, Minio)
\ "s3"
3 / Backblaze B2
\ "b2"
4 / Box
\ "box"
5 / Dropbox
\ "dropbox"
6 / Encrypt/Decrypt a remote
\ "crypt"
7 / FTP Connection
\ "ftp"
8 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
9 / Google Drive
\ "drive"
10 / Hubic
\ "hubic"
11 / Local Disk
\ "local"
12 / Microsoft Azure Blob Storage
\ "azureblob"
13 / Microsoft OneDrive
\ "onedrive"
14 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
15 / Pcloud
\ "pcloud"
16 / QingCloud Object Storage
\ "qingstor"
17 / SSH/SFTP Connection
\ "sftp"
18 / WebDAV
[snip]
22 / Webdav
\ "webdav"
19 / Yandex Disk
\ "yandex"
20 / http Connection
\ "http"
[snip]
Storage> webdav
URL of http host to connect to
Choose a number from below, or type in your own value
1 / Connect to example.com
\ "https://example.com"
url> https://example.com/remote.php/webdav/
Name of the WebDAV site/service/software you are using
Name of the Webdav site/service/software you are using
Choose a number from below, or type in your own value
1 / Nextcloud
\ "nextcloud"
@@ -98,13 +62,17 @@ Enter the password:
password:
Confirm the password:
password:
Bearer token instead of user/pass (eg a Macaroon)
bearer_token>
Remote config
--------------------
[remote]
type = webdav
url = https://example.com/remote.php/webdav/
vendor = nextcloud
user = user
pass = *** ENCRYPTED ***
bearer_token =
--------------------
y) Yes this is OK
e) Edit this remote
@@ -133,6 +101,10 @@ Owncloud or Nextcloud rclone will support modified times.
Hashes are not supported.
## Provider notes ##
See below for notes on specific providers.
### Owncloud ###
Click on the settings cog in the bottom right of the page and this
@@ -149,7 +121,7 @@ Owncloud does. This [may be
fixed](https://github.com/nextcloud/nextcloud-snap/issues/365) in the
future.
## Put.io ##
### Put.io ###
put.io can be accessed in a read only way using webdav.
@@ -174,9 +146,9 @@ mount.
For more help see [the put.io webdav docs](http://help.put.io/apps-and-integrations/ftp-and-webdav).
## Sharepoint ##
### Sharepoint ###
Can be used with Sharepoint provided by OneDrive for Business
Rclone can be used with Sharepoint provided by OneDrive for Business
or Office365 Education Accounts.
This feature is only needed for a few of these Accounts,
mostly Office365 Education ones. These accounts are sometimes not
@@ -213,4 +185,27 @@ url = https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Documents
vendor = other
user = YourEmailAddress
pass = encryptedpassword
```
```
### dCache ###
dCache is a storage system with WebDAV doors that support, beside basic and x509,
authentication with [Macaroons](https://www.dcache.org/manuals/workshop-2017-05-29-Umea/000-Final/anupam_macaroons_v02.pdf) (bearer tokens).
Configure as normal using the `other` type. Don't enter a username or
password, instead enter your Macaroon as the `bearer_token`.
The config will end up looking something like this.
```
[dcache]
type = webdav
url = https://dcache...
vendor = other
user =
pass =
bearer_token = your-macaroon
```
There is a [script](https://github.com/onnozweers/dcache-scripts/blob/master/get-share-link) that
obtains a Macaroon from a dCache WebDAV endpoint, and creates an rclone config file.

View File

@@ -30,6 +30,7 @@ import (
"github.com/ncw/rclone/fs/config/obscure"
"github.com/ncw/rclone/fs/driveletter"
"github.com/ncw/rclone/fs/fshttp"
"github.com/ncw/rclone/fs/fspath"
"github.com/pkg/errors"
"golang.org/x/crypto/nacl/secretbox"
"golang.org/x/text/unicode/norm"
@@ -865,12 +866,12 @@ func NewRemoteName() (name string) {
for {
fmt.Printf("name> ")
name = ReadLine()
parts := fs.Matcher.FindStringSubmatch(name + ":")
parts := fspath.Matcher.FindStringSubmatch(name + ":")
switch {
case name == "":
fmt.Printf("Can't use empty name.\n")
case driveletter.IsDriveLetter(name):
fmt.Printf("Can't use %q as it can be confused a drive letter.\n", name)
fmt.Printf("Can't use %q as it can be confused with a drive letter.\n", name)
case parts == nil:
fmt.Printf("Can't use %q as it has invalid characters in it.\n", name)
default:

View File

@@ -16,7 +16,11 @@ import (
// ReadPassword reads a password without echoing it to the terminal.
func ReadPassword() string {
line, err := terminal.ReadPassword(int(os.Stdin.Fd()))
stdin := int(os.Stdin.Fd())
if !terminal.IsTerminal(stdin) {
return ReadLine()
}
line, err := terminal.ReadPassword(stdin)
_, _ = fmt.Fprintln(os.Stderr)
if err != nil {
log.Fatalf("Failed to read password: %v", err)

View File

@@ -173,7 +173,7 @@ func NewFilter(opt *Opt) (f *Filter, err error) {
}
if addImplicitExclude && foundExcludeRule {
fs.Infof(nil, "Using --filter is recommended instead of both --include and --exclude as the order they are parsed in is indeterminate")
fs.Errorf(nil, "Using --filter is recommended instead of both --include and --exclude as the order they are parsed in is indeterminate")
}
for _, rule := range f.Opt.FilterRule {

View File

@@ -9,12 +9,11 @@ import (
"os"
"path/filepath"
"reflect"
"regexp"
"sort"
"strings"
"time"
"github.com/ncw/rclone/fs/driveletter"
"github.com/ncw/rclone/fs/fspath"
"github.com/ncw/rclone/fs/hash"
"github.com/pkg/errors"
)
@@ -786,24 +785,20 @@ func MustFind(name string) *RegInfo {
return fs
}
// Matcher is a pattern to match an rclone URL
var Matcher = regexp.MustCompile(`^([\w_ -]+):(.*)$`)
// ParseRemote deconstructs a path into configName, fsPath, looking up
// the fsName in the config file (returning NotFoundInConfigFile if not found)
func ParseRemote(path string) (fsInfo *RegInfo, configName, fsPath string, err error) {
parts := Matcher.FindStringSubmatch(path)
configName, fsPath = fspath.Parse(path)
var fsName string
fsName, configName, fsPath = "local", "local", path
if parts != nil && !driveletter.IsDriveLetter(parts[1]) {
configName, fsPath = parts[1], parts[2]
if configName != "" {
fsName = ConfigFileGet(configName, "type")
if fsName == "" {
return nil, "", "", ErrorNotFoundInConfigFile
}
} else {
fsName = "local"
configName = "local"
}
// change native directory separators to / if there are any
fsPath = filepath.ToSlash(fsPath)
fsInfo, err = Find(fsName)
return fsInfo, configName, fsPath, err
}

View File

@@ -3,27 +3,46 @@ package fspath
import (
"path"
"strings"
"path/filepath"
"regexp"
"github.com/ncw/rclone/fs/driveletter"
)
// RemoteSplit splits a remote into a parent and a leaf
// Matcher is a pattern to match an rclone URL
var Matcher = regexp.MustCompile(`^([\w_ -]+):(.*)$`)
// Parse deconstructs a remote path into configName and fsPath
//
// If the path is a local path then configName will be returned as "".
//
// So "remote:path/to/dir" will return "remote", "path/to/dir"
// and "/path/to/local" will return ("", "/path/to/local")
//
// Note that this will turn \ into / in the fsPath on Windows
func Parse(path string) (configName, fsPath string) {
parts := Matcher.FindStringSubmatch(path)
configName, fsPath = "", path
if parts != nil && !driveletter.IsDriveLetter(parts[1]) {
configName, fsPath = parts[1], parts[2]
}
// change native directory separators to / if there are any
fsPath = filepath.ToSlash(fsPath)
return configName, fsPath
}
// Split splits a remote into a parent and a leaf
//
// if it returns leaf as an empty string then remote is a directory
//
// if it returns parent as an empty string then that means the current directory
//
// The returned values have the property that parent + leaf == remote
func RemoteSplit(remote string) (parent string, leaf string) {
// Split remote on :
i := strings.Index(remote, ":")
remoteName := ""
remotePath := remote
if i >= 0 {
remoteName = remote[:i+1]
remotePath = remote[i+1:]
} else if strings.HasSuffix(remotePath, "/") {
// if no : and ends with / must be directory
return remotePath, ""
// (except under Windows where \ will be translated into /)
func Split(remote string) (parent string, leaf string) {
remoteName, remotePath := Parse(remote)
if remoteName != "" {
remoteName += ":"
}
// Construct new remote name without last segment
parent, leaf = path.Split(remotePath)

View File

@@ -7,8 +7,23 @@ import (
"github.com/stretchr/testify/assert"
)
func TestRemoteSplit(t *testing.T) {
func TestParse(t *testing.T) {
for _, test := range []struct {
in, wantConfigName, wantFsPath string
}{
{"", "", ""},
{"/path/to/file", "", "/path/to/file"},
{"path/to/file", "", "path/to/file"},
{"remote:path/to/file", "remote", "path/to/file"},
{"remote:/path/to/file", "remote", "/path/to/file"},
} {
gotConfigName, gotFsPath := Parse(test.in)
assert.Equal(t, test.wantConfigName, gotConfigName)
assert.Equal(t, test.wantFsPath, gotFsPath)
}
}
func TestSplit(t *testing.T) {
for _, test := range []struct {
remote, wantParent, wantLeaf string
}{
@@ -27,7 +42,7 @@ func TestRemoteSplit(t *testing.T) {
{"root/", "root/", ""},
{"a/b/", "a/b/", ""},
} {
gotParent, gotLeaf := RemoteSplit(test.remote)
gotParent, gotLeaf := Split(test.remote)
assert.Equal(t, test.wantParent, gotParent, test.remote)
assert.Equal(t, test.wantLeaf, gotLeaf, test.remote)
assert.Equal(t, test.remote, gotParent+gotLeaf, fmt.Sprintf("%s: %q + %q != %q", test.remote, gotParent, gotLeaf, test.remote))

View File

@@ -12,6 +12,7 @@ import (
"io"
"net/http"
_ "net/http/pprof" // install the pprof http handlers
"strings"
"github.com/ncw/rclone/cmd/serve/httplib"

View File

@@ -143,6 +143,7 @@ type Opts struct {
Parameters url.Values // any parameters for the final URL
TransferEncoding []string // transfer encoding, set to "identity" to disable chunked encoding
Close bool // set to close the connection after this transaction
NoRedirect bool // if this is set then the client won't follow redirects
}
// Copy creates a copy of the options
@@ -189,6 +190,15 @@ func ClientWithHeaderReset(c *http.Client, headers map[string]string) *http.Clie
return &clientCopy
}
// ClientWithNoRedirects makes a new http client which won't follow redirects
func ClientWithNoRedirects(c *http.Client) *http.Client {
clientCopy := *c
clientCopy.CheckRedirect = func(req *http.Request, via []*http.Request) error {
return http.ErrUseLastResponse
}
return &clientCopy
}
// Call makes the call and returns the http.Response
//
// if err != nil then resp.Body will need to be closed
@@ -252,7 +262,12 @@ func (api *Client) Call(opts *Opts) (resp *http.Response, err error) {
if opts.UserName != "" || opts.Password != "" {
req.SetBasicAuth(opts.UserName, opts.Password)
}
c := ClientWithHeaderReset(api.c, headers)
var c *http.Client
if opts.NoRedirect {
c = ClientWithNoRedirects(api.c)
} else {
c = ClientWithHeaderReset(api.c, headers)
}
if api.signer != nil {
err = api.signer(req)
if err != nil {

View File

@@ -12,6 +12,9 @@ env:
- DEP_VERSION="0.4.1"
- DEP_SHA=31144e465e52ffbc0035248a10ddea61a09bf28b00784fd3fdd9882c8cbb2315
- IGNORE_BREAKING_CHANGES=true
matrix:
- GOARCH="amd64"
- GOARCH="386"
matrix:
allow_failures:

View File

@@ -1,43 +1,120 @@
# CHANGELOG
## `v18.0.0`
### New Services
| Package Name | API Version |
| ----------------------: | :-------------------: |
| apimanagement | 2018-06-01-preview |
| hdinsight | 2018-06-01-preview |
| computervision | v2.0 |
| recoveryservices/backup | 2016-12-01 |
| storagedatalake | 2018-06-17 |
| devspaces | 2018-06-01-preview |
| automation | 2017-05-15-preview |
| keyvault | v7.0 <br/> 2018-02-14 |
| automation | 2018-01-preview |
| media | 2018-06-01-preview |
| datafactory | 2018-06-01 |
### Updates Services
| Package Name | API Version |
| -------------: | :--------------------------------: |
| face | v1.0 |
| luis/authoring | v2.0 |
| luis/runtime | v2.0 |
| textanalytics | v2.0 |
| eventhub | 2017-04-01 <br/>2018-01-01-preview |
| monitor | 2017-05-01-preview |
| signalr | 2018-03-01-preview |
| sql | 2017-10-01-preview |
| storage | 2018-03-01-preview <br/>2018-02-01 |
| servicebus | 2017-04-01 |
### Breaking Changes
| Package Name | API Version |
| ----------------------: | :-------------------: |
| adhybridhealthservice | 2014-01-01 |
| advisor | 2017-04-19 |
| appinsights | 2015-05-01 <br/> v1 |
| automation | 2015-10-31/automation |
| batchai | 2018-05-01/batchai |
| computervision | v1.0 |
| consumption | 2018-05-31 |
| network | 2018-04-01 |
| operationalinsights | 2015-03-20<br/>v1 |
| recoveryservices/backup | 2017-07-01 |
| reservations | 2018-06-01 |
## `v17.4.0`
### New Services
| Package Name | API Version |
| ---------------: | :---------: |
| autosuggest | v1.0 |
| containerservice | 2018-03-31 |
### Updated Services
| Package Name | API Version |
| ---------------: | :---------------------------------------: |
| consumption | 2018-05-31 |
| documentdb | 2015-04-08 |
| network | 2018-02-01<br/>2018-04-01<br/>2018-05-01 |
| notificationhubs | 2017-04-01 |
| sql | 2017-03-01-preview<br/>2017-10-01-preview |
## `v17.3.1`
### Updated Services
| Package Name | API Version |
| ------------: | :-----------------------------------------------------------------------------------: |
| network | 2017-10-01<br/>2017-11-01<br/>2018-01-01<br/>2018-02-01<br/>2018-04-01<br/>2018-05-01 |
| servicefabric | 5.6<br/>6.0<br/>6.1<br/>6.2 |
## `v17.3.0`
### New Services
| Package Name | API Version |
| --------------------: | :-----------------: |
| containerinstance | 2018-06-01 |
| reservations | 2018-06-01 |
| Package Name | API Version |
| ----------------: | :---------: |
| containerinstance | 2018-06-01 |
| reservations | 2018-06-01 |
### Updated Services
| Package Name | API Version |
| --------------------: | :-----------------: |
| datafactory | 2017-09-01 |
| network | 2015-06-15 |
| Package Name | API Version |
| -----------: | :---------: |
| datafactory | 2017-09-01 |
| network | 2015-06-15 |
## `v17.2.0`
### New Services
| Package Name | API Version |
| --------------------: | :-----------------: |
| managedapplications | 2018-06-01 |
| resources | 2018-05-01 |
| Package Name | API Version |
| ------------------: | :---------: |
| managedapplications | 2018-06-01 |
| resources | 2018-05-01 |
### Updated Services
| Package Name | API Version |
| --------------------: | :-----------------: |
| networksecuritygroup | classic |
| Package Name | API Version |
| -------------------: | :---------: |
| networksecuritygroup | classic |
## `v17.1.0`
### New Services
| Package Name | API Version |
| --------------------: | :-----------------: |
| iotcentral | 2017-07-01-privatepreview |
| Package Name | API Version |
| -----------: | :-----------------------: |
| iotcentral | 2017-07-01-privatepreview |
## `v17.0.0`
@@ -248,7 +325,7 @@
## `v16.1.0`
* Added a `NewAuthorizerFromEnvironment()` function for the keyvault service.
- Added a `NewAuthorizerFromEnvironment()` function for the keyvault service.
## `v16.0.0`
@@ -339,8 +416,8 @@
### Bug Fixes
* Drain the response body when retrying a request.
* Avoid allocating when draining a response body.
- Drain the response body when retrying a request.
- Avoid allocating when draining a response body.
## `v15.1.0`
@@ -374,14 +451,14 @@ NOTE: There is a new subdirectory, ./services/preview, which going forward will
### New Features
* Added helper func per enum type that returns a slice of all possible values for that type.
- Added helper func per enum type that returns a slice of all possible values for that type.
### Bug Fixes
* Removed the "arm-" prefix from user-agent strings as not all services are for ARM.
* Fixed missing marshaller for structs with flattened fields.
* Fixed an issue where the incorrect content MIME type was being specified.
* Marshalling of empty values for enum types now works as expected.
- Removed the "arm-" prefix from user-agent strings as not all services are for ARM.
- Fixed missing marshaller for structs with flattened fields.
- Fixed an issue where the incorrect content MIME type was being specified.
- Marshalling of empty values for enum types now works as expected.
### New Services
@@ -441,80 +518,80 @@ NOTE: There is a new subdirectory, ./services/preview, which going forward will
### New Services
* Batch 2018-03-01.6.1
* BatchAI 2018-03-01
* Cognitive services custom vision prediction v1.1
* Eventhub 2018-01-01-preview
* MySQL 2017-12-01
* PostgreSQL 2017-12-01
* Redis 2018-03-01
* Subscription 2018-03-01-preview
- Batch 2018-03-01.6.1
- BatchAI 2018-03-01
- Cognitive services custom vision prediction v1.1
- Eventhub 2018-01-01-preview
- MySQL 2017-12-01
- PostgreSQL 2017-12-01
- Redis 2018-03-01
- Subscription 2018-03-01-preview
## `v14.5.0`
### Changes
* Added new preview packages for apimanagement and dns.
- Added new preview packages for apimanagement and dns.
## `v14.4.0`
### Changes
* Added new preview API versions for mysql and postgresql.
- Added new preview API versions for mysql and postgresql.
## `v14.3.0`
### Changes
* Add exports for max file range and sizes for files in storage.
* Updated README regarding blob storage support.
* Add godoc indexer tool.
* Add apidiff tool.
- Add exports for max file range and sizes for files in storage.
- Updated README regarding blob storage support.
- Add godoc indexer tool.
- Add apidiff tool.
## `v14.2.0`
### Changes
* For blob storage, added GetProperties() method to Container.
* Added PublicAccess field to ContainerProperties struct.
- For blob storage, added GetProperties() method to Container.
- Added PublicAccess field to ContainerProperties struct.
## `v14.1.1`
* Fixing timestamp marshalling bug in the `storage` package.
* Updating `profileBuilder` to clear-output folders when it is run by `go generate`.
* Tweaking Swagger -> SDK config to use "latest" instead of "nightly" and be tied to a particular version of autorest.go.
- Fixing timestamp marshalling bug in the `storage` package.
- Updating `profileBuilder` to clear-output folders when it is run by `go generate`.
- Tweaking Swagger -> SDK config to use "latest" instead of "nightly" and be tied to a particular version of autorest.go.
## `v14.1.0`
### Changes
* Update README with details on new authentication helpers.
* Update `latest` profile to point to latest stable API versions.
* Add new API version for Azure Monitoring service and for Batch Data plane service.
- Update README with details on new authentication helpers.
- Update `latest` profile to point to latest stable API versions.
- Add new API version for Azure Monitoring service and for Batch Data plane service.
## `v14.0.2`
### Changes
* Updating `profileBuilder list` to accept an `input` flag instead of reading from `stdin`.
* Simplifying CI to have less chatter, be faster, and have no special cases.
- Updating `profileBuilder list` to accept an `input` flag instead of reading from `stdin`.
- Simplifying CI to have less chatter, be faster, and have no special cases.
## `v14.0.1`
### Changes
* Removed the ./services/search/2016-09-01/search package, it was never intended to be included and doesn't work.
- Removed the ./services/search/2016-09-01/search package, it was never intended to be included and doesn't work.
## `v14.0.0`
### Breaking Changes
* Removed the ./arm, ./datalake-store and ./dataplane directories. You can find the same packages under ./services
* The management package was moved to ./services/classic/management
* Renamed package ./services/redis/mgmt/2017-10-01/cache to ./services/redis/mgmt/2017-10-01/redis
- Removed the ./arm, ./datalake-store and ./dataplane directories. You can find the same packages under ./services
- The management package was moved to ./services/classic/management
- Renamed package ./services/redis/mgmt/2017-10-01/cache to ./services/redis/mgmt/2017-10-01/redis
### Changes
* Removed the "-beta" suffix.
* Added various new services.
* Added ./version package for centralized SDK versioning.
- Removed the "-beta" suffix.
- Added various new services.
- Added ./version package for centralized SDK versioning.

View File

@@ -12,8 +12,8 @@
"autorest/to",
"autorest/validation"
]
revision = "4de44cd533576f3c7b44dcb08dc03754d217144d"
version = "v10.9.2"
revision = "1f7cd6cfe0adea687ad44a512dfe76140f804318"
version = "v10.12.0"
[[projects]]
name = "github.com/dgrijalva/jwt-go"
@@ -34,7 +34,7 @@
"cassette",
"recorder"
]
revision = "f8a7e8b9c630b486df74145bb887793a1b85459b"
revision = "8b144be0744f013a1b44386058f1fcb3ba98177d"
[[projects]]
name = "github.com/fsnotify/fsnotify"
@@ -52,7 +52,7 @@
"internal/sasl",
"internal/scram"
]
revision = "efe0945164a7e582241f37ae8983c075f8f2e870"
revision = "113d3961e7311526535a1ef7042196563d442761"
[[projects]]
branch = "master"
@@ -77,6 +77,18 @@
revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
version = "v1.0"
[[projects]]
name = "github.com/kr/pretty"
packages = ["."]
revision = "73f6ac0b30a98e433b289500d779f50c1a6f0712"
version = "v0.1.0"
[[projects]]
name = "github.com/kr/text"
packages = ["."]
revision = "e2ffdb16a802fe2bb95e2e35ff34f0e53aeef34f"
version = "v0.1.0"
[[projects]]
name = "github.com/magiconair/properties"
packages = ["."]
@@ -105,7 +117,7 @@
branch = "master"
name = "github.com/marstr/randname"
packages = ["."]
revision = "3ef1f47af99e66171417047e6f6fa334345e95e7"
revision = "48a63b6052f1f9373db9388a658da30c6ab53db1"
[[projects]]
branch = "master"
@@ -122,8 +134,8 @@
[[projects]]
name = "github.com/pelletier/go-toml"
packages = ["."]
revision = "acdc4509485b587f5e675510c4f2c63e90ff68a8"
version = "v1.1.0"
revision = "c01d1270ff3e442a8a57cddc1c92dc1138598194"
version = "v1.2.0"
[[projects]]
name = "github.com/satori/go.uuid"
@@ -143,8 +155,8 @@
".",
"mem"
]
revision = "63644898a8da0bc22138abf860edaf5277b6102e"
version = "v1.1.0"
revision = "787d034dfe70e44075ccc060d346146ef53270ad"
version = "v1.1.1"
[[projects]]
name = "github.com/spf13/cast"
@@ -183,13 +195,13 @@
"pkcs12",
"pkcs12/internal/rc2"
]
revision = "5ba7f63082460102a45837dbd1827e10f9479ac0"
revision = "a49355c7e3f8fe157a85be2f77e6e269a0f89602"
[[projects]]
branch = "master"
name = "golang.org/x/sys"
packages = ["unix"]
revision = "c11f84a56e43e20a78cee75a7c034031ecf57d1f"
revision = "7138fd3d9dc8335c567ca206f4333fb75eb05d56"
[[projects]]
name = "golang.org/x/text"
@@ -212,13 +224,13 @@
"imports",
"internal/fastwalk"
]
revision = "a5b4c53f6e8bdcafa95a94671bf2d1203365858b"
revision = "ffe88906718454e356e61776b54256e873fc133b"
[[projects]]
branch = "v1"
name = "gopkg.in/check.v1"
packages = ["."]
revision = "20d25e2804050c1cd24a7eea1e7a6447dd0e74ec"
revision = "788fd78401277ebd861206a03c884797c6ec5541"
[[projects]]
name = "gopkg.in/yaml.v2"
@@ -229,6 +241,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "3ba7e7e6599059a0ac88f854eca95495c02501ebe2e0be13b38e4f2b823d5c53"
inputs-digest = "f4bfed9d1dcc4af2e0ff5811bb14dfebe84f87e7aed10199b8ff8d867d947612"
solver-name = "gps-cdcl"
solver-version = 1

View File

@@ -22,7 +22,7 @@
[[constraint]]
name = "github.com/Azure/go-autorest"
version = "10.9.2"
version = "10.12.0"
[[constraint]]
branch = "master"

View File

@@ -4,37 +4,52 @@
[![Build Status](https://travis-ci.org/Azure/azure-sdk-for-go.svg?branch=master)](https://travis-ci.org/Azure/azure-sdk-for-go)
[![Go Report Card](https://goreportcard.com/badge/github.com/Azure/azure-sdk-for-go)](https://goreportcard.com/report/github.com/Azure/azure-sdk-for-go)
azure-sdk-for-go provides Go packages for managing and using Azure services. It has been
tested with Go 1.8, 1.9 and 1.10.
azure-sdk-for-go provides Go packages for managing and using Azure services.
It is continuously tested with Go 1.8, 1.9, 1.10 and master.
To be notified about updates and changes, subscribe to the [Azure update
feed](https://azure.microsoft.com/updates/).
Users of the SDK may prefer to jump right in to our samples repo at
Users may prefer to jump right in to our samples repo at
[github.com/Azure-Samples/azure-sdk-for-go-samples][samples_repo].
### Build Details
## Package Updates
Most packages in the SDK are generated from [Azure API specs][azure_rest_specs]
using [Azure/autorest.go][] and [Azure/autorest][]. These generated packages
depend on the HTTP client implemented at [Azure/go-autorest][].
[azure_rest_specs]: https://github.com/Azure/azure-rest-api-specs
[Azure/autorest]: https://github.com/Azure/autorest
[Azure/autorest.go]: https://github.com/Azure/autorest.go
[Azure/go-autorest]: https://github.com/Azure/go-autorest
[azure/autorest]: https://github.com/Azure/autorest
[azure/autorest.go]: https://github.com/Azure/autorest.go
[azure/go-autorest]: https://github.com/Azure/go-autorest
The SDK codebase adheres to [semantic versioning](https://semver.org) and thus
avoids breaking changes other than at major (x.0.0) releases. However,
occasionally Azure API fixes require breaking updates within an individual
package; these exceptions are noted in release changelogs.
avoids breaking changes other than at major (x.0.0) releases. Because Azure's
APIs are updated frequently, we release a **new major version at the end of
each month** with a full changelog. For more details and background see [SDK Update
Practices](https://github.com/Azure/azure-sdk-for-go/wiki/SDK-Update-Practices).
To more reliably manage dependencies like the Azure SDK in your applications we
recommend [golang/dep](https://github.com/golang/dep).
## Other Azure Go Packages
Azure provides several other packages for using services from Go, listed below.
If a package you need isn't available please open an issue and let us know.
| Service | Import Path/Repo |
| -------------------- | -------------------------------------------------------------------------------------------------- |
| Storage - Blobs | [github.com/Azure/azure-storage-blob-go](https://github.com/Azure/azure-storage-blob-go) |
| Storage - Files | [github.com/Azure/azure-storage-file-go](https://github.com/Azure/azure-storage-file-go) |
| Storage - Queues | [github.com/Azure/azure-storage-queue-go](https://github.com/Azure/azure-storage-queue-go) |
| Service Bus | [github.com/Azure/azure-service-bus-go](https://github.com/Azure/azure-service-bus-go) |
| Event Hubs | [github.com/Azure/azure-event-hubs-go](https://github.com/Azure/azure-event-hubs-go) |
| Application Insights | [github.com/Microsoft/ApplicationInsights-go](https://github.com/Microsoft/ApplicationInsights-go) |
# Install and Use:
### Install
## Install
```sh
$ go get -u github.com/Azure/azure-sdk-for-go/...
@@ -48,42 +63,49 @@ $ dep ensure -add github.com/Azure/azure-sdk-for-go
If you need to install Go, follow [the official instructions](https://golang.org/dl/).
### Use
## Use
For complete examples of many scenarios see [Azure-Samples/azure-sdk-for-go-samples][samples_repo].
For many more scenarios and examples see
[Azure-Samples/azure-sdk-for-go-samples][samples_repo].
1. Import a package from the [services][services_dir] directory.
2. Create and authenticate a client with a `New*Client` func, e.g.
`c := compute.NewVirtualMachinesClient(...)`.
3. Invoke API methods using the client, e.g. `c.CreateOrUpdate(...)`.
4. Handle responses.
Apply the following general steps to use packages in this repo. For more on
authentication and the `Authorizer` interface see [the next
section](#authentication).
1. Import a package from the [services][services_dir] directory.
2. Create and authenticate a client with a `New*Client` func, e.g.
`c := compute.NewVirtualMachinesClient(...)`.
3. Invoke API methods using the client, e.g.
`res, err := c.CreateOrUpdate(...)`.
4. Handle responses and errors.
[services_dir]: https://github.com/Azure/azure-sdk-for-go/tree/master/services
For example, to create a new virtual network (substitute your own values for
strings in angle brackets):
Note: For more on authentication and the `Authorizer` interface see [the next
section](#authentication).
```go
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-09-01/network"
"github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/Azure/go-autorest/autorest/to"
)
func main() {
// create a VirtualNetworks client
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
authorizer, err := auth.NewAuthorizerFromEnvironment()
// create an authorizer from env vars or Azure Managed Service Idenity
authorizer, err := auth.NewAuthorizerFromEnvironment()
if err == nil {
vnetClient.Authorizer = authorizer
}
// call the VirtualNetworks CreateOrUpdate API
vnetClient.CreateOrUpdate(context.Background(),
"<resourceGroupName>",
"<vnetName>",
@@ -112,52 +134,111 @@ func main() {
}
```
### Authentication
## Authentication
Most SDK operations require an OAuth token for authentication and authorization. These are
made available in the Go SDK For Azure through types implementing the `Authorizer` interface.
You can get one from Azure Active Directory using the SDK's
[authentication](https://godoc.org/github.com/Azure/go-autorest/autorest/azure/auth) package. The `Authorizer` returned should
be set as the authorizer for the resource client, as shown in the [previous section](#use).
Typical SDK operations must be authenticated and authorized. The _Authorizer_
interface allows use of any auth style in requests, such as inserting an OAuth2
Authorization header and bearer token received from Azure AD.
You can get an authorizer in the following ways:
1. From the **Environment**:
- Use `auth.auth.NewAuthorizerFromEnvironment()`. This call will try to get an authorizer based on the environment
variables with different types of credentials in the following order:
1. **Client Credentials**: Uses the AAD App Secret for auth.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_CLIENT_SECRET`: Specifies the app secret to use.
2. **Client Certificate**: Uses a certificate that was configured on the AAD Service Principal.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_CERTIFICATE_PATH`: Specifies the certificate Path to use.
- `AZURE_CERTIFICATE_PASSWORD`: Specifies the certificate password to use.
3. **Username Pasword**: Uses a username and a password for auth. This is not recommended. Use `Device Flow` Auth instead for user interactive acccess.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_USERNAME`: Specifies the username to use.
- `AZURE_PASSWORD`: Specifies the password to use.
4. **MSI**: Only available for apps running in Azure. No configuration needed as it leverages the fact that the app is running in Azure. See [Azure Managed Service Identity](https://docs.microsoft.com/en-us/azure/active-directory/msi-overview).
The SDK itself provides a simple way to get an authorizer which first checks
for OAuth client credentials in environment variables and then falls back to
Azure's [Managed Service Identity]() when available, e.g. when on an Azure
VM. The following snippet from [the previous section](#use) demonstrates
this helper.
- Optionally, the following environment variables can be defined:
- `AZURE_ENVIRONMENT`: Specifies the Azure Environment to use. If not set, it defaults to `AzurePublicCloud`. (Not applicable to MSI based auth)
- `AZURE_AD_RESOURCE`: Specifies the AAD resource ID to use. If not set, it defaults to `ResourceManagerEndpoint`which allows management operations against Azure Resource Manager.
```go
import github.com/Azure/go-autorest/autorest/azure/auth
2. From an **Auth File**:
- Create a service principal and output the file content using `az ad sp create-for-rbac --sdk-auth` from the Azure CLI.For more details see [az ad sp](https://docs.microsoft.com/en-us/cli/azure/ad/sp).
- Set environment variable `AZURE_AUTH_LOCATION` for finding the file.
- Use `auth.NewAuthorizerFromFile()` for getting the `Authorizer` based on the auth file.
// create a VirtualNetworks client
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
3. From **Device Flow** by configuring `auth.DeviceFlowConfig` and calling the `Authorizer()` method.
// create an authorizer from env vars or Azure Managed Service Idenity
authorizer, err := auth.NewAuthorizerFromEnvironment()
if err == nil {
vnetClient.Authorizer = authorizer
}
Note: To authenticate you first need to create a service principal in Azure. To create a new service principal, run
`az ad sp create-for-rbac -n "<app_name>"` in the
[azure-cli](https://github.com/Azure/azure-cli). See
[these docs](https://docs.microsoft.com/cli/azure/create-an-azure-service-principal-azure-cli?view=azure-cli-latest)
for more info. Copy the new principal's ID, secret, and tenant ID for use in your app.
// call the VirtualNetworks CreateOrUpdate API
vnetClient.CreateOrUpdate(context.Background(),
// ...
```
Alternatively, if your apps are running in Azure, you can now leverage the [Managed Service Identity](https://docs.microsoft.com/en-us/azure/active-directory/msi-overview).
The following environment variables help determine authentication configuration:
- `AZURE_ENVIRONMENT`: Specifies the Azure Environment to use. If not set, it
defaults to `AzurePublicCloud`. Not applicable to authentication with Managed
Service Identity (MSI).
- `AZURE_AD_RESOURCE`: Specifies the AAD resource ID to use. If not set, it
defaults to `ResourceManagerEndpoint` for operations with Azure Resource
Manager. You can also choose an alternate resource programatically with
`auth.NewAuthorizerFromEnvironmentWithResource(resource string)`.
### More Authentication Details
The previous is the first and most recommended of several authentication
options offered by the SDK because it allows seamless use of both service
principals and [Azure Managed Service Identity][]. Other options are listed
below.
> Note: If you need to create a new service principal, run `az ad sp create-for-rbac -n "<app_name>"` in the
> [azure-cli](https://github.com/Azure/azure-cli). See [these
> docs](https://docs.microsoft.com/cli/azure/create-an-azure-service-principal-azure-cli?view=azure-cli-latest)
> for more info. Copy the new principal's ID, secret, and tenant ID for use in
> your app, or consider the `--sdk-auth` parameter for serialized output.
[azure managed service identity]: https://docs.microsoft.com/en-us/azure/active-directory/msi-overview
- The `auth.NewAuthorizerFromEnvironment()` described above creates an authorizer
from the first available of the following configuration:
1. **Client Credentials**: Azure AD Application ID and Secret.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_CLIENT_SECRET`: Specifies the app secret to use.
2. **Client Certificate**: Azure AD Application ID and X.509 Certificate.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_CERTIFICATE_PATH`: Specifies the certificate Path to use.
- `AZURE_CERTIFICATE_PASSWORD`: Specifies the certificate password to use.
3. **Resource Owner Password**: Azure AD User and Password. This grant type is *not
recommended*, use device login instead if you need interactive login.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_USERNAME`: Specifies the username to use.
- `AZURE_PASSWORD`: Specifies the password to use.
4. **Azure Managed Service Identity**: Delegate credential management to the
platform. Requires that code is running in Azure, e.g. on a VM. All
configuration is handled by Azure. See [Azure Managed Service
Identity](https://docs.microsoft.com/en-us/azure/active-directory/msi-overview)
for more details.
- The `auth.NewAuthorizerFromFile()` method creates an authorizer using
credentials from an auth file created by the [Azure CLI][]. Follow these
steps to utilize:
1. Create a service principal and output an auth file using `az ad sp create-for-rbac --sdk-auth > client_credentials.json`.
2. Set environment variable `AZURE_AUTH_LOCATION` to the path of the saved
output file.
3. Use the authorizer returned by `auth.NewAuthorizerFromFile()` in your
client as described above.
[azure cli]: https://github.com/Azure/azure-cli
- Finally, you can use OAuth's [Device Flow][] by calling
`auth.NewDeviceFlowConfig()` and extracting the Authorizer as follows:
```go
config := auth.NewDeviceFlowConfig(clientID, tenantID)
a, err = config.Authorizer()
```
[device flow]: https://oauth.net/2/device-flow/
# Versioning
@@ -186,17 +267,16 @@ Occasionally service-side changes require major changes to existing versions.
These cases are noted in the changelog.
All avilable services and versions are listed under the `services/` path in
this repo and in [GoDoc][services_godoc]. Run `find ./services -type d
-mindepth 3` to list all available service packages.
this repo and in [GoDoc][services_godoc]. Run `find ./services -type d -mindepth 3` to list all available service packages.
[services_godoc]: https://godoc.org/github.com/Azure/azure-sdk-for-go/services
[services_godoc]: https://godoc.org/github.com/Azure/azure-sdk-for-go/services
### Profiles
Azure **API profiles** specify subsets of Azure APIs and versions. Profiles can provide:
* **stability** for your application by locking to specific API versions; and/or
* **compatibility** for your application with Azure Stack and regional Azure datacenters.
- **stability** for your application by locking to specific API versions; and/or
- **compatibility** for your application with Azure Stack and regional Azure datacenters.
In the Go SDK, profiles are available under the `profiles/` path and their
component API versions are aliases to the true service package under
@@ -212,9 +292,9 @@ The 2017-03-09 profile is the only one currently available and is for use in
hybrid Azure and Azure Stack environments. More profiles are under development.
In addition to versioned profiles, we also provide two special profiles
`latest` and `preview`. These *always* include the most recent respective stable or
`latest` and `preview`. These _always_ include the most recent respective stable or
preview API versions for each service, even when updating them to do so causes
breaking changes. That is, these do *not* adhere to semantic versioning rules.
breaking changes. That is, these do _not_ adhere to semantic versioning rules.
The `latest` and `preview` profiles can help you stay up to date with API
updates as you build applications. Since they are by definition not stable,
@@ -240,7 +320,6 @@ All clients implement some handy hooks to help inspect the underlying requests b
Here is an example of how these can be used with `net/http/httputil` to see requests and responses.
```go
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
vnetClient.RequestInspector = LogRequest()
vnetClient.ResponseInspector = LogResponse()
@@ -284,11 +363,6 @@ func LogResponse() autorest.RespondDecorator {
- Azure API docs are at [docs.microsoft.com/rest/api](https://docs.microsoft.com/rest/api/).
- General Azure docs are at [docs.microsoft.com/azure](https://docs.microsoft.com/azure).
### Other Azure packages for Go
- [Azure Storage Blobs](https://azure.microsoft.com/services/storage/blobs) - [github.com/Azure/azure-storage-blob-go](https://github.com/Azure/azure-storage-blob-go)
- [Azure Applications Insights](https://azure.microsoft.com/en-us/services/application-insights/) - [github.com/Microsoft/ApplicationInsights-Go](https://github.com/Microsoft/ApplicationInsights-Go)
## License
Apache 2.0, see [LICENSE](./LICENSE).
@@ -297,5 +371,4 @@ Apache 2.0, see [LICENSE](./LICENSE).
See [CONTRIBUTING.md](./CONTRIBUTING.md).
[samples_repo]: https://github.com/Azure-Samples/azure-sdk-for-go-samples
[samples_repo]: https://github.com/Azure-Samples/azure-sdk-for-go-samples

View File

@@ -64,7 +64,6 @@ type OperationEntityListResult = original.OperationEntityListResult
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
type OperationEntityListResultPage = original.OperationEntityListResultPage
type RecommendationProperties = original.RecommendationProperties
type RecommendationsGetGenerateStatusFuture = original.RecommendationsGetGenerateStatusFuture
type Resource = original.Resource
type ResourceRecommendationBase = original.ResourceRecommendationBase
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult

View File

@@ -21,7 +21,7 @@ package insights
import original "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights"
type AnalyticsItemClient = original.AnalyticsItemClient
type AnalyticsItemsClient = original.AnalyticsItemsClient
type AnnotationsClient = original.AnnotationsClient
type APIKeysClient = original.APIKeysClient
@@ -36,7 +36,6 @@ type ComponentFeatureCapabilitiesClient = original.ComponentFeatureCapabilitiesC
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
type ComponentsClient = original.ComponentsClient
type ExportConfigurationsClient = original.ExportConfigurationsClient
type FavoriteClient = original.FavoriteClient
type FavoritesClient = original.FavoritesClient
type ApplicationType = original.ApplicationType
@@ -142,6 +141,7 @@ const (
type Annotation = original.Annotation
type AnnotationError = original.AnnotationError
type AnnotationsListResult = original.AnnotationsListResult
type APIKeyRequest = original.APIKeyRequest
type ApplicationInsightsComponent = original.ApplicationInsightsComponent
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
@@ -170,7 +170,7 @@ type ComponentPurgeBody = original.ComponentPurgeBody
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
type ComponentPurgeResponse = original.ComponentPurgeResponse
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
type ComponentsPurgeFuture = original.ComponentsPurgeFuture
type ComponentsResource = original.ComponentsResource
type ErrorFieldContract = original.ErrorFieldContract
type ErrorResponse = original.ErrorResponse
type InnerError = original.InnerError
@@ -180,13 +180,11 @@ type ListApplicationInsightsComponentAnalyticsItem = original.ListApplicationIns
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
type ListWorkItemConfiguration = original.ListWorkItemConfiguration
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type Resource = original.Resource
type SetObject = original.SetObject
type TagsResource = original.TagsResource
type WebTest = original.WebTest
@@ -196,26 +194,28 @@ type WebTestListResultIterator = original.WebTestListResultIterator
type WebTestListResultPage = original.WebTestListResultPage
type WebTestProperties = original.WebTestProperties
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
type WebtestsResource = original.WebtestsResource
type Workbook = original.Workbook
type WorkbookError = original.WorkbookError
type WorkbookProperties = original.WorkbookProperties
type Workbooks = original.Workbooks
type WorkbookResource = original.WorkbookResource
type WorkbooksListResult = original.WorkbooksListResult
type WorkItemConfiguration = original.WorkItemConfiguration
type WorkItemConfigurationError = original.WorkItemConfigurationError
type WorkItemConfigurationsListResult = original.WorkItemConfigurationsListResult
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
type OperationsClient = original.OperationsClient
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
type WebTestLocationsClient = original.WebTestLocationsClient
type WebTestsClient = original.WebTestsClient
type WorkbookClient = original.WorkbookClient
type WorkbooksClient = original.WorkbooksClient
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient {
return original.NewAnalyticsItemClient(subscriptionID)
func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
return original.NewAnalyticsItemsClient(subscriptionID)
}
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient {
return original.NewAnalyticsItemClientWithBaseURI(baseURI, subscriptionID)
func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
return original.NewAnalyticsItemsClientWithBaseURI(baseURI, subscriptionID)
}
func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
return original.NewAnnotationsClient(subscriptionID)
@@ -271,12 +271,6 @@ func NewExportConfigurationsClient(subscriptionID string) ExportConfigurationsCl
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
return original.NewExportConfigurationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewFavoriteClient(subscriptionID string) FavoriteClient {
return original.NewFavoriteClient(subscriptionID)
}
func NewFavoriteClientWithBaseURI(baseURI string, subscriptionID string) FavoriteClient {
return original.NewFavoriteClientWithBaseURI(baseURI, subscriptionID)
}
func NewFavoritesClient(subscriptionID string) FavoritesClient {
return original.NewFavoritesClient(subscriptionID)
}
@@ -352,12 +346,6 @@ func NewWebTestsClient(subscriptionID string) WebTestsClient {
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
return original.NewWebTestsClientWithBaseURI(baseURI, subscriptionID)
}
func NewWorkbookClient(subscriptionID string) WorkbookClient {
return original.NewWorkbookClient(subscriptionID)
}
func NewWorkbookClientWithBaseURI(baseURI string, subscriptionID string) WorkbookClient {
return original.NewWorkbookClientWithBaseURI(baseURI, subscriptionID)
}
func NewWorkbooksClient(subscriptionID string) WorkbooksClient {
return original.NewWorkbooksClient(subscriptionID)
}

View File

@@ -82,6 +82,13 @@ const (
DscConfigurationStatePublished DscConfigurationState = original.DscConfigurationStatePublished
)
type GroupTypeEnum = original.GroupTypeEnum
const (
System GroupTypeEnum = original.System
User GroupTypeEnum = original.User
)
type HTTPStatusCode = original.HTTPStatusCode
const (
@@ -184,6 +191,7 @@ type KeyPermissions = original.KeyPermissions
const (
Full KeyPermissions = original.Full
Read KeyPermissions = original.Read
)
type ModuleProvisioningState = original.ModuleProvisioningState
@@ -277,6 +285,7 @@ type ActivityListResultPage = original.ActivityListResultPage
type ActivityOutputType = original.ActivityOutputType
type ActivityParameter = original.ActivityParameter
type ActivityParameterSet = original.ActivityParameterSet
type ActivityParameterValidationSet = original.ActivityParameterValidationSet
type ActivityProperties = original.ActivityProperties
type AdvancedSchedule = original.AdvancedSchedule
type AdvancedScheduleMonthlyOccurrence = original.AdvancedScheduleMonthlyOccurrence
@@ -373,7 +382,6 @@ type JobListResult = original.JobListResult
type JobListResultIterator = original.JobListResultIterator
type JobListResultPage = original.JobListResultPage
type JobProperties = original.JobProperties
type JobProvisioningStateProperty = original.JobProvisioningStateProperty
type JobSchedule = original.JobSchedule
type JobScheduleCreateParameters = original.JobScheduleCreateParameters
type JobScheduleCreateProperties = original.JobScheduleCreateProperties
@@ -438,9 +446,9 @@ type Sku = original.Sku
type Statistics = original.Statistics
type StatisticsListResult = original.StatisticsListResult
type String = original.String
type SubResource = original.SubResource
type TestJob = original.TestJob
type TestJobCreateParameters = original.TestJobCreateParameters
type TrackedResource = original.TrackedResource
type TypeField = original.TypeField
type TypeFieldListResult = original.TypeFieldListResult
type Usage = original.Usage
@@ -613,6 +621,9 @@ func PossibleDscConfigurationProvisioningStateValues() []DscConfigurationProvisi
func PossibleDscConfigurationStateValues() []DscConfigurationState {
return original.PossibleDscConfigurationStateValues()
}
func PossibleGroupTypeEnumValues() []GroupTypeEnum {
return original.PossibleGroupTypeEnumValues()
}
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
return original.PossibleHTTPStatusCodeValues()
}

View File

@@ -46,13 +46,6 @@ const (
Landmarks Details = original.Landmarks
)
type DomainModels = original.DomainModels
const (
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
)
type ErrorCodes = original.ErrorCodes
const (
@@ -135,8 +128,8 @@ type AdultInfo = original.AdultInfo
type Category = original.Category
type CategoryDetail = original.CategoryDetail
type CelebritiesModel = original.CelebritiesModel
type CelebrityResults = original.CelebrityResults
type ColorInfo = original.ColorInfo
type DomainModelResult = original.DomainModelResult
type DomainModelResults = original.DomainModelResults
type Error = original.Error
type FaceDescription = original.FaceDescription
@@ -149,6 +142,8 @@ type ImageMetadata = original.ImageMetadata
type ImageTag = original.ImageTag
type ImageType = original.ImageType
type ImageURL = original.ImageURL
type LandmarkResults = original.LandmarkResults
type LandmarkResultsLandmarksItem = original.LandmarkResultsLandmarksItem
type Line = original.Line
type ListModelsResult = original.ListModelsResult
type ModelDescription = original.ModelDescription
@@ -174,9 +169,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
func PossibleDetailsValues() []Details {
return original.PossibleDetailsValues()
}
func PossibleDomainModelsValues() []DomainModels {
return original.PossibleDomainModelsValues()
}
func PossibleErrorCodesValues() []ErrorCodes {
return original.PossibleErrorCodesValues()
}

View File

@@ -56,12 +56,16 @@ type AzureRegions = original.AzureRegions
const (
Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus

View File

@@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
const (
Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus

View File

@@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
const (
Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus

View File

@@ -58,6 +58,8 @@ type BaiduCredentialProperties = original.BaiduCredentialProperties
type CheckAvailabilityParameters = original.CheckAvailabilityParameters
type CheckAvailabilityResult = original.CheckAvailabilityResult
type CreateOrUpdateParameters = original.CreateOrUpdateParameters
type DebugSendResponse = original.DebugSendResponse
type DebugSendResult = original.DebugSendResult
type ErrorResponse = original.ErrorResponse
type GcmCredential = original.GcmCredential
type GcmCredentialProperties = original.GcmCredentialProperties
@@ -79,6 +81,7 @@ type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type PatchParameters = original.PatchParameters
type PnsCredentialsProperties = original.PnsCredentialsProperties
type PnsCredentialsResource = original.PnsCredentialsResource
type PolicykeyResource = original.PolicykeyResource

View File

@@ -67,7 +67,6 @@ type SearchParameters = original.SearchParameters
type SearchResultsResponse = original.SearchResultsResponse
type SearchSchemaValue = original.SearchSchemaValue
type SearchSort = original.SearchSort
type SetObject = original.SetObject
type StorageAccount = original.StorageAccount
type StorageInsight = original.StorageInsight
type StorageInsightListResult = original.StorageInsightListResult
@@ -81,7 +80,6 @@ type WorkspacePurgeBodyFilters = original.WorkspacePurgeBodyFilters
type WorkspacePurgeResponse = original.WorkspacePurgeResponse
type WorkspacePurgeStatusResponse = original.WorkspacePurgeStatusResponse
type WorkspacesGetSearchResultsFuture = original.WorkspacesGetSearchResultsFuture
type WorkspacesPurgeFuture = original.WorkspacesPurgeFuture
type OperationsClient = original.OperationsClient
type SavedSearchesClient = original.SavedSearchesClient
type StorageInsightsClient = original.StorageInsightsClient

View File

@@ -52,17 +52,22 @@ const (
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
ContainerTypeCluster ContainerType = original.ContainerTypeCluster
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
ContainerTypeExchangeDAG ContainerType = original.ContainerTypeExchangeDAG
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
ContainerTypeHyperVCluster ContainerType = original.ContainerTypeHyperVCluster
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
ContainerTypeSharepointFarm ContainerType = original.ContainerTypeSharepointFarm
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
ContainerTypeSQLCluster ContainerType = original.ContainerTypeSQLCluster
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
ContainerTypeWindows ContainerType = original.ContainerTypeWindows
ContainerTypeWindowsClient ContainerType = original.ContainerTypeWindowsClient
)
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
@@ -74,13 +79,13 @@ const (
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
ContainerTypeMABWindowsContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeMABWindowsContainer
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1
)
type CopyOptions = original.CopyOptions
@@ -93,6 +98,14 @@ const (
CopyOptionsSkip CopyOptions = original.CopyOptionsSkip
)
type CreateMode = original.CreateMode
const (
CreateModeDefault CreateMode = original.CreateModeDefault
CreateModeInvalid CreateMode = original.CreateModeInvalid
CreateModeRecover CreateMode = original.CreateModeRecover
)
type DataSourceType = original.DataSourceType
const (
@@ -103,6 +116,7 @@ const (
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
DataSourceTypeSAPHanaDatabase DataSourceType = original.DataSourceTypeSAPHanaDatabase
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
@@ -149,6 +163,7 @@ const (
type FeatureType = original.FeatureType
const (
FeatureTypeAzureBackupGoals FeatureType = original.FeatureTypeAzureBackupGoals
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
)
@@ -241,6 +256,7 @@ const (
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
ItemTypeInvalid ItemType = original.ItemTypeInvalid
ItemTypeSAPHanaDatabase ItemType = original.ItemTypeSAPHanaDatabase
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
@@ -309,17 +325,22 @@ const (
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
MabServerTypeCluster MabServerType = original.MabServerTypeCluster
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
MabServerTypeExchangeDAG MabServerType = original.MabServerTypeExchangeDAG
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
MabServerTypeHyperVCluster MabServerType = original.MabServerTypeHyperVCluster
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
MabServerTypeSharepointFarm MabServerType = original.MabServerTypeSharepointFarm
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
MabServerTypeSQLCluster MabServerType = original.MabServerTypeSQLCluster
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
MabServerTypeWindows MabServerType = original.MabServerTypeWindows
MabServerTypeWindowsClient MabServerType = original.MabServerTypeWindowsClient
)
type ManagementType = original.ManagementType
@@ -402,24 +423,28 @@ const (
type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint
const (
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint
ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
)
type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest
const (
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest
ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
)
type OperationStatusValues = original.OperationStatusValues
@@ -456,6 +481,8 @@ const (
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
@@ -488,6 +515,8 @@ type ProtectedItemType = original.ProtectedItemType
const (
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
ProtectedItemTypeAzureVMWorkloadProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadProtectedItem
ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
@@ -501,8 +530,11 @@ const (
type ProtectionIntentItemType = original.ProtectionIntentItemType
const (
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent
ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
ProtectionIntentItemTypeRecoveryServiceVaultItem ProtectionIntentItemType = original.ProtectionIntentItemTypeRecoveryServiceVaultItem
)
type ProtectionState = original.ProtectionState
@@ -697,25 +729,30 @@ const (
type WeekOfMonth = original.WeekOfMonth
const (
First WeekOfMonth = original.First
Fourth WeekOfMonth = original.Fourth
Last WeekOfMonth = original.Last
Second WeekOfMonth = original.Second
Third WeekOfMonth = original.Third
WeekOfMonthFirst WeekOfMonth = original.WeekOfMonthFirst
WeekOfMonthFourth WeekOfMonth = original.WeekOfMonthFourth
WeekOfMonthInvalid WeekOfMonth = original.WeekOfMonthInvalid
WeekOfMonthLast WeekOfMonth = original.WeekOfMonthLast
WeekOfMonthSecond WeekOfMonth = original.WeekOfMonthSecond
WeekOfMonthThird WeekOfMonth = original.WeekOfMonthThird
)
type WorkloadItemType = original.WorkloadItemType
const (
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
WorkloadItemTypeSAPHanaDatabase WorkloadItemType = original.WorkloadItemTypeSAPHanaDatabase
WorkloadItemTypeSAPHanaSystem WorkloadItemType = original.WorkloadItemTypeSAPHanaSystem
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
)
type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem
const (
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1
WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
@@ -731,6 +768,7 @@ const (
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
WorkloadTypeSAPHanaDatabase WorkloadType = original.WorkloadTypeSAPHanaDatabase
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
@@ -739,6 +777,7 @@ const (
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
)
type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest
type AzureBackupServerContainer = original.AzureBackupServerContainer
type AzureBackupServerEngine = original.AzureBackupServerEngine
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
@@ -763,6 +802,8 @@ type BasicAzureIaaSVMProtectedItem = original.BasicAzureIaaSVMProtectedItem
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
type BasicAzureRecoveryServiceVaultProtectionIntent = original.BasicAzureRecoveryServiceVaultProtectionIntent
type AzureRecoveryServiceVaultProtectionIntent = original.AzureRecoveryServiceVaultProtectionIntent
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
type AzureSQLContainer = original.AzureSQLContainer
@@ -783,14 +824,23 @@ type BasicAzureVMWorkloadItem = original.BasicAzureVMWorkloadItem
type AzureVMWorkloadItem = original.AzureVMWorkloadItem
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
type BasicAzureVMWorkloadProtectedItem = original.BasicAzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy
type AzureVMWorkloadSAPHanaDatabaseProtectableItem = original.AzureVMWorkloadSAPHanaDatabaseProtectableItem
type AzureVMWorkloadSAPHanaDatabaseProtectedItem = original.AzureVMWorkloadSAPHanaDatabaseProtectedItem
type AzureVMWorkloadSAPHanaDatabaseWorkloadItem = original.AzureVMWorkloadSAPHanaDatabaseWorkloadItem
type AzureVMWorkloadSAPHanaSystemProtectableItem = original.AzureVMWorkloadSAPHanaSystemProtectableItem
type AzureVMWorkloadSAPHanaSystemWorkloadItem = original.AzureVMWorkloadSAPHanaSystemWorkloadItem
type AzureVMWorkloadSQLAvailabilityGroupProtectableItem = original.AzureVMWorkloadSQLAvailabilityGroupProtectableItem
type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
type BasicAzureWorkloadAutoProtectionIntent = original.BasicAzureWorkloadAutoProtectionIntent
type AzureWorkloadAutoProtectionIntent = original.AzureWorkloadAutoProtectionIntent
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
type AzureWorkloadContainer = original.AzureWorkloadContainer
@@ -803,6 +853,13 @@ type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest
type AzureWorkloadSAPHanaPointInTimeRecoveryPoint = original.AzureWorkloadSAPHanaPointInTimeRecoveryPoint
type AzureWorkloadSAPHanaPointInTimeRestoreRequest = original.AzureWorkloadSAPHanaPointInTimeRestoreRequest
type BasicAzureWorkloadSAPHanaRecoveryPoint = original.BasicAzureWorkloadSAPHanaRecoveryPoint
type AzureWorkloadSAPHanaRecoveryPoint = original.AzureWorkloadSAPHanaRecoveryPoint
type BasicAzureWorkloadSAPHanaRestoreRequest = original.BasicAzureWorkloadSAPHanaRestoreRequest
type AzureWorkloadSAPHanaRestoreRequest = original.AzureWorkloadSAPHanaRestoreRequest
type AzureWorkloadSQLAutoProtectionIntent = original.AzureWorkloadSQLAutoProtectionIntent
type AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint
type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
@@ -815,6 +872,7 @@ type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
type BMSContainerQueryObject = original.BMSContainerQueryObject
type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject
type BMSPOQueryObject = original.BMSPOQueryObject
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
type BMSRPQueryObject = original.BMSRPQueryObject
@@ -1102,6 +1160,9 @@ func PossibleContainerTypeBasicProtectionContainerValues() []ContainerTypeBasicP
func PossibleCopyOptionsValues() []CopyOptions {
return original.PossibleCopyOptionsValues()
}
func PossibleCreateModeValues() []CreateMode {
return original.PossibleCreateModeValues()
}
func PossibleDataSourceTypeValues() []DataSourceType {
return original.PossibleDataSourceTypeValues()
}

View File

@@ -22,8 +22,12 @@ package adhybridhealthservice
import original "github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice"
type AdDomainServiceMembersClient = original.AdDomainServiceMembersClient
type AddsServiceClient = original.AddsServiceClient
type AddsServiceMembersClient = original.AddsServiceMembersClient
type AddsServicesClient = original.AddsServicesClient
type AddsServicesReplicationStatusClient = original.AddsServicesReplicationStatusClient
type AddsServicesServiceMembersClient = original.AddsServicesServiceMembersClient
type AddsServicesUserPreferenceClient = original.AddsServicesUserPreferenceClient
type AlertsClient = original.AlertsClient
const (
@@ -230,6 +234,7 @@ type Partition = original.Partition
type PartitionScope = original.PartitionScope
type PasswordHashSyncConfiguration = original.PasswordHashSyncConfiguration
type PasswordManagementSettings = original.PasswordManagementSettings
type ReplicationDetailsList = original.ReplicationDetailsList
type ReplicationStatus = original.ReplicationStatus
type ReplicationSummary = original.ReplicationSummary
type ReplicationSummaryList = original.ReplicationSummaryList
@@ -250,8 +255,11 @@ type ServicesPage = original.ServicesPage
type TabularExportError = original.TabularExportError
type Tenant = original.Tenant
type TenantOnboardingDetails = original.TenantOnboardingDetails
type UserPreference = original.UserPreference
type ValueDelta = original.ValueDelta
type OperationsClient = original.OperationsClient
type ReportsClient = original.ReportsClient
type ServiceClient = original.ServiceClient
type ServiceMembersClient = original.ServiceMembersClient
type ServicesClient = original.ServicesClient
@@ -261,6 +269,12 @@ func NewAdDomainServiceMembersClient() AdDomainServiceMembersClient {
func NewAdDomainServiceMembersClientWithBaseURI(baseURI string) AdDomainServiceMembersClient {
return original.NewAdDomainServiceMembersClientWithBaseURI(baseURI)
}
func NewAddsServiceClient() AddsServiceClient {
return original.NewAddsServiceClient()
}
func NewAddsServiceClientWithBaseURI(baseURI string) AddsServiceClient {
return original.NewAddsServiceClientWithBaseURI(baseURI)
}
func NewAddsServiceMembersClient() AddsServiceMembersClient {
return original.NewAddsServiceMembersClient()
}
@@ -273,6 +287,24 @@ func NewAddsServicesClient() AddsServicesClient {
func NewAddsServicesClientWithBaseURI(baseURI string) AddsServicesClient {
return original.NewAddsServicesClientWithBaseURI(baseURI)
}
func NewAddsServicesReplicationStatusClient() AddsServicesReplicationStatusClient {
return original.NewAddsServicesReplicationStatusClient()
}
func NewAddsServicesReplicationStatusClientWithBaseURI(baseURI string) AddsServicesReplicationStatusClient {
return original.NewAddsServicesReplicationStatusClientWithBaseURI(baseURI)
}
func NewAddsServicesServiceMembersClient() AddsServicesServiceMembersClient {
return original.NewAddsServicesServiceMembersClient()
}
func NewAddsServicesServiceMembersClientWithBaseURI(baseURI string) AddsServicesServiceMembersClient {
return original.NewAddsServicesServiceMembersClientWithBaseURI(baseURI)
}
func NewAddsServicesUserPreferenceClient() AddsServicesUserPreferenceClient {
return original.NewAddsServicesUserPreferenceClient()
}
func NewAddsServicesUserPreferenceClientWithBaseURI(baseURI string) AddsServicesUserPreferenceClient {
return original.NewAddsServicesUserPreferenceClientWithBaseURI(baseURI)
}
func NewAlertsClient() AlertsClient {
return original.NewAlertsClient()
}
@@ -336,6 +368,18 @@ func NewOperationsClient() OperationsClient {
func NewOperationsClientWithBaseURI(baseURI string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI)
}
func NewReportsClient() ReportsClient {
return original.NewReportsClient()
}
func NewReportsClientWithBaseURI(baseURI string) ReportsClient {
return original.NewReportsClientWithBaseURI(baseURI)
}
func NewServiceClient() ServiceClient {
return original.NewServiceClient()
}
func NewServiceClientWithBaseURI(baseURI string) ServiceClient {
return original.NewServiceClientWithBaseURI(baseURI)
}
func NewServiceMembersClient() ServiceMembersClient {
return original.NewServiceMembersClient()
}

View File

@@ -64,7 +64,6 @@ type OperationEntityListResult = original.OperationEntityListResult
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
type OperationEntityListResultPage = original.OperationEntityListResultPage
type RecommendationProperties = original.RecommendationProperties
type RecommendationsGetGenerateStatusFuture = original.RecommendationsGetGenerateStatusFuture
type Resource = original.Resource
type ResourceRecommendationBase = original.ResourceRecommendationBase
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult

View File

@@ -21,7 +21,7 @@ package insights
import original "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights"
type AnalyticsItemClient = original.AnalyticsItemClient
type AnalyticsItemsClient = original.AnalyticsItemsClient
type AnnotationsClient = original.AnnotationsClient
type APIKeysClient = original.APIKeysClient
@@ -36,7 +36,6 @@ type ComponentFeatureCapabilitiesClient = original.ComponentFeatureCapabilitiesC
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
type ComponentsClient = original.ComponentsClient
type ExportConfigurationsClient = original.ExportConfigurationsClient
type FavoriteClient = original.FavoriteClient
type FavoritesClient = original.FavoritesClient
type ApplicationType = original.ApplicationType
@@ -142,6 +141,7 @@ const (
type Annotation = original.Annotation
type AnnotationError = original.AnnotationError
type AnnotationsListResult = original.AnnotationsListResult
type APIKeyRequest = original.APIKeyRequest
type ApplicationInsightsComponent = original.ApplicationInsightsComponent
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
@@ -170,7 +170,7 @@ type ComponentPurgeBody = original.ComponentPurgeBody
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
type ComponentPurgeResponse = original.ComponentPurgeResponse
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
type ComponentsPurgeFuture = original.ComponentsPurgeFuture
type ComponentsResource = original.ComponentsResource
type ErrorFieldContract = original.ErrorFieldContract
type ErrorResponse = original.ErrorResponse
type InnerError = original.InnerError
@@ -180,13 +180,11 @@ type ListApplicationInsightsComponentAnalyticsItem = original.ListApplicationIns
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
type ListWorkItemConfiguration = original.ListWorkItemConfiguration
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type Resource = original.Resource
type SetObject = original.SetObject
type TagsResource = original.TagsResource
type WebTest = original.WebTest
@@ -196,26 +194,28 @@ type WebTestListResultIterator = original.WebTestListResultIterator
type WebTestListResultPage = original.WebTestListResultPage
type WebTestProperties = original.WebTestProperties
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
type WebtestsResource = original.WebtestsResource
type Workbook = original.Workbook
type WorkbookError = original.WorkbookError
type WorkbookProperties = original.WorkbookProperties
type Workbooks = original.Workbooks
type WorkbookResource = original.WorkbookResource
type WorkbooksListResult = original.WorkbooksListResult
type WorkItemConfiguration = original.WorkItemConfiguration
type WorkItemConfigurationError = original.WorkItemConfigurationError
type WorkItemConfigurationsListResult = original.WorkItemConfigurationsListResult
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
type OperationsClient = original.OperationsClient
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
type WebTestLocationsClient = original.WebTestLocationsClient
type WebTestsClient = original.WebTestsClient
type WorkbookClient = original.WorkbookClient
type WorkbooksClient = original.WorkbooksClient
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient {
return original.NewAnalyticsItemClient(subscriptionID)
func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
return original.NewAnalyticsItemsClient(subscriptionID)
}
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient {
return original.NewAnalyticsItemClientWithBaseURI(baseURI, subscriptionID)
func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
return original.NewAnalyticsItemsClientWithBaseURI(baseURI, subscriptionID)
}
func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
return original.NewAnnotationsClient(subscriptionID)
@@ -271,12 +271,6 @@ func NewExportConfigurationsClient(subscriptionID string) ExportConfigurationsCl
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
return original.NewExportConfigurationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewFavoriteClient(subscriptionID string) FavoriteClient {
return original.NewFavoriteClient(subscriptionID)
}
func NewFavoriteClientWithBaseURI(baseURI string, subscriptionID string) FavoriteClient {
return original.NewFavoriteClientWithBaseURI(baseURI, subscriptionID)
}
func NewFavoritesClient(subscriptionID string) FavoritesClient {
return original.NewFavoritesClient(subscriptionID)
}
@@ -352,12 +346,6 @@ func NewWebTestsClient(subscriptionID string) WebTestsClient {
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
return original.NewWebTestsClientWithBaseURI(baseURI, subscriptionID)
}
func NewWorkbookClient(subscriptionID string) WorkbookClient {
return original.NewWorkbookClient(subscriptionID)
}
func NewWorkbookClientWithBaseURI(baseURI string, subscriptionID string) WorkbookClient {
return original.NewWorkbookClientWithBaseURI(baseURI, subscriptionID)
}
func NewWorkbooksClient(subscriptionID string) WorkbooksClient {
return original.NewWorkbooksClient(subscriptionID)
}

View File

@@ -112,8 +112,8 @@ const (
Chainer ToolType = original.Chainer
Cntk ToolType = original.Cntk
Custom ToolType = original.Custom
Custommpi ToolType = original.Custommpi
Horovod ToolType = original.Horovod
Mpi ToolType = original.Mpi
Tensorflow ToolType = original.Tensorflow
)
@@ -242,6 +242,7 @@ type WorkspaceListResultPage = original.WorkspaceListResultPage
type WorkspaceProperties = original.WorkspaceProperties
type WorkspacesCreateFuture = original.WorkspacesCreateFuture
type WorkspacesDeleteFuture = original.WorkspacesDeleteFuture
type WorkspaceUpdateParameters = original.WorkspaceUpdateParameters
type OperationsClient = original.OperationsClient
type UsagesClient = original.UsagesClient
type WorkspacesClient = original.WorkspacesClient

View File

@@ -0,0 +1,176 @@
// +build go1.9
// Copyright 2018 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package autosuggest
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/autosuggest"
const (
DefaultBaseURI = original.DefaultBaseURI
)
type BaseClient = original.BaseClient
type ErrorCode = original.ErrorCode
const (
InsufficientAuthorization ErrorCode = original.InsufficientAuthorization
InvalidAuthorization ErrorCode = original.InvalidAuthorization
InvalidRequest ErrorCode = original.InvalidRequest
None ErrorCode = original.None
RateLimitExceeded ErrorCode = original.RateLimitExceeded
ServerError ErrorCode = original.ServerError
)
type ResponseFormat = original.ResponseFormat
const (
JSON ResponseFormat = original.JSON
JSONLd ResponseFormat = original.JSONLd
)
type SafeSearch = original.SafeSearch
const (
Moderate SafeSearch = original.Moderate
Off SafeSearch = original.Off
Strict SafeSearch = original.Strict
)
type ScenarioType = original.ScenarioType
const (
Custom ScenarioType = original.Custom
PersonalSearchDocuments ScenarioType = original.PersonalSearchDocuments
PersonalSearchTags ScenarioType = original.PersonalSearchTags
SearchHistory ScenarioType = original.SearchHistory
StoreApps ScenarioType = original.StoreApps
Unknown ScenarioType = original.Unknown
Web ScenarioType = original.Web
)
type SearchKind = original.SearchKind
const (
CustomSearch SearchKind = original.CustomSearch
DocumentSearch SearchKind = original.DocumentSearch
HistorySearch SearchKind = original.HistorySearch
LocationSearch SearchKind = original.LocationSearch
TagSearch SearchKind = original.TagSearch
WebSearch SearchKind = original.WebSearch
)
type Type = original.Type
const (
TypeSuggestionsSuggestionGroup Type = original.TypeSuggestionsSuggestionGroup
)
type TypeBasicError = original.TypeBasicError
const (
TypeError TypeBasicError = original.TypeError
)
type TypeBasicQueryContext = original.TypeBasicQueryContext
const (
TypeQueryContext TypeBasicQueryContext = original.TypeQueryContext
)
type TypeBasicResponseBase = original.TypeBasicResponseBase
const (
TypeAction TypeBasicResponseBase = original.TypeAction
TypeAnswer TypeBasicResponseBase = original.TypeAnswer
TypeCreativeWork TypeBasicResponseBase = original.TypeCreativeWork
TypeErrorResponse TypeBasicResponseBase = original.TypeErrorResponse
TypeIdentifiable TypeBasicResponseBase = original.TypeIdentifiable
TypeResponse TypeBasicResponseBase = original.TypeResponse
TypeResponseBase TypeBasicResponseBase = original.TypeResponseBase
TypeSearchAction TypeBasicResponseBase = original.TypeSearchAction
TypeSearchResultsAnswer TypeBasicResponseBase = original.TypeSearchResultsAnswer
TypeSuggestions TypeBasicResponseBase = original.TypeSuggestions
TypeThing TypeBasicResponseBase = original.TypeThing
)
type BasicAction = original.BasicAction
type Action = original.Action
type BasicAnswer = original.BasicAnswer
type Answer = original.Answer
type BasicCreativeWork = original.BasicCreativeWork
type CreativeWork = original.CreativeWork
type BasicError = original.BasicError
type Error = original.Error
type ErrorResponse = original.ErrorResponse
type BasicIdentifiable = original.BasicIdentifiable
type Identifiable = original.Identifiable
type BasicQueryContext = original.BasicQueryContext
type QueryContext = original.QueryContext
type BasicResponse = original.BasicResponse
type Response = original.Response
type BasicResponseBase = original.BasicResponseBase
type ResponseBase = original.ResponseBase
type SearchAction = original.SearchAction
type BasicSearchResultsAnswer = original.BasicSearchResultsAnswer
type SearchResultsAnswer = original.SearchResultsAnswer
type Suggestions = original.Suggestions
type BasicSuggestionsSuggestionGroup = original.BasicSuggestionsSuggestionGroup
type SuggestionsSuggestionGroup = original.SuggestionsSuggestionGroup
type BasicThing = original.BasicThing
type Thing = original.Thing
func New() BaseClient {
return original.New()
}
func NewWithBaseURI(baseURI string) BaseClient {
return original.NewWithBaseURI(baseURI)
}
func PossibleErrorCodeValues() []ErrorCode {
return original.PossibleErrorCodeValues()
}
func PossibleResponseFormatValues() []ResponseFormat {
return original.PossibleResponseFormatValues()
}
func PossibleSafeSearchValues() []SafeSearch {
return original.PossibleSafeSearchValues()
}
func PossibleScenarioTypeValues() []ScenarioType {
return original.PossibleScenarioTypeValues()
}
func PossibleSearchKindValues() []SearchKind {
return original.PossibleSearchKindValues()
}
func PossibleTypeValues() []Type {
return original.PossibleTypeValues()
}
func PossibleTypeBasicErrorValues() []TypeBasicError {
return original.PossibleTypeBasicErrorValues()
}
func PossibleTypeBasicQueryContextValues() []TypeBasicQueryContext {
return original.PossibleTypeBasicQueryContextValues()
}
func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase {
return original.PossibleTypeBasicResponseBaseValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}

View File

@@ -19,7 +19,7 @@
package computervision
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/computervision"
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/computervision"
type BaseClient = original.BaseClient
type AzureRegions = original.AzureRegions
@@ -46,13 +46,6 @@ const (
Landmarks Details = original.Landmarks
)
type DomainModels = original.DomainModels
const (
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
)
type ErrorCodes = original.ErrorCodes
const (
@@ -119,6 +112,13 @@ const (
Succeeded TextOperationStatusCodes = original.Succeeded
)
type TextRecognitionMode = original.TextRecognitionMode
const (
Handwritten TextRecognitionMode = original.Handwritten
Printed TextRecognitionMode = original.Printed
)
type VisualFeatureTypes = original.VisualFeatureTypes
const (
@@ -135,8 +135,8 @@ type AdultInfo = original.AdultInfo
type Category = original.Category
type CategoryDetail = original.CategoryDetail
type CelebritiesModel = original.CelebritiesModel
type CelebrityResults = original.CelebrityResults
type ColorInfo = original.ColorInfo
type DomainModelResult = original.DomainModelResult
type DomainModelResults = original.DomainModelResults
type Error = original.Error
type FaceDescription = original.FaceDescription
@@ -149,6 +149,8 @@ type ImageMetadata = original.ImageMetadata
type ImageTag = original.ImageTag
type ImageType = original.ImageType
type ImageURL = original.ImageURL
type LandmarkResults = original.LandmarkResults
type LandmarksModel = original.LandmarksModel
type Line = original.Line
type ListModelsResult = original.ListModelsResult
type ModelDescription = original.ModelDescription
@@ -174,9 +176,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
func PossibleDetailsValues() []Details {
return original.PossibleDetailsValues()
}
func PossibleDomainModelsValues() []DomainModels {
return original.PossibleDomainModelsValues()
}
func PossibleErrorCodesValues() []ErrorCodes {
return original.PossibleErrorCodesValues()
}
@@ -189,6 +188,9 @@ func PossibleOcrLanguagesValues() []OcrLanguages {
func PossibleTextOperationStatusCodesValues() []TextOperationStatusCodes {
return original.PossibleTextOperationStatusCodesValues()
}
func PossibleTextRecognitionModeValues() []TextRecognitionMode {
return original.PossibleTextRecognitionModeValues()
}
func PossibleVisualFeatureTypesValues() []VisualFeatureTypes {
return original.PossibleVisualFeatureTypesValues()
}

View File

@@ -56,12 +56,16 @@ type AzureRegions = original.AzureRegions
const (
Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus

View File

@@ -31,12 +31,16 @@ type AzureRegions = original.AzureRegions
const (
Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus

View File

@@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
const (
Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus

View File

@@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
const (
Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus

View File

@@ -55,13 +55,24 @@ type Forecast = original.Forecast
type ForecastProperties = original.ForecastProperties
type ForecastPropertiesConfidenceLevelsItem = original.ForecastPropertiesConfidenceLevelsItem
type ForecastsListResult = original.ForecastsListResult
type MeterDetails = original.MeterDetails
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type PriceSheetModel = original.PriceSheetModel
type PriceSheetProperties = original.PriceSheetProperties
type PriceSheetResult = original.PriceSheetResult
type Resource = original.Resource
type UsageDetail = original.UsageDetail
type UsageDetailProperties = original.UsageDetailProperties
type UsageDetailsListResult = original.UsageDetailsListResult
type UsageDetailsListResultIterator = original.UsageDetailsListResultIterator
type UsageDetailsListResultPage = original.UsageDetailsListResultPage
type OperationsClient = original.OperationsClient
type PriceSheetClient = original.PriceSheetClient
type UsageDetailsClient = original.UsageDetailsClient
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
@@ -90,6 +101,18 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewPriceSheetClient(subscriptionID string) PriceSheetClient {
return original.NewPriceSheetClient(subscriptionID)
}
func NewPriceSheetClientWithBaseURI(baseURI string, subscriptionID string) PriceSheetClient {
return original.NewPriceSheetClientWithBaseURI(baseURI, subscriptionID)
}
func NewUsageDetailsClient(subscriptionID string) UsageDetailsClient {
return original.NewUsageDetailsClient(subscriptionID)
}
func NewUsageDetailsClientWithBaseURI(baseURI string, subscriptionID string) UsageDetailsClient {
return original.NewUsageDetailsClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}

View File

@@ -19,7 +19,7 @@
package containerservice
import original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2017-09-30/containerservice"
import original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice"
const (
DefaultBaseURI = original.DefaultBaseURI
@@ -28,6 +28,19 @@ const (
type BaseClient = original.BaseClient
type ContainerServicesClient = original.ContainerServicesClient
type ManagedClustersClient = original.ManagedClustersClient
type NetworkPlugin = original.NetworkPlugin
const (
Azure NetworkPlugin = original.Azure
Kubenet NetworkPlugin = original.Kubenet
)
type NetworkPolicy = original.NetworkPolicy
const (
Calico NetworkPolicy = original.Calico
)
type OrchestratorTypes = original.OrchestratorTypes
const (
@@ -244,7 +257,10 @@ type ListResult = original.ListResult
type ListResultIterator = original.ListResultIterator
type ListResultPage = original.ListResultPage
type ManagedCluster = original.ManagedCluster
type ManagedClusterAADProfile = original.ManagedClusterAADProfile
type ManagedClusterAccessProfile = original.ManagedClusterAccessProfile
type ManagedClusterAddonProfile = original.ManagedClusterAddonProfile
type ManagedClusterAgentPoolProfile = original.ManagedClusterAgentPoolProfile
type ManagedClusterListResult = original.ManagedClusterListResult
type ManagedClusterListResultIterator = original.ManagedClusterListResultIterator
type ManagedClusterListResultPage = original.ManagedClusterListResultPage
@@ -255,6 +271,10 @@ type ManagedClustersDeleteFuture = original.ManagedClustersDeleteFuture
type ManagedClusterUpgradeProfile = original.ManagedClusterUpgradeProfile
type ManagedClusterUpgradeProfileProperties = original.ManagedClusterUpgradeProfileProperties
type MasterProfile = original.MasterProfile
type NetworkProfile = original.NetworkProfile
type OperationListResult = original.OperationListResult
type OperationValue = original.OperationValue
type OperationValueDisplay = original.OperationValueDisplay
type OrchestratorProfile = original.OrchestratorProfile
type OrchestratorProfileType = original.OrchestratorProfileType
type OrchestratorVersionProfile = original.OrchestratorVersionProfile
@@ -267,6 +287,7 @@ type SSHConfiguration = original.SSHConfiguration
type SSHPublicKey = original.SSHPublicKey
type VMDiagnostics = original.VMDiagnostics
type WindowsProfile = original.WindowsProfile
type OperationsClient = original.OperationsClient
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
@@ -286,6 +307,12 @@ func NewManagedClustersClient(subscriptionID string) ManagedClustersClient {
func NewManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) ManagedClustersClient {
return original.NewManagedClustersClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleNetworkPluginValues() []NetworkPlugin {
return original.PossibleNetworkPluginValues()
}
func PossibleNetworkPolicyValues() []NetworkPolicy {
return original.PossibleNetworkPolicyValues()
}
func PossibleOrchestratorTypesValues() []OrchestratorTypes {
return original.PossibleOrchestratorTypesValues()
}
@@ -298,6 +325,12 @@ func PossibleStorageProfileTypesValues() []StorageProfileTypes {
func PossibleVMSizeTypesValues() []VMSizeTypes {
return original.PossibleVMSizeTypesValues()
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}

View File

@@ -19,7 +19,7 @@
package datafactory
import original "github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2017-09-01-preview/datafactory"
import original "github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory"
type ActivityRunsClient = original.ActivityRunsClient
@@ -42,14 +42,6 @@ const (
AuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = original.AuthenticationTypeWebLinkedServiceTypeProperties
)
type AuthorizationType = original.AuthorizationType
const (
AuthorizationTypeKey AuthorizationType = original.AuthorizationTypeKey
AuthorizationTypeLinkedIntegrationRuntimeProperties AuthorizationType = original.AuthorizationTypeLinkedIntegrationRuntimeProperties
AuthorizationTypeRBAC AuthorizationType = original.AuthorizationTypeRBAC
)
type AzureSearchIndexWriteBehaviorType = original.AzureSearchIndexWriteBehaviorType
const (
@@ -57,6 +49,13 @@ const (
Upload AzureSearchIndexWriteBehaviorType = original.Upload
)
type BlobEventTypes = original.BlobEventTypes
const (
MicrosoftStorageBlobCreated BlobEventTypes = original.MicrosoftStorageBlobCreated
MicrosoftStorageBlobDeleted BlobEventTypes = original.MicrosoftStorageBlobDeleted
)
type CassandraSourceReadConsistencyLevels = original.CassandraSourceReadConsistencyLevels
const (
@@ -321,38 +320,6 @@ const (
PhoenixAuthenticationTypeWindowsAzureHDInsightService PhoenixAuthenticationType = original.PhoenixAuthenticationTypeWindowsAzureHDInsightService
)
type PipelineRunQueryFilterOperand = original.PipelineRunQueryFilterOperand
const (
PipelineName PipelineRunQueryFilterOperand = original.PipelineName
RunEnd PipelineRunQueryFilterOperand = original.RunEnd
RunStart PipelineRunQueryFilterOperand = original.RunStart
Status PipelineRunQueryFilterOperand = original.Status
)
type PipelineRunQueryFilterOperator = original.PipelineRunQueryFilterOperator
const (
Equals PipelineRunQueryFilterOperator = original.Equals
In PipelineRunQueryFilterOperator = original.In
NotEquals PipelineRunQueryFilterOperator = original.NotEquals
NotIn PipelineRunQueryFilterOperator = original.NotIn
)
type PipelineRunQueryOrder = original.PipelineRunQueryOrder
const (
ASC PipelineRunQueryOrder = original.ASC
DESC PipelineRunQueryOrder = original.DESC
)
type PipelineRunQueryOrderByField = original.PipelineRunQueryOrderByField
const (
PipelineRunQueryOrderByFieldRunEnd PipelineRunQueryOrderByField = original.PipelineRunQueryOrderByFieldRunEnd
PipelineRunQueryOrderByFieldRunStart PipelineRunQueryOrderByField = original.PipelineRunQueryOrderByFieldRunStart
)
type PolybaseSettingsRejectType = original.PolybaseSettingsRejectType
const (
@@ -379,6 +346,51 @@ const (
Year RecurrenceFrequency = original.Year
)
type RunQueryFilterOperand = original.RunQueryFilterOperand
const (
ActivityName RunQueryFilterOperand = original.ActivityName
ActivityRunEnd RunQueryFilterOperand = original.ActivityRunEnd
ActivityRunStart RunQueryFilterOperand = original.ActivityRunStart
ActivityType RunQueryFilterOperand = original.ActivityType
PipelineName RunQueryFilterOperand = original.PipelineName
RunEnd RunQueryFilterOperand = original.RunEnd
RunStart RunQueryFilterOperand = original.RunStart
Status RunQueryFilterOperand = original.Status
TriggerName RunQueryFilterOperand = original.TriggerName
TriggerRunTimestamp RunQueryFilterOperand = original.TriggerRunTimestamp
)
type RunQueryFilterOperator = original.RunQueryFilterOperator
const (
Equals RunQueryFilterOperator = original.Equals
In RunQueryFilterOperator = original.In
NotEquals RunQueryFilterOperator = original.NotEquals
NotIn RunQueryFilterOperator = original.NotIn
)
type RunQueryOrder = original.RunQueryOrder
const (
ASC RunQueryOrder = original.ASC
DESC RunQueryOrder = original.DESC
)
type RunQueryOrderByField = original.RunQueryOrderByField
const (
RunQueryOrderByFieldActivityName RunQueryOrderByField = original.RunQueryOrderByFieldActivityName
RunQueryOrderByFieldActivityRunEnd RunQueryOrderByField = original.RunQueryOrderByFieldActivityRunEnd
RunQueryOrderByFieldActivityRunStart RunQueryOrderByField = original.RunQueryOrderByFieldActivityRunStart
RunQueryOrderByFieldPipelineName RunQueryOrderByField = original.RunQueryOrderByFieldPipelineName
RunQueryOrderByFieldRunEnd RunQueryOrderByField = original.RunQueryOrderByFieldRunEnd
RunQueryOrderByFieldRunStart RunQueryOrderByField = original.RunQueryOrderByFieldRunStart
RunQueryOrderByFieldStatus RunQueryOrderByField = original.RunQueryOrderByFieldStatus
RunQueryOrderByFieldTriggerName RunQueryOrderByField = original.RunQueryOrderByFieldTriggerName
RunQueryOrderByFieldTriggerRunTimestamp RunQueryOrderByField = original.RunQueryOrderByFieldTriggerRunTimestamp
)
type SalesforceSinkWriteBehavior = original.SalesforceSinkWriteBehavior
const (
@@ -714,6 +726,14 @@ const (
TypeTextFormat TypeBasicDatasetStorageFormat = original.TypeTextFormat
)
type TypeBasicFactoryRepoConfiguration = original.TypeBasicFactoryRepoConfiguration
const (
TypeFactoryGithubConfiguration TypeBasicFactoryRepoConfiguration = original.TypeFactoryGithubConfiguration
TypeFactoryRepoConfiguration TypeBasicFactoryRepoConfiguration = original.TypeFactoryRepoConfiguration
TypeFactoryVSTSConfiguration TypeBasicFactoryRepoConfiguration = original.TypeFactoryVSTSConfiguration
)
type TypeBasicIntegrationRuntime = original.TypeBasicIntegrationRuntime
const (
@@ -809,6 +829,7 @@ const (
type TypeBasicTrigger = original.TypeBasicTrigger
const (
TypeBlobEventsTrigger TypeBasicTrigger = original.TypeBlobEventsTrigger
TypeBlobTrigger TypeBasicTrigger = original.TypeBlobTrigger
TypeMultiplePipelineTrigger TypeBasicTrigger = original.TypeMultiplePipelineTrigger
TypeScheduleTrigger TypeBasicTrigger = original.TypeScheduleTrigger
@@ -830,9 +851,7 @@ type Activity = original.Activity
type ActivityDependency = original.ActivityDependency
type ActivityPolicy = original.ActivityPolicy
type ActivityRun = original.ActivityRun
type ActivityRunsListResponse = original.ActivityRunsListResponse
type ActivityRunsListResponseIterator = original.ActivityRunsListResponseIterator
type ActivityRunsListResponsePage = original.ActivityRunsListResponsePage
type ActivityRunsQueryResponse = original.ActivityRunsQueryResponse
type AmazonMWSLinkedService = original.AmazonMWSLinkedService
type AmazonMWSLinkedServiceTypeProperties = original.AmazonMWSLinkedServiceTypeProperties
type AmazonMWSObjectDataset = original.AmazonMWSObjectDataset
@@ -898,6 +917,8 @@ type AzureTableDataset = original.AzureTableDataset
type AzureTableDatasetTypeProperties = original.AzureTableDatasetTypeProperties
type AzureTableSink = original.AzureTableSink
type AzureTableSource = original.AzureTableSource
type BlobEventsTrigger = original.BlobEventsTrigger
type BlobEventsTriggerTypeProperties = original.BlobEventsTriggerTypeProperties
type BlobSink = original.BlobSink
type BlobSource = original.BlobSource
type BlobTrigger = original.BlobTrigger
@@ -907,6 +928,8 @@ type CassandraLinkedServiceTypeProperties = original.CassandraLinkedServiceTypeP
type CassandraSource = original.CassandraSource
type CassandraTableDataset = original.CassandraTableDataset
type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties
type CloudError = original.CloudError
type CloudErrorBody = original.CloudErrorBody
type ConcurLinkedService = original.ConcurLinkedService
type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties
type ConcurObjectDataset = original.ConcurObjectDataset
@@ -973,7 +996,6 @@ type EloquaLinkedService = original.EloquaLinkedService
type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypeProperties
type EloquaObjectDataset = original.EloquaObjectDataset
type EloquaSource = original.EloquaSource
type ErrorResponse = original.ErrorResponse
type ExecutePipelineActivity = original.ExecutePipelineActivity
type ExecutePipelineActivityTypeProperties = original.ExecutePipelineActivityTypeProperties
type ExecuteSSISPackageActivity = original.ExecuteSSISPackageActivity
@@ -982,11 +1004,14 @@ type BasicExecutionActivity = original.BasicExecutionActivity
type ExecutionActivity = original.ExecutionActivity
type Expression = original.Expression
type Factory = original.Factory
type FactoryGitHubConfiguration = original.FactoryGitHubConfiguration
type FactoryIdentity = original.FactoryIdentity
type FactoryListResponse = original.FactoryListResponse
type FactoryListResponseIterator = original.FactoryListResponseIterator
type FactoryListResponsePage = original.FactoryListResponsePage
type FactoryProperties = original.FactoryProperties
type BasicFactoryRepoConfiguration = original.BasicFactoryRepoConfiguration
type FactoryRepoConfiguration = original.FactoryRepoConfiguration
type FactoryRepoUpdate = original.FactoryRepoUpdate
type FactoryUpdateParameters = original.FactoryUpdateParameters
type FactoryVSTSConfiguration = original.FactoryVSTSConfiguration
@@ -1066,7 +1091,6 @@ type IntegrationRuntimeNodeIPAddress = original.IntegrationRuntimeNodeIPAddress
type IntegrationRuntimeNodeMonitoringData = original.IntegrationRuntimeNodeMonitoringData
type IntegrationRuntimeReference = original.IntegrationRuntimeReference
type IntegrationRuntimeRegenerateKeyParameters = original.IntegrationRuntimeRegenerateKeyParameters
type IntegrationRuntimeRemoveNodeRequest = original.IntegrationRuntimeRemoveNodeRequest
type IntegrationRuntimeResource = original.IntegrationRuntimeResource
type IntegrationRuntimeSsisCatalogInfo = original.IntegrationRuntimeSsisCatalogInfo
type IntegrationRuntimeSsisProperties = original.IntegrationRuntimeSsisProperties
@@ -1082,12 +1106,6 @@ type JiraLinkedServiceTypeProperties = original.JiraLinkedServiceTypeProperties
type JiraObjectDataset = original.JiraObjectDataset
type JiraSource = original.JiraSource
type JSONFormat = original.JSONFormat
type LinkedIntegrationRuntime = original.LinkedIntegrationRuntime
type LinkedIntegrationRuntimeKey = original.LinkedIntegrationRuntimeKey
type BasicLinkedIntegrationRuntimeProperties = original.BasicLinkedIntegrationRuntimeProperties
type LinkedIntegrationRuntimeProperties = original.LinkedIntegrationRuntimeProperties
type LinkedIntegrationRuntimeRbac = original.LinkedIntegrationRuntimeRbac
type LinkedIntegrationRuntimeTypeProperties = original.LinkedIntegrationRuntimeTypeProperties
type BasicLinkedService = original.BasicLinkedService
type LinkedService = original.LinkedService
type LinkedServiceListResponse = original.LinkedServiceListResponse
@@ -1139,8 +1157,11 @@ type OdbcSink = original.OdbcSink
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResponse = original.OperationListResponse
type OperationListResponseIterator = original.OperationListResponseIterator
type OperationListResponsePage = original.OperationListResponsePage
type OperationLogSpecification = original.OperationLogSpecification
type OperationMetricAvailability = original.OperationMetricAvailability
type OperationMetricDimension = original.OperationMetricDimension
type OperationMetricSpecification = original.OperationMetricSpecification
type OperationProperties = original.OperationProperties
type OperationServiceSpecification = original.OperationServiceSpecification
@@ -1168,11 +1189,8 @@ type PipelineListResponsePage = original.PipelineListResponsePage
type PipelineReference = original.PipelineReference
type PipelineResource = original.PipelineResource
type PipelineRun = original.PipelineRun
type PipelineRunFilterParameters = original.PipelineRunFilterParameters
type PipelineRunInvokedBy = original.PipelineRunInvokedBy
type PipelineRunQueryFilter = original.PipelineRunQueryFilter
type PipelineRunQueryOrderBy = original.PipelineRunQueryOrderBy
type PipelineRunQueryResponse = original.PipelineRunQueryResponse
type PipelineRunsQueryResponse = original.PipelineRunsQueryResponse
type PolybaseSettings = original.PolybaseSettings
type PostgreSQLLinkedService = original.PostgreSQLLinkedService
type PostgreSQLLinkedServiceTypeProperties = original.PostgreSQLLinkedServiceTypeProperties
@@ -1197,6 +1215,9 @@ type ResponsysLinkedServiceTypeProperties = original.ResponsysLinkedServiceTypeP
type ResponsysObjectDataset = original.ResponsysObjectDataset
type ResponsysSource = original.ResponsysSource
type RetryPolicy = original.RetryPolicy
type RunFilterParameters = original.RunFilterParameters
type RunQueryFilter = original.RunQueryFilter
type RunQueryOrderBy = original.RunQueryOrderBy
type SalesforceLinkedService = original.SalesforceLinkedService
type SalesforceLinkedServiceTypeProperties = original.SalesforceLinkedServiceTypeProperties
type SalesforceMarketingCloudLinkedService = original.SalesforceMarketingCloudLinkedService
@@ -1280,9 +1301,7 @@ type TriggerListResponsePage = original.TriggerListResponsePage
type TriggerPipelineReference = original.TriggerPipelineReference
type TriggerResource = original.TriggerResource
type TriggerRun = original.TriggerRun
type TriggerRunListResponse = original.TriggerRunListResponse
type TriggerRunListResponseIterator = original.TriggerRunListResponseIterator
type TriggerRunListResponsePage = original.TriggerRunListResponsePage
type TriggerRunsQueryResponse = original.TriggerRunsQueryResponse
type TriggersStartFuture = original.TriggersStartFuture
type TriggersStopFuture = original.TriggersStopFuture
type TumblingWindowTrigger = original.TumblingWindowTrigger
@@ -1320,6 +1339,7 @@ type ZohoSource = original.ZohoSource
type OperationsClient = original.OperationsClient
type PipelineRunsClient = original.PipelineRunsClient
type PipelinesClient = original.PipelinesClient
type TriggerRunsClient = original.TriggerRunsClient
type TriggersClient = original.TriggersClient
func NewActivityRunsClient(subscriptionID string) ActivityRunsClient {
@@ -1367,12 +1387,12 @@ func NewLinkedServicesClientWithBaseURI(baseURI string, subscriptionID string) L
func PossibleAuthenticationTypeValues() []AuthenticationType {
return original.PossibleAuthenticationTypeValues()
}
func PossibleAuthorizationTypeValues() []AuthorizationType {
return original.PossibleAuthorizationTypeValues()
}
func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBehaviorType {
return original.PossibleAzureSearchIndexWriteBehaviorTypeValues()
}
func PossibleBlobEventTypesValues() []BlobEventTypes {
return original.PossibleBlobEventTypesValues()
}
func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels {
return original.PossibleCassandraSourceReadConsistencyLevelsValues()
}
@@ -1466,18 +1486,6 @@ func PossibleParameterTypeValues() []ParameterType {
func PossiblePhoenixAuthenticationTypeValues() []PhoenixAuthenticationType {
return original.PossiblePhoenixAuthenticationTypeValues()
}
func PossiblePipelineRunQueryFilterOperandValues() []PipelineRunQueryFilterOperand {
return original.PossiblePipelineRunQueryFilterOperandValues()
}
func PossiblePipelineRunQueryFilterOperatorValues() []PipelineRunQueryFilterOperator {
return original.PossiblePipelineRunQueryFilterOperatorValues()
}
func PossiblePipelineRunQueryOrderValues() []PipelineRunQueryOrder {
return original.PossiblePipelineRunQueryOrderValues()
}
func PossiblePipelineRunQueryOrderByFieldValues() []PipelineRunQueryOrderByField {
return original.PossiblePipelineRunQueryOrderByFieldValues()
}
func PossiblePolybaseSettingsRejectTypeValues() []PolybaseSettingsRejectType {
return original.PossiblePolybaseSettingsRejectTypeValues()
}
@@ -1487,6 +1495,18 @@ func PossiblePrestoAuthenticationTypeValues() []PrestoAuthenticationType {
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
return original.PossibleRecurrenceFrequencyValues()
}
func PossibleRunQueryFilterOperandValues() []RunQueryFilterOperand {
return original.PossibleRunQueryFilterOperandValues()
}
func PossibleRunQueryFilterOperatorValues() []RunQueryFilterOperator {
return original.PossibleRunQueryFilterOperatorValues()
}
func PossibleRunQueryOrderValues() []RunQueryOrder {
return original.PossibleRunQueryOrderValues()
}
func PossibleRunQueryOrderByFieldValues() []RunQueryOrderByField {
return original.PossibleRunQueryOrderByFieldValues()
}
func PossibleSalesforceSinkWriteBehaviorValues() []SalesforceSinkWriteBehavior {
return original.PossibleSalesforceSinkWriteBehaviorValues()
}
@@ -1562,6 +1582,9 @@ func PossibleTypeBasicDatasetCompressionValues() []TypeBasicDatasetCompression {
func PossibleTypeBasicDatasetStorageFormatValues() []TypeBasicDatasetStorageFormat {
return original.PossibleTypeBasicDatasetStorageFormatValues()
}
func PossibleTypeBasicFactoryRepoConfigurationValues() []TypeBasicFactoryRepoConfiguration {
return original.PossibleTypeBasicFactoryRepoConfigurationValues()
}
func PossibleTypeBasicIntegrationRuntimeValues() []TypeBasicIntegrationRuntime {
return original.PossibleTypeBasicIntegrationRuntimeValues()
}
@@ -1595,6 +1618,12 @@ func NewPipelinesClient(subscriptionID string) PipelinesClient {
func NewPipelinesClientWithBaseURI(baseURI string, subscriptionID string) PipelinesClient {
return original.NewPipelinesClientWithBaseURI(baseURI, subscriptionID)
}
func NewTriggerRunsClient(subscriptionID string) TriggerRunsClient {
return original.NewTriggerRunsClient(subscriptionID)
}
func NewTriggerRunsClientWithBaseURI(baseURI string, subscriptionID string) TriggerRunsClient {
return original.NewTriggerRunsClientWithBaseURI(baseURI, subscriptionID)
}
func NewTriggersClient(subscriptionID string) TriggersClient {
return original.NewTriggersClient(subscriptionID)
}

View File

@@ -19,7 +19,7 @@
package keyvault
import original "github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault"
import original "github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault"
const (
DefaultBaseURI = original.DefaultBaseURI
@@ -37,6 +37,7 @@ const (
type CertificatePermissions = original.CertificatePermissions
const (
Backup CertificatePermissions = original.Backup
Create CertificatePermissions = original.Create
Delete CertificatePermissions = original.Delete
Deleteissuers CertificatePermissions = original.Deleteissuers
@@ -49,6 +50,7 @@ const (
Manageissuers CertificatePermissions = original.Manageissuers
Purge CertificatePermissions = original.Purge
Recover CertificatePermissions = original.Recover
Restore CertificatePermissions = original.Restore
Setissuers CertificatePermissions = original.Setissuers
Update CertificatePermissions = original.Update
)
@@ -81,6 +83,20 @@ const (
KeyPermissionsWrapKey KeyPermissions = original.KeyPermissionsWrapKey
)
type NetworkRuleAction = original.NetworkRuleAction
const (
Allow NetworkRuleAction = original.Allow
Deny NetworkRuleAction = original.Deny
)
type NetworkRuleBypassOptions = original.NetworkRuleBypassOptions
const (
AzureServices NetworkRuleBypassOptions = original.AzureServices
None NetworkRuleBypassOptions = original.None
)
type Reason = original.Reason
const (
@@ -134,7 +150,9 @@ type DeletedVaultListResult = original.DeletedVaultListResult
type DeletedVaultListResultIterator = original.DeletedVaultListResultIterator
type DeletedVaultListResultPage = original.DeletedVaultListResultPage
type DeletedVaultProperties = original.DeletedVaultProperties
type IPRule = original.IPRule
type LogSpecification = original.LogSpecification
type NetworkRuleSet = original.NetworkRuleSet
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
@@ -159,7 +177,9 @@ type VaultListResultPage = original.VaultListResultPage
type VaultPatchParameters = original.VaultPatchParameters
type VaultPatchProperties = original.VaultPatchProperties
type VaultProperties = original.VaultProperties
type VaultsCreateOrUpdateFuture = original.VaultsCreateOrUpdateFuture
type VaultsPurgeDeletedFuture = original.VaultsPurgeDeletedFuture
type VirtualNetworkRule = original.VirtualNetworkRule
type OperationsClient = original.OperationsClient
type VaultsClient = original.VaultsClient
@@ -181,6 +201,12 @@ func PossibleCreateModeValues() []CreateMode {
func PossibleKeyPermissionsValues() []KeyPermissions {
return original.PossibleKeyPermissionsValues()
}
func PossibleNetworkRuleActionValues() []NetworkRuleAction {
return original.PossibleNetworkRuleActionValues()
}
func PossibleNetworkRuleBypassOptionsValues() []NetworkRuleBypassOptions {
return original.PossibleNetworkRuleBypassOptionsValues()
}
func PossibleReasonValues() []Reason {
return original.PossibleReasonValues()
}

View File

@@ -522,8 +522,9 @@ const (
type ProbeProtocol = original.ProbeProtocol
const (
ProbeProtocolHTTP ProbeProtocol = original.ProbeProtocolHTTP
ProbeProtocolTCP ProbeProtocol = original.ProbeProtocolTCP
ProbeProtocolHTTP ProbeProtocol = original.ProbeProtocolHTTP
ProbeProtocolHTTPS ProbeProtocol = original.ProbeProtocolHTTPS
ProbeProtocolTCP ProbeProtocol = original.ProbeProtocolTCP
)
type ProcessorArchitecture = original.ProcessorArchitecture

View File

@@ -58,6 +58,8 @@ type BaiduCredentialProperties = original.BaiduCredentialProperties
type CheckAvailabilityParameters = original.CheckAvailabilityParameters
type CheckAvailabilityResult = original.CheckAvailabilityResult
type CreateOrUpdateParameters = original.CreateOrUpdateParameters
type DebugSendResponse = original.DebugSendResponse
type DebugSendResult = original.DebugSendResult
type ErrorResponse = original.ErrorResponse
type GcmCredential = original.GcmCredential
type GcmCredentialProperties = original.GcmCredentialProperties
@@ -79,6 +81,7 @@ type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type PatchParameters = original.PatchParameters
type PnsCredentialsProperties = original.PnsCredentialsProperties
type PnsCredentialsResource = original.PnsCredentialsResource
type PolicykeyResource = original.PolicykeyResource

View File

@@ -19,11 +19,10 @@
package apimanagement
import original "github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2018-01-01/apimanagement"
import original "github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement"
type APIClient = original.APIClient
type APIDiagnosticClient = original.APIDiagnosticClient
type APIDiagnosticLoggerClient = original.APIDiagnosticLoggerClient
type APIExportClient = original.APIExportClient
type APIIssueClient = original.APIIssueClient
type APIIssueAttachmentClient = original.APIIssueAttachmentClient
@@ -47,12 +46,17 @@ const (
type BaseClient = original.BaseClient
type DelegationSettingsClient = original.DelegationSettingsClient
type DiagnosticClient = original.DiagnosticClient
type DiagnosticLoggerClient = original.DiagnosticLoggerClient
type EmailTemplateClient = original.EmailTemplateClient
type GroupClient = original.GroupClient
type GroupUserClient = original.GroupUserClient
type IdentityProviderClient = original.IdentityProviderClient
type LoggerClient = original.LoggerClient
type AlwaysLog = original.AlwaysLog
const (
AllErrors AlwaysLog = original.AllErrors
)
type APIType = original.APIType
const (
@@ -241,6 +245,12 @@ const (
ProtocolHTTPS Protocol = original.ProtocolHTTPS
)
type SamplingType = original.SamplingType
const (
Fixed SamplingType = original.Fixed
)
type SkuType = original.SkuType
const (
@@ -398,6 +408,7 @@ type BackendServiceFabricClusterProperties = original.BackendServiceFabricCluste
type BackendTLSProperties = original.BackendTLSProperties
type BackendUpdateParameterProperties = original.BackendUpdateParameterProperties
type BackendUpdateParameters = original.BackendUpdateParameters
type BodyDiagnosticSettings = original.BodyDiagnosticSettings
type CertificateCollection = original.CertificateCollection
type CertificateCollectionIterator = original.CertificateCollectionIterator
type CertificateCollectionPage = original.CertificateCollectionPage
@@ -437,6 +448,7 @@ type GroupUpdateParameters = original.GroupUpdateParameters
type GroupUpdateParametersProperties = original.GroupUpdateParametersProperties
type HostnameConfiguration = original.HostnameConfiguration
type HostnameConfigurationOld = original.HostnameConfigurationOld
type HTTPMessageDiagnostic = original.HTTPMessageDiagnostic
type IdentityProviderBaseParameters = original.IdentityProviderBaseParameters
type IdentityProviderContract = original.IdentityProviderContract
type IdentityProviderContractProperties = original.IdentityProviderContractProperties
@@ -500,6 +512,7 @@ type OperationTagResourceContractProperties = original.OperationTagResourceContr
type OperationUpdateContract = original.OperationUpdateContract
type OperationUpdateContractProperties = original.OperationUpdateContractProperties
type ParameterContract = original.ParameterContract
type PipelineDiagnosticSettings = original.PipelineDiagnosticSettings
type PolicyCollection = original.PolicyCollection
type PolicyContract = original.PolicyContract
type PolicyContractProperties = original.PolicyContractProperties
@@ -554,6 +567,7 @@ type RequestReportCollection = original.RequestReportCollection
type RequestReportRecordContract = original.RequestReportRecordContract
type Resource = original.Resource
type ResponseContract = original.ResponseContract
type SamplingSettings = original.SamplingSettings
type SaveConfigurationParameter = original.SaveConfigurationParameter
type SchemaCollection = original.SchemaCollection
type SchemaCollectionIterator = original.SchemaCollectionIterator
@@ -683,12 +697,6 @@ func NewAPIDiagnosticClient(subscriptionID string) APIDiagnosticClient {
func NewAPIDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticClient {
return original.NewAPIDiagnosticClientWithBaseURI(baseURI, subscriptionID)
}
func NewAPIDiagnosticLoggerClient(subscriptionID string) APIDiagnosticLoggerClient {
return original.NewAPIDiagnosticLoggerClient(subscriptionID)
}
func NewAPIDiagnosticLoggerClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticLoggerClient {
return original.NewAPIDiagnosticLoggerClientWithBaseURI(baseURI, subscriptionID)
}
func NewAPIExportClient(subscriptionID string) APIExportClient {
return original.NewAPIExportClient(subscriptionID)
}
@@ -797,12 +805,6 @@ func NewDiagnosticClient(subscriptionID string) DiagnosticClient {
func NewDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticClient {
return original.NewDiagnosticClientWithBaseURI(baseURI, subscriptionID)
}
func NewDiagnosticLoggerClient(subscriptionID string) DiagnosticLoggerClient {
return original.NewDiagnosticLoggerClient(subscriptionID)
}
func NewDiagnosticLoggerClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticLoggerClient {
return original.NewDiagnosticLoggerClientWithBaseURI(baseURI, subscriptionID)
}
func NewEmailTemplateClient(subscriptionID string) EmailTemplateClient {
return original.NewEmailTemplateClient(subscriptionID)
}
@@ -833,6 +835,9 @@ func NewLoggerClient(subscriptionID string) LoggerClient {
func NewLoggerClientWithBaseURI(baseURI string, subscriptionID string) LoggerClient {
return original.NewLoggerClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleAlwaysLogValues() []AlwaysLog {
return original.PossibleAlwaysLogValues()
}
func PossibleAPITypeValues() []APIType {
return original.PossibleAPITypeValues()
}
@@ -899,6 +904,9 @@ func PossibleProductStateValues() []ProductState {
func PossibleProtocolValues() []Protocol {
return original.PossibleProtocolValues()
}
func PossibleSamplingTypeValues() []SamplingType {
return original.PossibleSamplingTypeValues()
}
func PossibleSkuTypeValues() []SkuType {
return original.PossibleSkuTypeValues()
}

View File

@@ -0,0 +1,915 @@
// +build go1.9
// Copyright 2018 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package automation
import original "github.com/Azure/azure-sdk-for-go/services/preview/automation/mgmt/2017-05-15-preview/automation"
type AccountClient = original.AccountClient
type ActivityClient = original.ActivityClient
type AgentRegistrationInformationClient = original.AgentRegistrationInformationClient
type CertificateClient = original.CertificateClient
const (
DefaultBaseURI = original.DefaultBaseURI
)
type BaseClient = original.BaseClient
type ConnectionClient = original.ConnectionClient
type ConnectionTypeClient = original.ConnectionTypeClient
type CredentialClient = original.CredentialClient
type DscCompilationJobClient = original.DscCompilationJobClient
type DscCompilationJobStreamClient = original.DscCompilationJobStreamClient
type DscConfigurationClient = original.DscConfigurationClient
type DscNodeClient = original.DscNodeClient
type DscNodeConfigurationClient = original.DscNodeConfigurationClient
type FieldsClient = original.FieldsClient
type HybridRunbookWorkerGroupClient = original.HybridRunbookWorkerGroupClient
type JobClient = original.JobClient
type JobScheduleClient = original.JobScheduleClient
type JobStreamClient = original.JobStreamClient
type KeysClient = original.KeysClient
type LinkedWorkspaceClient = original.LinkedWorkspaceClient
type AccountState = original.AccountState
const (
Ok AccountState = original.Ok
Suspended AccountState = original.Suspended
Unavailable AccountState = original.Unavailable
)
type AgentRegistrationKeyName = original.AgentRegistrationKeyName
const (
Primary AgentRegistrationKeyName = original.Primary
Secondary AgentRegistrationKeyName = original.Secondary
)
type ContentSourceType = original.ContentSourceType
const (
EmbeddedContent ContentSourceType = original.EmbeddedContent
URI ContentSourceType = original.URI
)
type DscConfigurationProvisioningState = original.DscConfigurationProvisioningState
const (
Succeeded DscConfigurationProvisioningState = original.Succeeded
)
type DscConfigurationState = original.DscConfigurationState
const (
DscConfigurationStateEdit DscConfigurationState = original.DscConfigurationStateEdit
DscConfigurationStateNew DscConfigurationState = original.DscConfigurationStateNew
DscConfigurationStatePublished DscConfigurationState = original.DscConfigurationStatePublished
)
type GroupTypeEnum = original.GroupTypeEnum
const (
System GroupTypeEnum = original.System
User GroupTypeEnum = original.User
)
type HTTPStatusCode = original.HTTPStatusCode
const (
Accepted HTTPStatusCode = original.Accepted
Ambiguous HTTPStatusCode = original.Ambiguous
BadGateway HTTPStatusCode = original.BadGateway
BadRequest HTTPStatusCode = original.BadRequest
Conflict HTTPStatusCode = original.Conflict
Continue HTTPStatusCode = original.Continue
Created HTTPStatusCode = original.Created
ExpectationFailed HTTPStatusCode = original.ExpectationFailed
Forbidden HTTPStatusCode = original.Forbidden
Found HTTPStatusCode = original.Found
GatewayTimeout HTTPStatusCode = original.GatewayTimeout
Gone HTTPStatusCode = original.Gone
HTTPVersionNotSupported HTTPStatusCode = original.HTTPVersionNotSupported
InternalServerError HTTPStatusCode = original.InternalServerError
LengthRequired HTTPStatusCode = original.LengthRequired
MethodNotAllowed HTTPStatusCode = original.MethodNotAllowed
Moved HTTPStatusCode = original.Moved
MovedPermanently HTTPStatusCode = original.MovedPermanently
MultipleChoices HTTPStatusCode = original.MultipleChoices
NoContent HTTPStatusCode = original.NoContent
NonAuthoritativeInformation HTTPStatusCode = original.NonAuthoritativeInformation
NotAcceptable HTTPStatusCode = original.NotAcceptable
NotFound HTTPStatusCode = original.NotFound
NotImplemented HTTPStatusCode = original.NotImplemented
NotModified HTTPStatusCode = original.NotModified
OK HTTPStatusCode = original.OK
PartialContent HTTPStatusCode = original.PartialContent
PaymentRequired HTTPStatusCode = original.PaymentRequired
PreconditionFailed HTTPStatusCode = original.PreconditionFailed
ProxyAuthenticationRequired HTTPStatusCode = original.ProxyAuthenticationRequired
Redirect HTTPStatusCode = original.Redirect
RedirectKeepVerb HTTPStatusCode = original.RedirectKeepVerb
RedirectMethod HTTPStatusCode = original.RedirectMethod
RequestedRangeNotSatisfiable HTTPStatusCode = original.RequestedRangeNotSatisfiable
RequestEntityTooLarge HTTPStatusCode = original.RequestEntityTooLarge
RequestTimeout HTTPStatusCode = original.RequestTimeout
RequestURITooLong HTTPStatusCode = original.RequestURITooLong
ResetContent HTTPStatusCode = original.ResetContent
SeeOther HTTPStatusCode = original.SeeOther
ServiceUnavailable HTTPStatusCode = original.ServiceUnavailable
SwitchingProtocols HTTPStatusCode = original.SwitchingProtocols
TemporaryRedirect HTTPStatusCode = original.TemporaryRedirect
Unauthorized HTTPStatusCode = original.Unauthorized
UnsupportedMediaType HTTPStatusCode = original.UnsupportedMediaType
Unused HTTPStatusCode = original.Unused
UpgradeRequired HTTPStatusCode = original.UpgradeRequired
UseProxy HTTPStatusCode = original.UseProxy
)
type JobProvisioningState = original.JobProvisioningState
const (
JobProvisioningStateFailed JobProvisioningState = original.JobProvisioningStateFailed
JobProvisioningStateProcessing JobProvisioningState = original.JobProvisioningStateProcessing
JobProvisioningStateSucceeded JobProvisioningState = original.JobProvisioningStateSucceeded
JobProvisioningStateSuspended JobProvisioningState = original.JobProvisioningStateSuspended
)
type JobStatus = original.JobStatus
const (
JobStatusActivating JobStatus = original.JobStatusActivating
JobStatusBlocked JobStatus = original.JobStatusBlocked
JobStatusCompleted JobStatus = original.JobStatusCompleted
JobStatusDisconnected JobStatus = original.JobStatusDisconnected
JobStatusFailed JobStatus = original.JobStatusFailed
JobStatusNew JobStatus = original.JobStatusNew
JobStatusRemoving JobStatus = original.JobStatusRemoving
JobStatusResuming JobStatus = original.JobStatusResuming
JobStatusRunning JobStatus = original.JobStatusRunning
JobStatusStopped JobStatus = original.JobStatusStopped
JobStatusStopping JobStatus = original.JobStatusStopping
JobStatusSuspended JobStatus = original.JobStatusSuspended
JobStatusSuspending JobStatus = original.JobStatusSuspending
)
type JobStreamType = original.JobStreamType
const (
Any JobStreamType = original.Any
Debug JobStreamType = original.Debug
Error JobStreamType = original.Error
Output JobStreamType = original.Output
Progress JobStreamType = original.Progress
Verbose JobStreamType = original.Verbose
Warning JobStreamType = original.Warning
)
type KeyName = original.KeyName
const (
KeyNamePrimary KeyName = original.KeyNamePrimary
KeyNameSecondary KeyName = original.KeyNameSecondary
)
type KeyPermissions = original.KeyPermissions
const (
Full KeyPermissions = original.Full
Read KeyPermissions = original.Read
)
type LinuxUpdateClasses = original.LinuxUpdateClasses
const (
Critical LinuxUpdateClasses = original.Critical
Other LinuxUpdateClasses = original.Other
Security LinuxUpdateClasses = original.Security
Unclassified LinuxUpdateClasses = original.Unclassified
)
type ModuleProvisioningState = original.ModuleProvisioningState
const (
ModuleProvisioningStateActivitiesStored ModuleProvisioningState = original.ModuleProvisioningStateActivitiesStored
ModuleProvisioningStateCancelled ModuleProvisioningState = original.ModuleProvisioningStateCancelled
ModuleProvisioningStateConnectionTypeImported ModuleProvisioningState = original.ModuleProvisioningStateConnectionTypeImported
ModuleProvisioningStateContentDownloaded ModuleProvisioningState = original.ModuleProvisioningStateContentDownloaded
ModuleProvisioningStateContentRetrieved ModuleProvisioningState = original.ModuleProvisioningStateContentRetrieved
ModuleProvisioningStateContentStored ModuleProvisioningState = original.ModuleProvisioningStateContentStored
ModuleProvisioningStateContentValidated ModuleProvisioningState = original.ModuleProvisioningStateContentValidated
ModuleProvisioningStateCreated ModuleProvisioningState = original.ModuleProvisioningStateCreated
ModuleProvisioningStateCreating ModuleProvisioningState = original.ModuleProvisioningStateCreating
ModuleProvisioningStateFailed ModuleProvisioningState = original.ModuleProvisioningStateFailed
ModuleProvisioningStateModuleDataStored ModuleProvisioningState = original.ModuleProvisioningStateModuleDataStored
ModuleProvisioningStateModuleImportRunbookComplete ModuleProvisioningState = original.ModuleProvisioningStateModuleImportRunbookComplete
ModuleProvisioningStateRunningImportModuleRunbook ModuleProvisioningState = original.ModuleProvisioningStateRunningImportModuleRunbook
ModuleProvisioningStateStartingImportModuleRunbook ModuleProvisioningState = original.ModuleProvisioningStateStartingImportModuleRunbook
ModuleProvisioningStateSucceeded ModuleProvisioningState = original.ModuleProvisioningStateSucceeded
ModuleProvisioningStateUpdating ModuleProvisioningState = original.ModuleProvisioningStateUpdating
)
type OperatingSystemType = original.OperatingSystemType
const (
Linux OperatingSystemType = original.Linux
Windows OperatingSystemType = original.Windows
)
type ProvisioningState = original.ProvisioningState
const (
Completed ProvisioningState = original.Completed
Failed ProvisioningState = original.Failed
Running ProvisioningState = original.Running
)
type RunbookProvisioningState = original.RunbookProvisioningState
const (
RunbookProvisioningStateSucceeded RunbookProvisioningState = original.RunbookProvisioningStateSucceeded
)
type RunbookState = original.RunbookState
const (
RunbookStateEdit RunbookState = original.RunbookStateEdit
RunbookStateNew RunbookState = original.RunbookStateNew
RunbookStatePublished RunbookState = original.RunbookStatePublished
)
type RunbookTypeEnum = original.RunbookTypeEnum
const (
Graph RunbookTypeEnum = original.Graph
GraphPowerShell RunbookTypeEnum = original.GraphPowerShell
GraphPowerShellWorkflow RunbookTypeEnum = original.GraphPowerShellWorkflow
PowerShell RunbookTypeEnum = original.PowerShell
PowerShellWorkflow RunbookTypeEnum = original.PowerShellWorkflow
Script RunbookTypeEnum = original.Script
)
type ScheduleDay = original.ScheduleDay
const (
Friday ScheduleDay = original.Friday
Monday ScheduleDay = original.Monday
Saturday ScheduleDay = original.Saturday
Sunday ScheduleDay = original.Sunday
Thursday ScheduleDay = original.Thursday
Tuesday ScheduleDay = original.Tuesday
Wednesday ScheduleDay = original.Wednesday
)
type ScheduleFrequency = original.ScheduleFrequency
const (
Day ScheduleFrequency = original.Day
Hour ScheduleFrequency = original.Hour
Month ScheduleFrequency = original.Month
OneTime ScheduleFrequency = original.OneTime
Week ScheduleFrequency = original.Week
)
type SkuNameEnum = original.SkuNameEnum
const (
Basic SkuNameEnum = original.Basic
Free SkuNameEnum = original.Free
)
type SourceType = original.SourceType
const (
GitHub SourceType = original.GitHub
VsoGit SourceType = original.VsoGit
VsoTfvc SourceType = original.VsoTfvc
)
type StartType = original.StartType
const (
AutoSync StartType = original.AutoSync
ManualSync StartType = original.ManualSync
)
type StreamType = original.StreamType
const (
StreamTypeError StreamType = original.StreamTypeError
StreamTypeOutput StreamType = original.StreamTypeOutput
)
type WindowsUpdateClasses = original.WindowsUpdateClasses
const (
WindowsUpdateClassesCritical WindowsUpdateClasses = original.WindowsUpdateClassesCritical
WindowsUpdateClassesDefinition WindowsUpdateClasses = original.WindowsUpdateClassesDefinition
WindowsUpdateClassesFeaturePack WindowsUpdateClasses = original.WindowsUpdateClassesFeaturePack
WindowsUpdateClassesSecurity WindowsUpdateClasses = original.WindowsUpdateClassesSecurity
WindowsUpdateClassesServicePack WindowsUpdateClasses = original.WindowsUpdateClassesServicePack
WindowsUpdateClassesTools WindowsUpdateClasses = original.WindowsUpdateClassesTools
WindowsUpdateClassesUnclassified WindowsUpdateClasses = original.WindowsUpdateClassesUnclassified
WindowsUpdateClassesUpdateRollup WindowsUpdateClasses = original.WindowsUpdateClassesUpdateRollup
WindowsUpdateClassesUpdates WindowsUpdateClasses = original.WindowsUpdateClassesUpdates
)
type Account = original.Account
type AccountCreateOrUpdateParameters = original.AccountCreateOrUpdateParameters
type AccountCreateOrUpdateProperties = original.AccountCreateOrUpdateProperties
type AccountListResult = original.AccountListResult
type AccountListResultIterator = original.AccountListResultIterator
type AccountListResultPage = original.AccountListResultPage
type AccountProperties = original.AccountProperties
type AccountUpdateParameters = original.AccountUpdateParameters
type AccountUpdateProperties = original.AccountUpdateProperties
type Activity = original.Activity
type ActivityListResult = original.ActivityListResult
type ActivityListResultIterator = original.ActivityListResultIterator
type ActivityListResultPage = original.ActivityListResultPage
type ActivityOutputType = original.ActivityOutputType
type ActivityParameter = original.ActivityParameter
type ActivityParameterSet = original.ActivityParameterSet
type ActivityParameterValidationSet = original.ActivityParameterValidationSet
type ActivityProperties = original.ActivityProperties
type AdvancedSchedule = original.AdvancedSchedule
type AdvancedScheduleMonthlyOccurrence = original.AdvancedScheduleMonthlyOccurrence
type AgentRegistration = original.AgentRegistration
type AgentRegistrationKeys = original.AgentRegistrationKeys
type AgentRegistrationRegenerateKeyParameter = original.AgentRegistrationRegenerateKeyParameter
type Certificate = original.Certificate
type CertificateCreateOrUpdateParameters = original.CertificateCreateOrUpdateParameters
type CertificateCreateOrUpdateProperties = original.CertificateCreateOrUpdateProperties
type CertificateListResult = original.CertificateListResult
type CertificateListResultIterator = original.CertificateListResultIterator
type CertificateListResultPage = original.CertificateListResultPage
type CertificateProperties = original.CertificateProperties
type CertificateUpdateParameters = original.CertificateUpdateParameters
type CertificateUpdateProperties = original.CertificateUpdateProperties
type CollectionItemUpdateConfiguration = original.CollectionItemUpdateConfiguration
type Connection = original.Connection
type ConnectionCreateOrUpdateParameters = original.ConnectionCreateOrUpdateParameters
type ConnectionCreateOrUpdateProperties = original.ConnectionCreateOrUpdateProperties
type ConnectionListResult = original.ConnectionListResult
type ConnectionListResultIterator = original.ConnectionListResultIterator
type ConnectionListResultPage = original.ConnectionListResultPage
type ConnectionProperties = original.ConnectionProperties
type ConnectionType = original.ConnectionType
type ConnectionTypeAssociationProperty = original.ConnectionTypeAssociationProperty
type ConnectionTypeCreateOrUpdateParameters = original.ConnectionTypeCreateOrUpdateParameters
type ConnectionTypeCreateOrUpdateProperties = original.ConnectionTypeCreateOrUpdateProperties
type ConnectionTypeListResult = original.ConnectionTypeListResult
type ConnectionTypeListResultIterator = original.ConnectionTypeListResultIterator
type ConnectionTypeListResultPage = original.ConnectionTypeListResultPage
type ConnectionTypeProperties = original.ConnectionTypeProperties
type ConnectionUpdateParameters = original.ConnectionUpdateParameters
type ConnectionUpdateProperties = original.ConnectionUpdateProperties
type ContentHash = original.ContentHash
type ContentLink = original.ContentLink
type ContentSource = original.ContentSource
type Credential = original.Credential
type CredentialCreateOrUpdateParameters = original.CredentialCreateOrUpdateParameters
type CredentialCreateOrUpdateProperties = original.CredentialCreateOrUpdateProperties
type CredentialListResult = original.CredentialListResult
type CredentialListResultIterator = original.CredentialListResultIterator
type CredentialListResultPage = original.CredentialListResultPage
type CredentialProperties = original.CredentialProperties
type CredentialUpdateParameters = original.CredentialUpdateParameters
type CredentialUpdateProperties = original.CredentialUpdateProperties
type DscCompilationJob = original.DscCompilationJob
type DscCompilationJobCreateParameters = original.DscCompilationJobCreateParameters
type DscCompilationJobCreateProperties = original.DscCompilationJobCreateProperties
type DscCompilationJobListResult = original.DscCompilationJobListResult
type DscCompilationJobListResultIterator = original.DscCompilationJobListResultIterator
type DscCompilationJobListResultPage = original.DscCompilationJobListResultPage
type DscCompilationJobProperties = original.DscCompilationJobProperties
type DscConfiguration = original.DscConfiguration
type DscConfigurationAssociationProperty = original.DscConfigurationAssociationProperty
type DscConfigurationCreateOrUpdateParameters = original.DscConfigurationCreateOrUpdateParameters
type DscConfigurationCreateOrUpdateProperties = original.DscConfigurationCreateOrUpdateProperties
type DscConfigurationListResult = original.DscConfigurationListResult
type DscConfigurationListResultIterator = original.DscConfigurationListResultIterator
type DscConfigurationListResultPage = original.DscConfigurationListResultPage
type DscConfigurationParameter = original.DscConfigurationParameter
type DscConfigurationProperties = original.DscConfigurationProperties
type DscConfigurationUpdateParameters = original.DscConfigurationUpdateParameters
type DscMetaConfiguration = original.DscMetaConfiguration
type DscNode = original.DscNode
type DscNodeConfiguration = original.DscNodeConfiguration
type DscNodeConfigurationAssociationProperty = original.DscNodeConfigurationAssociationProperty
type DscNodeConfigurationCreateOrUpdateParameters = original.DscNodeConfigurationCreateOrUpdateParameters
type DscNodeConfigurationListResult = original.DscNodeConfigurationListResult
type DscNodeConfigurationListResultIterator = original.DscNodeConfigurationListResultIterator
type DscNodeConfigurationListResultPage = original.DscNodeConfigurationListResultPage
type DscNodeExtensionHandlerAssociationProperty = original.DscNodeExtensionHandlerAssociationProperty
type DscNodeListResult = original.DscNodeListResult
type DscNodeListResultIterator = original.DscNodeListResultIterator
type DscNodeListResultPage = original.DscNodeListResultPage
type DscNodeReport = original.DscNodeReport
type DscNodeReportListResult = original.DscNodeReportListResult
type DscNodeReportListResultIterator = original.DscNodeReportListResultIterator
type DscNodeReportListResultPage = original.DscNodeReportListResultPage
type DscNodeUpdateParameters = original.DscNodeUpdateParameters
type DscReportError = original.DscReportError
type DscReportResource = original.DscReportResource
type DscReportResourceNavigation = original.DscReportResourceNavigation
type ErrorResponse = original.ErrorResponse
type FieldDefinition = original.FieldDefinition
type HybridRunbookWorker = original.HybridRunbookWorker
type HybridRunbookWorkerGroup = original.HybridRunbookWorkerGroup
type HybridRunbookWorkerGroupsListResult = original.HybridRunbookWorkerGroupsListResult
type HybridRunbookWorkerGroupsListResultIterator = original.HybridRunbookWorkerGroupsListResultIterator
type HybridRunbookWorkerGroupsListResultPage = original.HybridRunbookWorkerGroupsListResultPage
type HybridRunbookWorkerGroupUpdateParameters = original.HybridRunbookWorkerGroupUpdateParameters
type Job = original.Job
type JobCollectionItem = original.JobCollectionItem
type JobCollectionItemProperties = original.JobCollectionItemProperties
type JobCreateParameters = original.JobCreateParameters
type JobCreateProperties = original.JobCreateProperties
type JobListResultV2 = original.JobListResultV2
type JobListResultV2Iterator = original.JobListResultV2Iterator
type JobListResultV2Page = original.JobListResultV2Page
type JobNavigation = original.JobNavigation
type JobProperties = original.JobProperties
type JobSchedule = original.JobSchedule
type JobScheduleCreateParameters = original.JobScheduleCreateParameters
type JobScheduleCreateProperties = original.JobScheduleCreateProperties
type JobScheduleListResult = original.JobScheduleListResult
type JobScheduleListResultIterator = original.JobScheduleListResultIterator
type JobScheduleListResultPage = original.JobScheduleListResultPage
type JobScheduleProperties = original.JobScheduleProperties
type JobStream = original.JobStream
type JobStreamListResult = original.JobStreamListResult
type JobStreamListResultIterator = original.JobStreamListResultIterator
type JobStreamListResultPage = original.JobStreamListResultPage
type JobStreamProperties = original.JobStreamProperties
type Key = original.Key
type KeyListResult = original.KeyListResult
type LinkedWorkspace = original.LinkedWorkspace
type LinuxProperties = original.LinuxProperties
type Module = original.Module
type ModuleCreateOrUpdateParameters = original.ModuleCreateOrUpdateParameters
type ModuleCreateOrUpdateProperties = original.ModuleCreateOrUpdateProperties
type ModuleErrorInfo = original.ModuleErrorInfo
type ModuleListResult = original.ModuleListResult
type ModuleListResultIterator = original.ModuleListResultIterator
type ModuleListResultPage = original.ModuleListResultPage
type ModuleProperties = original.ModuleProperties
type ModuleUpdateParameters = original.ModuleUpdateParameters
type ModuleUpdateProperties = original.ModuleUpdateProperties
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
type ProxyResource = original.ProxyResource
type Resource = original.Resource
type RunAsCredentialAssociationProperty = original.RunAsCredentialAssociationProperty
type Runbook = original.Runbook
type RunbookAssociationProperty = original.RunbookAssociationProperty
type RunbookCreateOrUpdateDraftParameters = original.RunbookCreateOrUpdateDraftParameters
type RunbookCreateOrUpdateDraftProperties = original.RunbookCreateOrUpdateDraftProperties
type RunbookCreateOrUpdateParameters = original.RunbookCreateOrUpdateParameters
type RunbookCreateOrUpdateProperties = original.RunbookCreateOrUpdateProperties
type RunbookDraft = original.RunbookDraft
type RunbookDraftPublishFuture = original.RunbookDraftPublishFuture
type RunbookDraftReplaceContentFuture = original.RunbookDraftReplaceContentFuture
type RunbookDraftUndoEditResult = original.RunbookDraftUndoEditResult
type RunbookListResult = original.RunbookListResult
type RunbookListResultIterator = original.RunbookListResultIterator
type RunbookListResultPage = original.RunbookListResultPage
type RunbookParameter = original.RunbookParameter
type RunbookProperties = original.RunbookProperties
type RunbookUpdateParameters = original.RunbookUpdateParameters
type RunbookUpdateProperties = original.RunbookUpdateProperties
type Schedule = original.Schedule
type ScheduleAssociationProperty = original.ScheduleAssociationProperty
type ScheduleCreateOrUpdateParameters = original.ScheduleCreateOrUpdateParameters
type ScheduleCreateOrUpdateProperties = original.ScheduleCreateOrUpdateProperties
type ScheduleListResult = original.ScheduleListResult
type ScheduleListResultIterator = original.ScheduleListResultIterator
type ScheduleListResultPage = original.ScheduleListResultPage
type ScheduleProperties = original.ScheduleProperties
type ScheduleUpdateParameters = original.ScheduleUpdateParameters
type ScheduleUpdateProperties = original.ScheduleUpdateProperties
type SetObject = original.SetObject
type Sku = original.Sku
type SoftwareUpdateConfiguration = original.SoftwareUpdateConfiguration
type SoftwareUpdateConfigurationCollectionItem = original.SoftwareUpdateConfigurationCollectionItem
type SoftwareUpdateConfigurationCollectionItemProperties = original.SoftwareUpdateConfigurationCollectionItemProperties
type SoftwareUpdateConfigurationListResult = original.SoftwareUpdateConfigurationListResult
type SoftwareUpdateConfigurationMachineRun = original.SoftwareUpdateConfigurationMachineRun
type SoftwareUpdateConfigurationMachineRunListResult = original.SoftwareUpdateConfigurationMachineRunListResult
type SoftwareUpdateConfigurationProperties = original.SoftwareUpdateConfigurationProperties
type SoftwareUpdateConfigurationRun = original.SoftwareUpdateConfigurationRun
type SoftwareUpdateConfigurationRunListResult = original.SoftwareUpdateConfigurationRunListResult
type SoftwareUpdateConfigurationRunProperties = original.SoftwareUpdateConfigurationRunProperties
type SourceControl = original.SourceControl
type SourceControlCreateOrUpdateParameters = original.SourceControlCreateOrUpdateParameters
type SourceControlCreateOrUpdateProperties = original.SourceControlCreateOrUpdateProperties
type SourceControlListResult = original.SourceControlListResult
type SourceControlListResultIterator = original.SourceControlListResultIterator
type SourceControlListResultPage = original.SourceControlListResultPage
type SourceControlProperties = original.SourceControlProperties
type SourceControlSyncJob = original.SourceControlSyncJob
type SourceControlSyncJobByID = original.SourceControlSyncJobByID
type SourceControlSyncJobByIDProperties = original.SourceControlSyncJobByIDProperties
type SourceControlSyncJobCreateParameters = original.SourceControlSyncJobCreateParameters
type SourceControlSyncJobCreateProperties = original.SourceControlSyncJobCreateProperties
type SourceControlSyncJobListResult = original.SourceControlSyncJobListResult
type SourceControlSyncJobListResultIterator = original.SourceControlSyncJobListResultIterator
type SourceControlSyncJobListResultPage = original.SourceControlSyncJobListResultPage
type SourceControlSyncJobProperties = original.SourceControlSyncJobProperties
type SourceControlSyncJobStream = original.SourceControlSyncJobStream
type SourceControlSyncJobStreamByID = original.SourceControlSyncJobStreamByID
type SourceControlSyncJobStreamByIDProperties = original.SourceControlSyncJobStreamByIDProperties
type SourceControlSyncJobStreamProperties = original.SourceControlSyncJobStreamProperties
type SourceControlSyncJobStreamsListBySyncJob = original.SourceControlSyncJobStreamsListBySyncJob
type SourceControlSyncJobStreamsListBySyncJobIterator = original.SourceControlSyncJobStreamsListBySyncJobIterator
type SourceControlSyncJobStreamsListBySyncJobPage = original.SourceControlSyncJobStreamsListBySyncJobPage
type SourceControlUpdateParameters = original.SourceControlUpdateParameters
type SourceControlUpdateProperties = original.SourceControlUpdateProperties
type Statistics = original.Statistics
type StatisticsListResult = original.StatisticsListResult
type String = original.String
type TestJob = original.TestJob
type TestJobCreateParameters = original.TestJobCreateParameters
type TrackedResource = original.TrackedResource
type TypeField = original.TypeField
type TypeFieldListResult = original.TypeFieldListResult
type UpdateConfiguration = original.UpdateConfiguration
type UpdateConfigurationMachineRunProperties = original.UpdateConfigurationMachineRunProperties
type UpdateConfigurationNavigation = original.UpdateConfigurationNavigation
type Usage = original.Usage
type UsageCounterName = original.UsageCounterName
type UsageListResult = original.UsageListResult
type Variable = original.Variable
type VariableCreateOrUpdateParameters = original.VariableCreateOrUpdateParameters
type VariableCreateOrUpdateProperties = original.VariableCreateOrUpdateProperties
type VariableListResult = original.VariableListResult
type VariableListResultIterator = original.VariableListResultIterator
type VariableListResultPage = original.VariableListResultPage
type VariableProperties = original.VariableProperties
type VariableUpdateParameters = original.VariableUpdateParameters
type VariableUpdateProperties = original.VariableUpdateProperties
type Webhook = original.Webhook
type WebhookCreateOrUpdateParameters = original.WebhookCreateOrUpdateParameters
type WebhookCreateOrUpdateProperties = original.WebhookCreateOrUpdateProperties
type WebhookListResult = original.WebhookListResult
type WebhookListResultIterator = original.WebhookListResultIterator
type WebhookListResultPage = original.WebhookListResultPage
type WebhookProperties = original.WebhookProperties
type WebhookUpdateParameters = original.WebhookUpdateParameters
type WebhookUpdateProperties = original.WebhookUpdateProperties
type WindowsProperties = original.WindowsProperties
type ModuleClient = original.ModuleClient
type NodeReportsClient = original.NodeReportsClient
type ObjectDataTypesClient = original.ObjectDataTypesClient
type OperationsClient = original.OperationsClient
type RunbookClient = original.RunbookClient
type RunbookDraftClient = original.RunbookDraftClient
type ScheduleClient = original.ScheduleClient
type SoftwareUpdateConfigurationMachineRunsClient = original.SoftwareUpdateConfigurationMachineRunsClient
type SoftwareUpdateConfigurationRunsClient = original.SoftwareUpdateConfigurationRunsClient
type SoftwareUpdateConfigurationsClient = original.SoftwareUpdateConfigurationsClient
type SourceControlClient = original.SourceControlClient
type SourceControlSyncJobClient = original.SourceControlSyncJobClient
type SourceControlSyncJobStreamsClient = original.SourceControlSyncJobStreamsClient
type StatisticsClient = original.StatisticsClient
type TestJobClient = original.TestJobClient
type TestJobStreamsClient = original.TestJobStreamsClient
type UsagesClient = original.UsagesClient
type VariableClient = original.VariableClient
type WebhookClient = original.WebhookClient
func NewAccountClient(subscriptionID string) AccountClient {
return original.NewAccountClient(subscriptionID)
}
func NewAccountClientWithBaseURI(baseURI string, subscriptionID string) AccountClient {
return original.NewAccountClientWithBaseURI(baseURI, subscriptionID)
}
func NewActivityClient(subscriptionID string) ActivityClient {
return original.NewActivityClient(subscriptionID)
}
func NewActivityClientWithBaseURI(baseURI string, subscriptionID string) ActivityClient {
return original.NewActivityClientWithBaseURI(baseURI, subscriptionID)
}
func NewAgentRegistrationInformationClient(subscriptionID string) AgentRegistrationInformationClient {
return original.NewAgentRegistrationInformationClient(subscriptionID)
}
func NewAgentRegistrationInformationClientWithBaseURI(baseURI string, subscriptionID string) AgentRegistrationInformationClient {
return original.NewAgentRegistrationInformationClientWithBaseURI(baseURI, subscriptionID)
}
func NewCertificateClient(subscriptionID string) CertificateClient {
return original.NewCertificateClient(subscriptionID)
}
func NewCertificateClientWithBaseURI(baseURI string, subscriptionID string) CertificateClient {
return original.NewCertificateClientWithBaseURI(baseURI, subscriptionID)
}
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func NewConnectionClient(subscriptionID string) ConnectionClient {
return original.NewConnectionClient(subscriptionID)
}
func NewConnectionClientWithBaseURI(baseURI string, subscriptionID string) ConnectionClient {
return original.NewConnectionClientWithBaseURI(baseURI, subscriptionID)
}
func NewConnectionTypeClient(subscriptionID string) ConnectionTypeClient {
return original.NewConnectionTypeClient(subscriptionID)
}
func NewConnectionTypeClientWithBaseURI(baseURI string, subscriptionID string) ConnectionTypeClient {
return original.NewConnectionTypeClientWithBaseURI(baseURI, subscriptionID)
}
func NewCredentialClient(subscriptionID string) CredentialClient {
return original.NewCredentialClient(subscriptionID)
}
func NewCredentialClientWithBaseURI(baseURI string, subscriptionID string) CredentialClient {
return original.NewCredentialClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscCompilationJobClient(subscriptionID string) DscCompilationJobClient {
return original.NewDscCompilationJobClient(subscriptionID)
}
func NewDscCompilationJobClientWithBaseURI(baseURI string, subscriptionID string) DscCompilationJobClient {
return original.NewDscCompilationJobClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscCompilationJobStreamClient(subscriptionID string) DscCompilationJobStreamClient {
return original.NewDscCompilationJobStreamClient(subscriptionID)
}
func NewDscCompilationJobStreamClientWithBaseURI(baseURI string, subscriptionID string) DscCompilationJobStreamClient {
return original.NewDscCompilationJobStreamClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscConfigurationClient(subscriptionID string) DscConfigurationClient {
return original.NewDscConfigurationClient(subscriptionID)
}
func NewDscConfigurationClientWithBaseURI(baseURI string, subscriptionID string) DscConfigurationClient {
return original.NewDscConfigurationClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscNodeClient(subscriptionID string) DscNodeClient {
return original.NewDscNodeClient(subscriptionID)
}
func NewDscNodeClientWithBaseURI(baseURI string, subscriptionID string) DscNodeClient {
return original.NewDscNodeClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscNodeConfigurationClient(subscriptionID string) DscNodeConfigurationClient {
return original.NewDscNodeConfigurationClient(subscriptionID)
}
func NewDscNodeConfigurationClientWithBaseURI(baseURI string, subscriptionID string) DscNodeConfigurationClient {
return original.NewDscNodeConfigurationClientWithBaseURI(baseURI, subscriptionID)
}
func NewFieldsClient(subscriptionID string) FieldsClient {
return original.NewFieldsClient(subscriptionID)
}
func NewFieldsClientWithBaseURI(baseURI string, subscriptionID string) FieldsClient {
return original.NewFieldsClientWithBaseURI(baseURI, subscriptionID)
}
func NewHybridRunbookWorkerGroupClient(subscriptionID string) HybridRunbookWorkerGroupClient {
return original.NewHybridRunbookWorkerGroupClient(subscriptionID)
}
func NewHybridRunbookWorkerGroupClientWithBaseURI(baseURI string, subscriptionID string) HybridRunbookWorkerGroupClient {
return original.NewHybridRunbookWorkerGroupClientWithBaseURI(baseURI, subscriptionID)
}
func NewJobClient(subscriptionID string) JobClient {
return original.NewJobClient(subscriptionID)
}
func NewJobClientWithBaseURI(baseURI string, subscriptionID string) JobClient {
return original.NewJobClientWithBaseURI(baseURI, subscriptionID)
}
func NewJobScheduleClient(subscriptionID string) JobScheduleClient {
return original.NewJobScheduleClient(subscriptionID)
}
func NewJobScheduleClientWithBaseURI(baseURI string, subscriptionID string) JobScheduleClient {
return original.NewJobScheduleClientWithBaseURI(baseURI, subscriptionID)
}
func NewJobStreamClient(subscriptionID string) JobStreamClient {
return original.NewJobStreamClient(subscriptionID)
}
func NewJobStreamClientWithBaseURI(baseURI string, subscriptionID string) JobStreamClient {
return original.NewJobStreamClientWithBaseURI(baseURI, subscriptionID)
}
func NewKeysClient(subscriptionID string) KeysClient {
return original.NewKeysClient(subscriptionID)
}
func NewKeysClientWithBaseURI(baseURI string, subscriptionID string) KeysClient {
return original.NewKeysClientWithBaseURI(baseURI, subscriptionID)
}
func NewLinkedWorkspaceClient(subscriptionID string) LinkedWorkspaceClient {
return original.NewLinkedWorkspaceClient(subscriptionID)
}
func NewLinkedWorkspaceClientWithBaseURI(baseURI string, subscriptionID string) LinkedWorkspaceClient {
return original.NewLinkedWorkspaceClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleAccountStateValues() []AccountState {
return original.PossibleAccountStateValues()
}
func PossibleAgentRegistrationKeyNameValues() []AgentRegistrationKeyName {
return original.PossibleAgentRegistrationKeyNameValues()
}
func PossibleContentSourceTypeValues() []ContentSourceType {
return original.PossibleContentSourceTypeValues()
}
func PossibleDscConfigurationProvisioningStateValues() []DscConfigurationProvisioningState {
return original.PossibleDscConfigurationProvisioningStateValues()
}
func PossibleDscConfigurationStateValues() []DscConfigurationState {
return original.PossibleDscConfigurationStateValues()
}
func PossibleGroupTypeEnumValues() []GroupTypeEnum {
return original.PossibleGroupTypeEnumValues()
}
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
return original.PossibleHTTPStatusCodeValues()
}
func PossibleJobProvisioningStateValues() []JobProvisioningState {
return original.PossibleJobProvisioningStateValues()
}
func PossibleJobStatusValues() []JobStatus {
return original.PossibleJobStatusValues()
}
func PossibleJobStreamTypeValues() []JobStreamType {
return original.PossibleJobStreamTypeValues()
}
func PossibleKeyNameValues() []KeyName {
return original.PossibleKeyNameValues()
}
func PossibleKeyPermissionsValues() []KeyPermissions {
return original.PossibleKeyPermissionsValues()
}
func PossibleLinuxUpdateClassesValues() []LinuxUpdateClasses {
return original.PossibleLinuxUpdateClassesValues()
}
func PossibleModuleProvisioningStateValues() []ModuleProvisioningState {
return original.PossibleModuleProvisioningStateValues()
}
func PossibleOperatingSystemTypeValues() []OperatingSystemType {
return original.PossibleOperatingSystemTypeValues()
}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
func PossibleRunbookProvisioningStateValues() []RunbookProvisioningState {
return original.PossibleRunbookProvisioningStateValues()
}
func PossibleRunbookStateValues() []RunbookState {
return original.PossibleRunbookStateValues()
}
func PossibleRunbookTypeEnumValues() []RunbookTypeEnum {
return original.PossibleRunbookTypeEnumValues()
}
func PossibleScheduleDayValues() []ScheduleDay {
return original.PossibleScheduleDayValues()
}
func PossibleScheduleFrequencyValues() []ScheduleFrequency {
return original.PossibleScheduleFrequencyValues()
}
func PossibleSkuNameEnumValues() []SkuNameEnum {
return original.PossibleSkuNameEnumValues()
}
func PossibleSourceTypeValues() []SourceType {
return original.PossibleSourceTypeValues()
}
func PossibleStartTypeValues() []StartType {
return original.PossibleStartTypeValues()
}
func PossibleStreamTypeValues() []StreamType {
return original.PossibleStreamTypeValues()
}
func PossibleWindowsUpdateClassesValues() []WindowsUpdateClasses {
return original.PossibleWindowsUpdateClassesValues()
}
func NewModuleClient(subscriptionID string) ModuleClient {
return original.NewModuleClient(subscriptionID)
}
func NewModuleClientWithBaseURI(baseURI string, subscriptionID string) ModuleClient {
return original.NewModuleClientWithBaseURI(baseURI, subscriptionID)
}
func NewNodeReportsClient(subscriptionID string) NodeReportsClient {
return original.NewNodeReportsClient(subscriptionID)
}
func NewNodeReportsClientWithBaseURI(baseURI string, subscriptionID string) NodeReportsClient {
return original.NewNodeReportsClientWithBaseURI(baseURI, subscriptionID)
}
func NewObjectDataTypesClient(subscriptionID string) ObjectDataTypesClient {
return original.NewObjectDataTypesClient(subscriptionID)
}
func NewObjectDataTypesClientWithBaseURI(baseURI string, subscriptionID string) ObjectDataTypesClient {
return original.NewObjectDataTypesClientWithBaseURI(baseURI, subscriptionID)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewRunbookClient(subscriptionID string) RunbookClient {
return original.NewRunbookClient(subscriptionID)
}
func NewRunbookClientWithBaseURI(baseURI string, subscriptionID string) RunbookClient {
return original.NewRunbookClientWithBaseURI(baseURI, subscriptionID)
}
func NewRunbookDraftClient(subscriptionID string) RunbookDraftClient {
return original.NewRunbookDraftClient(subscriptionID)
}
func NewRunbookDraftClientWithBaseURI(baseURI string, subscriptionID string) RunbookDraftClient {
return original.NewRunbookDraftClientWithBaseURI(baseURI, subscriptionID)
}
func NewScheduleClient(subscriptionID string) ScheduleClient {
return original.NewScheduleClient(subscriptionID)
}
func NewScheduleClientWithBaseURI(baseURI string, subscriptionID string) ScheduleClient {
return original.NewScheduleClientWithBaseURI(baseURI, subscriptionID)
}
func NewSoftwareUpdateConfigurationMachineRunsClient(subscriptionID string) SoftwareUpdateConfigurationMachineRunsClient {
return original.NewSoftwareUpdateConfigurationMachineRunsClient(subscriptionID)
}
func NewSoftwareUpdateConfigurationMachineRunsClientWithBaseURI(baseURI string, subscriptionID string) SoftwareUpdateConfigurationMachineRunsClient {
return original.NewSoftwareUpdateConfigurationMachineRunsClientWithBaseURI(baseURI, subscriptionID)
}
func NewSoftwareUpdateConfigurationRunsClient(subscriptionID string) SoftwareUpdateConfigurationRunsClient {
return original.NewSoftwareUpdateConfigurationRunsClient(subscriptionID)
}
func NewSoftwareUpdateConfigurationRunsClientWithBaseURI(baseURI string, subscriptionID string) SoftwareUpdateConfigurationRunsClient {
return original.NewSoftwareUpdateConfigurationRunsClientWithBaseURI(baseURI, subscriptionID)
}
func NewSoftwareUpdateConfigurationsClient(subscriptionID string) SoftwareUpdateConfigurationsClient {
return original.NewSoftwareUpdateConfigurationsClient(subscriptionID)
}
func NewSoftwareUpdateConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) SoftwareUpdateConfigurationsClient {
return original.NewSoftwareUpdateConfigurationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewSourceControlClient(subscriptionID string) SourceControlClient {
return original.NewSourceControlClient(subscriptionID)
}
func NewSourceControlClientWithBaseURI(baseURI string, subscriptionID string) SourceControlClient {
return original.NewSourceControlClientWithBaseURI(baseURI, subscriptionID)
}
func NewSourceControlSyncJobClient(subscriptionID string) SourceControlSyncJobClient {
return original.NewSourceControlSyncJobClient(subscriptionID)
}
func NewSourceControlSyncJobClientWithBaseURI(baseURI string, subscriptionID string) SourceControlSyncJobClient {
return original.NewSourceControlSyncJobClientWithBaseURI(baseURI, subscriptionID)
}
func NewSourceControlSyncJobStreamsClient(subscriptionID string) SourceControlSyncJobStreamsClient {
return original.NewSourceControlSyncJobStreamsClient(subscriptionID)
}
func NewSourceControlSyncJobStreamsClientWithBaseURI(baseURI string, subscriptionID string) SourceControlSyncJobStreamsClient {
return original.NewSourceControlSyncJobStreamsClientWithBaseURI(baseURI, subscriptionID)
}
func NewStatisticsClient(subscriptionID string) StatisticsClient {
return original.NewStatisticsClient(subscriptionID)
}
func NewStatisticsClientWithBaseURI(baseURI string, subscriptionID string) StatisticsClient {
return original.NewStatisticsClientWithBaseURI(baseURI, subscriptionID)
}
func NewTestJobClient(subscriptionID string) TestJobClient {
return original.NewTestJobClient(subscriptionID)
}
func NewTestJobClientWithBaseURI(baseURI string, subscriptionID string) TestJobClient {
return original.NewTestJobClientWithBaseURI(baseURI, subscriptionID)
}
func NewTestJobStreamsClient(subscriptionID string) TestJobStreamsClient {
return original.NewTestJobStreamsClient(subscriptionID)
}
func NewTestJobStreamsClientWithBaseURI(baseURI string, subscriptionID string) TestJobStreamsClient {
return original.NewTestJobStreamsClientWithBaseURI(baseURI, subscriptionID)
}
func NewUsagesClient(subscriptionID string) UsagesClient {
return original.NewUsagesClient(subscriptionID)
}
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return original.NewUsagesClientWithBaseURI(baseURI, subscriptionID)
}
func NewVariableClient(subscriptionID string) VariableClient {
return original.NewVariableClient(subscriptionID)
}
func NewVariableClientWithBaseURI(baseURI string, subscriptionID string) VariableClient {
return original.NewVariableClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}
func NewWebhookClient(subscriptionID string) WebhookClient {
return original.NewWebhookClient(subscriptionID)
}
func NewWebhookClientWithBaseURI(baseURI string, subscriptionID string) WebhookClient {
return original.NewWebhookClientWithBaseURI(baseURI, subscriptionID)
}

View File

@@ -0,0 +1,111 @@
// +build go1.9
// Copyright 2018 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package devspaces
import original "github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces"
const (
DefaultBaseURI = original.DefaultBaseURI
)
type BaseClient = original.BaseClient
type ControllersClient = original.ControllersClient
type InstanceType = original.InstanceType
const (
InstanceTypeKubernetes InstanceType = original.InstanceTypeKubernetes
InstanceTypeOrchestratorSpecificConnectionDetails InstanceType = original.InstanceTypeOrchestratorSpecificConnectionDetails
)
type ProvisioningState = original.ProvisioningState
const (
Canceled ProvisioningState = original.Canceled
Creating ProvisioningState = original.Creating
Deleting ProvisioningState = original.Deleting
Failed ProvisioningState = original.Failed
Succeeded ProvisioningState = original.Succeeded
Updating ProvisioningState = original.Updating
)
type SkuTier = original.SkuTier
const (
Standard SkuTier = original.Standard
)
type Controller = original.Controller
type ControllerConnectionDetails = original.ControllerConnectionDetails
type ControllerConnectionDetailsList = original.ControllerConnectionDetailsList
type ControllerList = original.ControllerList
type ControllerListIterator = original.ControllerListIterator
type ControllerListPage = original.ControllerListPage
type ControllerProperties = original.ControllerProperties
type ControllersCreateFuture = original.ControllersCreateFuture
type ControllersDeleteFuture = original.ControllersDeleteFuture
type ControllerUpdateParameters = original.ControllerUpdateParameters
type ErrorDetails = original.ErrorDetails
type ErrorResponse = original.ErrorResponse
type KubernetesConnectionDetails = original.KubernetesConnectionDetails
type BasicOrchestratorSpecificConnectionDetails = original.BasicOrchestratorSpecificConnectionDetails
type OrchestratorSpecificConnectionDetails = original.OrchestratorSpecificConnectionDetails
type Resource = original.Resource
type ResourceProviderOperationDefinition = original.ResourceProviderOperationDefinition
type ResourceProviderOperationDisplay = original.ResourceProviderOperationDisplay
type ResourceProviderOperationList = original.ResourceProviderOperationList
type ResourceProviderOperationListIterator = original.ResourceProviderOperationListIterator
type ResourceProviderOperationListPage = original.ResourceProviderOperationListPage
type Sku = original.Sku
type TrackedResource = original.TrackedResource
type OperationsClient = original.OperationsClient
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func NewControllersClient(subscriptionID string) ControllersClient {
return original.NewControllersClient(subscriptionID)
}
func NewControllersClientWithBaseURI(baseURI string, subscriptionID string) ControllersClient {
return original.NewControllersClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleInstanceTypeValues() []InstanceType {
return original.PossibleInstanceTypeValues()
}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
func PossibleSkuTierValues() []SkuTier {
return original.PossibleSkuTierValues()
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}

View File

@@ -28,6 +28,27 @@ const (
type BaseClient = original.BaseClient
type ClustersClient = original.ClustersClient
type ConfigurationClient = original.ConfigurationClient
type IPAction = original.IPAction
const (
Accept IPAction = original.Accept
Reject IPAction = original.Reject
)
type SkuName = original.SkuName
const (
Basic SkuName = original.Basic
Standard SkuName = original.Standard
)
type SkuTier = original.SkuTier
const (
SkuTierBasic SkuTier = original.SkuTierBasic
SkuTierStandard SkuTier = original.SkuTierStandard
)
type Cluster = original.Cluster
type ClusterListResult = original.ClusterListResult
type ClusterListResultIterator = original.ClusterListResultIterator
@@ -36,14 +57,33 @@ type ClusterProperties = original.ClusterProperties
type ClusterQuotaConfigurationProperties = original.ClusterQuotaConfigurationProperties
type ClusterSku = original.ClusterSku
type ClustersPatchFuture = original.ClustersPatchFuture
type EHNamespace = original.EHNamespace
type EHNamespaceListResult = original.EHNamespaceListResult
type EHNamespaceListResultIterator = original.EHNamespaceListResultIterator
type EHNamespaceListResultPage = original.EHNamespaceListResultPage
type EHNamespaceProperties = original.EHNamespaceProperties
type ErrorResponse = original.ErrorResponse
type IPFilterRule = original.IPFilterRule
type IPFilterRuleListResult = original.IPFilterRuleListResult
type IPFilterRuleListResultIterator = original.IPFilterRuleListResultIterator
type IPFilterRuleListResultPage = original.IPFilterRuleListResultPage
type IPFilterRuleProperties = original.IPFilterRuleProperties
type NamespacesCreateOrUpdateFuture = original.NamespacesCreateOrUpdateFuture
type NamespacesDeleteFuture = original.NamespacesDeleteFuture
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type Resource = original.Resource
type Sku = original.Sku
type TrackedResource = original.TrackedResource
type VirtualNetworkRule = original.VirtualNetworkRule
type VirtualNetworkRuleListResult = original.VirtualNetworkRuleListResult
type VirtualNetworkRuleListResultIterator = original.VirtualNetworkRuleListResultIterator
type VirtualNetworkRuleListResultPage = original.VirtualNetworkRuleListResultPage
type VirtualNetworkRuleProperties = original.VirtualNetworkRuleProperties
type NamespacesClient = original.NamespacesClient
type OperationsClient = original.OperationsClient
func New(subscriptionID string) BaseClient {
@@ -64,6 +104,21 @@ func NewConfigurationClient(subscriptionID string) ConfigurationClient {
func NewConfigurationClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationClient {
return original.NewConfigurationClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleIPActionValues() []IPAction {
return original.PossibleIPActionValues()
}
func PossibleSkuNameValues() []SkuName {
return original.PossibleSkuNameValues()
}
func PossibleSkuTierValues() []SkuTier {
return original.PossibleSkuTierValues()
}
func NewNamespacesClient(subscriptionID string) NamespacesClient {
return original.NewNamespacesClient(subscriptionID)
}
func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) NamespacesClient {
return original.NewNamespacesClientWithBaseURI(baseURI, subscriptionID)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}

View File

@@ -19,7 +19,7 @@
package hdinsight
import original "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight"
import original "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight"
type ApplicationsClient = original.ApplicationsClient
@@ -30,8 +30,8 @@ const (
type BaseClient = original.BaseClient
type ClustersClient = original.ClustersClient
type ConfigurationsClient = original.ConfigurationsClient
type ExtensionClient = original.ExtensionClient
type LocationClient = original.LocationClient
type ExtensionsClient = original.ExtensionsClient
type LocationsClient = original.LocationsClient
type AsyncOperationState = original.AsyncOperationState
const (
@@ -56,13 +56,6 @@ const (
ActiveDirectory DirectoryType = original.ActiveDirectory
)
type EnabledCredential = original.EnabledCredential
const (
False EnabledCredential = original.False
True EnabledCredential = original.True
)
type OSType = original.OSType
const (
@@ -80,12 +73,12 @@ const (
type Application = original.Application
type ApplicationGetEndpoint = original.ApplicationGetEndpoint
type ApplicationGetHTTPSEndpoint = original.ApplicationGetHTTPSEndpoint
type ApplicationGetProperties = original.ApplicationGetProperties
type ApplicationListResult = original.ApplicationListResult
type ApplicationListResultIterator = original.ApplicationListResultIterator
type ApplicationListResultPage = original.ApplicationListResultPage
type ApplicationProperties = original.ApplicationProperties
type ApplicationsCreateFuture = original.ApplicationsCreateFuture
type ApplicationsDeleteFuture = original.ApplicationsDeleteFuture
type CapabilitiesResult = original.CapabilitiesResult
type Cluster = original.Cluster
type ClusterCreateParametersExtended = original.ClusterCreateParametersExtended
type ClusterCreateProperties = original.ClusterCreateProperties
@@ -108,14 +101,17 @@ type ComputeProfile = original.ComputeProfile
type ConfigurationsUpdateHTTPSettingsFuture = original.ConfigurationsUpdateHTTPSettingsFuture
type ConnectivityEndpoint = original.ConnectivityEndpoint
type DataDisksGroups = original.DataDisksGroups
type ErrorResponse = original.ErrorResponse
type Errors = original.Errors
type ExecuteScriptActionParameters = original.ExecuteScriptActionParameters
type Extension = original.Extension
type ExtensionDisableMonitoringFuture = original.ExtensionDisableMonitoringFuture
type ExtensionEnableMonitoringFuture = original.ExtensionEnableMonitoringFuture
type ExtensionsCreateFuture = original.ExtensionsCreateFuture
type ExtensionsDeleteFuture = original.ExtensionsDeleteFuture
type ExtensionsDisableMonitoringFuture = original.ExtensionsDisableMonitoringFuture
type ExtensionsEnableMonitoringFuture = original.ExtensionsEnableMonitoringFuture
type HardwareProfile = original.HardwareProfile
type HTTPConnectivitySettings = original.HTTPConnectivitySettings
type LinuxOperatingSystemProfile = original.LinuxOperatingSystemProfile
type LocalizedName = original.LocalizedName
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
@@ -124,10 +120,7 @@ type OperationListResultPage = original.OperationListResultPage
type OperationResource = original.OperationResource
type OsProfile = original.OsProfile
type ProxyResource = original.ProxyResource
type QuotaCapability = original.QuotaCapability
type QuotaInfo = original.QuotaInfo
type RegionalQuotaCapability = original.RegionalQuotaCapability
type RegionsCapability = original.RegionsCapability
type Resource = original.Resource
type Role = original.Role
type RuntimeScriptAction = original.RuntimeScriptAction
@@ -148,11 +141,9 @@ type SSHPublicKey = original.SSHPublicKey
type StorageAccount = original.StorageAccount
type StorageProfile = original.StorageProfile
type TrackedResource = original.TrackedResource
type VersionsCapability = original.VersionsCapability
type VersionSpec = original.VersionSpec
type Usage = original.Usage
type UsagesListResult = original.UsagesListResult
type VirtualNetworkProfile = original.VirtualNetworkProfile
type VMSizeCompatibilityFilter = original.VMSizeCompatibilityFilter
type VMSizesCapability = original.VMSizesCapability
type OperationsClient = original.OperationsClient
type ScriptActionsClient = original.ScriptActionsClient
type ScriptExecutionHistoryClient = original.ScriptExecutionHistoryClient
@@ -181,17 +172,17 @@ func NewConfigurationsClient(subscriptionID string) ConfigurationsClient {
func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient {
return original.NewConfigurationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewExtensionClient(subscriptionID string) ExtensionClient {
return original.NewExtensionClient(subscriptionID)
func NewExtensionsClient(subscriptionID string) ExtensionsClient {
return original.NewExtensionsClient(subscriptionID)
}
func NewExtensionClientWithBaseURI(baseURI string, subscriptionID string) ExtensionClient {
return original.NewExtensionClientWithBaseURI(baseURI, subscriptionID)
func NewExtensionsClientWithBaseURI(baseURI string, subscriptionID string) ExtensionsClient {
return original.NewExtensionsClientWithBaseURI(baseURI, subscriptionID)
}
func NewLocationClient(subscriptionID string) LocationClient {
return original.NewLocationClient(subscriptionID)
func NewLocationsClient(subscriptionID string) LocationsClient {
return original.NewLocationsClient(subscriptionID)
}
func NewLocationClientWithBaseURI(baseURI string, subscriptionID string) LocationClient {
return original.NewLocationClientWithBaseURI(baseURI, subscriptionID)
func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string) LocationsClient {
return original.NewLocationsClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleAsyncOperationStateValues() []AsyncOperationState {
return original.PossibleAsyncOperationStateValues()
@@ -202,9 +193,6 @@ func PossibleClusterProvisioningStateValues() []ClusterProvisioningState {
func PossibleDirectoryTypeValues() []DirectoryType {
return original.PossibleDirectoryTypeValues()
}
func PossibleEnabledCredentialValues() []EnabledCredential {
return original.PossibleEnabledCredentialValues()
}
func PossibleOSTypeValues() []OSType {
return original.PossibleOSTypeValues()
}

View File

@@ -19,10 +19,7 @@
package iotcentral
import (
original "github.com/Azure/azure-sdk-for-go/services/preview/iotcentral/mgmt/2017-07-01-privatepreview/iotcentral"
uuid "github.com/satori/go.uuid"
)
import original "github.com/Azure/azure-sdk-for-go/services/preview/iotcentral/mgmt/2017-07-01-privatepreview/iotcentral"
type AppsClient = original.AppsClient
@@ -66,16 +63,16 @@ type OperationListResultPage = original.OperationListResultPage
type Resource = original.Resource
type OperationsClient = original.OperationsClient
func NewAppsClient(subscriptionID uuid.UUID) AppsClient {
func NewAppsClient(subscriptionID string) AppsClient {
return original.NewAppsClient(subscriptionID)
}
func NewAppsClientWithBaseURI(baseURI string, subscriptionID uuid.UUID) AppsClient {
func NewAppsClientWithBaseURI(baseURI string, subscriptionID string) AppsClient {
return original.NewAppsClientWithBaseURI(baseURI, subscriptionID)
}
func New(subscriptionID uuid.UUID) BaseClient {
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
func NewWithBaseURI(baseURI string, subscriptionID uuid.UUID) BaseClient {
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason {
@@ -84,10 +81,10 @@ func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason {
func PossibleAppSkuValues() []AppSku {
return original.PossibleAppSkuValues()
}
func NewOperationsClient(subscriptionID uuid.UUID) OperationsClient {
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID uuid.UUID) OperationsClient {
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string {

View File

@@ -41,10 +41,10 @@ const (
type JSONWebKeyCurveName = original.JSONWebKeyCurveName
const (
P256 JSONWebKeyCurveName = original.P256
P384 JSONWebKeyCurveName = original.P384
P521 JSONWebKeyCurveName = original.P521
SECP256K1 JSONWebKeyCurveName = original.SECP256K1
P256 JSONWebKeyCurveName = original.P256
P256K JSONWebKeyCurveName = original.P256K
P384 JSONWebKeyCurveName = original.P384
P521 JSONWebKeyCurveName = original.P521
)
type JSONWebKeyEncryptionAlgorithm = original.JSONWebKeyEncryptionAlgorithm
@@ -69,17 +69,17 @@ const (
type JSONWebKeySignatureAlgorithm = original.JSONWebKeySignatureAlgorithm
const (
ECDSA256 JSONWebKeySignatureAlgorithm = original.ECDSA256
ES256 JSONWebKeySignatureAlgorithm = original.ES256
ES384 JSONWebKeySignatureAlgorithm = original.ES384
ES512 JSONWebKeySignatureAlgorithm = original.ES512
PS256 JSONWebKeySignatureAlgorithm = original.PS256
PS384 JSONWebKeySignatureAlgorithm = original.PS384
PS512 JSONWebKeySignatureAlgorithm = original.PS512
RS256 JSONWebKeySignatureAlgorithm = original.RS256
RS384 JSONWebKeySignatureAlgorithm = original.RS384
RS512 JSONWebKeySignatureAlgorithm = original.RS512
RSNULL JSONWebKeySignatureAlgorithm = original.RSNULL
ES256 JSONWebKeySignatureAlgorithm = original.ES256
ES256K JSONWebKeySignatureAlgorithm = original.ES256K
ES384 JSONWebKeySignatureAlgorithm = original.ES384
ES512 JSONWebKeySignatureAlgorithm = original.ES512
PS256 JSONWebKeySignatureAlgorithm = original.PS256
PS384 JSONWebKeySignatureAlgorithm = original.PS384
PS512 JSONWebKeySignatureAlgorithm = original.PS512
RS256 JSONWebKeySignatureAlgorithm = original.RS256
RS384 JSONWebKeySignatureAlgorithm = original.RS384
RS512 JSONWebKeySignatureAlgorithm = original.RS512
RSNULL JSONWebKeySignatureAlgorithm = original.RSNULL
)
type JSONWebKeyType = original.JSONWebKeyType
@@ -116,6 +116,7 @@ const (
type Action = original.Action
type AdministratorDetails = original.AdministratorDetails
type Attributes = original.Attributes
type BackupCertificateResult = original.BackupCertificateResult
type BackupKeyResult = original.BackupKeyResult
type BackupSecretResult = original.BackupSecretResult
type BackupStorageResult = original.BackupStorageResult
@@ -137,6 +138,7 @@ type CertificateMergeParameters = original.CertificateMergeParameters
type CertificateOperation = original.CertificateOperation
type CertificateOperationUpdateParameter = original.CertificateOperationUpdateParameter
type CertificatePolicy = original.CertificatePolicy
type CertificateRestoreParameters = original.CertificateRestoreParameters
type CertificateUpdateParameters = original.CertificateUpdateParameters
type Contact = original.Contact
type Contacts = original.Contacts

View File

@@ -19,7 +19,7 @@
package media
import original "github.com/Azure/azure-sdk-for-go/services/preview/mediaservices/mgmt/2018-03-30-preview/media"
import original "github.com/Azure/azure-sdk-for-go/services/preview/mediaservices/mgmt/2018-06-01-preview/media"
type AssetsClient = original.AssetsClient
@@ -607,7 +607,6 @@ type StreamingLocatorCollectionIterator = original.StreamingLocatorCollectionIte
type StreamingLocatorCollectionPage = original.StreamingLocatorCollectionPage
type StreamingLocatorContentKey = original.StreamingLocatorContentKey
type StreamingLocatorProperties = original.StreamingLocatorProperties
type StreamingLocatorUserDefinedContentKey = original.StreamingLocatorUserDefinedContentKey
type StreamingPath = original.StreamingPath
type StreamingPolicy = original.StreamingPolicy
type StreamingPolicyCollection = original.StreamingPolicyCollection

View File

@@ -331,13 +331,16 @@ type ItsmReceiver = original.ItsmReceiver
type LocalizableString = original.LocalizableString
type LocationThresholdRuleCondition = original.LocationThresholdRuleCondition
type LogicAppReceiver = original.LogicAppReceiver
type LogMetricTrigger = original.LogMetricTrigger
type LogProfileCollection = original.LogProfileCollection
type LogProfileProperties = original.LogProfileProperties
type LogProfileResource = original.LogProfileResource
type LogProfileResourcePatch = original.LogProfileResourcePatch
type LogSearchRule = original.LogSearchRule
type LogSearchRulePatch = original.LogSearchRulePatch
type LogSearchRuleResource = original.LogSearchRuleResource
type LogSearchRuleResourceCollection = original.LogSearchRuleResourceCollection
type LogSearchRuleResourcePatch = original.LogSearchRuleResourcePatch
type LogSettings = original.LogSettings
type ManagementEventAggregationCondition = original.ManagementEventAggregationCondition
type ManagementEventRuleCondition = original.ManagementEventRuleCondition

View File

@@ -44,6 +44,8 @@ type Solution = original.Solution
type SolutionPlan = original.SolutionPlan
type SolutionProperties = original.SolutionProperties
type SolutionPropertiesList = original.SolutionPropertiesList
type SolutionsCreateOrUpdateFuture = original.SolutionsCreateOrUpdateFuture
type SolutionsDeleteFuture = original.SolutionsDeleteFuture
type OperationsClient = original.OperationsClient
type SolutionsClient = original.SolutionsClient

View File

@@ -50,9 +50,10 @@ const (
type SkuTier = original.SkuTier
const (
Basic SkuTier = original.Basic
Free SkuTier = original.Free
Premium SkuTier = original.Premium
Basic SkuTier = original.Basic
Free SkuTier = original.Free
Premium SkuTier = original.Premium
Standard SkuTier = original.Standard
)
type CreateOrUpdateFuture = original.CreateOrUpdateFuture

View File

@@ -35,6 +35,7 @@ type DatabaseVulnerabilityAssessmentScansClient = original.DatabaseVulnerability
type ElasticPoolOperationsClient = original.ElasticPoolOperationsClient
type ElasticPoolsClient = original.ElasticPoolsClient
type InstanceFailoverGroupsClient = original.InstanceFailoverGroupsClient
type ManagedInstanceTdeCertificatesClient = original.ManagedInstanceTdeCertificatesClient
type CapabilityGroup = original.CapabilityGroup
const (
@@ -211,6 +212,9 @@ const (
type BackupShortTermRetentionPoliciesCreateOrUpdateFuture = original.BackupShortTermRetentionPoliciesCreateOrUpdateFuture
type BackupShortTermRetentionPoliciesUpdateFuture = original.BackupShortTermRetentionPoliciesUpdateFuture
type BackupShortTermRetentionPolicy = original.BackupShortTermRetentionPolicy
type BackupShortTermRetentionPolicyListResult = original.BackupShortTermRetentionPolicyListResult
type BackupShortTermRetentionPolicyListResultIterator = original.BackupShortTermRetentionPolicyListResultIterator
type BackupShortTermRetentionPolicyListResultPage = original.BackupShortTermRetentionPolicyListResultPage
type BackupShortTermRetentionPolicyProperties = original.BackupShortTermRetentionPolicyProperties
type Database = original.Database
type DatabaseListResult = original.DatabaseListResult
@@ -272,6 +276,7 @@ type LogSizeCapability = original.LogSizeCapability
type ManagedInstanceEditionCapability = original.ManagedInstanceEditionCapability
type ManagedInstanceFamilyCapability = original.ManagedInstanceFamilyCapability
type ManagedInstancePairInfo = original.ManagedInstancePairInfo
type ManagedInstanceTdeCertificatesCreateFuture = original.ManagedInstanceTdeCertificatesCreateFuture
type ManagedInstanceVcoresCapability = original.ManagedInstanceVcoresCapability
type ManagedInstanceVersionCapability = original.ManagedInstanceVersionCapability
type MaxSizeCapability = original.MaxSizeCapability
@@ -284,6 +289,9 @@ type ResourceMoveDefinition = original.ResourceMoveDefinition
type ServerVersionCapability = original.ServerVersionCapability
type ServiceObjectiveCapability = original.ServiceObjectiveCapability
type Sku = original.Sku
type TdeCertificate = original.TdeCertificate
type TdeCertificateProperties = original.TdeCertificateProperties
type TdeCertificatesCreateFuture = original.TdeCertificatesCreateFuture
type TrackedResource = original.TrackedResource
type VulnerabilityAssessmentRecurringScansProperties = original.VulnerabilityAssessmentRecurringScansProperties
type VulnerabilityAssessmentScanError = original.VulnerabilityAssessmentScanError
@@ -292,6 +300,7 @@ type VulnerabilityAssessmentScanRecordListResult = original.VulnerabilityAssessm
type VulnerabilityAssessmentScanRecordListResultIterator = original.VulnerabilityAssessmentScanRecordListResultIterator
type VulnerabilityAssessmentScanRecordListResultPage = original.VulnerabilityAssessmentScanRecordListResultPage
type VulnerabilityAssessmentScanRecordProperties = original.VulnerabilityAssessmentScanRecordProperties
type TdeCertificatesClient = original.TdeCertificatesClient
func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient {
return original.NewBackupShortTermRetentionPoliciesClient(subscriptionID)
@@ -347,6 +356,12 @@ func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGrou
func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient {
return original.NewInstanceFailoverGroupsClientWithBaseURI(baseURI, subscriptionID)
}
func NewManagedInstanceTdeCertificatesClient(subscriptionID string) ManagedInstanceTdeCertificatesClient {
return original.NewManagedInstanceTdeCertificatesClient(subscriptionID)
}
func NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceTdeCertificatesClient {
return original.NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleCapabilityGroupValues() []CapabilityGroup {
return original.PossibleCapabilityGroupValues()
}
@@ -404,6 +419,12 @@ func PossibleVulnerabilityAssessmentScanStateValues() []VulnerabilityAssessmentS
func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType {
return original.PossibleVulnerabilityAssessmentScanTriggerTypeValues()
}
func NewTdeCertificatesClient(subscriptionID string) TdeCertificatesClient {
return original.NewTdeCertificatesClient(subscriptionID)
}
func NewTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) TdeCertificatesClient {
return original.NewTdeCertificatesClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}

View File

@@ -52,17 +52,22 @@ const (
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
ContainerTypeCluster ContainerType = original.ContainerTypeCluster
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
ContainerTypeExchangeDAG ContainerType = original.ContainerTypeExchangeDAG
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
ContainerTypeHyperVCluster ContainerType = original.ContainerTypeHyperVCluster
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
ContainerTypeSharepointFarm ContainerType = original.ContainerTypeSharepointFarm
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
ContainerTypeSQLCluster ContainerType = original.ContainerTypeSQLCluster
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
ContainerTypeWindows ContainerType = original.ContainerTypeWindows
ContainerTypeWindowsClient ContainerType = original.ContainerTypeWindowsClient
)
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
@@ -74,13 +79,13 @@ const (
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
ContainerTypeMABWindowsContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeMABWindowsContainer
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1
)
type CopyOptions = original.CopyOptions
@@ -93,6 +98,14 @@ const (
CopyOptionsSkip CopyOptions = original.CopyOptionsSkip
)
type CreateMode = original.CreateMode
const (
CreateModeDefault CreateMode = original.CreateModeDefault
CreateModeInvalid CreateMode = original.CreateModeInvalid
CreateModeRecover CreateMode = original.CreateModeRecover
)
type DataSourceType = original.DataSourceType
const (
@@ -103,6 +116,7 @@ const (
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
DataSourceTypeSAPHanaDatabase DataSourceType = original.DataSourceTypeSAPHanaDatabase
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
@@ -149,6 +163,7 @@ const (
type FeatureType = original.FeatureType
const (
FeatureTypeAzureBackupGoals FeatureType = original.FeatureTypeAzureBackupGoals
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
)
@@ -241,6 +256,7 @@ const (
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
ItemTypeInvalid ItemType = original.ItemTypeInvalid
ItemTypeSAPHanaDatabase ItemType = original.ItemTypeSAPHanaDatabase
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
@@ -309,17 +325,22 @@ const (
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
MabServerTypeCluster MabServerType = original.MabServerTypeCluster
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
MabServerTypeExchangeDAG MabServerType = original.MabServerTypeExchangeDAG
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
MabServerTypeHyperVCluster MabServerType = original.MabServerTypeHyperVCluster
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
MabServerTypeSharepointFarm MabServerType = original.MabServerTypeSharepointFarm
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
MabServerTypeSQLCluster MabServerType = original.MabServerTypeSQLCluster
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
MabServerTypeWindows MabServerType = original.MabServerTypeWindows
MabServerTypeWindowsClient MabServerType = original.MabServerTypeWindowsClient
)
type ManagementType = original.ManagementType
@@ -402,24 +423,28 @@ const (
type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint
const (
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint
ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
)
type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest
const (
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest
ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
)
type OperationStatusValues = original.OperationStatusValues
@@ -456,6 +481,8 @@ const (
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
@@ -488,6 +515,8 @@ type ProtectedItemType = original.ProtectedItemType
const (
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
ProtectedItemTypeAzureVMWorkloadProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadProtectedItem
ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
@@ -501,8 +530,11 @@ const (
type ProtectionIntentItemType = original.ProtectionIntentItemType
const (
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent
ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
ProtectionIntentItemTypeRecoveryServiceVaultItem ProtectionIntentItemType = original.ProtectionIntentItemTypeRecoveryServiceVaultItem
)
type ProtectionState = original.ProtectionState
@@ -697,25 +729,30 @@ const (
type WeekOfMonth = original.WeekOfMonth
const (
First WeekOfMonth = original.First
Fourth WeekOfMonth = original.Fourth
Last WeekOfMonth = original.Last
Second WeekOfMonth = original.Second
Third WeekOfMonth = original.Third
WeekOfMonthFirst WeekOfMonth = original.WeekOfMonthFirst
WeekOfMonthFourth WeekOfMonth = original.WeekOfMonthFourth
WeekOfMonthInvalid WeekOfMonth = original.WeekOfMonthInvalid
WeekOfMonthLast WeekOfMonth = original.WeekOfMonthLast
WeekOfMonthSecond WeekOfMonth = original.WeekOfMonthSecond
WeekOfMonthThird WeekOfMonth = original.WeekOfMonthThird
)
type WorkloadItemType = original.WorkloadItemType
const (
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
WorkloadItemTypeSAPHanaDatabase WorkloadItemType = original.WorkloadItemTypeSAPHanaDatabase
WorkloadItemTypeSAPHanaSystem WorkloadItemType = original.WorkloadItemTypeSAPHanaSystem
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
)
type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem
const (
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1
WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
@@ -731,6 +768,7 @@ const (
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
WorkloadTypeSAPHanaDatabase WorkloadType = original.WorkloadTypeSAPHanaDatabase
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
@@ -739,6 +777,7 @@ const (
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
)
type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest
type AzureBackupServerContainer = original.AzureBackupServerContainer
type AzureBackupServerEngine = original.AzureBackupServerEngine
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
@@ -763,6 +802,8 @@ type BasicAzureIaaSVMProtectedItem = original.BasicAzureIaaSVMProtectedItem
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
type BasicAzureRecoveryServiceVaultProtectionIntent = original.BasicAzureRecoveryServiceVaultProtectionIntent
type AzureRecoveryServiceVaultProtectionIntent = original.AzureRecoveryServiceVaultProtectionIntent
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
type AzureSQLContainer = original.AzureSQLContainer
@@ -783,14 +824,23 @@ type BasicAzureVMWorkloadItem = original.BasicAzureVMWorkloadItem
type AzureVMWorkloadItem = original.AzureVMWorkloadItem
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
type BasicAzureVMWorkloadProtectedItem = original.BasicAzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy
type AzureVMWorkloadSAPHanaDatabaseProtectableItem = original.AzureVMWorkloadSAPHanaDatabaseProtectableItem
type AzureVMWorkloadSAPHanaDatabaseProtectedItem = original.AzureVMWorkloadSAPHanaDatabaseProtectedItem
type AzureVMWorkloadSAPHanaDatabaseWorkloadItem = original.AzureVMWorkloadSAPHanaDatabaseWorkloadItem
type AzureVMWorkloadSAPHanaSystemProtectableItem = original.AzureVMWorkloadSAPHanaSystemProtectableItem
type AzureVMWorkloadSAPHanaSystemWorkloadItem = original.AzureVMWorkloadSAPHanaSystemWorkloadItem
type AzureVMWorkloadSQLAvailabilityGroupProtectableItem = original.AzureVMWorkloadSQLAvailabilityGroupProtectableItem
type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
type BasicAzureWorkloadAutoProtectionIntent = original.BasicAzureWorkloadAutoProtectionIntent
type AzureWorkloadAutoProtectionIntent = original.AzureWorkloadAutoProtectionIntent
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
type AzureWorkloadContainer = original.AzureWorkloadContainer
@@ -803,6 +853,13 @@ type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest
type AzureWorkloadSAPHanaPointInTimeRecoveryPoint = original.AzureWorkloadSAPHanaPointInTimeRecoveryPoint
type AzureWorkloadSAPHanaPointInTimeRestoreRequest = original.AzureWorkloadSAPHanaPointInTimeRestoreRequest
type BasicAzureWorkloadSAPHanaRecoveryPoint = original.BasicAzureWorkloadSAPHanaRecoveryPoint
type AzureWorkloadSAPHanaRecoveryPoint = original.AzureWorkloadSAPHanaRecoveryPoint
type BasicAzureWorkloadSAPHanaRestoreRequest = original.BasicAzureWorkloadSAPHanaRestoreRequest
type AzureWorkloadSAPHanaRestoreRequest = original.AzureWorkloadSAPHanaRestoreRequest
type AzureWorkloadSQLAutoProtectionIntent = original.AzureWorkloadSQLAutoProtectionIntent
type AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint
type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
@@ -815,6 +872,7 @@ type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
type BMSContainerQueryObject = original.BMSContainerQueryObject
type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject
type BMSPOQueryObject = original.BMSPOQueryObject
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
type BMSRPQueryObject = original.BMSRPQueryObject
@@ -1102,6 +1160,9 @@ func PossibleContainerTypeBasicProtectionContainerValues() []ContainerTypeBasicP
func PossibleCopyOptionsValues() []CopyOptions {
return original.PossibleCopyOptionsValues()
}
func PossibleCreateModeValues() []CreateMode {
return original.PossibleCreateModeValues()
}
func PossibleDataSourceTypeValues() []DataSourceType {
return original.PossibleDataSourceTypeValues()
}

View File

@@ -33,71 +33,64 @@ const (
Single AppliedScopeType = original.Single
)
type AppliedScopeType1 = original.AppliedScopeType1
type ErrorResponseCode = original.ErrorResponseCode
const (
AppliedScopeType1Shared AppliedScopeType1 = original.AppliedScopeType1Shared
AppliedScopeType1Single AppliedScopeType1 = original.AppliedScopeType1Single
)
type Code = original.Code
const (
ActivateQuoteFailed Code = original.ActivateQuoteFailed
AppliedScopesNotAssociatedWithCommerceAccount Code = original.AppliedScopesNotAssociatedWithCommerceAccount
AuthorizationFailed Code = original.AuthorizationFailed
BadRequest Code = original.BadRequest
BillingCustomerInputError Code = original.BillingCustomerInputError
BillingError Code = original.BillingError
BillingPaymentInstrumentHardError Code = original.BillingPaymentInstrumentHardError
BillingPaymentInstrumentSoftError Code = original.BillingPaymentInstrumentSoftError
BillingScopeIDCannotBeChanged Code = original.BillingScopeIDCannotBeChanged
BillingTransientError Code = original.BillingTransientError
CalculatePriceFailed Code = original.CalculatePriceFailed
CapacityUpdateScopesFailed Code = original.CapacityUpdateScopesFailed
ClientCertificateThumbprintNotSet Code = original.ClientCertificateThumbprintNotSet
CreateQuoteFailed Code = original.CreateQuoteFailed
Forbidden Code = original.Forbidden
FulfillmentConfigurationError Code = original.FulfillmentConfigurationError
FulfillmentError Code = original.FulfillmentError
FulfillmentOutOfStockError Code = original.FulfillmentOutOfStockError
FulfillmentTransientError Code = original.FulfillmentTransientError
HTTPMethodNotSupported Code = original.HTTPMethodNotSupported
InternalServerError Code = original.InternalServerError
InvalidAccessToken Code = original.InvalidAccessToken
InvalidFulfillmentRequestParameters Code = original.InvalidFulfillmentRequestParameters
InvalidHealthCheckType Code = original.InvalidHealthCheckType
InvalidLocationID Code = original.InvalidLocationID
InvalidRefundQuantity Code = original.InvalidRefundQuantity
InvalidRequestContent Code = original.InvalidRequestContent
InvalidRequestURI Code = original.InvalidRequestURI
InvalidReservationID Code = original.InvalidReservationID
InvalidReservationOrderID Code = original.InvalidReservationOrderID
InvalidSingleAppliedScopesCount Code = original.InvalidSingleAppliedScopesCount
InvalidSubscriptionID Code = original.InvalidSubscriptionID
InvalidTenantID Code = original.InvalidTenantID
MissingAppliedScopesForSingle Code = original.MissingAppliedScopesForSingle
MissingTenantID Code = original.MissingTenantID
NonsupportedAccountID Code = original.NonsupportedAccountID
NotSpecified Code = original.NotSpecified
NotSupportedCountry Code = original.NotSupportedCountry
NoValidReservationsToReRate Code = original.NoValidReservationsToReRate
OperationCannotBePerformedInCurrentState Code = original.OperationCannotBePerformedInCurrentState
OperationFailed Code = original.OperationFailed
PatchValuesSameAsExisting Code = original.PatchValuesSameAsExisting
PaymentInstrumentNotFound Code = original.PaymentInstrumentNotFound
PurchaseError Code = original.PurchaseError
ReRateOnlyAllowedForEA Code = original.ReRateOnlyAllowedForEA
ReservationIDNotInReservationOrder Code = original.ReservationIDNotInReservationOrder
ReservationOrderCreationFailed Code = original.ReservationOrderCreationFailed
ReservationOrderIDAlreadyExists Code = original.ReservationOrderIDAlreadyExists
ReservationOrderNotEnabled Code = original.ReservationOrderNotEnabled
ReservationOrderNotFound Code = original.ReservationOrderNotFound
RiskCheckFailed Code = original.RiskCheckFailed
RoleAssignmentCreationFailed Code = original.RoleAssignmentCreationFailed
ServerTimeout Code = original.ServerTimeout
UnauthenticatedRequestsThrottled Code = original.UnauthenticatedRequestsThrottled
UnsupportedReservationTerm Code = original.UnsupportedReservationTerm
ActivateQuoteFailed ErrorResponseCode = original.ActivateQuoteFailed
AppliedScopesNotAssociatedWithCommerceAccount ErrorResponseCode = original.AppliedScopesNotAssociatedWithCommerceAccount
AuthorizationFailed ErrorResponseCode = original.AuthorizationFailed
BadRequest ErrorResponseCode = original.BadRequest
BillingCustomerInputError ErrorResponseCode = original.BillingCustomerInputError
BillingError ErrorResponseCode = original.BillingError
BillingPaymentInstrumentHardError ErrorResponseCode = original.BillingPaymentInstrumentHardError
BillingPaymentInstrumentSoftError ErrorResponseCode = original.BillingPaymentInstrumentSoftError
BillingScopeIDCannotBeChanged ErrorResponseCode = original.BillingScopeIDCannotBeChanged
BillingTransientError ErrorResponseCode = original.BillingTransientError
CalculatePriceFailed ErrorResponseCode = original.CalculatePriceFailed
CapacityUpdateScopesFailed ErrorResponseCode = original.CapacityUpdateScopesFailed
ClientCertificateThumbprintNotSet ErrorResponseCode = original.ClientCertificateThumbprintNotSet
CreateQuoteFailed ErrorResponseCode = original.CreateQuoteFailed
Forbidden ErrorResponseCode = original.Forbidden
FulfillmentConfigurationError ErrorResponseCode = original.FulfillmentConfigurationError
FulfillmentError ErrorResponseCode = original.FulfillmentError
FulfillmentOutOfStockError ErrorResponseCode = original.FulfillmentOutOfStockError
FulfillmentTransientError ErrorResponseCode = original.FulfillmentTransientError
HTTPMethodNotSupported ErrorResponseCode = original.HTTPMethodNotSupported
InternalServerError ErrorResponseCode = original.InternalServerError
InvalidAccessToken ErrorResponseCode = original.InvalidAccessToken
InvalidFulfillmentRequestParameters ErrorResponseCode = original.InvalidFulfillmentRequestParameters
InvalidHealthCheckType ErrorResponseCode = original.InvalidHealthCheckType
InvalidLocationID ErrorResponseCode = original.InvalidLocationID
InvalidRefundQuantity ErrorResponseCode = original.InvalidRefundQuantity
InvalidRequestContent ErrorResponseCode = original.InvalidRequestContent
InvalidRequestURI ErrorResponseCode = original.InvalidRequestURI
InvalidReservationID ErrorResponseCode = original.InvalidReservationID
InvalidReservationOrderID ErrorResponseCode = original.InvalidReservationOrderID
InvalidSingleAppliedScopesCount ErrorResponseCode = original.InvalidSingleAppliedScopesCount
InvalidSubscriptionID ErrorResponseCode = original.InvalidSubscriptionID
InvalidTenantID ErrorResponseCode = original.InvalidTenantID
MissingAppliedScopesForSingle ErrorResponseCode = original.MissingAppliedScopesForSingle
MissingTenantID ErrorResponseCode = original.MissingTenantID
NonsupportedAccountID ErrorResponseCode = original.NonsupportedAccountID
NotSpecified ErrorResponseCode = original.NotSpecified
NotSupportedCountry ErrorResponseCode = original.NotSupportedCountry
NoValidReservationsToReRate ErrorResponseCode = original.NoValidReservationsToReRate
OperationCannotBePerformedInCurrentState ErrorResponseCode = original.OperationCannotBePerformedInCurrentState
OperationFailed ErrorResponseCode = original.OperationFailed
PatchValuesSameAsExisting ErrorResponseCode = original.PatchValuesSameAsExisting
PaymentInstrumentNotFound ErrorResponseCode = original.PaymentInstrumentNotFound
PurchaseError ErrorResponseCode = original.PurchaseError
ReRateOnlyAllowedForEA ErrorResponseCode = original.ReRateOnlyAllowedForEA
ReservationIDNotInReservationOrder ErrorResponseCode = original.ReservationIDNotInReservationOrder
ReservationOrderCreationFailed ErrorResponseCode = original.ReservationOrderCreationFailed
ReservationOrderIDAlreadyExists ErrorResponseCode = original.ReservationOrderIDAlreadyExists
ReservationOrderNotEnabled ErrorResponseCode = original.ReservationOrderNotEnabled
ReservationOrderNotFound ErrorResponseCode = original.ReservationOrderNotFound
RiskCheckFailed ErrorResponseCode = original.RiskCheckFailed
RoleAssignmentCreationFailed ErrorResponseCode = original.RoleAssignmentCreationFailed
ServerTimeout ErrorResponseCode = original.ServerTimeout
UnauthenticatedRequestsThrottled ErrorResponseCode = original.UnauthenticatedRequestsThrottled
UnsupportedReservationTerm ErrorResponseCode = original.UnsupportedReservationTerm
)
type InstanceFlexibility = original.InstanceFlexibility
@@ -108,81 +101,11 @@ const (
On InstanceFlexibility = original.On
)
type InstanceFlexibility1 = original.InstanceFlexibility1
type ReservationTerm = original.ReservationTerm
const (
InstanceFlexibility1NotSupported InstanceFlexibility1 = original.InstanceFlexibility1NotSupported
InstanceFlexibility1Off InstanceFlexibility1 = original.InstanceFlexibility1Off
InstanceFlexibility1On InstanceFlexibility1 = original.InstanceFlexibility1On
)
type Location = original.Location
const (
Australiac Location = original.Australiac
Australiac2 Location = original.Australiac2
Australiaeast Location = original.Australiaeast
Australiasoutheast Location = original.Australiasoutheast
Brazilsouth Location = original.Brazilsouth
Canadacentral Location = original.Canadacentral
Canadaeast Location = original.Canadaeast
Centralindia Location = original.Centralindia
Centralus Location = original.Centralus
Eastasia Location = original.Eastasia
Eastus Location = original.Eastus
Eastus2 Location = original.Eastus2
Francecentral Location = original.Francecentral
Francesouth Location = original.Francesouth
Japaneast Location = original.Japaneast
Japanwest Location = original.Japanwest
Northcentralus Location = original.Northcentralus
Northeurope Location = original.Northeurope
Southcentralus Location = original.Southcentralus
Southeastasia Location = original.Southeastasia
Southindia Location = original.Southindia
Uksouth Location = original.Uksouth
Ukwest Location = original.Ukwest
Westcentralus Location = original.Westcentralus
Westeurope Location = original.Westeurope
Westindia Location = original.Westindia
Westus Location = original.Westus
Westus2 Location = original.Westus2
)
type ProvisioningState = original.ProvisioningState
const (
BillingFailed ProvisioningState = original.BillingFailed
Cancelled ProvisioningState = original.Cancelled
ConfirmedBilling ProvisioningState = original.ConfirmedBilling
ConfirmedResourceHold ProvisioningState = original.ConfirmedResourceHold
Created ProvisioningState = original.Created
Creating ProvisioningState = original.Creating
Expired ProvisioningState = original.Expired
Failed ProvisioningState = original.Failed
Merged ProvisioningState = original.Merged
PendingBilling ProvisioningState = original.PendingBilling
PendingResourceHold ProvisioningState = original.PendingResourceHold
Split ProvisioningState = original.Split
Succeeded ProvisioningState = original.Succeeded
)
type ProvisioningState1 = original.ProvisioningState1
const (
ProvisioningState1BillingFailed ProvisioningState1 = original.ProvisioningState1BillingFailed
ProvisioningState1Cancelled ProvisioningState1 = original.ProvisioningState1Cancelled
ProvisioningState1ConfirmedBilling ProvisioningState1 = original.ProvisioningState1ConfirmedBilling
ProvisioningState1ConfirmedResourceHold ProvisioningState1 = original.ProvisioningState1ConfirmedResourceHold
ProvisioningState1Created ProvisioningState1 = original.ProvisioningState1Created
ProvisioningState1Creating ProvisioningState1 = original.ProvisioningState1Creating
ProvisioningState1Expired ProvisioningState1 = original.ProvisioningState1Expired
ProvisioningState1Failed ProvisioningState1 = original.ProvisioningState1Failed
ProvisioningState1Merged ProvisioningState1 = original.ProvisioningState1Merged
ProvisioningState1PendingBilling ProvisioningState1 = original.ProvisioningState1PendingBilling
ProvisioningState1PendingResourceHold ProvisioningState1 = original.ProvisioningState1PendingResourceHold
ProvisioningState1Split ProvisioningState1 = original.ProvisioningState1Split
ProvisioningState1Succeeded ProvisioningState1 = original.ProvisioningState1Succeeded
P1Y ReservationTerm = original.P1Y
P3Y ReservationTerm = original.P3Y
)
type ReservedResourceType = original.ReservedResourceType
@@ -207,13 +130,6 @@ const (
StatusCodeSucceeded StatusCode = original.StatusCodeSucceeded
)
type Term = original.Term
const (
P1Y Term = original.P1Y
P3Y Term = original.P3Y
)
type AppliedReservationList = original.AppliedReservationList
type AppliedReservations = original.AppliedReservations
type AppliedReservationsProperties = original.AppliedReservationsProperties
@@ -265,26 +181,14 @@ func NewWithBaseURI(baseURI string) BaseClient {
func PossibleAppliedScopeTypeValues() []AppliedScopeType {
return original.PossibleAppliedScopeTypeValues()
}
func PossibleAppliedScopeType1Values() []AppliedScopeType1 {
return original.PossibleAppliedScopeType1Values()
}
func PossibleCodeValues() []Code {
return original.PossibleCodeValues()
func PossibleErrorResponseCodeValues() []ErrorResponseCode {
return original.PossibleErrorResponseCodeValues()
}
func PossibleInstanceFlexibilityValues() []InstanceFlexibility {
return original.PossibleInstanceFlexibilityValues()
}
func PossibleInstanceFlexibility1Values() []InstanceFlexibility1 {
return original.PossibleInstanceFlexibility1Values()
}
func PossibleLocationValues() []Location {
return original.PossibleLocationValues()
}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
func PossibleProvisioningState1Values() []ProvisioningState1 {
return original.PossibleProvisioningState1Values()
func PossibleReservationTermValues() []ReservationTerm {
return original.PossibleReservationTermValues()
}
func PossibleReservedResourceTypeValues() []ReservedResourceType {
return original.PossibleReservedResourceTypeValues()
@@ -292,9 +196,6 @@ func PossibleReservedResourceTypeValues() []ReservedResourceType {
func PossibleStatusCodeValues() []StatusCode {
return original.PossibleStatusCodeValues()
}
func PossibleTermValues() []Term {
return original.PossibleTermValues()
}
func NewOperationClient() OperationClient {
return original.NewOperationClient()
}

View File

@@ -0,0 +1,120 @@
// +build go1.9
// Copyright 2018 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package storagedatalake
import original "github.com/Azure/azure-sdk-for-go/services/storage/datalake/2018-06-17/storagedatalake"
const (
DefaultDNSSuffix = original.DefaultDNSSuffix
)
type BaseClient = original.BaseClient
type FilesystemClient = original.FilesystemClient
type PathGetPropertiesAction = original.PathGetPropertiesAction
const (
GetAccessControl PathGetPropertiesAction = original.GetAccessControl
)
type PathLeaseAction = original.PathLeaseAction
const (
Acquire PathLeaseAction = original.Acquire
Break PathLeaseAction = original.Break
Change PathLeaseAction = original.Change
Release PathLeaseAction = original.Release
Renew PathLeaseAction = original.Renew
)
type PathRenameMode = original.PathRenameMode
const (
Legacy PathRenameMode = original.Legacy
Posix PathRenameMode = original.Posix
)
type PathResourceType = original.PathResourceType
const (
Directory PathResourceType = original.Directory
File PathResourceType = original.File
)
type PathUpdateAction = original.PathUpdateAction
const (
Append PathUpdateAction = original.Append
Flush PathUpdateAction = original.Flush
SetAccessControl PathUpdateAction = original.SetAccessControl
SetProperties PathUpdateAction = original.SetProperties
)
type PathUpdateLeaseAction = original.PathUpdateLeaseAction
const (
PathUpdateLeaseActionRelease PathUpdateLeaseAction = original.PathUpdateLeaseActionRelease
PathUpdateLeaseActionRenew PathUpdateLeaseAction = original.PathUpdateLeaseActionRenew
)
type DataLakeStorageError = original.DataLakeStorageError
type DataLakeStorageErrorError = original.DataLakeStorageErrorError
type Filesystem = original.Filesystem
type FilesystemList = original.FilesystemList
type Path = original.Path
type PathList = original.PathList
type ReadCloser = original.ReadCloser
type PathClient = original.PathClient
func New(xMsVersion string, accountName string) BaseClient {
return original.New(xMsVersion, accountName)
}
func NewWithoutDefaults(xMsVersion string, accountName string, dNSSuffix string) BaseClient {
return original.NewWithoutDefaults(xMsVersion, accountName, dNSSuffix)
}
func NewFilesystemClient(xMsVersion string, accountName string) FilesystemClient {
return original.NewFilesystemClient(xMsVersion, accountName)
}
func PossiblePathGetPropertiesActionValues() []PathGetPropertiesAction {
return original.PossiblePathGetPropertiesActionValues()
}
func PossiblePathLeaseActionValues() []PathLeaseAction {
return original.PossiblePathLeaseActionValues()
}
func PossiblePathRenameModeValues() []PathRenameMode {
return original.PossiblePathRenameModeValues()
}
func PossiblePathResourceTypeValues() []PathResourceType {
return original.PossiblePathResourceTypeValues()
}
func PossiblePathUpdateActionValues() []PathUpdateAction {
return original.PossiblePathUpdateActionValues()
}
func PossiblePathUpdateLeaseActionValues() []PathUpdateLeaseAction {
return original.PossiblePathUpdateLeaseActionValues()
}
func NewPathClient(xMsVersion string, accountName string) PathClient {
return original.NewPathClient(xMsVersion, accountName)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}

View File

@@ -0,0 +1,121 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date"
"net/http"
)
// AddsServiceClient is the REST APIs for Azure Active Drectory Connect Health
type AddsServiceClient struct {
BaseClient
}
// NewAddsServiceClient creates an instance of the AddsServiceClient client.
func NewAddsServiceClient() AddsServiceClient {
return NewAddsServiceClientWithBaseURI(DefaultBaseURI)
}
// NewAddsServiceClientWithBaseURI creates an instance of the AddsServiceClient client.
func NewAddsServiceClientWithBaseURI(baseURI string) AddsServiceClient {
return AddsServiceClient{NewWithBaseURI(baseURI)}
}
// GetMetrics gets the server related metrics for a given metric and group combination.
// Parameters:
// serviceName - the name of the service.
// metricName - the metric name
// groupName - the group name
// groupKey - the group key
// fromDate - the start date.
// toDate - the end date.
func (client AddsServiceClient) GetMetrics(ctx context.Context, serviceName string, metricName string, groupName string, groupKey string, fromDate *date.Time, toDate *date.Time) (result MetricSets, err error) {
req, err := client.GetMetricsPreparer(ctx, serviceName, metricName, groupName, groupKey, fromDate, toDate)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceClient", "GetMetrics", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceClient", "GetMetrics", resp, "Failure sending request")
return
}
result, err = client.GetMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceClient", "GetMetrics", resp, "Failure responding to request")
}
return
}
// GetMetricsPreparer prepares the GetMetrics request.
func (client AddsServiceClient) GetMetricsPreparer(ctx context.Context, serviceName string, metricName string, groupName string, groupKey string, fromDate *date.Time, toDate *date.Time) (*http.Request, error) {
pathParameters := map[string]interface{}{
"groupName": autorest.Encode("path", groupName),
"metricName": autorest.Encode("path", metricName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(groupKey) > 0 {
queryParameters["groupKey"] = autorest.Encode("query", groupKey)
}
if fromDate != nil {
queryParameters["fromDate"] = autorest.Encode("query", *fromDate)
}
if toDate != nil {
queryParameters["toDate"] = autorest.Encode("query", *toDate)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsSender sends the GetMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServiceClient) GetMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsResponder handles the response to the GetMetrics request. The method always
// closes the http.Response Body.
func (client AddsServiceClient) GetMetricsResponder(resp *http.Response) (result MetricSets, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -21,6 +21,7 @@ import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/satori/go.uuid"
"net/http"
)
@@ -39,6 +40,145 @@ func NewAddsServiceMembersClientWithBaseURI(baseURI string) AddsServiceMembersCl
return AddsServiceMembersClient{NewWithBaseURI(baseURI)}
}
// Delete deletes a Active Directory Domain Controller server that has been onboarded to Azure Active Directory Connect
// Health Service.
// Parameters:
// serviceName - the name of the service.
// serviceMemberID - the server Id.
// confirm - indicates if the server will be permanently deleted or disabled. True indicates that the server
// will be permanently deleted and False indicates that the server will be marked disabled and then deleted
// after 30 days, if it is not re-registered.
func (client AddsServiceMembersClient) Delete(ctx context.Context, serviceName string, serviceMemberID uuid.UUID, confirm *bool) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, serviceName, serviceMemberID, confirm)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client AddsServiceMembersClient) DeletePreparer(ctx context.Context, serviceName string, serviceMemberID uuid.UUID, confirm *bool) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if confirm != nil {
queryParameters["confirm"] = autorest.Encode("query", *confirm)
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServiceMembersClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client AddsServiceMembersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Get gets the details of a server, for a given Active Directory Domain Controller service, that are onboarded to
// Azure Active Directory Connect Health Service.
// Parameters:
// serviceName - the name of the service.
// serviceMemberID - the server Id.
func (client AddsServiceMembersClient) Get(ctx context.Context, serviceName string, serviceMemberID uuid.UUID) (result ServiceMember, err error) {
req, err := client.GetPreparer(ctx, serviceName, serviceMemberID)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client AddsServiceMembersClient) GetPreparer(ctx context.Context, serviceName string, serviceMemberID uuid.UUID) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServiceMembersClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AddsServiceMembersClient) GetResponder(resp *http.Response) (result ServiceMember, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets the details of the Active Directory Domain servers, for a given Active Directory Domain Service, that are
// onboarded to Azure Active Directory Connect Health.
// Parameters:
@@ -135,3 +275,74 @@ func (client AddsServiceMembersClient) ListComplete(ctx context.Context, service
result.page, err = client.List(ctx, serviceName, filter)
return
}
// ListCredentials gets the credentials of the server which is needed by the agent to connect to Azure Active Directory
// Connect Health Service.
// Parameters:
// serviceName - the name of the service.
// serviceMemberID - the server Id.
// filter - the property filter to apply.
func (client AddsServiceMembersClient) ListCredentials(ctx context.Context, serviceName string, serviceMemberID uuid.UUID, filter string) (result Credentials, err error) {
req, err := client.ListCredentialsPreparer(ctx, serviceName, serviceMemberID, filter)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "ListCredentials", nil, "Failure preparing request")
return
}
resp, err := client.ListCredentialsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "ListCredentials", resp, "Failure sending request")
return
}
result, err = client.ListCredentialsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "ListCredentials", resp, "Failure responding to request")
}
return
}
// ListCredentialsPreparer prepares the ListCredentials request.
func (client AddsServiceMembersClient) ListCredentialsPreparer(ctx context.Context, serviceName string, serviceMemberID uuid.UUID, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}/credentials", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ListCredentialsSender sends the ListCredentials request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServiceMembersClient) ListCredentialsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ListCredentialsResponder handles the response to the ListCredentials request. The method always
// closes the http.Response Body.
func (client AddsServiceMembersClient) ListCredentialsResponder(resp *http.Response) (result Credentials, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -448,71 +448,6 @@ func (client AddsServicesClient) GetMetricMetadataForGroupResponder(resp *http.R
return
}
// GetReplicationStatus gets Replication status for a given Active Directory Domain Service, that is onboarded to Azure
// Active Directory Connect Health.
// Parameters:
// serviceName - the name of the service.
func (client AddsServicesClient) GetReplicationStatus(ctx context.Context, serviceName string) (result ReplicationStatus, err error) {
req, err := client.GetReplicationStatusPreparer(ctx, serviceName)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "GetReplicationStatus", nil, "Failure preparing request")
return
}
resp, err := client.GetReplicationStatusSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "GetReplicationStatus", resp, "Failure sending request")
return
}
result, err = client.GetReplicationStatusResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "GetReplicationStatus", resp, "Failure responding to request")
}
return
}
// GetReplicationStatusPreparer prepares the GetReplicationStatus request.
func (client AddsServicesClient) GetReplicationStatusPreparer(ctx context.Context, serviceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetReplicationStatusSender sends the GetReplicationStatus request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesClient) GetReplicationStatusSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetReplicationStatusResponder handles the response to the GetReplicationStatus request. The method always
// closes the http.Response Body.
func (client AddsServicesClient) GetReplicationStatusResponder(resp *http.Response) (result ReplicationStatus, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets the details of Active Directory Domain Service, for a tenant, that are onboarded to Azure Active Directory
// Connect Health.
// Parameters:
@@ -1019,6 +954,79 @@ func (client AddsServicesClient) ListPremiumServicesComplete(ctx context.Context
return
}
// ListReplicationDetails gets complete domain controller list along with replication details for a given Active
// Directory Domain Service, that is onboarded to Azure Active Directory Connect Health.
// Parameters:
// serviceName - the name of the service.
// filter - the server property filter to apply.
// withDetails - indicates if InboundReplicationNeighbor details are required or not.
func (client AddsServicesClient) ListReplicationDetails(ctx context.Context, serviceName string, filter string, withDetails *bool) (result ReplicationDetailsList, err error) {
req, err := client.ListReplicationDetailsPreparer(ctx, serviceName, filter, withDetails)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListReplicationDetails", nil, "Failure preparing request")
return
}
resp, err := client.ListReplicationDetailsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListReplicationDetails", resp, "Failure sending request")
return
}
result, err = client.ListReplicationDetailsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListReplicationDetails", resp, "Failure responding to request")
}
return
}
// ListReplicationDetailsPreparer prepares the ListReplicationDetails request.
func (client AddsServicesClient) ListReplicationDetailsPreparer(ctx context.Context, serviceName string, filter string, withDetails *bool) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
if withDetails != nil {
queryParameters["withDetails"] = autorest.Encode("query", *withDetails)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationdetails", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ListReplicationDetailsSender sends the ListReplicationDetails request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesClient) ListReplicationDetailsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ListReplicationDetailsResponder handles the response to the ListReplicationDetails request. The method always
// closes the http.Response Body.
func (client AddsServicesClient) ListReplicationDetailsResponder(resp *http.Response) (result ReplicationDetailsList, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// ListReplicationSummary gets complete domain controller list along with replication details for a given Active
// Directory Domain Service, that is onboarded to Azure Active Directory Connect Health.
// Parameters:

View File

@@ -0,0 +1,106 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// AddsServicesReplicationStatusClient is the REST APIs for Azure Active Drectory Connect Health
type AddsServicesReplicationStatusClient struct {
BaseClient
}
// NewAddsServicesReplicationStatusClient creates an instance of the AddsServicesReplicationStatusClient client.
func NewAddsServicesReplicationStatusClient() AddsServicesReplicationStatusClient {
return NewAddsServicesReplicationStatusClientWithBaseURI(DefaultBaseURI)
}
// NewAddsServicesReplicationStatusClientWithBaseURI creates an instance of the AddsServicesReplicationStatusClient
// client.
func NewAddsServicesReplicationStatusClientWithBaseURI(baseURI string) AddsServicesReplicationStatusClient {
return AddsServicesReplicationStatusClient{NewWithBaseURI(baseURI)}
}
// Get gets Replication status for a given Active Directory Domain Service, that is onboarded to Azure Active Directory
// Connect Health.
// Parameters:
// serviceName - the name of the service.
func (client AddsServicesReplicationStatusClient) Get(ctx context.Context, serviceName string) (result ReplicationStatus, err error) {
req, err := client.GetPreparer(ctx, serviceName)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesReplicationStatusClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesReplicationStatusClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesReplicationStatusClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client AddsServicesReplicationStatusClient) GetPreparer(ctx context.Context, serviceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesReplicationStatusClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AddsServicesReplicationStatusClient) GetResponder(resp *http.Response) (result ReplicationStatus, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -0,0 +1,213 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// AddsServicesServiceMembersClient is the REST APIs for Azure Active Drectory Connect Health
type AddsServicesServiceMembersClient struct {
BaseClient
}
// NewAddsServicesServiceMembersClient creates an instance of the AddsServicesServiceMembersClient client.
func NewAddsServicesServiceMembersClient() AddsServicesServiceMembersClient {
return NewAddsServicesServiceMembersClientWithBaseURI(DefaultBaseURI)
}
// NewAddsServicesServiceMembersClientWithBaseURI creates an instance of the AddsServicesServiceMembersClient client.
func NewAddsServicesServiceMembersClientWithBaseURI(baseURI string) AddsServicesServiceMembersClient {
return AddsServicesServiceMembersClient{NewWithBaseURI(baseURI)}
}
// Add onboards a server, for a given Active Directory Domain Controller service, to Azure Active Directory Connect
// Health Service.
// Parameters:
// serviceName - the name of the service under which the server is to be onboarded.
// serviceMember - the server object.
func (client AddsServicesServiceMembersClient) Add(ctx context.Context, serviceName string, serviceMember ServiceMember) (result ServiceMember, err error) {
req, err := client.AddPreparer(ctx, serviceName, serviceMember)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "Add", nil, "Failure preparing request")
return
}
resp, err := client.AddSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "Add", resp, "Failure sending request")
return
}
result, err = client.AddResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "Add", resp, "Failure responding to request")
}
return
}
// AddPreparer prepares the Add request.
func (client AddsServicesServiceMembersClient) AddPreparer(ctx context.Context, serviceName string, serviceMember ServiceMember) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers", pathParameters),
autorest.WithJSON(serviceMember),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// AddSender sends the Add request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesServiceMembersClient) AddSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// AddResponder handles the response to the Add request. The method always
// closes the http.Response Body.
func (client AddsServicesServiceMembersClient) AddResponder(resp *http.Response) (result ServiceMember, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets the details of the servers, for a given Active Directory Domain Controller service, that are onboarded to
// Azure Active Directory Connect Health Service.
// Parameters:
// serviceName - the name of the service.
// filter - the server property filter to apply.
// dimensionType - the server specific dimension.
// dimensionSignature - the value of the dimension.
func (client AddsServicesServiceMembersClient) List(ctx context.Context, serviceName string, filter string, dimensionType string, dimensionSignature string) (result ServiceMembersPage, err error) {
result.fn = client.listNextResults
req, err := client.ListPreparer(ctx, serviceName, filter, dimensionType, dimensionSignature)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "List", nil, "Failure preparing request")
return
}
resp, err := client.ListSender(req)
if err != nil {
result.sm.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "List", resp, "Failure sending request")
return
}
result.sm, err = client.ListResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "List", resp, "Failure responding to request")
}
return
}
// ListPreparer prepares the List request.
func (client AddsServicesServiceMembersClient) ListPreparer(ctx context.Context, serviceName string, filter string, dimensionType string, dimensionSignature string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
if len(dimensionType) > 0 {
queryParameters["dimensionType"] = autorest.Encode("query", dimensionType)
}
if len(dimensionSignature) > 0 {
queryParameters["dimensionSignature"] = autorest.Encode("query", dimensionSignature)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesServiceMembersClient) ListSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client AddsServicesServiceMembersClient) ListResponder(resp *http.Response) (result ServiceMembers, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// listNextResults retrieves the next set of results, if any.
func (client AddsServicesServiceMembersClient) listNextResults(lastResults ServiceMembers) (result ServiceMembers, err error) {
req, err := lastResults.serviceMembersPreparer()
if err != nil {
return result, autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "listNextResults", nil, "Failure preparing next results request")
}
if req == nil {
return
}
resp, err := client.ListSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
return result, autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "listNextResults", resp, "Failure sending next results request")
}
result, err = client.ListResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "listNextResults", resp, "Failure responding to next results request")
}
return
}
// ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client AddsServicesServiceMembersClient) ListComplete(ctx context.Context, serviceName string, filter string, dimensionType string, dimensionSignature string) (result ServiceMembersIterator, err error) {
result.page, err = client.List(ctx, serviceName, filter, dimensionType, dimensionSignature)
return
}

View File

@@ -0,0 +1,239 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// AddsServicesUserPreferenceClient is the REST APIs for Azure Active Drectory Connect Health
type AddsServicesUserPreferenceClient struct {
BaseClient
}
// NewAddsServicesUserPreferenceClient creates an instance of the AddsServicesUserPreferenceClient client.
func NewAddsServicesUserPreferenceClient() AddsServicesUserPreferenceClient {
return NewAddsServicesUserPreferenceClientWithBaseURI(DefaultBaseURI)
}
// NewAddsServicesUserPreferenceClientWithBaseURI creates an instance of the AddsServicesUserPreferenceClient client.
func NewAddsServicesUserPreferenceClientWithBaseURI(baseURI string) AddsServicesUserPreferenceClient {
return AddsServicesUserPreferenceClient{NewWithBaseURI(baseURI)}
}
// Add adds the user preferences for a given feature.
// Parameters:
// serviceName - the name of the service.
// featureName - the name of the feature.
// setting - the user preference setting.
func (client AddsServicesUserPreferenceClient) Add(ctx context.Context, serviceName string, featureName string, setting UserPreference) (result autorest.Response, err error) {
req, err := client.AddPreparer(ctx, serviceName, featureName, setting)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Add", nil, "Failure preparing request")
return
}
resp, err := client.AddSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Add", resp, "Failure sending request")
return
}
result, err = client.AddResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Add", resp, "Failure responding to request")
}
return
}
// AddPreparer prepares the Add request.
func (client AddsServicesUserPreferenceClient) AddPreparer(ctx context.Context, serviceName string, featureName string, setting UserPreference) (*http.Request, error) {
pathParameters := map[string]interface{}{
"featureName": autorest.Encode("path", featureName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference", pathParameters),
autorest.WithJSON(setting),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// AddSender sends the Add request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesUserPreferenceClient) AddSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// AddResponder handles the response to the Add request. The method always
// closes the http.Response Body.
func (client AddsServicesUserPreferenceClient) AddResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Delete deletes the user preferences for a given feature.
// Parameters:
// serviceName - the name of the service.
// featureName - the name of the feature.
func (client AddsServicesUserPreferenceClient) Delete(ctx context.Context, serviceName string, featureName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, serviceName, featureName)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client AddsServicesUserPreferenceClient) DeletePreparer(ctx context.Context, serviceName string, featureName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"featureName": autorest.Encode("path", featureName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesUserPreferenceClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client AddsServicesUserPreferenceClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Get gets the user preferences for a given feature.
// Parameters:
// serviceName - the name of the service.
// featureName - the name of the feature.
func (client AddsServicesUserPreferenceClient) Get(ctx context.Context, serviceName string, featureName string) (result UserPreference, err error) {
req, err := client.GetPreparer(ctx, serviceName, featureName)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client AddsServicesUserPreferenceClient) GetPreparer(ctx context.Context, serviceName string, featureName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"featureName": autorest.Encode("path", featureName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesUserPreferenceClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AddsServicesUserPreferenceClient) GetResponder(resp *http.Response) (result UserPreference, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -2110,6 +2110,19 @@ type PasswordManagementSettings struct {
UnlockAccount *bool `json:"unlockAccount,omitempty"`
}
// ReplicationDetailsList the list of replication details.
type ReplicationDetailsList struct {
autorest.Response `json:"-"`
// Value - The value returned by the operation.
Value *[]ReplicationSummary `json:"value,omitempty"`
// TotalCount - The total count of replication detail elements.
TotalCount *int32 `json:"totalCount,omitempty"`
// ContinuationToken - The continuation token for paginated calls.
ContinuationToken *string `json:"continuationToken,omitempty"`
// NextLink - The link used to get the next page of operations.
NextLink *string `json:"nextLink,omitempty"`
}
// ReplicationStatus replication summary for a domain controller.
type ReplicationStatus struct {
autorest.Response `json:"-"`
@@ -2613,6 +2626,13 @@ type TenantOnboardingDetails struct {
OnboardingDisplayURL *string `json:"onboardingDisplayUrl,omitempty"`
}
// UserPreference the user preference for a given feature.
type UserPreference struct {
autorest.Response `json:"-"`
// MetricNames - The name of the metric.
MetricNames *[]string `json:"metricNames,omitempty"`
}
// ValueDelta the value of the delta.
type ValueDelta struct {
// OperationType - The operation type. Possible values include: 'ValueDeltaOperationTypeUndefined', 'ValueDeltaOperationTypeAdd', 'ValueDeltaOperationTypeUpdate', 'ValueDeltaOperationTypeDelete'

View File

@@ -0,0 +1,98 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// ReportsClient is the REST APIs for Azure Active Drectory Connect Health
type ReportsClient struct {
BaseClient
}
// NewReportsClient creates an instance of the ReportsClient client.
func NewReportsClient() ReportsClient {
return NewReportsClientWithBaseURI(DefaultBaseURI)
}
// NewReportsClientWithBaseURI creates an instance of the ReportsClient client.
func NewReportsClientWithBaseURI(baseURI string) ReportsClient {
return ReportsClient{NewWithBaseURI(baseURI)}
}
// GetDevOps checks if the user is enabled for Dev Ops access.
func (client ReportsClient) GetDevOps(ctx context.Context) (result Result, err error) {
req, err := client.GetDevOpsPreparer(ctx)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ReportsClient", "GetDevOps", nil, "Failure preparing request")
return
}
resp, err := client.GetDevOpsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ReportsClient", "GetDevOps", resp, "Failure sending request")
return
}
result, err = client.GetDevOpsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ReportsClient", "GetDevOps", resp, "Failure responding to request")
}
return
}
// GetDevOpsPreparer prepares the GetDevOps request.
func (client ReportsClient) GetDevOpsPreparer(ctx context.Context) (*http.Request, error) {
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPath("/providers/Microsoft.ADHybridHealthService/reports/DevOps/IsDevOps"),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetDevOpsSender sends the GetDevOps request. The method will close the
// http.Response Body if it receives an error.
func (client ReportsClient) GetDevOpsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetDevOpsResponder handles the response to the GetDevOps request. The method always
// closes the http.Response Body.
func (client ReportsClient) GetDevOpsResponder(resp *http.Response) (result Result, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -0,0 +1,121 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date"
"net/http"
)
// ServiceClient is the REST APIs for Azure Active Drectory Connect Health
type ServiceClient struct {
BaseClient
}
// NewServiceClient creates an instance of the ServiceClient client.
func NewServiceClient() ServiceClient {
return NewServiceClientWithBaseURI(DefaultBaseURI)
}
// NewServiceClientWithBaseURI creates an instance of the ServiceClient client.
func NewServiceClientWithBaseURI(baseURI string) ServiceClient {
return ServiceClient{NewWithBaseURI(baseURI)}
}
// GetMetrics gets the server related metrics for a given metric and group combination.
// Parameters:
// serviceName - the name of the service.
// metricName - the metric name
// groupName - the group name
// groupKey - the group key
// fromDate - the start date.
// toDate - the end date.
func (client ServiceClient) GetMetrics(ctx context.Context, serviceName string, metricName string, groupName string, groupKey string, fromDate *date.Time, toDate *date.Time) (result MetricSets, err error) {
req, err := client.GetMetricsPreparer(ctx, serviceName, metricName, groupName, groupKey, fromDate, toDate)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceClient", "GetMetrics", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceClient", "GetMetrics", resp, "Failure sending request")
return
}
result, err = client.GetMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceClient", "GetMetrics", resp, "Failure responding to request")
}
return
}
// GetMetricsPreparer prepares the GetMetrics request.
func (client ServiceClient) GetMetricsPreparer(ctx context.Context, serviceName string, metricName string, groupName string, groupKey string, fromDate *date.Time, toDate *date.Time) (*http.Request, error) {
pathParameters := map[string]interface{}{
"groupName": autorest.Encode("path", groupName),
"metricName": autorest.Encode("path", metricName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(groupKey) > 0 {
queryParameters["groupKey"] = autorest.Encode("query", groupKey)
}
if fromDate != nil {
queryParameters["fromDate"] = autorest.Encode("query", *fromDate)
}
if toDate != nil {
queryParameters["toDate"] = autorest.Encode("query", *toDate)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsSender sends the GetMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client ServiceClient) GetMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsResponder handles the response to the GetMetrics request. The method always
// closes the http.Response Body.
func (client ServiceClient) GetMetricsResponder(resp *http.Response) (result MetricSets, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -311,6 +311,88 @@ func (client ServiceMembersClient) GetResponder(resp *http.Response) (result Ser
return
}
// GetMetrics gets the server related metrics for a given metric and group combination.
// Parameters:
// serviceName - the name of the service.
// metricName - the metric name
// groupName - the group name
// serviceMemberID - the server id.
// groupKey - the group key
// fromDate - the start date.
// toDate - the end date.
func (client ServiceMembersClient) GetMetrics(ctx context.Context, serviceName string, metricName string, groupName string, serviceMemberID uuid.UUID, groupKey string, fromDate *date.Time, toDate *date.Time) (result MetricSets, err error) {
req, err := client.GetMetricsPreparer(ctx, serviceName, metricName, groupName, serviceMemberID, groupKey, fromDate, toDate)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "GetMetrics", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "GetMetrics", resp, "Failure sending request")
return
}
result, err = client.GetMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "GetMetrics", resp, "Failure responding to request")
}
return
}
// GetMetricsPreparer prepares the GetMetrics request.
func (client ServiceMembersClient) GetMetricsPreparer(ctx context.Context, serviceName string, metricName string, groupName string, serviceMemberID uuid.UUID, groupKey string, fromDate *date.Time, toDate *date.Time) (*http.Request, error) {
pathParameters := map[string]interface{}{
"groupName": autorest.Encode("path", groupName),
"metricName": autorest.Encode("path", metricName),
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(groupKey) > 0 {
queryParameters["groupKey"] = autorest.Encode("query", groupKey)
}
if fromDate != nil {
queryParameters["fromDate"] = autorest.Encode("query", *fromDate)
}
if toDate != nil {
queryParameters["toDate"] = autorest.Encode("query", *toDate)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/metrics/{metricName}/groups/{groupName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsSender sends the GetMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client ServiceMembersClient) GetMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsResponder handles the response to the GetMetrics request. The method always
// closes the http.Response Body.
func (client ServiceMembersClient) GetMetricsResponder(resp *http.Response) (result MetricSets, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetServiceConfiguration gets the service configuration.
// Parameters:
// serviceName - the name of the service.
@@ -954,85 +1036,3 @@ func (client ServiceMembersClient) ListGlobalConfigurationResponder(resp *http.R
result.Response = autorest.Response{Response: resp}
return
}
// ListMetrics gets the server related metrics for a given metric and group combination.
// Parameters:
// serviceName - the name of the service.
// metricName - the metric name
// groupName - the group name
// serviceMemberID - the server id.
// groupKey - the group key
// fromDate - the start date.
// toDate - the end date.
func (client ServiceMembersClient) ListMetrics(ctx context.Context, serviceName string, metricName string, groupName string, serviceMemberID uuid.UUID, groupKey string, fromDate *date.Time, toDate *date.Time) (result MetricSets, err error) {
req, err := client.ListMetricsPreparer(ctx, serviceName, metricName, groupName, serviceMemberID, groupKey, fromDate, toDate)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListMetrics", nil, "Failure preparing request")
return
}
resp, err := client.ListMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListMetrics", resp, "Failure sending request")
return
}
result, err = client.ListMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListMetrics", resp, "Failure responding to request")
}
return
}
// ListMetricsPreparer prepares the ListMetrics request.
func (client ServiceMembersClient) ListMetricsPreparer(ctx context.Context, serviceName string, metricName string, groupName string, serviceMemberID uuid.UUID, groupKey string, fromDate *date.Time, toDate *date.Time) (*http.Request, error) {
pathParameters := map[string]interface{}{
"groupName": autorest.Encode("path", groupName),
"metricName": autorest.Encode("path", metricName),
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(groupKey) > 0 {
queryParameters["groupKey"] = autorest.Encode("query", groupKey)
}
if fromDate != nil {
queryParameters["fromDate"] = autorest.Encode("query", *fromDate)
}
if toDate != nil {
queryParameters["toDate"] = autorest.Encode("query", *toDate)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/metrics/{metricName}/groups/{groupName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ListMetricsSender sends the ListMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client ServiceMembersClient) ListMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ListMetricsResponder handles the response to the ListMetrics request. The method always
// closes the http.Response Body.
func (client ServiceMembersClient) ListMetricsResponder(resp *http.Response) (result MetricSets, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -20,7 +20,6 @@ package advisor
import (
"encoding/json"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"github.com/satori/go.uuid"
@@ -410,29 +409,6 @@ func (rp RecommendationProperties) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
// RecommendationsGetGenerateStatusFuture an abstraction for monitoring and retrieving the results of a
// long-running operation.
type RecommendationsGetGenerateStatusFuture struct {
azure.Future
}
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
func (future *RecommendationsGetGenerateStatusFuture) Result(client RecommendationsClient) (ar autorest.Response, err error) {
var done bool
done, err = future.Done(client)
if err != nil {
err = autorest.NewErrorWithError(err, "advisor.RecommendationsGetGenerateStatusFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
err = azure.NewAsyncOpIncompleteError("advisor.RecommendationsGetGenerateStatusFuture")
return
}
ar.Response = future.Response()
return
}
// Resource an Azure resource.
type Resource struct {
// ID - The resource ID.

View File

@@ -175,19 +175,25 @@ func (client RecommendationsClient) GetResponder(resp *http.Response) (result Re
// Parameters:
// operationID - the operation ID, which can be found from the Location field in the generate recommendation
// response header.
func (client RecommendationsClient) GetGenerateStatus(ctx context.Context, operationID uuid.UUID) (result RecommendationsGetGenerateStatusFuture, err error) {
func (client RecommendationsClient) GetGenerateStatus(ctx context.Context, operationID uuid.UUID) (result autorest.Response, err error) {
req, err := client.GetGenerateStatusPreparer(ctx, operationID)
if err != nil {
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", nil, "Failure preparing request")
return
}
result, err = client.GetGenerateStatusSender(req)
resp, err := client.GetGenerateStatusSender(req)
if err != nil {
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", result.Response(), "Failure sending request")
result.Response = resp
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", resp, "Failure sending request")
return
}
result, err = client.GetGenerateStatusResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", resp, "Failure responding to request")
}
return
}
@@ -213,19 +219,9 @@ func (client RecommendationsClient) GetGenerateStatusPreparer(ctx context.Contex
// GetGenerateStatusSender sends the GetGenerateStatus request. The method will close the
// http.Response Body if it receives an error.
func (client RecommendationsClient) GetGenerateStatusSender(req *http.Request) (future RecommendationsGetGenerateStatusFuture, err error) {
var resp *http.Response
resp, err = autorest.SendWithSender(client, req,
func (client RecommendationsClient) GetGenerateStatusSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
if err != nil {
return
}
err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent))
if err != nil {
return
}
future.Future, err = azure.NewFutureFromResponse(resp)
return
}
// GetGenerateStatusResponder handles the response to the GetGenerateStatus request. The method always

View File

@@ -24,19 +24,19 @@ import (
"net/http"
)
// AnalyticsItemClient is the composite Swagger for Application Insights Management Client
type AnalyticsItemClient struct {
// AnalyticsItemsClient is the composite Swagger for Application Insights Management Client
type AnalyticsItemsClient struct {
BaseClient
}
// NewAnalyticsItemClient creates an instance of the AnalyticsItemClient client.
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient {
return NewAnalyticsItemClientWithBaseURI(DefaultBaseURI, subscriptionID)
// NewAnalyticsItemsClient creates an instance of the AnalyticsItemsClient client.
func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
return NewAnalyticsItemsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewAnalyticsItemClientWithBaseURI creates an instance of the AnalyticsItemClient client.
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient {
return AnalyticsItemClient{NewWithBaseURI(baseURI, subscriptionID)}
// NewAnalyticsItemsClientWithBaseURI creates an instance of the AnalyticsItemsClient client.
func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
return AnalyticsItemsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Delete deletes a specific Analytics Items defined within an Application Insights component.
@@ -47,30 +47,30 @@ func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) An
// users with access to the Application Insights component.
// ID - the Id of a specific item defined in the Application Insights component
// name - the name of a specific item defined in the Application Insights component
func (client AnalyticsItemClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (result autorest.Response, err error) {
func (client AnalyticsItemsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Delete", nil, "Failure preparing request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Delete", resp, "Failure sending request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Delete", resp, "Failure responding to request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client AnalyticsItemClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (*http.Request, error) {
func (client AnalyticsItemsClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
@@ -99,14 +99,14 @@ func (client AnalyticsItemClient) DeletePreparer(ctx context.Context, resourceGr
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client AnalyticsItemClient) DeleteSender(req *http.Request) (*http.Response, error) {
func (client AnalyticsItemsClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client AnalyticsItemClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
func (client AnalyticsItemsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
@@ -124,30 +124,30 @@ func (client AnalyticsItemClient) DeleteResponder(resp *http.Response) (result a
// users with access to the Application Insights component.
// ID - the Id of a specific item defined in the Application Insights component
// name - the name of a specific item defined in the Application Insights component
func (client AnalyticsItemClient) Get(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (result ApplicationInsightsComponentAnalyticsItem, err error) {
func (client AnalyticsItemsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (result ApplicationInsightsComponentAnalyticsItem, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Get", nil, "Failure preparing request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Get", resp, "Failure sending request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Get", resp, "Failure responding to request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client AnalyticsItemClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (*http.Request, error) {
func (client AnalyticsItemsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
@@ -176,14 +176,14 @@ func (client AnalyticsItemClient) GetPreparer(ctx context.Context, resourceGroup
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AnalyticsItemClient) GetSender(req *http.Request) (*http.Response, error) {
func (client AnalyticsItemsClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AnalyticsItemClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponentAnalyticsItem, err error) {
func (client AnalyticsItemsClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponentAnalyticsItem, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
@@ -205,30 +205,30 @@ func (client AnalyticsItemClient) GetResponder(resp *http.Response) (result Appl
// typeParameter - enum indicating the type of the Analytics item.
// includeContent - flag indicating whether or not to return the content of each applicable item. If false,
// only return the item information.
func (client AnalyticsItemClient) List(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, scope ItemScope, typeParameter ItemTypeParameter, includeContent *bool) (result ListApplicationInsightsComponentAnalyticsItem, err error) {
func (client AnalyticsItemsClient) List(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, scope ItemScope, typeParameter ItemTypeParameter, includeContent *bool) (result ListApplicationInsightsComponentAnalyticsItem, err error) {
req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, scopePath, scope, typeParameter, includeContent)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "List", nil, "Failure preparing request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "List", nil, "Failure preparing request")
return
}
resp, err := client.ListSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "List", resp, "Failure sending request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "List", resp, "Failure sending request")
return
}
result, err = client.ListResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "List", resp, "Failure responding to request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "List", resp, "Failure responding to request")
}
return
}
// ListPreparer prepares the List request.
func (client AnalyticsItemClient) ListPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, scope ItemScope, typeParameter ItemTypeParameter, includeContent *bool) (*http.Request, error) {
func (client AnalyticsItemsClient) ListPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, scope ItemScope, typeParameter ItemTypeParameter, includeContent *bool) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
@@ -264,14 +264,14 @@ func (client AnalyticsItemClient) ListPreparer(ctx context.Context, resourceGrou
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client AnalyticsItemClient) ListSender(req *http.Request) (*http.Response, error) {
func (client AnalyticsItemsClient) ListSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client AnalyticsItemClient) ListResponder(resp *http.Response) (result ListApplicationInsightsComponentAnalyticsItem, err error) {
func (client AnalyticsItemsClient) ListResponder(resp *http.Response) (result ListApplicationInsightsComponentAnalyticsItem, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
@@ -292,30 +292,30 @@ func (client AnalyticsItemClient) ListResponder(resp *http.Response) (result Lis
// Insights component.
// overrideItem - flag indicating whether or not to force save an item. This allows overriding an item if it
// already exists.
func (client AnalyticsItemClient) Put(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, itemProperties ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (result ApplicationInsightsComponentAnalyticsItem, err error) {
func (client AnalyticsItemsClient) Put(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, itemProperties ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (result ApplicationInsightsComponentAnalyticsItem, err error) {
req, err := client.PutPreparer(ctx, resourceGroupName, resourceName, scopePath, itemProperties, overrideItem)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Put", nil, "Failure preparing request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Put", nil, "Failure preparing request")
return
}
resp, err := client.PutSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Put", resp, "Failure sending request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Put", resp, "Failure sending request")
return
}
result, err = client.PutResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Put", resp, "Failure responding to request")
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Put", resp, "Failure responding to request")
}
return
}
// PutPreparer prepares the Put request.
func (client AnalyticsItemClient) PutPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, itemProperties ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (*http.Request, error) {
func (client AnalyticsItemsClient) PutPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, itemProperties ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
@@ -343,14 +343,14 @@ func (client AnalyticsItemClient) PutPreparer(ctx context.Context, resourceGroup
// PutSender sends the Put request. The method will close the
// http.Response Body if it receives an error.
func (client AnalyticsItemClient) PutSender(req *http.Request) (*http.Response, error) {
func (client AnalyticsItemsClient) PutSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// PutResponder handles the response to the Put request. The method always
// closes the http.Response Body.
func (client AnalyticsItemClient) PutResponder(resp *http.Response) (result ApplicationInsightsComponentAnalyticsItem, err error) {
func (client AnalyticsItemsClient) PutResponder(resp *http.Response) (result ApplicationInsightsComponentAnalyticsItem, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),

View File

@@ -254,7 +254,7 @@ func (client AnnotationsClient) GetResponder(resp *http.Response) (result ListAn
// resourceName - the name of the Application Insights component resource.
// start - the start time to query from for annotations, cannot be older than 90 days from current date.
// end - the end time to query for annotations.
func (client AnnotationsClient) List(ctx context.Context, resourceGroupName string, resourceName string, start string, end string) (result ListAnnotation, err error) {
func (client AnnotationsClient) List(ctx context.Context, resourceGroupName string, resourceName string, start string, end string) (result AnnotationsListResult, err error) {
req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, start, end)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "List", nil, "Failure preparing request")
@@ -308,12 +308,12 @@ func (client AnnotationsClient) ListSender(req *http.Request) (*http.Response, e
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client AnnotationsClient) ListResponder(resp *http.Response) (result ListAnnotation, err error) {
func (client AnnotationsClient) ListResponder(resp *http.Response) (result AnnotationsListResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return

View File

@@ -250,6 +250,75 @@ func (client ComponentsClient) GetResponder(resp *http.Response) (result Applica
return
}
// GetPurgeStatus get status for an ongoing purge operation.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// purgeID - in a purge status request, this is the Id of the operation the status of which is returned.
func (client ComponentsClient) GetPurgeStatus(ctx context.Context, resourceGroupName string, resourceName string, purgeID string) (result ComponentPurgeStatusResponse, err error) {
req, err := client.GetPurgeStatusPreparer(ctx, resourceGroupName, resourceName, purgeID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "GetPurgeStatus", nil, "Failure preparing request")
return
}
resp, err := client.GetPurgeStatusSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "GetPurgeStatus", resp, "Failure sending request")
return
}
result, err = client.GetPurgeStatusResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "GetPurgeStatus", resp, "Failure responding to request")
}
return
}
// GetPurgeStatusPreparer prepares the GetPurgeStatus request.
func (client ComponentsClient) GetPurgeStatusPreparer(ctx context.Context, resourceGroupName string, resourceName string, purgeID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"purgeId": autorest.Encode("path", purgeID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetPurgeStatusSender sends the GetPurgeStatus request. The method will close the
// http.Response Body if it receives an error.
func (client ComponentsClient) GetPurgeStatusSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetPurgeStatusResponder handles the response to the GetPurgeStatus request. The method always
// closes the http.Response Body.
func (client ComponentsClient) GetPurgeStatusResponder(resp *http.Response) (result ComponentPurgeStatusResponse, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets a list of all Application Insights components within a subscription.
func (client ComponentsClient) List(ctx context.Context) (result ApplicationInsightsComponentListResultPage, err error) {
result.fn = client.listNextResults
@@ -438,7 +507,7 @@ func (client ComponentsClient) ListByResourceGroupComplete(ctx context.Context,
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// body - describes the body of a request to purge data in a single table of an Application Insights component
func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName string, resourceName string, body ComponentPurgeBody) (result ComponentsPurgeFuture, err error) {
func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName string, resourceName string, body ComponentPurgeBody) (result ComponentPurgeResponse, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: body,
Constraints: []validation.Constraint{{Target: "body.Table", Name: validation.Null, Rule: true, Chain: nil},
@@ -452,12 +521,18 @@ func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName stri
return
}
result, err = client.PurgeSender(req)
resp, err := client.PurgeSender(req)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Purge", result.Response(), "Failure sending request")
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Purge", resp, "Failure sending request")
return
}
result, err = client.PurgeResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Purge", resp, "Failure responding to request")
}
return
}
@@ -486,24 +561,14 @@ func (client ComponentsClient) PurgePreparer(ctx context.Context, resourceGroupN
// PurgeSender sends the Purge request. The method will close the
// http.Response Body if it receives an error.
func (client ComponentsClient) PurgeSender(req *http.Request) (future ComponentsPurgeFuture, err error) {
var resp *http.Response
resp, err = autorest.SendWithSender(client, req,
func (client ComponentsClient) PurgeSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
if err != nil {
return
}
err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted))
if err != nil {
return
}
future.Future, err = azure.NewFutureFromResponse(resp)
return
}
// PurgeResponder handles the response to the Purge request. The method always
// closes the http.Response Body.
func (client ComponentsClient) PurgeResponder(resp *http.Response) (result SetObject, err error) {
func (client ComponentsClient) PurgeResponder(resp *http.Response) (result ComponentPurgeResponse, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),

View File

@@ -1,322 +0,0 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// FavoriteClient is the composite Swagger for Application Insights Management Client
type FavoriteClient struct {
BaseClient
}
// NewFavoriteClient creates an instance of the FavoriteClient client.
func NewFavoriteClient(subscriptionID string) FavoriteClient {
return NewFavoriteClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewFavoriteClientWithBaseURI creates an instance of the FavoriteClient client.
func NewFavoriteClientWithBaseURI(baseURI string, subscriptionID string) FavoriteClient {
return FavoriteClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Add adds a new favorites to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
// favoriteProperties - properties that need to be specified to create a new favorite and add it to an
// Application Insights component.
func (client FavoriteClient) Add(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.AddPreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Add", nil, "Failure preparing request")
return
}
resp, err := client.AddSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Add", resp, "Failure sending request")
return
}
result, err = client.AddResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Add", resp, "Failure responding to request")
}
return
}
// AddPreparer prepares the Add request.
func (client FavoriteClient) AddPreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithJSON(favoriteProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// AddSender sends the Add request. The method will close the
// http.Response Body if it receives an error.
func (client FavoriteClient) AddSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// AddResponder handles the response to the Add request. The method always
// closes the http.Response Body.
func (client FavoriteClient) AddResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Delete remove a favorite that is associated to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
func (client FavoriteClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, favoriteID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client FavoriteClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client FavoriteClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client FavoriteClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Get get a single favorite by its FavoriteId, defined within an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
func (client FavoriteClient) Get(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, favoriteID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client FavoriteClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client FavoriteClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client FavoriteClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Update updates a favorite that has already been added to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
// favoriteProperties - properties that need to be specified to update the existing favorite.
func (client FavoriteClient) Update(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Update", nil, "Failure preparing request")
return
}
resp, err := client.UpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Update", resp, "Failure sending request")
return
}
result, err = client.UpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Update", resp, "Failure responding to request")
}
return
}
// UpdatePreparer prepares the Update request.
func (client FavoriteClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPatch(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithJSON(favoriteProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client FavoriteClient) UpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client FavoriteClient) UpdateResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -39,6 +39,216 @@ func NewFavoritesClientWithBaseURI(baseURI string, subscriptionID string) Favori
return FavoritesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Add adds a new favorites to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
// favoriteProperties - properties that need to be specified to create a new favorite and add it to an
// Application Insights component.
func (client FavoritesClient) Add(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.AddPreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Add", nil, "Failure preparing request")
return
}
resp, err := client.AddSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Add", resp, "Failure sending request")
return
}
result, err = client.AddResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Add", resp, "Failure responding to request")
}
return
}
// AddPreparer prepares the Add request.
func (client FavoritesClient) AddPreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithJSON(favoriteProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// AddSender sends the Add request. The method will close the
// http.Response Body if it receives an error.
func (client FavoritesClient) AddSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// AddResponder handles the response to the Add request. The method always
// closes the http.Response Body.
func (client FavoritesClient) AddResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Delete remove a favorite that is associated to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
func (client FavoritesClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, favoriteID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client FavoritesClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client FavoritesClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client FavoritesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Get get a single favorite by its FavoriteId, defined within an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
func (client FavoritesClient) Get(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, favoriteID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client FavoritesClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client FavoritesClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client FavoritesClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets a list of favorites defined within an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
@@ -125,3 +335,75 @@ func (client FavoritesClient) ListResponder(resp *http.Response) (result ListApp
result.Response = autorest.Response{Response: resp}
return
}
// Update updates a favorite that has already been added to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
// favoriteProperties - properties that need to be specified to update the existing favorite.
func (client FavoritesClient) Update(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Update", nil, "Failure preparing request")
return
}
resp, err := client.UpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Update", resp, "Failure sending request")
return
}
result, err = client.UpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Update", resp, "Failure responding to request")
}
return
}
// UpdatePreparer prepares the Update request.
func (client FavoritesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPatch(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithJSON(favoriteProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client FavoritesClient) UpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client FavoritesClient) UpdateResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -20,7 +20,6 @@ package insights
import (
"encoding/json"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"net/http"
@@ -190,9 +189,9 @@ type PurgeState string
const (
// Completed ...
Completed PurgeState = "Completed"
Completed PurgeState = "completed"
// Pending ...
Pending PurgeState = "Pending"
Pending PurgeState = "pending"
)
// PossiblePurgeStateValues returns an array of possible values for the PurgeState const type.
@@ -268,6 +267,13 @@ type AnnotationError struct {
Innererror *InnerError `json:"innererror,omitempty"`
}
// AnnotationsListResult annotations list result.
type AnnotationsListResult struct {
autorest.Response `json:"-"`
// Value - An array of annotations.
Value *[]Annotation `json:"value,omitempty"`
}
// APIKeyRequest an Application Insights component API Key createion request definition.
type APIKeyRequest struct {
// Name - The name of the API Key.
@@ -876,42 +882,51 @@ type ComponentPurgeBodyFilters struct {
// ComponentPurgeResponse response containing operationId for a specific purge action.
type ComponentPurgeResponse struct {
autorest.Response `json:"-"`
// OperationID - Id to use when querying for status for a particular purge operation.
OperationID *string `json:"operationId,omitempty"`
}
// ComponentPurgeStatusResponse response containing status for a specific purge operation.
type ComponentPurgeStatusResponse struct {
autorest.Response `json:"-"`
// Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed'
Status PurgeState `json:"status,omitempty"`
}
// ComponentsPurgeFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ComponentsPurgeFuture struct {
azure.Future
// ComponentsResource an azure resource object
type ComponentsResource struct {
// ID - Azure resource Id
ID *string `json:"id,omitempty"`
// Name - Azure resource name
Name *string `json:"name,omitempty"`
// Type - Azure resource type
Type *string `json:"type,omitempty"`
// Location - Resource location
Location *string `json:"location,omitempty"`
// Tags - Resource tags
Tags map[string]*string `json:"tags"`
}
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
func (future *ComponentsPurgeFuture) Result(client ComponentsClient) (so SetObject, err error) {
var done bool
done, err = future.Done(client)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsPurgeFuture", "Result", future.Response(), "Polling failure")
return
// MarshalJSON is the custom marshaler for ComponentsResource.
func (cr ComponentsResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if cr.ID != nil {
objectMap["id"] = cr.ID
}
if !done {
err = azure.NewAsyncOpIncompleteError("insights.ComponentsPurgeFuture")
return
if cr.Name != nil {
objectMap["name"] = cr.Name
}
sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if so.Response.Response, err = future.GetResult(sender); err == nil && so.Response.Response.StatusCode != http.StatusNoContent {
so, err = client.PurgeResponder(so.Response.Response)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsPurgeFuture", "Result", so.Response.Response, "Failure responding to request")
}
if cr.Type != nil {
objectMap["type"] = cr.Type
}
return
if cr.Location != nil {
objectMap["location"] = cr.Location
}
if cr.Tags != nil {
objectMap["tags"] = cr.Tags
}
return json.Marshal(objectMap)
}
// ErrorFieldContract error Field contract.
@@ -981,12 +996,6 @@ type ListApplicationInsightsComponentProactiveDetectionConfiguration struct {
Value *[]ApplicationInsightsComponentProactiveDetectionConfiguration `json:"value,omitempty"`
}
// ListWorkItemConfiguration ...
type ListWorkItemConfiguration struct {
autorest.Response `json:"-"`
Value *[]WorkItemConfiguration `json:"value,omitempty"`
}
// Operation CDN REST API operation
type Operation struct {
// Name - Operation name: {provider}/{resource}/{operation}
@@ -1108,41 +1117,6 @@ func (page OperationListResultPage) Values() []Operation {
return *page.olr.Value
}
// Resource an azure resource object
type Resource struct {
// ID - Azure resource Id
ID *string `json:"id,omitempty"`
// Name - Azure resource name
Name *string `json:"name,omitempty"`
// Type - Azure resource type
Type *string `json:"type,omitempty"`
// Location - Resource location
Location *string `json:"location,omitempty"`
// Tags - Resource tags
Tags map[string]*string `json:"tags"`
}
// MarshalJSON is the custom marshaler for Resource.
func (r Resource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if r.ID != nil {
objectMap["id"] = r.ID
}
if r.Name != nil {
objectMap["name"] = r.Name
}
if r.Type != nil {
objectMap["type"] = r.Type
}
if r.Location != nil {
objectMap["location"] = r.Location
}
if r.Tags != nil {
objectMap["tags"] = r.Tags
}
return json.Marshal(objectMap)
}
// SetObject ...
type SetObject struct {
autorest.Response `json:"-"`
@@ -1430,6 +1404,41 @@ type WebTestPropertiesConfiguration struct {
WebTest *string `json:"WebTest,omitempty"`
}
// WebtestsResource an azure resource object
type WebtestsResource struct {
// ID - Azure resource Id
ID *string `json:"id,omitempty"`
// Name - Azure resource name
Name *string `json:"name,omitempty"`
// Type - Azure resource type
Type *string `json:"type,omitempty"`
// Location - Resource location
Location *string `json:"location,omitempty"`
// Tags - Resource tags
Tags map[string]*string `json:"tags"`
}
// MarshalJSON is the custom marshaler for WebtestsResource.
func (wr WebtestsResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if wr.ID != nil {
objectMap["id"] = wr.ID
}
if wr.Name != nil {
objectMap["name"] = wr.Name
}
if wr.Type != nil {
objectMap["type"] = wr.Type
}
if wr.Location != nil {
objectMap["location"] = wr.Location
}
if wr.Tags != nil {
objectMap["tags"] = wr.Tags
}
return json.Marshal(objectMap)
}
// Workbook an Application Insights workbook definition.
type Workbook struct {
autorest.Response `json:"-"`
@@ -1588,8 +1597,43 @@ type WorkbookProperties struct {
SourceResourceID *string `json:"sourceResourceId,omitempty"`
}
// Workbooks workbook list result.
type Workbooks struct {
// WorkbookResource an azure resource object
type WorkbookResource struct {
// ID - Azure resource Id
ID *string `json:"id,omitempty"`
// Name - Azure resource name
Name *string `json:"name,omitempty"`
// Type - Azure resource type
Type *string `json:"type,omitempty"`
// Location - Resource location
Location *string `json:"location,omitempty"`
// Tags - Resource tags
Tags map[string]*string `json:"tags"`
}
// MarshalJSON is the custom marshaler for WorkbookResource.
func (wr WorkbookResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if wr.ID != nil {
objectMap["id"] = wr.ID
}
if wr.Name != nil {
objectMap["name"] = wr.Name
}
if wr.Type != nil {
objectMap["type"] = wr.Type
}
if wr.Location != nil {
objectMap["location"] = wr.Location
}
if wr.Tags != nil {
objectMap["tags"] = wr.Tags
}
return json.Marshal(objectMap)
}
// WorkbooksListResult workbook list result.
type WorkbooksListResult struct {
autorest.Response `json:"-"`
// Value - An array of workbooks.
Value *[]Workbook `json:"value,omitempty"`
@@ -1619,6 +1663,13 @@ type WorkItemConfigurationError struct {
Innererror *InnerError `json:"innererror,omitempty"`
}
// WorkItemConfigurationsListResult work item configuration list result.
type WorkItemConfigurationsListResult struct {
autorest.Response `json:"-"`
// Value - An array of work item configurations.
Value *[]WorkItemConfiguration `json:"value,omitempty"`
}
// WorkItemCreateConfiguration work item configuration creation payload
type WorkItemCreateConfiguration struct {
// ConnectorID - Unique connector id

View File

@@ -1,326 +0,0 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
)
// WorkbookClient is the composite Swagger for Application Insights Management Client
type WorkbookClient struct {
BaseClient
}
// NewWorkbookClient creates an instance of the WorkbookClient client.
func NewWorkbookClient(subscriptionID string) WorkbookClient {
return NewWorkbookClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewWorkbookClientWithBaseURI creates an instance of the WorkbookClient client.
func NewWorkbookClientWithBaseURI(baseURI string, subscriptionID string) WorkbookClient {
return WorkbookClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate create a new workbook.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// workbookProperties - properties that need to be specified to create a new workbook.
func (client WorkbookClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: workbookProperties,
Constraints: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties.Name", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.SerializedData", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.WorkbookID", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.Category", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.UserID", Name: validation.Null, Rule: true, Chain: nil},
}}}}}); err != nil {
return result, validation.NewError("insights.WorkbookClient", "CreateOrUpdate", err.Error())
}
req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, workbookProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "CreateOrUpdate", nil, "Failure preparing request")
return
}
resp, err := client.CreateOrUpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "CreateOrUpdate", resp, "Failure sending request")
return
}
result, err = client.CreateOrUpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "CreateOrUpdate", resp, "Failure responding to request")
}
return
}
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client WorkbookClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithJSON(workbookProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbookClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client WorkbookClient) CreateOrUpdateResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Delete delete a workbook.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
func (client WorkbookClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client WorkbookClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbookClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client WorkbookClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusNoContent),
autorest.ByClosing())
result.Response = resp
return
}
// Get get a single workbook by its resourceName.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
func (client WorkbookClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result Workbook, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client WorkbookClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbookClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client WorkbookClient) GetResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Update updates a workbook that has already been added.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// workbookProperties - properties that need to be specified to create a new workbook.
func (client WorkbookClient) Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, workbookProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Update", nil, "Failure preparing request")
return
}
resp, err := client.UpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Update", resp, "Failure sending request")
return
}
result, err = client.UpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Update", resp, "Failure responding to request")
}
return
}
// UpdatePreparer prepares the Update request.
func (client WorkbookClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPatch(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithJSON(workbookProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbookClient) UpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client WorkbookClient) UpdateResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -21,6 +21,7 @@ import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
)
@@ -39,6 +40,221 @@ func NewWorkbooksClientWithBaseURI(baseURI string, subscriptionID string) Workbo
return WorkbooksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate create a new workbook.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// workbookProperties - properties that need to be specified to create a new workbook.
func (client WorkbooksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: workbookProperties,
Constraints: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties.Name", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.SerializedData", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.WorkbookID", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.Category", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.UserID", Name: validation.Null, Rule: true, Chain: nil},
}}}}}); err != nil {
return result, validation.NewError("insights.WorkbooksClient", "CreateOrUpdate", err.Error())
}
req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, workbookProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "CreateOrUpdate", nil, "Failure preparing request")
return
}
resp, err := client.CreateOrUpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "CreateOrUpdate", resp, "Failure sending request")
return
}
result, err = client.CreateOrUpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "CreateOrUpdate", resp, "Failure responding to request")
}
return
}
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client WorkbooksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithJSON(workbookProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbooksClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client WorkbooksClient) CreateOrUpdateResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Delete delete a workbook.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
func (client WorkbooksClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client WorkbooksClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbooksClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client WorkbooksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusNoContent),
autorest.ByClosing())
result.Response = resp
return
}
// Get get a single workbook by its resourceName.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
func (client WorkbooksClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result Workbook, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client WorkbooksClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbooksClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client WorkbooksClient) GetResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// ListByResourceGroup get all Workbooks defined within a specified resource group and category.
// Parameters:
// resourceGroupName - the name of the resource group.
@@ -46,7 +262,7 @@ func NewWorkbooksClientWithBaseURI(baseURI string, subscriptionID string) Workbo
// tags - tags presents on each workbook returned.
// canFetchContent - flag indicating whether or not to return the full content for each applicable workbook. If
// false, only return summary content for workbooks.
func (client WorkbooksClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, category CategoryType, tags []string, canFetchContent *bool) (result Workbooks, err error) {
func (client WorkbooksClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, category CategoryType, tags []string, canFetchContent *bool) (result WorkbooksListResult, err error) {
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, category, tags, canFetchContent)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "ListByResourceGroup", nil, "Failure preparing request")
@@ -104,7 +320,77 @@ func (client WorkbooksClient) ListByResourceGroupSender(req *http.Request) (*htt
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client WorkbooksClient) ListByResourceGroupResponder(resp *http.Response) (result Workbooks, err error) {
func (client WorkbooksClient) ListByResourceGroupResponder(resp *http.Response) (result WorkbooksListResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Update updates a workbook that has already been added.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// workbookProperties - properties that need to be specified to create a new workbook.
func (client WorkbooksClient) Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, workbookProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Update", nil, "Failure preparing request")
return
}
resp, err := client.UpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Update", resp, "Failure sending request")
return
}
result, err = client.UpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Update", resp, "Failure responding to request")
}
return
}
// UpdatePreparer prepares the Update request.
func (client WorkbooksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPatch(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithJSON(workbookProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbooksClient) UpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client WorkbooksClient) UpdateResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),

View File

@@ -251,7 +251,7 @@ func (client WorkItemConfigurationsClient) GetDefaultResponder(resp *http.Respon
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
func (client WorkItemConfigurationsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result ListWorkItemConfiguration, err error) {
func (client WorkItemConfigurationsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result WorkItemConfigurationsListResult, err error) {
req, err := client.ListPreparer(ctx, resourceGroupName, resourceName)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "List", nil, "Failure preparing request")
@@ -303,12 +303,12 @@ func (client WorkItemConfigurationsClient) ListSender(req *http.Request) (*http.
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client WorkItemConfigurationsClient) ListResponder(resp *http.Response) (result ListWorkItemConfiguration, err error) {
func (client WorkItemConfigurationsClient) ListResponder(resp *http.Response) (result WorkItemConfigurationsListResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return

View File

@@ -21,11 +21,7 @@ package insights
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
)
const (
@@ -37,688 +33,17 @@ const (
type BaseClient struct {
autorest.Client
BaseURI string
AppID string
}
// New creates an instance of the BaseClient client.
func New(appID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, appID)
func New() BaseClient {
return NewWithBaseURI(DefaultBaseURI)
}
// NewWithBaseURI creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, appID string) BaseClient {
func NewWithBaseURI(baseURI string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
BaseURI: baseURI,
AppID: appID,
}
}
// GetEvent gets the data for a single event
// Parameters:
// eventType - the type of events to query; either a standard event type (`traces`, `customEvents`,
// `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all
// event types.
// eventID - ID of event.
// timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the Odata expression.
func (client BaseClient) GetEvent(ctx context.Context, eventType EventType, eventID string, timespan *string) (result EventsResults, err error) {
req, err := client.GetEventPreparer(ctx, eventType, eventID, timespan)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvent", nil, "Failure preparing request")
return
}
resp, err := client.GetEventSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvent", resp, "Failure sending request")
return
}
result, err = client.GetEventResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvent", resp, "Failure responding to request")
}
return
}
// GetEventPreparer prepares the GetEvent request.
func (client BaseClient) GetEventPreparer(ctx context.Context, eventType EventType, eventID string, timespan *string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
"eventId": autorest.Encode("path", eventID),
"eventType": autorest.Encode("path", eventType),
}
queryParameters := map[string]interface{}{}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/{eventType}/{eventId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetEventSender sends the GetEvent request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetEventSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetEventResponder handles the response to the GetEvent request. The method always
// closes the http.Response Body.
func (client BaseClient) GetEventResponder(resp *http.Response) (result EventsResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetEvents executes an OData query for events
// Parameters:
// eventType - the type of events to query; either a standard event type (`traces`, `customEvents`,
// `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all
// event types.
// timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the Odata expression.
// filter - an expression used to filter the returned events
// search - a free-text search expression to match for whether a particular event should be returned
// orderby - a comma-separated list of properties with \"asc\" (the default) or \"desc\" to control the order
// of returned events
// selectParameter - limits the properties to just those requested on each returned event
// skip - the number of items to skip over before returning events
// top - the number of events to return
// formatParameter - format for the returned events
// count - request a count of matching items included with the returned events
// apply - an expression used for aggregation over returned events
func (client BaseClient) GetEvents(ctx context.Context, eventType EventType, timespan *string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (result EventsResults, err error) {
req, err := client.GetEventsPreparer(ctx, eventType, timespan, filter, search, orderby, selectParameter, skip, top, formatParameter, count, apply)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvents", nil, "Failure preparing request")
return
}
resp, err := client.GetEventsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvents", resp, "Failure sending request")
return
}
result, err = client.GetEventsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvents", resp, "Failure responding to request")
}
return
}
// GetEventsPreparer prepares the GetEvents request.
func (client BaseClient) GetEventsPreparer(ctx context.Context, eventType EventType, timespan *string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
"eventType": autorest.Encode("path", eventType),
}
queryParameters := map[string]interface{}{}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
if len(search) > 0 {
queryParameters["$search"] = autorest.Encode("query", search)
}
if len(orderby) > 0 {
queryParameters["$orderby"] = autorest.Encode("query", orderby)
}
if len(selectParameter) > 0 {
queryParameters["$select"] = autorest.Encode("query", selectParameter)
}
if skip != nil {
queryParameters["$skip"] = autorest.Encode("query", *skip)
}
if top != nil {
queryParameters["$top"] = autorest.Encode("query", *top)
}
if len(formatParameter) > 0 {
queryParameters["$format"] = autorest.Encode("query", formatParameter)
}
if count != nil {
queryParameters["$count"] = autorest.Encode("query", *count)
}
if len(apply) > 0 {
queryParameters["$apply"] = autorest.Encode("query", apply)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/{eventType}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetEventsSender sends the GetEvents request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetEventsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetEventsResponder handles the response to the GetEvents request. The method always
// closes the http.Response Body.
func (client BaseClient) GetEventsResponder(resp *http.Response) (result EventsResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetEventsMetadataOData gets OData EDMX metadata describing the event data model
func (client BaseClient) GetEventsMetadataOData(ctx context.Context) (result SetObject, err error) {
req, err := client.GetEventsMetadataODataPreparer(ctx)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEventsMetadataOData", nil, "Failure preparing request")
return
}
resp, err := client.GetEventsMetadataODataSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEventsMetadataOData", resp, "Failure sending request")
return
}
result, err = client.GetEventsMetadataODataResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEventsMetadataOData", resp, "Failure responding to request")
}
return
}
// GetEventsMetadataODataPreparer prepares the GetEventsMetadataOData request.
func (client BaseClient) GetEventsMetadataODataPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/$metadata", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetEventsMetadataODataSender sends the GetEventsMetadataOData request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetEventsMetadataODataSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetEventsMetadataODataResponder handles the response to the GetEventsMetadataOData request. The method always
// closes the http.Response Body.
func (client BaseClient) GetEventsMetadataODataResponder(resp *http.Response) (result SetObject, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMetric gets data for a single metric.
// Parameters:
// metricID - ID of the metric. This is either a standard AI metric, or an application-specific custom metric.
// timespan - the timespan over which to retrieve metric values. This is an ISO8601 time period value. If
// timespan is omitted, a default time range of `PT12H` ("last 12 hours") is used. The actual timespan that is
// queried may be adjusted by the server based. In all cases, the actual time span used for the query is
// included in the response.
// interval - the time interval to use when retrieving metric values. This is an ISO8601 duration. If interval
// is omitted, the metric value is aggregated across the entire timespan. If interval is supplied, the server
// may adjust the interval to a more appropriate size based on the timespan used for the query. In all cases,
// the actual interval used for the query is included in the response.
// aggregation - the aggregation to use when computing the metric values. To retrieve more than one aggregation
// at a time, separate them with a comma. If no aggregation is specified, then the default aggregation for the
// metric is used.
// segment - the name of the dimension to segment the metric values by. This dimension must be applicable to
// the metric you are retrieving. To segment by more than one dimension at a time, separate them with a comma
// (,). In this case, the metric data will be segmented in the order the dimensions are listed in the
// parameter.
// top - the number of segments to return. This value is only valid when segment is specified.
// orderby - the aggregation function and direction to sort the segments by. This value is only valid when
// segment is specified.
// filter - an expression used to filter the results. This value should be a valid OData filter expression
// where the keys of each clause should be applicable dimensions for the metric you are retrieving.
func (client BaseClient) GetMetric(ctx context.Context, metricID string, timespan *string, interval *string, aggregation []string, segment []string, top *int32, orderby string, filter string) (result MetricsResult, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: aggregation,
Constraints: []validation.Constraint{{Target: "aggregation", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "aggregation", Name: validation.MinItems, Rule: 1, Chain: nil}}}}},
{TargetValue: segment,
Constraints: []validation.Constraint{{Target: "segment", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "segment", Name: validation.MinItems, Rule: 1, Chain: nil}}}}}}); err != nil {
return result, validation.NewError("insights.BaseClient", "GetMetric", err.Error())
}
req, err := client.GetMetricPreparer(ctx, metricID, timespan, interval, aggregation, segment, top, orderby, filter)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetric", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetric", resp, "Failure sending request")
return
}
result, err = client.GetMetricResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetric", resp, "Failure responding to request")
}
return
}
// GetMetricPreparer prepares the GetMetric request.
func (client BaseClient) GetMetricPreparer(ctx context.Context, metricID string, timespan *string, interval *string, aggregation []string, segment []string, top *int32, orderby string, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
"metricId": autorest.Encode("path", metricID),
}
queryParameters := map[string]interface{}{}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
if interval != nil {
queryParameters["interval"] = autorest.Encode("query", *interval)
}
if aggregation != nil && len(aggregation) > 0 {
queryParameters["aggregation"] = autorest.Encode("query", aggregation, ",")
}
if segment != nil && len(segment) > 0 {
queryParameters["segment"] = autorest.Encode("query", segment, ",")
}
if top != nil {
queryParameters["top"] = autorest.Encode("query", *top)
}
if len(orderby) > 0 {
queryParameters["orderby"] = autorest.Encode("query", orderby)
}
if len(filter) > 0 {
queryParameters["filter"] = autorest.Encode("query", filter)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics/{metricId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricSender sends the GetMetric request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetMetricSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricResponder handles the response to the GetMetric request. The method always
// closes the http.Response Body.
func (client BaseClient) GetMetricResponder(resp *http.Response) (result MetricsResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMetrics gets metric values for multiple metrics
// Parameters:
// body - the batched metrics query.
func (client BaseClient) GetMetrics(ctx context.Context, body []MetricsPostBodySchema) (result ListMetricsResultsItem, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: body,
Constraints: []validation.Constraint{{Target: "body", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
return result, validation.NewError("insights.BaseClient", "GetMetrics", err.Error())
}
req, err := client.GetMetricsPreparer(ctx, body)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetrics", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetrics", resp, "Failure sending request")
return
}
result, err = client.GetMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetrics", resp, "Failure responding to request")
}
return
}
// GetMetricsPreparer prepares the GetMetrics request.
func (client BaseClient) GetMetricsPreparer(ctx context.Context, body []MetricsPostBodySchema) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics", pathParameters),
autorest.WithJSON(body))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsSender sends the GetMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsResponder handles the response to the GetMetrics request. The method always
// closes the http.Response Body.
func (client BaseClient) GetMetricsResponder(resp *http.Response) (result ListMetricsResultsItem, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMetricsMetadata gets metadata describing the available metrics
func (client BaseClient) GetMetricsMetadata(ctx context.Context) (result SetObject, err error) {
req, err := client.GetMetricsMetadataPreparer(ctx)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetricsMetadata", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsMetadataSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetricsMetadata", resp, "Failure sending request")
return
}
result, err = client.GetMetricsMetadataResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetricsMetadata", resp, "Failure responding to request")
}
return
}
// GetMetricsMetadataPreparer prepares the GetMetricsMetadata request.
func (client BaseClient) GetMetricsMetadataPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics/metadata", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsMetadataSender sends the GetMetricsMetadata request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetMetricsMetadataSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsMetadataResponder handles the response to the GetMetricsMetadata request. The method always
// closes the http.Response Body.
func (client BaseClient) GetMetricsMetadataResponder(resp *http.Response) (result SetObject, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetQuery executes an Analytics query for data
// Parameters:
// query - the Analytics query. Learn more about the [Analytics query
// syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
// timespan - optional. The timespan over which to query data. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the query expression.
func (client BaseClient) GetQuery(ctx context.Context, query string, timespan *string) (result QueryResults, err error) {
req, err := client.GetQueryPreparer(ctx, query, timespan)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuery", nil, "Failure preparing request")
return
}
resp, err := client.GetQuerySender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuery", resp, "Failure sending request")
return
}
result, err = client.GetQueryResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuery", resp, "Failure responding to request")
}
return
}
// GetQueryPreparer prepares the GetQuery request.
func (client BaseClient) GetQueryPreparer(ctx context.Context, query string, timespan *string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
queryParameters := map[string]interface{}{
"query": autorest.Encode("query", query),
}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/query", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetQuerySender sends the GetQuery request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetQuerySender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetQueryResponder handles the response to the GetQuery request. The method always
// closes the http.Response Body.
func (client BaseClient) GetQueryResponder(resp *http.Response) (result QueryResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetQuerySchema gets Analytics query schema describing the data model
func (client BaseClient) GetQuerySchema(ctx context.Context) (result QueryResults, err error) {
req, err := client.GetQuerySchemaPreparer(ctx)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuerySchema", nil, "Failure preparing request")
return
}
resp, err := client.GetQuerySchemaSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuerySchema", resp, "Failure sending request")
return
}
result, err = client.GetQuerySchemaResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuerySchema", resp, "Failure responding to request")
}
return
}
// GetQuerySchemaPreparer prepares the GetQuerySchema request.
func (client BaseClient) GetQuerySchemaPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/query/schema", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetQuerySchemaSender sends the GetQuerySchema request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetQuerySchemaSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetQuerySchemaResponder handles the response to the GetQuerySchema request. The method always
// closes the http.Response Body.
func (client BaseClient) GetQuerySchemaResponder(resp *http.Response) (result QueryResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Query executes an Analytics query for data. [Here](/documentation/2-Using-the-API/Query) is an example for using
// POST with an Analytics query.
// Parameters:
// body - the Analytics query. Learn more about the [Analytics query
// syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
// timespan - optional. The timespan over which to query data. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the query expression.
func (client BaseClient) Query(ctx context.Context, body QueryBody, timespan *string) (result QueryResults, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: body,
Constraints: []validation.Constraint{{Target: "body.Query", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
return result, validation.NewError("insights.BaseClient", "Query", err.Error())
}
req, err := client.QueryPreparer(ctx, body, timespan)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "Query", nil, "Failure preparing request")
return
}
resp, err := client.QuerySender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "Query", resp, "Failure sending request")
return
}
result, err = client.QueryResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "Query", resp, "Failure responding to request")
}
return
}
// QueryPreparer prepares the Query request.
func (client BaseClient) QueryPreparer(ctx context.Context, body QueryBody, timespan *string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
queryParameters := map[string]interface{}{}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/query", pathParameters),
autorest.WithJSON(body),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// QuerySender sends the Query request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) QuerySender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// QueryResponder handles the response to the Query request. The method always
// closes the http.Response Body.
func (client BaseClient) QueryResponder(resp *http.Response) (result QueryResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -0,0 +1,280 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// EventsClient is the composite Swagger for Application Insights Data Client
type EventsClient struct {
BaseClient
}
// NewEventsClient creates an instance of the EventsClient client.
func NewEventsClient() EventsClient {
return NewEventsClientWithBaseURI(DefaultBaseURI)
}
// NewEventsClientWithBaseURI creates an instance of the EventsClient client.
func NewEventsClientWithBaseURI(baseURI string) EventsClient {
return EventsClient{NewWithBaseURI(baseURI)}
}
// Get gets the data for a single event
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// eventType - the type of events to query; either a standard event type (`traces`, `customEvents`,
// `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all
// event types.
// eventID - ID of event.
// timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the Odata expression.
func (client EventsClient) Get(ctx context.Context, appID string, eventType EventType, eventID string, timespan string) (result EventsResults, err error) {
req, err := client.GetPreparer(ctx, appID, eventType, eventID, timespan)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.EventsClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client EventsClient) GetPreparer(ctx context.Context, appID string, eventType EventType, eventID string, timespan string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
"eventId": autorest.Encode("path", eventID),
"eventType": autorest.Encode("path", eventType),
}
queryParameters := map[string]interface{}{}
if len(timespan) > 0 {
queryParameters["timespan"] = autorest.Encode("query", timespan)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/{eventType}/{eventId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client EventsClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client EventsClient) GetResponder(resp *http.Response) (result EventsResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetByType executes an OData query for events
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// eventType - the type of events to query; either a standard event type (`traces`, `customEvents`,
// `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all
// event types.
// timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the Odata expression.
// filter - an expression used to filter the returned events
// search - a free-text search expression to match for whether a particular event should be returned
// orderby - a comma-separated list of properties with \"asc\" (the default) or \"desc\" to control the order
// of returned events
// selectParameter - limits the properties to just those requested on each returned event
// skip - the number of items to skip over before returning events
// top - the number of events to return
// formatParameter - format for the returned events
// count - request a count of matching items included with the returned events
// apply - an expression used for aggregation over returned events
func (client EventsClient) GetByType(ctx context.Context, appID string, eventType EventType, timespan string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (result EventsResults, err error) {
req, err := client.GetByTypePreparer(ctx, appID, eventType, timespan, filter, search, orderby, selectParameter, skip, top, formatParameter, count, apply)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetByType", nil, "Failure preparing request")
return
}
resp, err := client.GetByTypeSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetByType", resp, "Failure sending request")
return
}
result, err = client.GetByTypeResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetByType", resp, "Failure responding to request")
}
return
}
// GetByTypePreparer prepares the GetByType request.
func (client EventsClient) GetByTypePreparer(ctx context.Context, appID string, eventType EventType, timespan string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
"eventType": autorest.Encode("path", eventType),
}
queryParameters := map[string]interface{}{}
if len(timespan) > 0 {
queryParameters["timespan"] = autorest.Encode("query", timespan)
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
if len(search) > 0 {
queryParameters["$search"] = autorest.Encode("query", search)
}
if len(orderby) > 0 {
queryParameters["$orderby"] = autorest.Encode("query", orderby)
}
if len(selectParameter) > 0 {
queryParameters["$select"] = autorest.Encode("query", selectParameter)
}
if skip != nil {
queryParameters["$skip"] = autorest.Encode("query", *skip)
}
if top != nil {
queryParameters["$top"] = autorest.Encode("query", *top)
}
if len(formatParameter) > 0 {
queryParameters["$format"] = autorest.Encode("query", formatParameter)
}
if count != nil {
queryParameters["$count"] = autorest.Encode("query", *count)
}
if len(apply) > 0 {
queryParameters["$apply"] = autorest.Encode("query", apply)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/{eventType}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetByTypeSender sends the GetByType request. The method will close the
// http.Response Body if it receives an error.
func (client EventsClient) GetByTypeSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetByTypeResponder handles the response to the GetByType request. The method always
// closes the http.Response Body.
func (client EventsClient) GetByTypeResponder(resp *http.Response) (result EventsResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetOdataMetadata gets OData EDMX metadata describing the event data model
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
func (client EventsClient) GetOdataMetadata(ctx context.Context, appID string) (result SetObject, err error) {
req, err := client.GetOdataMetadataPreparer(ctx, appID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetOdataMetadata", nil, "Failure preparing request")
return
}
resp, err := client.GetOdataMetadataSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetOdataMetadata", resp, "Failure sending request")
return
}
result, err = client.GetOdataMetadataResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetOdataMetadata", resp, "Failure responding to request")
}
return
}
// GetOdataMetadataPreparer prepares the GetOdataMetadata request.
func (client EventsClient) GetOdataMetadataPreparer(ctx context.Context, appID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/$metadata", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetOdataMetadataSender sends the GetOdataMetadata request. The method will close the
// http.Response Body if it receives an error.
func (client EventsClient) GetOdataMetadataSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetOdataMetadataResponder handles the response to the GetOdataMetadata request. The method always
// closes the http.Response Body.
func (client EventsClient) GetOdataMetadataResponder(resp *http.Response) (result SetObject, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -0,0 +1,283 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
)
// MetricsClient is the composite Swagger for Application Insights Data Client
type MetricsClient struct {
BaseClient
}
// NewMetricsClient creates an instance of the MetricsClient client.
func NewMetricsClient() MetricsClient {
return NewMetricsClientWithBaseURI(DefaultBaseURI)
}
// NewMetricsClientWithBaseURI creates an instance of the MetricsClient client.
func NewMetricsClientWithBaseURI(baseURI string) MetricsClient {
return MetricsClient{NewWithBaseURI(baseURI)}
}
// Get gets metric values for a single metric
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// metricID - ID of the metric. This is either a standard AI metric, or an application-specific custom metric.
// timespan - the timespan over which to retrieve metric values. This is an ISO8601 time period value. If
// timespan is omitted, a default time range of `PT12H` ("last 12 hours") is used. The actual timespan that is
// queried may be adjusted by the server based. In all cases, the actual time span used for the query is
// included in the response.
// interval - the time interval to use when retrieving metric values. This is an ISO8601 duration. If interval
// is omitted, the metric value is aggregated across the entire timespan. If interval is supplied, the server
// may adjust the interval to a more appropriate size based on the timespan used for the query. In all cases,
// the actual interval used for the query is included in the response.
// aggregation - the aggregation to use when computing the metric values. To retrieve more than one aggregation
// at a time, separate them with a comma. If no aggregation is specified, then the default aggregation for the
// metric is used.
// segment - the name of the dimension to segment the metric values by. This dimension must be applicable to
// the metric you are retrieving. To segment by more than one dimension at a time, separate them with a comma
// (,). In this case, the metric data will be segmented in the order the dimensions are listed in the
// parameter.
// top - the number of segments to return. This value is only valid when segment is specified.
// orderby - the aggregation function and direction to sort the segments by. This value is only valid when
// segment is specified.
// filter - an expression used to filter the results. This value should be a valid OData filter expression
// where the keys of each clause should be applicable dimensions for the metric you are retrieving.
func (client MetricsClient) Get(ctx context.Context, appID string, metricID MetricID, timespan string, interval *string, aggregation []MetricsAggregation, segment []MetricsSegment, top *int32, orderby string, filter string) (result MetricsResult, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: aggregation,
Constraints: []validation.Constraint{{Target: "aggregation", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "aggregation", Name: validation.MinItems, Rule: 1, Chain: nil}}}}},
{TargetValue: segment,
Constraints: []validation.Constraint{{Target: "segment", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "segment", Name: validation.MinItems, Rule: 1, Chain: nil}}}}}}); err != nil {
return result, validation.NewError("insights.MetricsClient", "Get", err.Error())
}
req, err := client.GetPreparer(ctx, appID, metricID, timespan, interval, aggregation, segment, top, orderby, filter)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client MetricsClient) GetPreparer(ctx context.Context, appID string, metricID MetricID, timespan string, interval *string, aggregation []MetricsAggregation, segment []MetricsSegment, top *int32, orderby string, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
"metricId": autorest.Encode("path", metricID),
}
queryParameters := map[string]interface{}{}
if len(timespan) > 0 {
queryParameters["timespan"] = autorest.Encode("query", timespan)
}
if interval != nil {
queryParameters["interval"] = autorest.Encode("query", *interval)
}
if aggregation != nil && len(aggregation) > 0 {
queryParameters["aggregation"] = autorest.Encode("query", aggregation, ",")
}
if segment != nil && len(segment) > 0 {
queryParameters["segment"] = autorest.Encode("query", segment, ",")
}
if top != nil {
queryParameters["top"] = autorest.Encode("query", *top)
}
if len(orderby) > 0 {
queryParameters["orderby"] = autorest.Encode("query", orderby)
}
if len(filter) > 0 {
queryParameters["filter"] = autorest.Encode("query", filter)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics/{metricId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client MetricsClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client MetricsClient) GetResponder(resp *http.Response) (result MetricsResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMetadata gets metadata describing the available metrics
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
func (client MetricsClient) GetMetadata(ctx context.Context, appID string) (result SetObject, err error) {
req, err := client.GetMetadataPreparer(ctx, appID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMetadata", nil, "Failure preparing request")
return
}
resp, err := client.GetMetadataSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMetadata", resp, "Failure sending request")
return
}
result, err = client.GetMetadataResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMetadata", resp, "Failure responding to request")
}
return
}
// GetMetadataPreparer prepares the GetMetadata request.
func (client MetricsClient) GetMetadataPreparer(ctx context.Context, appID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics/metadata", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetadataSender sends the GetMetadata request. The method will close the
// http.Response Body if it receives an error.
func (client MetricsClient) GetMetadataSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetadataResponder handles the response to the GetMetadata request. The method always
// closes the http.Response Body.
func (client MetricsClient) GetMetadataResponder(resp *http.Response) (result SetObject, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMultiple gets metric values for multiple metrics
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// body - the batched metrics query.
func (client MetricsClient) GetMultiple(ctx context.Context, appID string, body []MetricsPostBodySchema) (result ListMetricsResultsItem, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: body,
Constraints: []validation.Constraint{{Target: "body", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
return result, validation.NewError("insights.MetricsClient", "GetMultiple", err.Error())
}
req, err := client.GetMultiplePreparer(ctx, appID, body)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMultiple", nil, "Failure preparing request")
return
}
resp, err := client.GetMultipleSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMultiple", resp, "Failure sending request")
return
}
result, err = client.GetMultipleResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMultiple", resp, "Failure responding to request")
}
return
}
// GetMultiplePreparer prepares the GetMultiple request.
func (client MetricsClient) GetMultiplePreparer(ctx context.Context, appID string, body []MetricsPostBodySchema) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics", pathParameters),
autorest.WithJSON(body))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMultipleSender sends the GetMultiple request. The method will close the
// http.Response Body if it receives an error.
func (client MetricsClient) GetMultipleSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMultipleResponder handles the response to the GetMultiple request. The method always
// closes the http.Response Body.
func (client MetricsClient) GetMultipleResponder(resp *http.Response) (result ListMetricsResultsItem, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -131,6 +131,72 @@ func PossibleMetricIDValues() []MetricID {
return []MetricID{AvailabilityResultsavailabilityPercentage, AvailabilityResultsduration, BillingtelemetryCount, ClientnetworkDuration, ClientprocessingDuration, ClientreceiveDuration, ClientsendDuration, ClienttotalDuration, CustomEventscount, Dependenciescount, Dependenciesduration, Dependenciesfailed, Exceptionsbrowser, Exceptionscount, Exceptionsserver, PageViewscount, PageViewsduration, PerformanceCountersexceptionsPerSecond, PerformanceCountersmemoryAvailableBytes, PerformanceCountersprocessCPUPercentage, PerformanceCountersprocessIOBytesPerSecond, PerformanceCountersprocessorCPUPercentage, PerformanceCountersprocessPrivateBytes, PerformanceCountersrequestExecutionTime, PerformanceCountersrequestsInQueue, PerformanceCountersrequestsPerSecond, Requestscount, Requestsduration, Requestsfailed, Sessionscount, Usersauthenticated, Userscount}
}
// MetricsAggregation enumerates the values for metrics aggregation.
type MetricsAggregation string
const (
// Avg ...
Avg MetricsAggregation = "avg"
// Count ...
Count MetricsAggregation = "count"
// Max ...
Max MetricsAggregation = "max"
// Min ...
Min MetricsAggregation = "min"
// Sum ...
Sum MetricsAggregation = "sum"
// Unique ...
Unique MetricsAggregation = "unique"
)
// PossibleMetricsAggregationValues returns an array of possible values for the MetricsAggregation const type.
func PossibleMetricsAggregationValues() []MetricsAggregation {
return []MetricsAggregation{Avg, Count, Max, Min, Sum, Unique}
}
// MetricsSegment enumerates the values for metrics segment.
type MetricsSegment string
const (
// ApplicationBuild ...
ApplicationBuild MetricsSegment = "applicationBuild"
// ApplicationVersion ...
ApplicationVersion MetricsSegment = "applicationVersion"
// AuthenticatedOrAnonymousTraffic ...
AuthenticatedOrAnonymousTraffic MetricsSegment = "authenticatedOrAnonymousTraffic"
// Browser ...
Browser MetricsSegment = "browser"
// BrowserVersion ...
BrowserVersion MetricsSegment = "browserVersion"
// City ...
City MetricsSegment = "city"
// CloudRoleName ...
CloudRoleName MetricsSegment = "cloudRoleName"
// CloudServiceName ...
CloudServiceName MetricsSegment = "cloudServiceName"
// Continent ...
Continent MetricsSegment = "continent"
// CountryOrRegion ...
CountryOrRegion MetricsSegment = "countryOrRegion"
// DeploymentID ...
DeploymentID MetricsSegment = "deploymentId"
// DeploymentUnit ...
DeploymentUnit MetricsSegment = "deploymentUnit"
// DeviceType ...
DeviceType MetricsSegment = "deviceType"
// Environment ...
Environment MetricsSegment = "environment"
// HostingLocation ...
HostingLocation MetricsSegment = "hostingLocation"
// InstanceName ...
InstanceName MetricsSegment = "instanceName"
)
// PossibleMetricsSegmentValues returns an array of possible values for the MetricsSegment const type.
func PossibleMetricsSegmentValues() []MetricsSegment {
return []MetricsSegment{ApplicationBuild, ApplicationVersion, AuthenticatedOrAnonymousTraffic, Browser, BrowserVersion, City, CloudRoleName, CloudServiceName, Continent, CountryOrRegion, DeploymentID, DeploymentUnit, DeviceType, Environment, HostingLocation, InstanceName}
}
// Type enumerates the values for type.
type Type string
@@ -741,7 +807,7 @@ type EventsCustomMetricInfo struct {
// ValueSum - The sum of the custom metric
ValueSum *float64 `json:"valueSum,omitempty"`
// ValueCount - The count of the custom metric
ValueCount *float64 `json:"valueCount,omitempty"`
ValueCount *int32 `json:"valueCount,omitempty"`
// ValueMin - The minimum value of the custom metric
ValueMin *float64 `json:"valueMin,omitempty"`
// ValueMax - The maximum value of the custom metric
@@ -1423,7 +1489,7 @@ func (epvr EventsPageViewResult) AsBasicEventsResultData() (BasicEventsResultDat
// EventsPerformanceCounterInfo the performance counter info
type EventsPerformanceCounterInfo struct {
// Value - The value of the performance counter
Value *int64 `json:"value,omitempty"`
Value *float64 `json:"value,omitempty"`
// Name - The name of the performance counter
Name *string `json:"name,omitempty"`
// Category - The category of the performance counter
@@ -2242,14 +2308,14 @@ type MetricsPostBodySchema struct {
// MetricsPostBodySchemaParameters the parameters for a single metrics query
type MetricsPostBodySchemaParameters struct {
// MetricID - Possible values include: 'Requestscount', 'Requestsduration', 'Requestsfailed', 'Userscount', 'Usersauthenticated', 'PageViewscount', 'PageViewsduration', 'ClientprocessingDuration', 'ClientreceiveDuration', 'ClientnetworkDuration', 'ClientsendDuration', 'ClienttotalDuration', 'Dependenciescount', 'Dependenciesfailed', 'Dependenciesduration', 'Exceptionscount', 'Exceptionsbrowser', 'Exceptionsserver', 'Sessionscount', 'PerformanceCountersrequestExecutionTime', 'PerformanceCountersrequestsPerSecond', 'PerformanceCountersrequestsInQueue', 'PerformanceCountersmemoryAvailableBytes', 'PerformanceCountersexceptionsPerSecond', 'PerformanceCountersprocessCPUPercentage', 'PerformanceCountersprocessIOBytesPerSecond', 'PerformanceCountersprocessPrivateBytes', 'PerformanceCountersprocessorCPUPercentage', 'AvailabilityResultsavailabilityPercentage', 'AvailabilityResultsduration', 'BillingtelemetryCount', 'CustomEventscount'
MetricID MetricID `json:"metricId,omitempty"`
Timespan *string `json:"timespan,omitempty"`
Aggregation *[]string `json:"aggregation,omitempty"`
Interval *string `json:"interval,omitempty"`
Segment *[]string `json:"segment,omitempty"`
Top *int32 `json:"top,omitempty"`
Orderby *string `json:"orderby,omitempty"`
Filter *string `json:"filter,omitempty"`
MetricID MetricID `json:"metricId,omitempty"`
Timespan *string `json:"timespan,omitempty"`
Aggregation *[]MetricsAggregation `json:"aggregation,omitempty"`
Interval *string `json:"interval,omitempty"`
Segment *[]MetricsSegment `json:"segment,omitempty"`
Top *int32 `json:"top,omitempty"`
Orderby *string `json:"orderby,omitempty"`
Filter *string `json:"filter,omitempty"`
}
// MetricsResult a metric result.
@@ -2333,13 +2399,14 @@ func (msi MetricsSegmentInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
// QueryBody query request body
// QueryBody the Analytics query. Learn more about the [Analytics query
// syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
type QueryBody struct {
// Query - The query to execute.
Query *string `json:"query,omitempty"`
// Timespan - Optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the query expression.
Timespan *string `json:"timespan,omitempty"`
// Applications - A list of applications that are included in the query.
// Applications - A list of Application IDs for cross-application queries.
Applications *[]string `json:"applications,omitempty"`
}

View File

@@ -0,0 +1,112 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
)
// QueryClient is the composite Swagger for Application Insights Data Client
type QueryClient struct {
BaseClient
}
// NewQueryClient creates an instance of the QueryClient client.
func NewQueryClient() QueryClient {
return NewQueryClientWithBaseURI(DefaultBaseURI)
}
// NewQueryClientWithBaseURI creates an instance of the QueryClient client.
func NewQueryClientWithBaseURI(baseURI string) QueryClient {
return QueryClient{NewWithBaseURI(baseURI)}
}
// Execute executes an Analytics query for data.
// [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an
// Analytics query.
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// body - the Analytics query. Learn more about the [Analytics query
// syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
func (client QueryClient) Execute(ctx context.Context, appID string, body QueryBody) (result QueryResults, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: body,
Constraints: []validation.Constraint{{Target: "body.Query", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
return result, validation.NewError("insights.QueryClient", "Execute", err.Error())
}
req, err := client.ExecutePreparer(ctx, appID, body)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.QueryClient", "Execute", nil, "Failure preparing request")
return
}
resp, err := client.ExecuteSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.QueryClient", "Execute", resp, "Failure sending request")
return
}
result, err = client.ExecuteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.QueryClient", "Execute", resp, "Failure responding to request")
}
return
}
// ExecutePreparer prepares the Execute request.
func (client QueryClient) ExecutePreparer(ctx context.Context, appID string, body QueryBody) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/query", pathParameters),
autorest.WithJSON(body))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ExecuteSender sends the Execute request. The method will close the
// http.Response Body if it receives an error.
func (client QueryClient) ExecuteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ExecuteResponder handles the response to the Execute request. The method always
// closes the http.Response Body.
func (client QueryClient) ExecuteResponder(resp *http.Response) (result QueryResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View File

@@ -41,13 +41,16 @@ func NewAccountClientWithBaseURI(baseURI string, subscriptionID string) AccountC
}
// CreateOrUpdate create or update automation account.
//
// resourceGroupName is the resource group name. automationAccountName is parameters supplied to the create or
// update automation account. parameters is parameters supplied to the create or update automation account.
// Parameters:
// resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
// parameters - parameters supplied to the create or update automation account.
func (client AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountCreateOrUpdateParameters) (result Account, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "CreateOrUpdate", err.Error())
}
@@ -116,12 +119,15 @@ func (client AccountClient) CreateOrUpdateResponder(resp *http.Response) (result
}
// Delete delete an automation account.
//
// resourceGroupName is the resource group name. automationAccountName is automation account name.
// Parameters:
// resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client AccountClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "Delete", err.Error())
}
@@ -187,12 +193,15 @@ func (client AccountClient) DeleteResponder(resp *http.Response) (result autores
}
// Get get information about an Automation Account.
//
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
// Parameters:
// resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client AccountClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result Account, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "Get", err.Error())
}
@@ -349,12 +358,14 @@ func (client AccountClient) ListComplete(ctx context.Context) (result AccountLis
}
// ListByResourceGroup retrieve a list of accounts within a given resource group.
//
// resourceGroupName is the resource group name.
// Parameters:
// resourceGroupName - name of an Azure Resource group.
func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "ListByResourceGroup", err.Error())
}
@@ -448,13 +459,16 @@ func (client AccountClient) ListByResourceGroupComplete(ctx context.Context, res
}
// Update update an automation account.
//
// resourceGroupName is the resource group name. automationAccountName is automation account name. parameters is
// parameters supplied to the update automation account.
// Parameters:
// resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
// parameters - parameters supplied to the update automation account.
func (client AccountClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountUpdateParameters) (result Account, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "Update", err.Error())
}

View File

@@ -41,13 +41,17 @@ func NewActivityClientWithBaseURI(baseURI string, subscriptionID string) Activit
}
// Get retrieve the activity in the module identified by module name and activity name.
//
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
// is the name of module. activityName is the name of activity.
// Parameters:
// resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
// moduleName - the name of module.
// activityName - the name of activity.
func (client ActivityClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, activityName string) (result Activity, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ActivityClient", "Get", err.Error())
}
@@ -116,13 +120,16 @@ func (client ActivityClient) GetResponder(resp *http.Response) (result Activity,
}
// ListByModule retrieve a list of activities in the module identified by module name.
//
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
// is the name of module.
// Parameters:
// resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
// moduleName - the name of module.
func (client ActivityClient) ListByModule(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result ActivityListResultPage, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ActivityClient", "ListByModule", err.Error())
}

View File

@@ -42,12 +42,15 @@ func NewAgentRegistrationInformationClientWithBaseURI(baseURI string, subscripti
}
// Get retrieve the automation agent registration information.
//
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
// Parameters:
// resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client AgentRegistrationInformationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result AgentRegistration, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AgentRegistrationInformationClient", "Get", err.Error())
}
@@ -114,13 +117,16 @@ func (client AgentRegistrationInformationClient) GetResponder(resp *http.Respons
}
// RegenerateKey regenerate a primary or secondary agent registration key
//
// resourceGroupName is the resource group name. automationAccountName is the automation account name. parameters
// is the name of the agent registration key to be regenerated
// Parameters:
// resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
// parameters - the name of the agent registration key to be regenerated
func (client AgentRegistrationInformationClient) RegenerateKey(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AgentRegistrationRegenerateKeyParameter) (result AgentRegistration, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AgentRegistrationInformationClient", "RegenerateKey", err.Error())
}

Some files were not shown because too many files have changed in this diff Show More