mirror of
https://github.com/rclone/rclone.git
synced 2025-12-13 14:53:26 +00:00
Compare commits
26 Commits
azureblob-
...
fuse-auto_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87d64e7fb4 | ||
|
|
793f594b07 | ||
|
|
4fe6614ae1 | ||
|
|
4c2fbf9b36 | ||
|
|
ed4f1b2936 | ||
|
|
144c1a04d4 | ||
|
|
25ec7f5c00 | ||
|
|
b15603d5ea | ||
|
|
71c974bf9a | ||
|
|
03c5b8232e | ||
|
|
72392a2d72 | ||
|
|
b062ae9d13 | ||
|
|
8c0335a176 | ||
|
|
794e55de27 | ||
|
|
038ed1aaf0 | ||
|
|
97beff5370 | ||
|
|
b9b9bce0db | ||
|
|
947e10eb2b | ||
|
|
6b42421374 | ||
|
|
fa051ff970 | ||
|
|
69164b3dda | ||
|
|
935533e57f | ||
|
|
1550f70865 | ||
|
|
1a65c3a740 | ||
|
|
a29a1de43d | ||
|
|
e7ae5e8ee0 |
@@ -47,4 +47,4 @@ deploy:
|
|||||||
on:
|
on:
|
||||||
all_branches: true
|
all_branches: true
|
||||||
go: "1.10.1"
|
go: "1.10.1"
|
||||||
condition: $TRAVIS_OS_NAME == linux && $TRAVIS_PULL_REQUEST == false
|
condition: $TRAVIS_PULL_REQUEST == false
|
||||||
|
|||||||
10
Gopkg.lock
generated
10
Gopkg.lock
generated
@@ -23,8 +23,8 @@
|
|||||||
"storage",
|
"storage",
|
||||||
"version"
|
"version"
|
||||||
]
|
]
|
||||||
revision = "cd93ccfe0395e70031704ca68f14606588eec120"
|
revision = "fbe7db0e3f9793ba3e5704efbab84f51436c136e"
|
||||||
version = "v17.3.0"
|
version = "v18.0.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/Azure/go-autorest"
|
name = "github.com/Azure/go-autorest"
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
"autorest/azure",
|
"autorest/azure",
|
||||||
"autorest/date"
|
"autorest/date"
|
||||||
]
|
]
|
||||||
revision = "f04d503958a4fe854c1b41667c73f8813c9dd9c3"
|
revision = "1f7cd6cfe0adea687ad44a512dfe76140f804318"
|
||||||
version = "v10.11.2"
|
version = "v10.12.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@@ -331,7 +331,7 @@
|
|||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/t3rm1n4l/go-mega"
|
name = "github.com/t3rm1n4l/go-mega"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "3ba49835f4db01d6329782cbdc7a0a8bb3a26c5f"
|
revision = "57978a63bd3f91fa7e188b751a7e7e6dd4e33813"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|||||||
38
Makefile
38
Makefile
@@ -1,12 +1,22 @@
|
|||||||
SHELL = bash
|
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)
|
LAST_TAG := $(shell git describe --tags --abbrev=0)
|
||||||
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)')
|
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)')
|
||||||
GO_VERSION := $(shell go version)
|
GO_VERSION := $(shell go version)
|
||||||
GO_FILES := $(shell go list ./... | grep -v /vendor/ )
|
GO_FILES := $(shell go list ./... | grep -v /vendor/ )
|
||||||
# Run full tests if go >= go1.9
|
# 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)')
|
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
|
# Pass in GOTAGS=xyz on the make command line to set build tags
|
||||||
ifdef GOTAGS
|
ifdef GOTAGS
|
||||||
BUILDTAGS=-tags "$(GOTAGS)"
|
BUILDTAGS=-tags "$(GOTAGS)"
|
||||||
@@ -21,6 +31,7 @@ rclone:
|
|||||||
|
|
||||||
vars:
|
vars:
|
||||||
@echo SHELL="'$(SHELL)'"
|
@echo SHELL="'$(SHELL)'"
|
||||||
|
@echo BRANCH="'$(BRANCH)'"
|
||||||
@echo TAG="'$(TAG)'"
|
@echo TAG="'$(TAG)'"
|
||||||
@echo LAST_TAG="'$(LAST_TAG)'"
|
@echo LAST_TAG="'$(LAST_TAG)'"
|
||||||
@echo NEW_TAG="'$(NEW_TAG)'"
|
@echo NEW_TAG="'$(NEW_TAG)'"
|
||||||
@@ -160,25 +171,32 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
appveyor_upload:
|
appveyor_upload:
|
||||||
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ memstore:beta-rclone-org/$(TAG)
|
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ $(BETA_UPLOAD)
|
||||||
ifeq ($(APPVEYOR_REPO_BRANCH),master)
|
ifndef BRANCH_PATH
|
||||||
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 --include '*beta-latest*' --include version.txt build/ $(BETA_UPLOAD_ROOT)
|
||||||
endif
|
endif
|
||||||
@echo Beta release ready at $(BETA_URL)
|
@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:
|
travis_beta:
|
||||||
|
ifeq ($(TRAVIS_OS_NAME),linux)
|
||||||
go run bin/get-github-release.go -extract nfpm goreleaser/nfpm 'nfpm_.*_Linux_x86_64.tar.gz'
|
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
|
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)β
|
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/ memstore:beta-rclone-org/$(TAG)
|
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ $(BETA_UPLOAD)
|
||||||
ifeq ($(TRAVIS_BRANCH),master)
|
ifndef BRANCH_PATH
|
||||||
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 --include '*beta-latest*' --include version.txt build/ $(BETA_UPLOAD_ROOT)
|
||||||
endif
|
endif
|
||||||
@echo Beta release ready at $(BETA_URL)
|
@echo Beta release ready at $(BETA_URL)
|
||||||
|
|
||||||
# Fetch the windows builds from appveyor
|
# Fetch the windows builds from appveyor
|
||||||
fetch_windows:
|
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-386.zip build/rclone-current-windows-386.zip
|
||||||
-#cp -av build/rclone-v*-windows-amd64.zip build/rclone-current-windows-amd64.zip
|
-#cp -av build/rclone-v*-windows-amd64.zip build/rclone-current-windows-amd64.zip
|
||||||
md5sum build/rclone-*-windows-*.zip | sort
|
md5sum build/rclone-*-windows-*.zip | sort
|
||||||
|
|||||||
@@ -194,15 +194,19 @@ func NewFs(name, root string) (fs.Fs, error) {
|
|||||||
sasURL := config.FileGet(name, "sas_url")
|
sasURL := config.FileGet(name, "sas_url")
|
||||||
endpoint := config.FileGet(name, "endpoint", storage.DefaultBaseURL)
|
endpoint := config.FileGet(name, "endpoint", storage.DefaultBaseURL)
|
||||||
|
|
||||||
var client storage.Client
|
var (
|
||||||
|
oclient storage.Client
|
||||||
|
client = &oclient
|
||||||
|
cc *storage.Container
|
||||||
|
)
|
||||||
switch {
|
switch {
|
||||||
case account != "" && key != "":
|
case account != "" && key != "":
|
||||||
client, err = storage.NewClient(account, key, endpoint, apiVersion, true)
|
oclient, err = storage.NewClient(account, key, endpoint, apiVersion, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to make azure storage client from account/key")
|
return nil, errors.Wrap(err, "failed to make azure storage client from account/key")
|
||||||
}
|
}
|
||||||
case connectionString != "":
|
case connectionString != "":
|
||||||
client, err = storage.NewClientFromConnectionString(connectionString)
|
oclient, err = storage.NewClientFromConnectionString(connectionString)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to make azure storage client from connection string")
|
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 {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "failed to parse SAS URL")
|
return nil, errors.Wrapf(err, "failed to parse SAS URL")
|
||||||
}
|
}
|
||||||
container, err := storage.GetContainerReferenceFromSASURI(*URL)
|
cc, err = storage.GetContainerReferenceFromSASURI(*URL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "failed to make azure storage client from SAS URL")
|
return nil, errors.Wrapf(err, "failed to make azure storage client from SAS URL")
|
||||||
}
|
}
|
||||||
client = *container.Client()
|
client = cc.Client()
|
||||||
default:
|
default:
|
||||||
return nil, errors.New("Need account+key or connectionString or sasURL")
|
return nil, errors.New("Need account+key or connectionString or sasURL")
|
||||||
}
|
}
|
||||||
client.HTTPClient = fshttp.NewClient(fs.Config)
|
client.HTTPClient = fshttp.NewClient(fs.Config)
|
||||||
bc := client.GetBlobService()
|
bc := client.GetBlobService()
|
||||||
|
if cc == nil {
|
||||||
|
cc = bc.GetContainerReference(container)
|
||||||
|
}
|
||||||
|
|
||||||
f := &Fs{
|
f := &Fs{
|
||||||
name: name,
|
name: name,
|
||||||
@@ -229,7 +236,7 @@ func NewFs(name, root string) (fs.Fs, error) {
|
|||||||
account: account,
|
account: account,
|
||||||
endpoint: endpoint,
|
endpoint: endpoint,
|
||||||
bc: &bc,
|
bc: &bc,
|
||||||
cc: bc.GetContainerReference(container),
|
cc: cc,
|
||||||
pacer: pacer.New().SetMinSleep(minSleep).SetMaxSleep(maxSleep).SetDecayConstant(decayConstant),
|
pacer: pacer.New().SetMinSleep(minSleep).SetMaxSleep(maxSleep).SetDecayConstant(decayConstant),
|
||||||
uploadToken: pacer.NewTokenDispenser(fs.Config.Transfers),
|
uploadToken: pacer.NewTokenDispenser(fs.Config.Transfers),
|
||||||
}
|
}
|
||||||
@@ -566,10 +573,19 @@ func (f *Fs) Mkdir(dir string) error {
|
|||||||
if f.containerOK {
|
if f.containerOK {
|
||||||
return nil
|
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{
|
options := storage.CreateContainerOptions{
|
||||||
Access: storage.ContainerAccessTypePrivate,
|
Access: storage.ContainerAccessTypePrivate,
|
||||||
}
|
}
|
||||||
err := f.pacer.Call(func() (bool, error) {
|
err = f.pacer.Call(func() (bool, error) {
|
||||||
err := f.cc.Create(&options)
|
err := f.cc.Create(&options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if storageErr, ok := err.(storage.AzureStorageServiceError); ok {
|
if storageErr, ok := err.(storage.AzureStorageServiceError); ok {
|
||||||
|
|||||||
@@ -480,6 +480,8 @@ func (f *Fs) mkdir(abspath string) error {
|
|||||||
switch errX.Code {
|
switch errX.Code {
|
||||||
case ftp.StatusFileUnavailable: // dir already exists: see issue #2181
|
case ftp.StatusFileUnavailable: // dir already exists: see issue #2181
|
||||||
err = nil
|
err = nil
|
||||||
|
case 521: // dir already exists: error number according to RFC 959: issue #2363
|
||||||
|
err = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|||||||
@@ -480,7 +480,7 @@ func (f *Fs) list(dir string, recurse bool, fn listFn) (err error) {
|
|||||||
remote := object.Name[rootLength:]
|
remote := object.Name[rootLength:]
|
||||||
// is this a directory marker?
|
// is this a directory marker?
|
||||||
if (strings.HasSuffix(remote, "/") || remote == "") && object.Size == 0 {
|
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
|
// add a directory in if --fast-list since will have no prefixes
|
||||||
err = fn(remote[:len(remote)-1], object, true)
|
err = fn(remote[:len(remote)-1], object, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
minSleep = 10 * time.Millisecond
|
minSleep = 10 * time.Millisecond
|
||||||
maxSleep = 2 * time.Second
|
maxSleep = 2 * time.Second
|
||||||
|
eventWaitTime = 500 * time.Millisecond
|
||||||
decayConstant = 2 // bigger for slower decay, exponential
|
decayConstant = 2 // bigger for slower decay, exponential
|
||||||
useTrash = true // FIXME make configurable - rclone global
|
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)
|
err = f.deleteNode(dirNode)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "delete directory node failed")
|
return errors.Wrap(err, "delete directory node failed")
|
||||||
@@ -579,7 +582,8 @@ func (f *Fs) purgeCheck(dir string, check bool) error {
|
|||||||
if dirNode == rootNode {
|
if dirNode == rootNode {
|
||||||
f.clearRoot()
|
f.clearRoot()
|
||||||
}
|
}
|
||||||
time.Sleep(100 * time.Millisecond) // FIXME give the callback a chance
|
|
||||||
|
f.srv.WaitEvents(waitEvent, eventWaitTime)
|
||||||
return nil
|
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
|
// rename the object if required
|
||||||
if srcLeaf != dstLeaf {
|
if srcLeaf != dstLeaf {
|
||||||
//log.Printf("rename %q to %q", 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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -864,7 +864,7 @@ func (f *Fs) list(dir string, recurse bool, fn listFn) error {
|
|||||||
remote := key[rootLength:]
|
remote := key[rootLength:]
|
||||||
// is this a directory marker?
|
// is this a directory marker?
|
||||||
if (strings.HasSuffix(remote, "/") || remote == "") && *object.Size == 0 {
|
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
|
// add a directory in if --fast-list since will have no prefixes
|
||||||
remote = remote[:len(remote)-1]
|
remote = remote[:len(remote)-1]
|
||||||
err = fn(remote, &s3.Object{Key: &remote}, true)
|
err = fn(remote, &s3.Object{Key: &remote}, true)
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ func init() {
|
|||||||
Optional: true,
|
Optional: true,
|
||||||
}, {
|
}, {
|
||||||
Name: "use_insecure_cipher",
|
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,
|
Optional: true,
|
||||||
Examples: []fs.OptionExample{
|
Examples: []fs.OptionExample{
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -87,6 +87,10 @@ func init() {
|
|||||||
Help: "Password.",
|
Help: "Password.",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
IsPassword: 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{
|
ExtraHeaders: map[string]string{
|
||||||
"Depth": "1",
|
"Depth": "1",
|
||||||
},
|
},
|
||||||
|
NoRedirect: true,
|
||||||
}
|
}
|
||||||
var result api.Multistatus
|
var result api.Multistatus
|
||||||
var resp *http.Response
|
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 {
|
if apiErr, ok := err.(*api.Error); ok {
|
||||||
// does not exist
|
// 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
|
return nil, fs.ErrorObjectNotFound
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -258,10 +269,12 @@ func NewFs(name, root string) (fs.Fs, error) {
|
|||||||
if !strings.HasSuffix(endpoint, "/") {
|
if !strings.HasSuffix(endpoint, "/") {
|
||||||
endpoint += "/"
|
endpoint += "/"
|
||||||
}
|
}
|
||||||
|
rootIsDir := strings.HasSuffix(root, "/")
|
||||||
root = strings.Trim(root, "/")
|
root = strings.Trim(root, "/")
|
||||||
|
|
||||||
user := config.FileGet(name, "user")
|
user := config.FileGet(name, "user")
|
||||||
pass := config.FileGet(name, "pass")
|
pass := config.FileGet(name, "pass")
|
||||||
|
bearerToken := config.FileGet(name, "bearer_token")
|
||||||
if pass != "" {
|
if pass != "" {
|
||||||
var err error
|
var err error
|
||||||
pass, err = obscure.Reveal(pass)
|
pass, err = obscure.Reveal(pass)
|
||||||
@@ -282,7 +295,7 @@ func NewFs(name, root string) (fs.Fs, error) {
|
|||||||
root: root,
|
root: root,
|
||||||
endpoint: u,
|
endpoint: u,
|
||||||
endpointURL: u.String(),
|
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),
|
pacer: pacer.New().SetMinSleep(minSleep).SetMaxSleep(maxSleep).SetDecayConstant(decayConstant),
|
||||||
user: user,
|
user: user,
|
||||||
pass: pass,
|
pass: pass,
|
||||||
@@ -291,13 +304,18 @@ func NewFs(name, root string) (fs.Fs, error) {
|
|||||||
f.features = (&fs.Features{
|
f.features = (&fs.Features{
|
||||||
CanHaveEmptyDirectories: true,
|
CanHaveEmptyDirectories: true,
|
||||||
}).Fill(f)
|
}).Fill(f)
|
||||||
|
if user != "" || pass != "" {
|
||||||
|
f.srv.SetUserPass(user, pass)
|
||||||
|
} else if bearerToken != "" {
|
||||||
|
f.srv.SetHeader("Authorization", "BEARER "+bearerToken)
|
||||||
|
}
|
||||||
f.srv.SetErrorHandler(errorHandler)
|
f.srv.SetErrorHandler(errorHandler)
|
||||||
err = f.setQuirks(vendor)
|
err = f.setQuirks(vendor)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if root != "" {
|
if root != "" && !rootIsDir {
|
||||||
// Check to see if the root actually an existing file
|
// Check to see if the root actually an existing file
|
||||||
remote := path.Base(root)
|
remote := path.Base(root)
|
||||||
f.root = path.Dir(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
|
// mkParentDir makes the parent of the native path dirPath if
|
||||||
// necessary and any directories above that
|
// necessary and any directories above that
|
||||||
func (f *Fs) mkParentDir(dirPath string) error {
|
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)
|
parent := path.Dir(dirPath)
|
||||||
if parent == "." {
|
if parent == "." {
|
||||||
parent = ""
|
parent = ""
|
||||||
@@ -551,10 +574,15 @@ func (f *Fs) mkParentDir(dirPath string) error {
|
|||||||
|
|
||||||
// mkdir makes the directory and parents using native paths
|
// mkdir makes the directory and parents using native paths
|
||||||
func (f *Fs) mkdir(dirPath string) error {
|
func (f *Fs) mkdir(dirPath string) error {
|
||||||
|
// defer log.Trace(dirPath, "")("")
|
||||||
// We assume the root is already ceated
|
// We assume the root is already ceated
|
||||||
if dirPath == "" {
|
if dirPath == "" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
// Collections must end with /
|
||||||
|
if !strings.HasSuffix(dirPath, "/") {
|
||||||
|
dirPath += "/"
|
||||||
|
}
|
||||||
opts := rest.Opts{
|
opts := rest.Opts{
|
||||||
Method: "MKCOL",
|
Method: "MKCOL",
|
||||||
Path: dirPath,
|
Path: dirPath,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"text/template"
|
"text/template"
|
||||||
@@ -66,28 +67,33 @@ var archFlags = map[string][]string{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// runEnv - run a shell command with env
|
// runEnv - run a shell command with env
|
||||||
func runEnv(args, env []string) {
|
func runEnv(args, env []string) error {
|
||||||
if *debug {
|
if *debug {
|
||||||
args = append([]string{"echo"}, args...)
|
args = append([]string{"echo"}, args...)
|
||||||
}
|
}
|
||||||
cmd := exec.Command(args[0], args[1:]...)
|
cmd := exec.Command(args[0], args[1:]...)
|
||||||
cmd.Stdout = os.Stdout
|
|
||||||
cmd.Stderr = os.Stderr
|
|
||||||
if env != nil {
|
if env != nil {
|
||||||
cmd.Env = append(os.Environ(), env...)
|
cmd.Env = append(os.Environ(), env...)
|
||||||
}
|
}
|
||||||
if *debug {
|
if *debug {
|
||||||
log.Printf("args = %v, env = %v\n", args, cmd.Env)
|
log.Printf("args = %v, env = %v\n", args, cmd.Env)
|
||||||
}
|
}
|
||||||
err := cmd.Run()
|
out, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
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
|
// run a shell command
|
||||||
func run(args ...string) {
|
func run(args ...string) {
|
||||||
runEnv(args, nil)
|
err := runEnv(args, nil)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("Exiting after error: %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// chdir or die
|
// chdir or die
|
||||||
@@ -160,8 +166,8 @@ func buildDebAndRpm(dir, version, goarch string) []string {
|
|||||||
return artifacts
|
return artifacts
|
||||||
}
|
}
|
||||||
|
|
||||||
// build the binary in dir
|
// build the binary in dir returning success or failure
|
||||||
func compileArch(version, goos, goarch, dir string) {
|
func compileArch(version, goos, goarch, dir string) bool {
|
||||||
log.Printf("Compiling %s/%s", goos, goarch)
|
log.Printf("Compiling %s/%s", goos, goarch)
|
||||||
output := filepath.Join(dir, "rclone")
|
output := filepath.Join(dir, "rclone")
|
||||||
if goos == "windows" {
|
if goos == "windows" {
|
||||||
@@ -191,7 +197,11 @@ func compileArch(version, goos, goarch, dir string) {
|
|||||||
if flags, ok := archFlags[goarch]; ok {
|
if flags, ok := archFlags[goarch]; ok {
|
||||||
env = append(env, flags...)
|
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 {
|
if !*compileOnly {
|
||||||
artifacts := []string{buildZip(dir)}
|
artifacts := []string{buildZip(dir)}
|
||||||
// build a .deb and .rpm if appropriate
|
// build a .deb and .rpm if appropriate
|
||||||
@@ -207,6 +217,7 @@ func compileArch(version, goos, goarch, dir string) {
|
|||||||
run("rm", "-rf", dir)
|
run("rm", "-rf", dir)
|
||||||
}
|
}
|
||||||
log.Printf("Done compiling %s/%s", goos, goarch)
|
log.Printf("Done compiling %s/%s", goos, goarch)
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func compile(version string) {
|
func compile(version string) {
|
||||||
@@ -231,6 +242,8 @@ func compile(version string) {
|
|||||||
log.Fatalf("Bad -exclude regexp: %v", err)
|
log.Fatalf("Bad -exclude regexp: %v", err)
|
||||||
}
|
}
|
||||||
compiled := 0
|
compiled := 0
|
||||||
|
var failuresMu sync.Mutex
|
||||||
|
var failures []string
|
||||||
for _, osarch := range osarches {
|
for _, osarch := range osarches {
|
||||||
if excludeRe.MatchString(osarch) || !includeRe.MatchString(osarch) {
|
if excludeRe.MatchString(osarch) || !includeRe.MatchString(osarch) {
|
||||||
continue
|
continue
|
||||||
@@ -246,13 +259,22 @@ func compile(version string) {
|
|||||||
}
|
}
|
||||||
dir := filepath.Join("rclone-" + version + "-" + userGoos + "-" + goarch)
|
dir := filepath.Join("rclone-" + version + "-" + userGoos + "-" + goarch)
|
||||||
run <- func() {
|
run <- func() {
|
||||||
compileArch(version, goos, goarch, dir)
|
if !compileArch(version, goos, goarch, dir) {
|
||||||
|
failuresMu.Lock()
|
||||||
|
failures = append(failures, goos+"/"+goarch)
|
||||||
|
failuresMu.Unlock()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compiled++
|
compiled++
|
||||||
}
|
}
|
||||||
close(run)
|
close(run)
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
log.Printf("Compiled %d arches in %v", compiled, time.Since(start))
|
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() {
|
func main() {
|
||||||
|
|||||||
@@ -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
|
// If file exists then srcFileName != "", however if the file
|
||||||
// doesn't exist then we assume it is a directory...
|
// doesn't exist then we assume it is a directory...
|
||||||
if srcFileName != "" {
|
if srcFileName != "" {
|
||||||
dstRemote, dstFileName = fspath.RemoteSplit(dstRemote)
|
dstRemote, dstFileName = fspath.Split(dstRemote)
|
||||||
if dstRemote == "" {
|
if dstRemote == "" {
|
||||||
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
|
// NewFsDstFile creates a new dst fs with a destination file name from the arguments
|
||||||
func NewFsDstFile(args []string) (fdst fs.Fs, dstFileName string) {
|
func NewFsDstFile(args []string) (fdst fs.Fs, dstFileName string) {
|
||||||
dstRemote, dstFileName := fspath.RemoteSplit(args[0])
|
dstRemote, dstFileName := fspath.Split(args[0])
|
||||||
if dstRemote == "" {
|
if dstRemote == "" {
|
||||||
dstRemote = "."
|
dstRemote = "."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,6 +79,9 @@ func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenR
|
|||||||
resp.Flags |= fuse.OpenNonSeekable
|
resp.Flags |= fuse.OpenNonSeekable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Keep the file in the cache - equivalent of kernel_cache
|
||||||
|
resp.Flags |= fuse.OpenKeepCache
|
||||||
|
|
||||||
return &FileHandle{handle}, nil
|
return &FileHandle{handle}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import (
|
|||||||
"github.com/ncw/rclone/vfs/vfsflags"
|
"github.com/ncw/rclone/vfs/vfsflags"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"golang.org/x/net/context" // switch to "context" when we stop supporting go1.8
|
"golang.org/x/net/context" // switch to "context" when we stop supporting go1.8
|
||||||
|
|
||||||
"golang.org/x/net/webdav"
|
"golang.org/x/net/webdav"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -169,3 +169,5 @@ Contributors
|
|||||||
* Kasper Byrdal Nielsen <byrdal76@gmail.com>
|
* Kasper Byrdal Nielsen <byrdal76@gmail.com>
|
||||||
* Benjamin Joseph Dag <bjdag1234@users.noreply.github.com>
|
* Benjamin Joseph Dag <bjdag1234@users.noreply.github.com>
|
||||||
* themylogin <themylogin@gmail.com>
|
* themylogin <themylogin@gmail.com>
|
||||||
|
* Onno Zweers <onno.zweers@surfsara.nl>
|
||||||
|
* Jasper Lievisse Adriaanse <jasper@humppa.nl>
|
||||||
|
|||||||
@@ -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
|
chunks only have an MD5 if the source remote was capable of MD5
|
||||||
hashes, eg the local disk.
|
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 ###
|
### Multipart uploads ###
|
||||||
|
|
||||||
Rclone supports multipart uploads with Azure Blob storage. Files
|
Rclone supports multipart uploads with Azure Blob storage. Files
|
||||||
|
|||||||
@@ -30,53 +30,17 @@ n/s/q> n
|
|||||||
name> remote
|
name> remote
|
||||||
Type of storage to configure.
|
Type of storage to configure.
|
||||||
Choose a number from below, or type in your own value
|
Choose a number from below, or type in your own value
|
||||||
1 / Amazon Drive
|
[snip]
|
||||||
\ "amazon cloud drive"
|
22 / Webdav
|
||||||
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
|
|
||||||
\ "webdav"
|
\ "webdav"
|
||||||
19 / Yandex Disk
|
[snip]
|
||||||
\ "yandex"
|
|
||||||
20 / http Connection
|
|
||||||
\ "http"
|
|
||||||
Storage> webdav
|
Storage> webdav
|
||||||
URL of http host to connect to
|
URL of http host to connect to
|
||||||
Choose a number from below, or type in your own value
|
Choose a number from below, or type in your own value
|
||||||
1 / Connect to example.com
|
1 / Connect to example.com
|
||||||
\ "https://example.com"
|
\ "https://example.com"
|
||||||
url> https://example.com/remote.php/webdav/
|
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
|
Choose a number from below, or type in your own value
|
||||||
1 / Nextcloud
|
1 / Nextcloud
|
||||||
\ "nextcloud"
|
\ "nextcloud"
|
||||||
@@ -98,13 +62,17 @@ Enter the password:
|
|||||||
password:
|
password:
|
||||||
Confirm the password:
|
Confirm the password:
|
||||||
password:
|
password:
|
||||||
|
Bearer token instead of user/pass (eg a Macaroon)
|
||||||
|
bearer_token>
|
||||||
Remote config
|
Remote config
|
||||||
--------------------
|
--------------------
|
||||||
[remote]
|
[remote]
|
||||||
|
type = webdav
|
||||||
url = https://example.com/remote.php/webdav/
|
url = https://example.com/remote.php/webdav/
|
||||||
vendor = nextcloud
|
vendor = nextcloud
|
||||||
user = user
|
user = user
|
||||||
pass = *** ENCRYPTED ***
|
pass = *** ENCRYPTED ***
|
||||||
|
bearer_token =
|
||||||
--------------------
|
--------------------
|
||||||
y) Yes this is OK
|
y) Yes this is OK
|
||||||
e) Edit this remote
|
e) Edit this remote
|
||||||
@@ -133,6 +101,10 @@ Owncloud or Nextcloud rclone will support modified times.
|
|||||||
|
|
||||||
Hashes are not supported.
|
Hashes are not supported.
|
||||||
|
|
||||||
|
## Provider notes ##
|
||||||
|
|
||||||
|
See below for notes on specific providers.
|
||||||
|
|
||||||
### Owncloud ###
|
### Owncloud ###
|
||||||
|
|
||||||
Click on the settings cog in the bottom right of the page and this
|
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
|
fixed](https://github.com/nextcloud/nextcloud-snap/issues/365) in the
|
||||||
future.
|
future.
|
||||||
|
|
||||||
## Put.io ##
|
### Put.io ###
|
||||||
|
|
||||||
put.io can be accessed in a read only way using webdav.
|
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).
|
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.
|
or Office365 Education Accounts.
|
||||||
This feature is only needed for a few of these Accounts,
|
This feature is only needed for a few of these Accounts,
|
||||||
mostly Office365 Education ones. These accounts are sometimes not
|
mostly Office365 Education ones. These accounts are sometimes not
|
||||||
@@ -214,3 +186,26 @@ vendor = other
|
|||||||
user = YourEmailAddress
|
user = YourEmailAddress
|
||||||
pass = encryptedpassword
|
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.
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import (
|
|||||||
"github.com/ncw/rclone/fs/config/obscure"
|
"github.com/ncw/rclone/fs/config/obscure"
|
||||||
"github.com/ncw/rclone/fs/driveletter"
|
"github.com/ncw/rclone/fs/driveletter"
|
||||||
"github.com/ncw/rclone/fs/fshttp"
|
"github.com/ncw/rclone/fs/fshttp"
|
||||||
|
"github.com/ncw/rclone/fs/fspath"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"golang.org/x/crypto/nacl/secretbox"
|
"golang.org/x/crypto/nacl/secretbox"
|
||||||
"golang.org/x/text/unicode/norm"
|
"golang.org/x/text/unicode/norm"
|
||||||
@@ -865,12 +866,12 @@ func NewRemoteName() (name string) {
|
|||||||
for {
|
for {
|
||||||
fmt.Printf("name> ")
|
fmt.Printf("name> ")
|
||||||
name = ReadLine()
|
name = ReadLine()
|
||||||
parts := fs.Matcher.FindStringSubmatch(name + ":")
|
parts := fspath.Matcher.FindStringSubmatch(name + ":")
|
||||||
switch {
|
switch {
|
||||||
case name == "":
|
case name == "":
|
||||||
fmt.Printf("Can't use empty name.\n")
|
fmt.Printf("Can't use empty name.\n")
|
||||||
case driveletter.IsDriveLetter(name):
|
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:
|
case parts == nil:
|
||||||
fmt.Printf("Can't use %q as it has invalid characters in it.\n", name)
|
fmt.Printf("Can't use %q as it has invalid characters in it.\n", name)
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -16,7 +16,11 @@ import (
|
|||||||
|
|
||||||
// ReadPassword reads a password without echoing it to the terminal.
|
// ReadPassword reads a password without echoing it to the terminal.
|
||||||
func ReadPassword() string {
|
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)
|
_, _ = fmt.Fprintln(os.Stderr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to read password: %v", err)
|
log.Fatalf("Failed to read password: %v", err)
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ func NewFilter(opt *Opt) (f *Filter, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if addImplicitExclude && foundExcludeRule {
|
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 {
|
for _, rule := range f.Opt.FilterRule {
|
||||||
|
|||||||
17
fs/fs.go
17
fs/fs.go
@@ -9,12 +9,11 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"reflect"
|
"reflect"
|
||||||
"regexp"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ncw/rclone/fs/driveletter"
|
"github.com/ncw/rclone/fs/fspath"
|
||||||
"github.com/ncw/rclone/fs/hash"
|
"github.com/ncw/rclone/fs/hash"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
@@ -786,24 +785,20 @@ func MustFind(name string) *RegInfo {
|
|||||||
return fs
|
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
|
// ParseRemote deconstructs a path into configName, fsPath, looking up
|
||||||
// the fsName in the config file (returning NotFoundInConfigFile if not found)
|
// the fsName in the config file (returning NotFoundInConfigFile if not found)
|
||||||
func ParseRemote(path string) (fsInfo *RegInfo, configName, fsPath string, err error) {
|
func ParseRemote(path string) (fsInfo *RegInfo, configName, fsPath string, err error) {
|
||||||
parts := Matcher.FindStringSubmatch(path)
|
configName, fsPath = fspath.Parse(path)
|
||||||
var fsName string
|
var fsName string
|
||||||
fsName, configName, fsPath = "local", "local", path
|
if configName != "" {
|
||||||
if parts != nil && !driveletter.IsDriveLetter(parts[1]) {
|
|
||||||
configName, fsPath = parts[1], parts[2]
|
|
||||||
fsName = ConfigFileGet(configName, "type")
|
fsName = ConfigFileGet(configName, "type")
|
||||||
if fsName == "" {
|
if fsName == "" {
|
||||||
return nil, "", "", ErrorNotFoundInConfigFile
|
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)
|
fsInfo, err = Find(fsName)
|
||||||
return fsInfo, configName, fsPath, err
|
return fsInfo, configName, fsPath, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,27 +3,46 @@ package fspath
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"path"
|
"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 leaf as an empty string then remote is a directory
|
||||||
//
|
//
|
||||||
// if it returns parent as an empty string then that means the current 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
|
// The returned values have the property that parent + leaf == remote
|
||||||
func RemoteSplit(remote string) (parent string, leaf string) {
|
// (except under Windows where \ will be translated into /)
|
||||||
// Split remote on :
|
func Split(remote string) (parent string, leaf string) {
|
||||||
i := strings.Index(remote, ":")
|
remoteName, remotePath := Parse(remote)
|
||||||
remoteName := ""
|
if remoteName != "" {
|
||||||
remotePath := remote
|
remoteName += ":"
|
||||||
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, ""
|
|
||||||
}
|
}
|
||||||
// Construct new remote name without last segment
|
// Construct new remote name without last segment
|
||||||
parent, leaf = path.Split(remotePath)
|
parent, leaf = path.Split(remotePath)
|
||||||
|
|||||||
@@ -7,8 +7,23 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"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 {
|
for _, test := range []struct {
|
||||||
remote, wantParent, wantLeaf string
|
remote, wantParent, wantLeaf string
|
||||||
}{
|
}{
|
||||||
@@ -27,7 +42,7 @@ func TestRemoteSplit(t *testing.T) {
|
|||||||
{"root/", "root/", ""},
|
{"root/", "root/", ""},
|
||||||
{"a/b/", "a/b/", ""},
|
{"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.wantParent, gotParent, test.remote)
|
||||||
assert.Equal(t, test.wantLeaf, gotLeaf, 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))
|
assert.Equal(t, test.remote, gotParent+gotLeaf, fmt.Sprintf("%s: %q + %q != %q", test.remote, gotParent, gotLeaf, test.remote))
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
_ "net/http/pprof" // install the pprof http handlers
|
_ "net/http/pprof" // install the pprof http handlers
|
||||||
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ncw/rclone/cmd/serve/httplib"
|
"github.com/ncw/rclone/cmd/serve/httplib"
|
||||||
|
|||||||
@@ -143,6 +143,7 @@ type Opts struct {
|
|||||||
Parameters url.Values // any parameters for the final URL
|
Parameters url.Values // any parameters for the final URL
|
||||||
TransferEncoding []string // transfer encoding, set to "identity" to disable chunked encoding
|
TransferEncoding []string // transfer encoding, set to "identity" to disable chunked encoding
|
||||||
Close bool // set to close the connection after this transaction
|
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
|
// Copy creates a copy of the options
|
||||||
@@ -189,6 +190,15 @@ func ClientWithHeaderReset(c *http.Client, headers map[string]string) *http.Clie
|
|||||||
return &clientCopy
|
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
|
// Call makes the call and returns the http.Response
|
||||||
//
|
//
|
||||||
// if err != nil then resp.Body will need to be closed
|
// 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 != "" {
|
if opts.UserName != "" || opts.Password != "" {
|
||||||
req.SetBasicAuth(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 {
|
if api.signer != nil {
|
||||||
err = api.signer(req)
|
err = api.signer(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
3
vendor/github.com/Azure/azure-sdk-for-go/.travis.yml
generated
vendored
3
vendor/github.com/Azure/azure-sdk-for-go/.travis.yml
generated
vendored
@@ -12,6 +12,9 @@ env:
|
|||||||
- DEP_VERSION="0.4.1"
|
- DEP_VERSION="0.4.1"
|
||||||
- DEP_SHA=31144e465e52ffbc0035248a10ddea61a09bf28b00784fd3fdd9882c8cbb2315
|
- DEP_SHA=31144e465e52ffbc0035248a10ddea61a09bf28b00784fd3fdd9882c8cbb2315
|
||||||
- IGNORE_BREAKING_CHANGES=true
|
- IGNORE_BREAKING_CHANGES=true
|
||||||
|
matrix:
|
||||||
|
- GOARCH="amd64"
|
||||||
|
- GOARCH="386"
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
|
|||||||
165
vendor/github.com/Azure/azure-sdk-for-go/CHANGELOG.md
generated
vendored
165
vendor/github.com/Azure/azure-sdk-for-go/CHANGELOG.md
generated
vendored
@@ -1,18 +1,95 @@
|
|||||||
# CHANGELOG
|
# 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`
|
## `v17.3.0`
|
||||||
|
|
||||||
### New Services
|
### New Services
|
||||||
|
|
||||||
| Package Name | API Version |
|
| Package Name | API Version |
|
||||||
| --------------------: | :-----------------: |
|
| ----------------: | :---------: |
|
||||||
| containerinstance | 2018-06-01 |
|
| containerinstance | 2018-06-01 |
|
||||||
| reservations | 2018-06-01 |
|
| reservations | 2018-06-01 |
|
||||||
|
|
||||||
### Updated Services
|
### Updated Services
|
||||||
|
|
||||||
| Package Name | API Version |
|
| Package Name | API Version |
|
||||||
| --------------------: | :-----------------: |
|
| -----------: | :---------: |
|
||||||
| datafactory | 2017-09-01 |
|
| datafactory | 2017-09-01 |
|
||||||
| network | 2015-06-15 |
|
| network | 2015-06-15 |
|
||||||
|
|
||||||
@@ -21,14 +98,14 @@
|
|||||||
### New Services
|
### New Services
|
||||||
|
|
||||||
| Package Name | API Version |
|
| Package Name | API Version |
|
||||||
| --------------------: | :-----------------: |
|
| ------------------: | :---------: |
|
||||||
| managedapplications | 2018-06-01 |
|
| managedapplications | 2018-06-01 |
|
||||||
| resources | 2018-05-01 |
|
| resources | 2018-05-01 |
|
||||||
|
|
||||||
### Updated Services
|
### Updated Services
|
||||||
|
|
||||||
| Package Name | API Version |
|
| Package Name | API Version |
|
||||||
| --------------------: | :-----------------: |
|
| -------------------: | :---------: |
|
||||||
| networksecuritygroup | classic |
|
| networksecuritygroup | classic |
|
||||||
|
|
||||||
## `v17.1.0`
|
## `v17.1.0`
|
||||||
@@ -36,7 +113,7 @@
|
|||||||
### New Services
|
### New Services
|
||||||
|
|
||||||
| Package Name | API Version |
|
| Package Name | API Version |
|
||||||
| --------------------: | :-----------------: |
|
| -----------: | :-----------------------: |
|
||||||
| iotcentral | 2017-07-01-privatepreview |
|
| iotcentral | 2017-07-01-privatepreview |
|
||||||
|
|
||||||
## `v17.0.0`
|
## `v17.0.0`
|
||||||
@@ -248,7 +325,7 @@
|
|||||||
|
|
||||||
## `v16.1.0`
|
## `v16.1.0`
|
||||||
|
|
||||||
* Added a `NewAuthorizerFromEnvironment()` function for the keyvault service.
|
- Added a `NewAuthorizerFromEnvironment()` function for the keyvault service.
|
||||||
|
|
||||||
## `v16.0.0`
|
## `v16.0.0`
|
||||||
|
|
||||||
@@ -339,8 +416,8 @@
|
|||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* Drain the response body when retrying a request.
|
- Drain the response body when retrying a request.
|
||||||
* Avoid allocating when draining a response body.
|
- Avoid allocating when draining a response body.
|
||||||
|
|
||||||
## `v15.1.0`
|
## `v15.1.0`
|
||||||
|
|
||||||
@@ -374,14 +451,14 @@ NOTE: There is a new subdirectory, ./services/preview, which going forward will
|
|||||||
|
|
||||||
### New Features
|
### 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
|
### Bug Fixes
|
||||||
|
|
||||||
* Removed the "arm-" prefix from user-agent strings as not all services are for ARM.
|
- Removed the "arm-" prefix from user-agent strings as not all services are for ARM.
|
||||||
* Fixed missing marshaller for structs with flattened fields.
|
- Fixed missing marshaller for structs with flattened fields.
|
||||||
* Fixed an issue where the incorrect content MIME type was being specified.
|
- Fixed an issue where the incorrect content MIME type was being specified.
|
||||||
* Marshalling of empty values for enum types now works as expected.
|
- Marshalling of empty values for enum types now works as expected.
|
||||||
|
|
||||||
### New Services
|
### New Services
|
||||||
|
|
||||||
@@ -441,80 +518,80 @@ NOTE: There is a new subdirectory, ./services/preview, which going forward will
|
|||||||
|
|
||||||
### New Services
|
### New Services
|
||||||
|
|
||||||
* Batch 2018-03-01.6.1
|
- Batch 2018-03-01.6.1
|
||||||
* BatchAI 2018-03-01
|
- BatchAI 2018-03-01
|
||||||
* Cognitive services custom vision prediction v1.1
|
- Cognitive services custom vision prediction v1.1
|
||||||
* Eventhub 2018-01-01-preview
|
- Eventhub 2018-01-01-preview
|
||||||
* MySQL 2017-12-01
|
- MySQL 2017-12-01
|
||||||
* PostgreSQL 2017-12-01
|
- PostgreSQL 2017-12-01
|
||||||
* Redis 2018-03-01
|
- Redis 2018-03-01
|
||||||
* Subscription 2018-03-01-preview
|
- Subscription 2018-03-01-preview
|
||||||
|
|
||||||
## `v14.5.0`
|
## `v14.5.0`
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
* Added new preview packages for apimanagement and dns.
|
- Added new preview packages for apimanagement and dns.
|
||||||
|
|
||||||
## `v14.4.0`
|
## `v14.4.0`
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
* Added new preview API versions for mysql and postgresql.
|
- Added new preview API versions for mysql and postgresql.
|
||||||
|
|
||||||
## `v14.3.0`
|
## `v14.3.0`
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
* Add exports for max file range and sizes for files in storage.
|
- Add exports for max file range and sizes for files in storage.
|
||||||
* Updated README regarding blob storage support.
|
- Updated README regarding blob storage support.
|
||||||
* Add godoc indexer tool.
|
- Add godoc indexer tool.
|
||||||
* Add apidiff tool.
|
- Add apidiff tool.
|
||||||
|
|
||||||
## `v14.2.0`
|
## `v14.2.0`
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
* For blob storage, added GetProperties() method to Container.
|
- For blob storage, added GetProperties() method to Container.
|
||||||
* Added PublicAccess field to ContainerProperties struct.
|
- Added PublicAccess field to ContainerProperties struct.
|
||||||
|
|
||||||
## `v14.1.1`
|
## `v14.1.1`
|
||||||
|
|
||||||
* Fixing timestamp marshalling bug in the `storage` package.
|
- Fixing timestamp marshalling bug in the `storage` package.
|
||||||
* Updating `profileBuilder` to clear-output folders when it is run by `go generate`.
|
- 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.
|
- Tweaking Swagger -> SDK config to use "latest" instead of "nightly" and be tied to a particular version of autorest.go.
|
||||||
|
|
||||||
## `v14.1.0`
|
## `v14.1.0`
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
* Update README with details on new authentication helpers.
|
- Update README with details on new authentication helpers.
|
||||||
* Update `latest` profile to point to latest stable API versions.
|
- Update `latest` profile to point to latest stable API versions.
|
||||||
* Add new API version for Azure Monitoring service and for Batch Data plane service.
|
- Add new API version for Azure Monitoring service and for Batch Data plane service.
|
||||||
|
|
||||||
## `v14.0.2`
|
## `v14.0.2`
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
* Updating `profileBuilder list` to accept an `input` flag instead of reading from `stdin`.
|
- 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.
|
- Simplifying CI to have less chatter, be faster, and have no special cases.
|
||||||
|
|
||||||
## `v14.0.1`
|
## `v14.0.1`
|
||||||
|
|
||||||
### Changes
|
### 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`
|
## `v14.0.0`
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|
||||||
* Removed the ./arm, ./datalake-store and ./dataplane directories. You can find the same packages under ./services
|
- 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
|
- 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
|
- Renamed package ./services/redis/mgmt/2017-10-01/cache to ./services/redis/mgmt/2017-10-01/redis
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
* Removed the "-beta" suffix.
|
- Removed the "-beta" suffix.
|
||||||
* Added various new services.
|
- Added various new services.
|
||||||
* Added ./version package for centralized SDK versioning.
|
- Added ./version package for centralized SDK versioning.
|
||||||
|
|||||||
40
vendor/github.com/Azure/azure-sdk-for-go/Gopkg.lock
generated
vendored
40
vendor/github.com/Azure/azure-sdk-for-go/Gopkg.lock
generated
vendored
@@ -12,8 +12,8 @@
|
|||||||
"autorest/to",
|
"autorest/to",
|
||||||
"autorest/validation"
|
"autorest/validation"
|
||||||
]
|
]
|
||||||
revision = "4de44cd533576f3c7b44dcb08dc03754d217144d"
|
revision = "1f7cd6cfe0adea687ad44a512dfe76140f804318"
|
||||||
version = "v10.9.2"
|
version = "v10.12.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/dgrijalva/jwt-go"
|
name = "github.com/dgrijalva/jwt-go"
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
"cassette",
|
"cassette",
|
||||||
"recorder"
|
"recorder"
|
||||||
]
|
]
|
||||||
revision = "f8a7e8b9c630b486df74145bb887793a1b85459b"
|
revision = "8b144be0744f013a1b44386058f1fcb3ba98177d"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/fsnotify/fsnotify"
|
name = "github.com/fsnotify/fsnotify"
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
"internal/sasl",
|
"internal/sasl",
|
||||||
"internal/scram"
|
"internal/scram"
|
||||||
]
|
]
|
||||||
revision = "efe0945164a7e582241f37ae8983c075f8f2e870"
|
revision = "113d3961e7311526535a1ef7042196563d442761"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@@ -77,6 +77,18 @@
|
|||||||
revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
|
revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
|
||||||
version = "v1.0"
|
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]]
|
[[projects]]
|
||||||
name = "github.com/magiconair/properties"
|
name = "github.com/magiconair/properties"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
@@ -105,7 +117,7 @@
|
|||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/marstr/randname"
|
name = "github.com/marstr/randname"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "3ef1f47af99e66171417047e6f6fa334345e95e7"
|
revision = "48a63b6052f1f9373db9388a658da30c6ab53db1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@@ -122,8 +134,8 @@
|
|||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/pelletier/go-toml"
|
name = "github.com/pelletier/go-toml"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "acdc4509485b587f5e675510c4f2c63e90ff68a8"
|
revision = "c01d1270ff3e442a8a57cddc1c92dc1138598194"
|
||||||
version = "v1.1.0"
|
version = "v1.2.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/satori/go.uuid"
|
name = "github.com/satori/go.uuid"
|
||||||
@@ -143,8 +155,8 @@
|
|||||||
".",
|
".",
|
||||||
"mem"
|
"mem"
|
||||||
]
|
]
|
||||||
revision = "63644898a8da0bc22138abf860edaf5277b6102e"
|
revision = "787d034dfe70e44075ccc060d346146ef53270ad"
|
||||||
version = "v1.1.0"
|
version = "v1.1.1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/spf13/cast"
|
name = "github.com/spf13/cast"
|
||||||
@@ -183,13 +195,13 @@
|
|||||||
"pkcs12",
|
"pkcs12",
|
||||||
"pkcs12/internal/rc2"
|
"pkcs12/internal/rc2"
|
||||||
]
|
]
|
||||||
revision = "5ba7f63082460102a45837dbd1827e10f9479ac0"
|
revision = "a49355c7e3f8fe157a85be2f77e6e269a0f89602"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "golang.org/x/sys"
|
name = "golang.org/x/sys"
|
||||||
packages = ["unix"]
|
packages = ["unix"]
|
||||||
revision = "c11f84a56e43e20a78cee75a7c034031ecf57d1f"
|
revision = "7138fd3d9dc8335c567ca206f4333fb75eb05d56"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "golang.org/x/text"
|
name = "golang.org/x/text"
|
||||||
@@ -212,13 +224,13 @@
|
|||||||
"imports",
|
"imports",
|
||||||
"internal/fastwalk"
|
"internal/fastwalk"
|
||||||
]
|
]
|
||||||
revision = "a5b4c53f6e8bdcafa95a94671bf2d1203365858b"
|
revision = "ffe88906718454e356e61776b54256e873fc133b"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "v1"
|
branch = "v1"
|
||||||
name = "gopkg.in/check.v1"
|
name = "gopkg.in/check.v1"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "20d25e2804050c1cd24a7eea1e7a6447dd0e74ec"
|
revision = "788fd78401277ebd861206a03c884797c6ec5541"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "gopkg.in/yaml.v2"
|
name = "gopkg.in/yaml.v2"
|
||||||
@@ -229,6 +241,6 @@
|
|||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
analyzer-version = 1
|
analyzer-version = 1
|
||||||
inputs-digest = "3ba7e7e6599059a0ac88f854eca95495c02501ebe2e0be13b38e4f2b823d5c53"
|
inputs-digest = "f4bfed9d1dcc4af2e0ff5811bb14dfebe84f87e7aed10199b8ff8d867d947612"
|
||||||
solver-name = "gps-cdcl"
|
solver-name = "gps-cdcl"
|
||||||
solver-version = 1
|
solver-version = 1
|
||||||
|
|||||||
2
vendor/github.com/Azure/azure-sdk-for-go/Gopkg.toml
generated
vendored
2
vendor/github.com/Azure/azure-sdk-for-go/Gopkg.toml
generated
vendored
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/Azure/go-autorest"
|
name = "github.com/Azure/go-autorest"
|
||||||
version = "10.9.2"
|
version = "10.12.0"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|||||||
193
vendor/github.com/Azure/azure-sdk-for-go/README.md
generated
vendored
193
vendor/github.com/Azure/azure-sdk-for-go/README.md
generated
vendored
@@ -4,37 +4,52 @@
|
|||||||
[](https://travis-ci.org/Azure/azure-sdk-for-go)
|
[](https://travis-ci.org/Azure/azure-sdk-for-go)
|
||||||
[](https://goreportcard.com/report/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
|
azure-sdk-for-go provides Go packages for managing and using Azure services.
|
||||||
tested with Go 1.8, 1.9 and 1.10.
|
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
|
To be notified about updates and changes, subscribe to the [Azure update
|
||||||
feed](https://azure.microsoft.com/updates/).
|
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].
|
[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]
|
Most packages in the SDK are generated from [Azure API specs][azure_rest_specs]
|
||||||
using [Azure/autorest.go][] and [Azure/autorest][]. These generated packages
|
using [Azure/autorest.go][] and [Azure/autorest][]. These generated packages
|
||||||
depend on the HTTP client implemented at [Azure/go-autorest][].
|
depend on the HTTP client implemented at [Azure/go-autorest][].
|
||||||
|
|
||||||
[azure_rest_specs]: https://github.com/Azure/azure-rest-api-specs
|
[azure_rest_specs]: https://github.com/Azure/azure-rest-api-specs
|
||||||
[Azure/autorest]: https://github.com/Azure/autorest
|
[azure/autorest]: https://github.com/Azure/autorest
|
||||||
[Azure/autorest.go]: https://github.com/Azure/autorest.go
|
[azure/autorest.go]: https://github.com/Azure/autorest.go
|
||||||
[Azure/go-autorest]: https://github.com/Azure/go-autorest
|
[azure/go-autorest]: https://github.com/Azure/go-autorest
|
||||||
|
|
||||||
The SDK codebase adheres to [semantic versioning](https://semver.org) and thus
|
The SDK codebase adheres to [semantic versioning](https://semver.org) and thus
|
||||||
avoids breaking changes other than at major (x.0.0) releases. However,
|
avoids breaking changes other than at major (x.0.0) releases. Because Azure's
|
||||||
occasionally Azure API fixes require breaking updates within an individual
|
APIs are updated frequently, we release a **new major version at the end of
|
||||||
package; these exceptions are noted in release changelogs.
|
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
|
To more reliably manage dependencies like the Azure SDK in your applications we
|
||||||
recommend [golang/dep](https://github.com/golang/dep).
|
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 and Use:
|
||||||
|
|
||||||
### Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ go get -u github.com/Azure/azure-sdk-for-go/...
|
$ 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/).
|
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].
|
||||||
|
|
||||||
|
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.
|
1. Import a package from the [services][services_dir] directory.
|
||||||
2. Create and authenticate a client with a `New*Client` func, e.g.
|
2. Create and authenticate a client with a `New*Client` func, e.g.
|
||||||
`c := compute.NewVirtualMachinesClient(...)`.
|
`c := compute.NewVirtualMachinesClient(...)`.
|
||||||
3. Invoke API methods using the client, e.g. `c.CreateOrUpdate(...)`.
|
3. Invoke API methods using the client, e.g.
|
||||||
4. Handle responses.
|
`res, err := c.CreateOrUpdate(...)`.
|
||||||
|
4. Handle responses and errors.
|
||||||
|
|
||||||
[services_dir]: https://github.com/Azure/azure-sdk-for-go/tree/master/services
|
[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
|
For example, to create a new virtual network (substitute your own values for
|
||||||
strings in angle brackets):
|
strings in angle brackets):
|
||||||
|
|
||||||
Note: For more on authentication and the `Authorizer` interface see [the next
|
|
||||||
section](#authentication).
|
|
||||||
|
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-09-01/network"
|
"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/azure/auth"
|
||||||
"github.com/Azure/go-autorest/autorest/to"
|
"github.com/Azure/go-autorest/autorest/to"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// create a VirtualNetworks client
|
||||||
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
|
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 {
|
if err == nil {
|
||||||
vnetClient.Authorizer = authorizer
|
vnetClient.Authorizer = authorizer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// call the VirtualNetworks CreateOrUpdate API
|
||||||
vnetClient.CreateOrUpdate(context.Background(),
|
vnetClient.CreateOrUpdate(context.Background(),
|
||||||
"<resourceGroupName>",
|
"<resourceGroupName>",
|
||||||
"<vnetName>",
|
"<vnetName>",
|
||||||
@@ -112,52 +134,111 @@ func main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Authentication
|
## Authentication
|
||||||
|
|
||||||
Most SDK operations require an OAuth token for authentication and authorization. These are
|
Typical SDK operations must be authenticated and authorized. The _Authorizer_
|
||||||
made available in the Go SDK For Azure through types implementing the `Authorizer` interface.
|
interface allows use of any auth style in requests, such as inserting an OAuth2
|
||||||
You can get one from Azure Active Directory using the SDK's
|
Authorization header and bearer token received from Azure AD.
|
||||||
[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).
|
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.
|
||||||
|
|
||||||
|
```go
|
||||||
|
import github.com/Azure/go-autorest/autorest/azure/auth
|
||||||
|
|
||||||
|
// create a VirtualNetworks client
|
||||||
|
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
|
||||||
|
|
||||||
|
// 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(),
|
||||||
|
// ...
|
||||||
|
```
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
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_TENANT_ID`: Specifies the Tenant to which to authenticate.
|
||||||
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
|
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
|
||||||
- `AZURE_CLIENT_SECRET`: Specifies the app secret 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.
|
|
||||||
|
2. **Client Certificate**: Azure AD Application ID and X.509 Certificate.
|
||||||
|
|
||||||
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
|
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
|
||||||
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
|
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
|
||||||
- `AZURE_CERTIFICATE_PATH`: Specifies the certificate Path to use.
|
- `AZURE_CERTIFICATE_PATH`: Specifies the certificate Path to use.
|
||||||
- `AZURE_CERTIFICATE_PASSWORD`: Specifies the certificate password 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.
|
|
||||||
|
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_TENANT_ID`: Specifies the Tenant to which to authenticate.
|
||||||
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
|
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
|
||||||
- `AZURE_USERNAME`: Specifies the username to use.
|
- `AZURE_USERNAME`: Specifies the username to use.
|
||||||
- `AZURE_PASSWORD`: Specifies the password 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).
|
|
||||||
|
|
||||||
- Optionally, the following environment variables can be defined:
|
4. **Azure Managed Service Identity**: Delegate credential management to the
|
||||||
- `AZURE_ENVIRONMENT`: Specifies the Azure Environment to use. If not set, it defaults to `AzurePublicCloud`. (Not applicable to MSI based auth)
|
platform. Requires that code is running in Azure, e.g. on a VM. All
|
||||||
- `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.
|
configuration is handled by Azure. See [Azure Managed Service
|
||||||
|
Identity](https://docs.microsoft.com/en-us/azure/active-directory/msi-overview)
|
||||||
|
for more details.
|
||||||
|
|
||||||
2. From an **Auth File**:
|
- The `auth.NewAuthorizerFromFile()` method creates an authorizer using
|
||||||
- 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).
|
credentials from an auth file created by the [Azure CLI][]. Follow these
|
||||||
- Set environment variable `AZURE_AUTH_LOCATION` for finding the file.
|
steps to utilize:
|
||||||
- Use `auth.NewAuthorizerFromFile()` for getting the `Authorizer` based on the auth file.
|
|
||||||
|
|
||||||
3. From **Device Flow** by configuring `auth.DeviceFlowConfig` and calling the `Authorizer()` method.
|
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.
|
||||||
|
|
||||||
Note: To authenticate you first need to create a service principal in Azure. To create a new service principal, run
|
[azure cli]: https://github.com/Azure/azure-cli
|
||||||
`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.
|
|
||||||
|
|
||||||
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).
|
- 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
|
# Versioning
|
||||||
|
|
||||||
@@ -186,8 +267,7 @@ Occasionally service-side changes require major changes to existing versions.
|
|||||||
These cases are noted in the changelog.
|
These cases are noted in the changelog.
|
||||||
|
|
||||||
All avilable services and versions are listed under the `services/` path in
|
All avilable services and versions are listed under the `services/` path in
|
||||||
this repo and in [GoDoc][services_godoc]. Run `find ./services -type d
|
this repo and in [GoDoc][services_godoc]. Run `find ./services -type d -mindepth 3` to list all available service packages.
|
||||||
-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
|
||||||
|
|
||||||
@@ -195,8 +275,8 @@ this repo and in [GoDoc][services_godoc]. Run `find ./services -type d
|
|||||||
|
|
||||||
Azure **API profiles** specify subsets of Azure APIs and versions. Profiles can provide:
|
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
|
- **stability** for your application by locking to specific API versions; and/or
|
||||||
* **compatibility** for your application with Azure Stack and regional Azure datacenters.
|
- **compatibility** for your application with Azure Stack and regional Azure datacenters.
|
||||||
|
|
||||||
In the Go SDK, profiles are available under the `profiles/` path and their
|
In the Go SDK, profiles are available under the `profiles/` path and their
|
||||||
component API versions are aliases to the true service package under
|
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.
|
hybrid Azure and Azure Stack environments. More profiles are under development.
|
||||||
|
|
||||||
In addition to versioned profiles, we also provide two special profiles
|
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
|
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
|
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,
|
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.
|
Here is an example of how these can be used with `net/http/httputil` to see requests and responses.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|
||||||
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
|
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
|
||||||
vnetClient.RequestInspector = LogRequest()
|
vnetClient.RequestInspector = LogRequest()
|
||||||
vnetClient.ResponseInspector = LogResponse()
|
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/).
|
- 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).
|
- 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
|
## License
|
||||||
|
|
||||||
Apache 2.0, see [LICENSE](./LICENSE).
|
Apache 2.0, see [LICENSE](./LICENSE).
|
||||||
@@ -298,4 +372,3 @@ Apache 2.0, see [LICENSE](./LICENSE).
|
|||||||
See [CONTRIBUTING.md](./CONTRIBUTING.md).
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ type OperationEntityListResult = original.OperationEntityListResult
|
|||||||
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
|
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
|
||||||
type OperationEntityListResultPage = original.OperationEntityListResultPage
|
type OperationEntityListResultPage = original.OperationEntityListResultPage
|
||||||
type RecommendationProperties = original.RecommendationProperties
|
type RecommendationProperties = original.RecommendationProperties
|
||||||
type RecommendationsGetGenerateStatusFuture = original.RecommendationsGetGenerateStatusFuture
|
|
||||||
type Resource = original.Resource
|
type Resource = original.Resource
|
||||||
type ResourceRecommendationBase = original.ResourceRecommendationBase
|
type ResourceRecommendationBase = original.ResourceRecommendationBase
|
||||||
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult
|
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ package insights
|
|||||||
|
|
||||||
import original "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/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 AnnotationsClient = original.AnnotationsClient
|
||||||
type APIKeysClient = original.APIKeysClient
|
type APIKeysClient = original.APIKeysClient
|
||||||
|
|
||||||
@@ -36,7 +36,6 @@ type ComponentFeatureCapabilitiesClient = original.ComponentFeatureCapabilitiesC
|
|||||||
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
|
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
|
||||||
type ComponentsClient = original.ComponentsClient
|
type ComponentsClient = original.ComponentsClient
|
||||||
type ExportConfigurationsClient = original.ExportConfigurationsClient
|
type ExportConfigurationsClient = original.ExportConfigurationsClient
|
||||||
type FavoriteClient = original.FavoriteClient
|
|
||||||
type FavoritesClient = original.FavoritesClient
|
type FavoritesClient = original.FavoritesClient
|
||||||
type ApplicationType = original.ApplicationType
|
type ApplicationType = original.ApplicationType
|
||||||
|
|
||||||
@@ -142,6 +141,7 @@ const (
|
|||||||
|
|
||||||
type Annotation = original.Annotation
|
type Annotation = original.Annotation
|
||||||
type AnnotationError = original.AnnotationError
|
type AnnotationError = original.AnnotationError
|
||||||
|
type AnnotationsListResult = original.AnnotationsListResult
|
||||||
type APIKeyRequest = original.APIKeyRequest
|
type APIKeyRequest = original.APIKeyRequest
|
||||||
type ApplicationInsightsComponent = original.ApplicationInsightsComponent
|
type ApplicationInsightsComponent = original.ApplicationInsightsComponent
|
||||||
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
|
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
|
||||||
@@ -170,7 +170,7 @@ type ComponentPurgeBody = original.ComponentPurgeBody
|
|||||||
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
|
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
|
||||||
type ComponentPurgeResponse = original.ComponentPurgeResponse
|
type ComponentPurgeResponse = original.ComponentPurgeResponse
|
||||||
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
|
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
|
||||||
type ComponentsPurgeFuture = original.ComponentsPurgeFuture
|
type ComponentsResource = original.ComponentsResource
|
||||||
type ErrorFieldContract = original.ErrorFieldContract
|
type ErrorFieldContract = original.ErrorFieldContract
|
||||||
type ErrorResponse = original.ErrorResponse
|
type ErrorResponse = original.ErrorResponse
|
||||||
type InnerError = original.InnerError
|
type InnerError = original.InnerError
|
||||||
@@ -180,13 +180,11 @@ type ListApplicationInsightsComponentAnalyticsItem = original.ListApplicationIns
|
|||||||
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
|
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
|
||||||
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
|
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
|
||||||
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
|
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
|
||||||
type ListWorkItemConfiguration = original.ListWorkItemConfiguration
|
|
||||||
type Operation = original.Operation
|
type Operation = original.Operation
|
||||||
type OperationDisplay = original.OperationDisplay
|
type OperationDisplay = original.OperationDisplay
|
||||||
type OperationListResult = original.OperationListResult
|
type OperationListResult = original.OperationListResult
|
||||||
type OperationListResultIterator = original.OperationListResultIterator
|
type OperationListResultIterator = original.OperationListResultIterator
|
||||||
type OperationListResultPage = original.OperationListResultPage
|
type OperationListResultPage = original.OperationListResultPage
|
||||||
type Resource = original.Resource
|
|
||||||
type SetObject = original.SetObject
|
type SetObject = original.SetObject
|
||||||
type TagsResource = original.TagsResource
|
type TagsResource = original.TagsResource
|
||||||
type WebTest = original.WebTest
|
type WebTest = original.WebTest
|
||||||
@@ -196,26 +194,28 @@ type WebTestListResultIterator = original.WebTestListResultIterator
|
|||||||
type WebTestListResultPage = original.WebTestListResultPage
|
type WebTestListResultPage = original.WebTestListResultPage
|
||||||
type WebTestProperties = original.WebTestProperties
|
type WebTestProperties = original.WebTestProperties
|
||||||
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
|
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
|
||||||
|
type WebtestsResource = original.WebtestsResource
|
||||||
type Workbook = original.Workbook
|
type Workbook = original.Workbook
|
||||||
type WorkbookError = original.WorkbookError
|
type WorkbookError = original.WorkbookError
|
||||||
type WorkbookProperties = original.WorkbookProperties
|
type WorkbookProperties = original.WorkbookProperties
|
||||||
type Workbooks = original.Workbooks
|
type WorkbookResource = original.WorkbookResource
|
||||||
|
type WorkbooksListResult = original.WorkbooksListResult
|
||||||
type WorkItemConfiguration = original.WorkItemConfiguration
|
type WorkItemConfiguration = original.WorkItemConfiguration
|
||||||
type WorkItemConfigurationError = original.WorkItemConfigurationError
|
type WorkItemConfigurationError = original.WorkItemConfigurationError
|
||||||
|
type WorkItemConfigurationsListResult = original.WorkItemConfigurationsListResult
|
||||||
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
|
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
|
||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
|
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
|
||||||
type WebTestLocationsClient = original.WebTestLocationsClient
|
type WebTestLocationsClient = original.WebTestLocationsClient
|
||||||
type WebTestsClient = original.WebTestsClient
|
type WebTestsClient = original.WebTestsClient
|
||||||
type WorkbookClient = original.WorkbookClient
|
|
||||||
type WorkbooksClient = original.WorkbooksClient
|
type WorkbooksClient = original.WorkbooksClient
|
||||||
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
|
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
|
||||||
|
|
||||||
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient {
|
func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
|
||||||
return original.NewAnalyticsItemClient(subscriptionID)
|
return original.NewAnalyticsItemsClient(subscriptionID)
|
||||||
}
|
}
|
||||||
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient {
|
func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
|
||||||
return original.NewAnalyticsItemClientWithBaseURI(baseURI, subscriptionID)
|
return original.NewAnalyticsItemsClientWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
|
func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
|
||||||
return original.NewAnnotationsClient(subscriptionID)
|
return original.NewAnnotationsClient(subscriptionID)
|
||||||
@@ -271,12 +271,6 @@ func NewExportConfigurationsClient(subscriptionID string) ExportConfigurationsCl
|
|||||||
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
|
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
|
||||||
return original.NewExportConfigurationsClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func NewFavoritesClient(subscriptionID string) FavoritesClient {
|
||||||
return original.NewFavoritesClient(subscriptionID)
|
return original.NewFavoritesClient(subscriptionID)
|
||||||
}
|
}
|
||||||
@@ -352,12 +346,6 @@ func NewWebTestsClient(subscriptionID string) WebTestsClient {
|
|||||||
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
|
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
|
||||||
return original.NewWebTestsClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func NewWorkbooksClient(subscriptionID string) WorkbooksClient {
|
||||||
return original.NewWorkbooksClient(subscriptionID)
|
return original.NewWorkbooksClient(subscriptionID)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,6 +82,13 @@ const (
|
|||||||
DscConfigurationStatePublished DscConfigurationState = original.DscConfigurationStatePublished
|
DscConfigurationStatePublished DscConfigurationState = original.DscConfigurationStatePublished
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type GroupTypeEnum = original.GroupTypeEnum
|
||||||
|
|
||||||
|
const (
|
||||||
|
System GroupTypeEnum = original.System
|
||||||
|
User GroupTypeEnum = original.User
|
||||||
|
)
|
||||||
|
|
||||||
type HTTPStatusCode = original.HTTPStatusCode
|
type HTTPStatusCode = original.HTTPStatusCode
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -184,6 +191,7 @@ type KeyPermissions = original.KeyPermissions
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
Full KeyPermissions = original.Full
|
Full KeyPermissions = original.Full
|
||||||
|
Read KeyPermissions = original.Read
|
||||||
)
|
)
|
||||||
|
|
||||||
type ModuleProvisioningState = original.ModuleProvisioningState
|
type ModuleProvisioningState = original.ModuleProvisioningState
|
||||||
@@ -277,6 +285,7 @@ type ActivityListResultPage = original.ActivityListResultPage
|
|||||||
type ActivityOutputType = original.ActivityOutputType
|
type ActivityOutputType = original.ActivityOutputType
|
||||||
type ActivityParameter = original.ActivityParameter
|
type ActivityParameter = original.ActivityParameter
|
||||||
type ActivityParameterSet = original.ActivityParameterSet
|
type ActivityParameterSet = original.ActivityParameterSet
|
||||||
|
type ActivityParameterValidationSet = original.ActivityParameterValidationSet
|
||||||
type ActivityProperties = original.ActivityProperties
|
type ActivityProperties = original.ActivityProperties
|
||||||
type AdvancedSchedule = original.AdvancedSchedule
|
type AdvancedSchedule = original.AdvancedSchedule
|
||||||
type AdvancedScheduleMonthlyOccurrence = original.AdvancedScheduleMonthlyOccurrence
|
type AdvancedScheduleMonthlyOccurrence = original.AdvancedScheduleMonthlyOccurrence
|
||||||
@@ -373,7 +382,6 @@ type JobListResult = original.JobListResult
|
|||||||
type JobListResultIterator = original.JobListResultIterator
|
type JobListResultIterator = original.JobListResultIterator
|
||||||
type JobListResultPage = original.JobListResultPage
|
type JobListResultPage = original.JobListResultPage
|
||||||
type JobProperties = original.JobProperties
|
type JobProperties = original.JobProperties
|
||||||
type JobProvisioningStateProperty = original.JobProvisioningStateProperty
|
|
||||||
type JobSchedule = original.JobSchedule
|
type JobSchedule = original.JobSchedule
|
||||||
type JobScheduleCreateParameters = original.JobScheduleCreateParameters
|
type JobScheduleCreateParameters = original.JobScheduleCreateParameters
|
||||||
type JobScheduleCreateProperties = original.JobScheduleCreateProperties
|
type JobScheduleCreateProperties = original.JobScheduleCreateProperties
|
||||||
@@ -438,9 +446,9 @@ type Sku = original.Sku
|
|||||||
type Statistics = original.Statistics
|
type Statistics = original.Statistics
|
||||||
type StatisticsListResult = original.StatisticsListResult
|
type StatisticsListResult = original.StatisticsListResult
|
||||||
type String = original.String
|
type String = original.String
|
||||||
type SubResource = original.SubResource
|
|
||||||
type TestJob = original.TestJob
|
type TestJob = original.TestJob
|
||||||
type TestJobCreateParameters = original.TestJobCreateParameters
|
type TestJobCreateParameters = original.TestJobCreateParameters
|
||||||
|
type TrackedResource = original.TrackedResource
|
||||||
type TypeField = original.TypeField
|
type TypeField = original.TypeField
|
||||||
type TypeFieldListResult = original.TypeFieldListResult
|
type TypeFieldListResult = original.TypeFieldListResult
|
||||||
type Usage = original.Usage
|
type Usage = original.Usage
|
||||||
@@ -613,6 +621,9 @@ func PossibleDscConfigurationProvisioningStateValues() []DscConfigurationProvisi
|
|||||||
func PossibleDscConfigurationStateValues() []DscConfigurationState {
|
func PossibleDscConfigurationStateValues() []DscConfigurationState {
|
||||||
return original.PossibleDscConfigurationStateValues()
|
return original.PossibleDscConfigurationStateValues()
|
||||||
}
|
}
|
||||||
|
func PossibleGroupTypeEnumValues() []GroupTypeEnum {
|
||||||
|
return original.PossibleGroupTypeEnumValues()
|
||||||
|
}
|
||||||
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
|
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
|
||||||
return original.PossibleHTTPStatusCodeValues()
|
return original.PossibleHTTPStatusCodeValues()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,13 +46,6 @@ const (
|
|||||||
Landmarks Details = original.Landmarks
|
Landmarks Details = original.Landmarks
|
||||||
)
|
)
|
||||||
|
|
||||||
type DomainModels = original.DomainModels
|
|
||||||
|
|
||||||
const (
|
|
||||||
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
|
|
||||||
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
|
|
||||||
)
|
|
||||||
|
|
||||||
type ErrorCodes = original.ErrorCodes
|
type ErrorCodes = original.ErrorCodes
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -135,8 +128,8 @@ type AdultInfo = original.AdultInfo
|
|||||||
type Category = original.Category
|
type Category = original.Category
|
||||||
type CategoryDetail = original.CategoryDetail
|
type CategoryDetail = original.CategoryDetail
|
||||||
type CelebritiesModel = original.CelebritiesModel
|
type CelebritiesModel = original.CelebritiesModel
|
||||||
|
type CelebrityResults = original.CelebrityResults
|
||||||
type ColorInfo = original.ColorInfo
|
type ColorInfo = original.ColorInfo
|
||||||
type DomainModelResult = original.DomainModelResult
|
|
||||||
type DomainModelResults = original.DomainModelResults
|
type DomainModelResults = original.DomainModelResults
|
||||||
type Error = original.Error
|
type Error = original.Error
|
||||||
type FaceDescription = original.FaceDescription
|
type FaceDescription = original.FaceDescription
|
||||||
@@ -149,6 +142,8 @@ type ImageMetadata = original.ImageMetadata
|
|||||||
type ImageTag = original.ImageTag
|
type ImageTag = original.ImageTag
|
||||||
type ImageType = original.ImageType
|
type ImageType = original.ImageType
|
||||||
type ImageURL = original.ImageURL
|
type ImageURL = original.ImageURL
|
||||||
|
type LandmarkResults = original.LandmarkResults
|
||||||
|
type LandmarkResultsLandmarksItem = original.LandmarkResultsLandmarksItem
|
||||||
type Line = original.Line
|
type Line = original.Line
|
||||||
type ListModelsResult = original.ListModelsResult
|
type ListModelsResult = original.ListModelsResult
|
||||||
type ModelDescription = original.ModelDescription
|
type ModelDescription = original.ModelDescription
|
||||||
@@ -174,9 +169,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
|
|||||||
func PossibleDetailsValues() []Details {
|
func PossibleDetailsValues() []Details {
|
||||||
return original.PossibleDetailsValues()
|
return original.PossibleDetailsValues()
|
||||||
}
|
}
|
||||||
func PossibleDomainModelsValues() []DomainModels {
|
|
||||||
return original.PossibleDomainModelsValues()
|
|
||||||
}
|
|
||||||
func PossibleErrorCodesValues() []ErrorCodes {
|
func PossibleErrorCodesValues() []ErrorCodes {
|
||||||
return original.PossibleErrorCodesValues()
|
return original.PossibleErrorCodesValues()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,12 +56,16 @@ type AzureRegions = original.AzureRegions
|
|||||||
const (
|
const (
|
||||||
Australiaeast AzureRegions = original.Australiaeast
|
Australiaeast AzureRegions = original.Australiaeast
|
||||||
Brazilsouth AzureRegions = original.Brazilsouth
|
Brazilsouth AzureRegions = original.Brazilsouth
|
||||||
|
Canadacentral AzureRegions = original.Canadacentral
|
||||||
|
Centralindia AzureRegions = original.Centralindia
|
||||||
Eastasia AzureRegions = original.Eastasia
|
Eastasia AzureRegions = original.Eastasia
|
||||||
Eastus AzureRegions = original.Eastus
|
Eastus AzureRegions = original.Eastus
|
||||||
Eastus2 AzureRegions = original.Eastus2
|
Eastus2 AzureRegions = original.Eastus2
|
||||||
|
Japaneast AzureRegions = original.Japaneast
|
||||||
Northeurope AzureRegions = original.Northeurope
|
Northeurope AzureRegions = original.Northeurope
|
||||||
Southcentralus AzureRegions = original.Southcentralus
|
Southcentralus AzureRegions = original.Southcentralus
|
||||||
Southeastasia AzureRegions = original.Southeastasia
|
Southeastasia AzureRegions = original.Southeastasia
|
||||||
|
Uksouth AzureRegions = original.Uksouth
|
||||||
Westcentralus AzureRegions = original.Westcentralus
|
Westcentralus AzureRegions = original.Westcentralus
|
||||||
Westeurope AzureRegions = original.Westeurope
|
Westeurope AzureRegions = original.Westeurope
|
||||||
Westus AzureRegions = original.Westus
|
Westus AzureRegions = original.Westus
|
||||||
|
|||||||
@@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
|
|||||||
const (
|
const (
|
||||||
Australiaeast AzureRegions = original.Australiaeast
|
Australiaeast AzureRegions = original.Australiaeast
|
||||||
Brazilsouth AzureRegions = original.Brazilsouth
|
Brazilsouth AzureRegions = original.Brazilsouth
|
||||||
|
Canadacentral AzureRegions = original.Canadacentral
|
||||||
|
Centralindia AzureRegions = original.Centralindia
|
||||||
Eastasia AzureRegions = original.Eastasia
|
Eastasia AzureRegions = original.Eastasia
|
||||||
Eastus AzureRegions = original.Eastus
|
Eastus AzureRegions = original.Eastus
|
||||||
Eastus2 AzureRegions = original.Eastus2
|
Eastus2 AzureRegions = original.Eastus2
|
||||||
|
Japaneast AzureRegions = original.Japaneast
|
||||||
Northeurope AzureRegions = original.Northeurope
|
Northeurope AzureRegions = original.Northeurope
|
||||||
Southcentralus AzureRegions = original.Southcentralus
|
Southcentralus AzureRegions = original.Southcentralus
|
||||||
Southeastasia AzureRegions = original.Southeastasia
|
Southeastasia AzureRegions = original.Southeastasia
|
||||||
|
Uksouth AzureRegions = original.Uksouth
|
||||||
Westcentralus AzureRegions = original.Westcentralus
|
Westcentralus AzureRegions = original.Westcentralus
|
||||||
Westeurope AzureRegions = original.Westeurope
|
Westeurope AzureRegions = original.Westeurope
|
||||||
Westus AzureRegions = original.Westus
|
Westus AzureRegions = original.Westus
|
||||||
|
|||||||
@@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
|
|||||||
const (
|
const (
|
||||||
Australiaeast AzureRegions = original.Australiaeast
|
Australiaeast AzureRegions = original.Australiaeast
|
||||||
Brazilsouth AzureRegions = original.Brazilsouth
|
Brazilsouth AzureRegions = original.Brazilsouth
|
||||||
|
Canadacentral AzureRegions = original.Canadacentral
|
||||||
|
Centralindia AzureRegions = original.Centralindia
|
||||||
Eastasia AzureRegions = original.Eastasia
|
Eastasia AzureRegions = original.Eastasia
|
||||||
Eastus AzureRegions = original.Eastus
|
Eastus AzureRegions = original.Eastus
|
||||||
Eastus2 AzureRegions = original.Eastus2
|
Eastus2 AzureRegions = original.Eastus2
|
||||||
|
Japaneast AzureRegions = original.Japaneast
|
||||||
Northeurope AzureRegions = original.Northeurope
|
Northeurope AzureRegions = original.Northeurope
|
||||||
Southcentralus AzureRegions = original.Southcentralus
|
Southcentralus AzureRegions = original.Southcentralus
|
||||||
Southeastasia AzureRegions = original.Southeastasia
|
Southeastasia AzureRegions = original.Southeastasia
|
||||||
|
Uksouth AzureRegions = original.Uksouth
|
||||||
Westcentralus AzureRegions = original.Westcentralus
|
Westcentralus AzureRegions = original.Westcentralus
|
||||||
Westeurope AzureRegions = original.Westeurope
|
Westeurope AzureRegions = original.Westeurope
|
||||||
Westus AzureRegions = original.Westus
|
Westus AzureRegions = original.Westus
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ type BaiduCredentialProperties = original.BaiduCredentialProperties
|
|||||||
type CheckAvailabilityParameters = original.CheckAvailabilityParameters
|
type CheckAvailabilityParameters = original.CheckAvailabilityParameters
|
||||||
type CheckAvailabilityResult = original.CheckAvailabilityResult
|
type CheckAvailabilityResult = original.CheckAvailabilityResult
|
||||||
type CreateOrUpdateParameters = original.CreateOrUpdateParameters
|
type CreateOrUpdateParameters = original.CreateOrUpdateParameters
|
||||||
|
type DebugSendResponse = original.DebugSendResponse
|
||||||
|
type DebugSendResult = original.DebugSendResult
|
||||||
type ErrorResponse = original.ErrorResponse
|
type ErrorResponse = original.ErrorResponse
|
||||||
type GcmCredential = original.GcmCredential
|
type GcmCredential = original.GcmCredential
|
||||||
type GcmCredentialProperties = original.GcmCredentialProperties
|
type GcmCredentialProperties = original.GcmCredentialProperties
|
||||||
@@ -79,6 +81,7 @@ type OperationDisplay = original.OperationDisplay
|
|||||||
type OperationListResult = original.OperationListResult
|
type OperationListResult = original.OperationListResult
|
||||||
type OperationListResultIterator = original.OperationListResultIterator
|
type OperationListResultIterator = original.OperationListResultIterator
|
||||||
type OperationListResultPage = original.OperationListResultPage
|
type OperationListResultPage = original.OperationListResultPage
|
||||||
|
type PatchParameters = original.PatchParameters
|
||||||
type PnsCredentialsProperties = original.PnsCredentialsProperties
|
type PnsCredentialsProperties = original.PnsCredentialsProperties
|
||||||
type PnsCredentialsResource = original.PnsCredentialsResource
|
type PnsCredentialsResource = original.PnsCredentialsResource
|
||||||
type PolicykeyResource = original.PolicykeyResource
|
type PolicykeyResource = original.PolicykeyResource
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ type SearchParameters = original.SearchParameters
|
|||||||
type SearchResultsResponse = original.SearchResultsResponse
|
type SearchResultsResponse = original.SearchResultsResponse
|
||||||
type SearchSchemaValue = original.SearchSchemaValue
|
type SearchSchemaValue = original.SearchSchemaValue
|
||||||
type SearchSort = original.SearchSort
|
type SearchSort = original.SearchSort
|
||||||
type SetObject = original.SetObject
|
|
||||||
type StorageAccount = original.StorageAccount
|
type StorageAccount = original.StorageAccount
|
||||||
type StorageInsight = original.StorageInsight
|
type StorageInsight = original.StorageInsight
|
||||||
type StorageInsightListResult = original.StorageInsightListResult
|
type StorageInsightListResult = original.StorageInsightListResult
|
||||||
@@ -81,7 +80,6 @@ type WorkspacePurgeBodyFilters = original.WorkspacePurgeBodyFilters
|
|||||||
type WorkspacePurgeResponse = original.WorkspacePurgeResponse
|
type WorkspacePurgeResponse = original.WorkspacePurgeResponse
|
||||||
type WorkspacePurgeStatusResponse = original.WorkspacePurgeStatusResponse
|
type WorkspacePurgeStatusResponse = original.WorkspacePurgeStatusResponse
|
||||||
type WorkspacesGetSearchResultsFuture = original.WorkspacesGetSearchResultsFuture
|
type WorkspacesGetSearchResultsFuture = original.WorkspacesGetSearchResultsFuture
|
||||||
type WorkspacesPurgeFuture = original.WorkspacesPurgeFuture
|
|
||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
type SavedSearchesClient = original.SavedSearchesClient
|
type SavedSearchesClient = original.SavedSearchesClient
|
||||||
type StorageInsightsClient = original.StorageInsightsClient
|
type StorageInsightsClient = original.StorageInsightsClient
|
||||||
|
|||||||
@@ -52,17 +52,22 @@ const (
|
|||||||
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
|
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
|
||||||
ContainerTypeCluster ContainerType = original.ContainerTypeCluster
|
ContainerTypeCluster ContainerType = original.ContainerTypeCluster
|
||||||
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
|
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
|
||||||
|
ContainerTypeExchangeDAG ContainerType = original.ContainerTypeExchangeDAG
|
||||||
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
|
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
|
||||||
|
ContainerTypeHyperVCluster ContainerType = original.ContainerTypeHyperVCluster
|
||||||
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
|
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
|
||||||
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
|
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
|
||||||
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
|
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
|
||||||
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
|
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
|
||||||
|
ContainerTypeSharepointFarm ContainerType = original.ContainerTypeSharepointFarm
|
||||||
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
|
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
|
||||||
|
ContainerTypeSQLCluster ContainerType = original.ContainerTypeSQLCluster
|
||||||
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
|
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
|
||||||
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
|
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
|
||||||
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
|
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
|
||||||
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
|
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
|
||||||
ContainerTypeWindows ContainerType = original.ContainerTypeWindows
|
ContainerTypeWindows ContainerType = original.ContainerTypeWindows
|
||||||
|
ContainerTypeWindowsClient ContainerType = original.ContainerTypeWindowsClient
|
||||||
)
|
)
|
||||||
|
|
||||||
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
|
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
|
||||||
@@ -74,13 +79,13 @@ const (
|
|||||||
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
|
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
|
||||||
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
|
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
|
||||||
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
|
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
|
||||||
ContainerTypeMABWindowsContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeMABWindowsContainer
|
|
||||||
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
|
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
|
||||||
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
|
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
|
||||||
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
|
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
|
||||||
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
|
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
|
||||||
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
|
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
|
||||||
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
|
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
|
||||||
|
ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1
|
||||||
)
|
)
|
||||||
|
|
||||||
type CopyOptions = original.CopyOptions
|
type CopyOptions = original.CopyOptions
|
||||||
@@ -93,6 +98,14 @@ const (
|
|||||||
CopyOptionsSkip CopyOptions = original.CopyOptionsSkip
|
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
|
type DataSourceType = original.DataSourceType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -103,6 +116,7 @@ const (
|
|||||||
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
|
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
|
||||||
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
|
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
|
||||||
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
|
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
|
||||||
|
DataSourceTypeSAPHanaDatabase DataSourceType = original.DataSourceTypeSAPHanaDatabase
|
||||||
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
|
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
|
||||||
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
|
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
|
||||||
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
|
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
|
||||||
@@ -149,6 +163,7 @@ const (
|
|||||||
type FeatureType = original.FeatureType
|
type FeatureType = original.FeatureType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
FeatureTypeAzureBackupGoals FeatureType = original.FeatureTypeAzureBackupGoals
|
||||||
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
|
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
|
||||||
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
|
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
|
||||||
)
|
)
|
||||||
@@ -241,6 +256,7 @@ const (
|
|||||||
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
|
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
|
||||||
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
|
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
|
||||||
ItemTypeInvalid ItemType = original.ItemTypeInvalid
|
ItemTypeInvalid ItemType = original.ItemTypeInvalid
|
||||||
|
ItemTypeSAPHanaDatabase ItemType = original.ItemTypeSAPHanaDatabase
|
||||||
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
|
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
|
||||||
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
|
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
|
||||||
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
|
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
|
||||||
@@ -309,17 +325,22 @@ const (
|
|||||||
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
|
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
|
||||||
MabServerTypeCluster MabServerType = original.MabServerTypeCluster
|
MabServerTypeCluster MabServerType = original.MabServerTypeCluster
|
||||||
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
|
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
|
||||||
|
MabServerTypeExchangeDAG MabServerType = original.MabServerTypeExchangeDAG
|
||||||
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
|
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
|
||||||
|
MabServerTypeHyperVCluster MabServerType = original.MabServerTypeHyperVCluster
|
||||||
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
|
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
|
||||||
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
|
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
|
||||||
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
|
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
|
||||||
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
|
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
|
||||||
|
MabServerTypeSharepointFarm MabServerType = original.MabServerTypeSharepointFarm
|
||||||
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
|
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
|
||||||
|
MabServerTypeSQLCluster MabServerType = original.MabServerTypeSQLCluster
|
||||||
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
|
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
|
||||||
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
|
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
|
||||||
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
|
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
|
||||||
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
|
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
|
||||||
MabServerTypeWindows MabServerType = original.MabServerTypeWindows
|
MabServerTypeWindows MabServerType = original.MabServerTypeWindows
|
||||||
|
MabServerTypeWindowsClient MabServerType = original.MabServerTypeWindowsClient
|
||||||
)
|
)
|
||||||
|
|
||||||
type ManagementType = original.ManagementType
|
type ManagementType = original.ManagementType
|
||||||
@@ -404,6 +425,8 @@ type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint
|
|||||||
const (
|
const (
|
||||||
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
|
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
|
||||||
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
|
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
|
||||||
|
ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint
|
||||||
|
ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint
|
||||||
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
|
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
|
||||||
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
|
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
|
||||||
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
|
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
|
||||||
@@ -416,6 +439,8 @@ type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest
|
|||||||
const (
|
const (
|
||||||
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
|
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
|
||||||
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
|
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
|
||||||
|
ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest
|
||||||
|
ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest
|
||||||
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
|
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
|
||||||
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
|
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
|
||||||
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
|
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
|
||||||
@@ -456,6 +481,8 @@ const (
|
|||||||
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
|
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
|
||||||
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
|
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
|
||||||
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
|
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
|
||||||
|
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
|
||||||
|
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
|
||||||
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
|
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
|
||||||
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
|
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
|
||||||
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
|
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
|
||||||
@@ -488,6 +515,8 @@ type ProtectedItemType = original.ProtectedItemType
|
|||||||
const (
|
const (
|
||||||
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
|
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
|
||||||
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
|
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
|
||||||
|
ProtectedItemTypeAzureVMWorkloadProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadProtectedItem
|
||||||
|
ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase
|
||||||
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
|
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
|
||||||
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
|
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
|
||||||
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
|
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
|
||||||
@@ -502,7 +531,10 @@ type ProtectionIntentItemType = original.ProtectionIntentItemType
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
|
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
|
||||||
|
ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent
|
||||||
|
ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent
|
||||||
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
|
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
|
||||||
|
ProtectionIntentItemTypeRecoveryServiceVaultItem ProtectionIntentItemType = original.ProtectionIntentItemTypeRecoveryServiceVaultItem
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProtectionState = original.ProtectionState
|
type ProtectionState = original.ProtectionState
|
||||||
@@ -697,17 +729,20 @@ const (
|
|||||||
type WeekOfMonth = original.WeekOfMonth
|
type WeekOfMonth = original.WeekOfMonth
|
||||||
|
|
||||||
const (
|
const (
|
||||||
First WeekOfMonth = original.First
|
WeekOfMonthFirst WeekOfMonth = original.WeekOfMonthFirst
|
||||||
Fourth WeekOfMonth = original.Fourth
|
WeekOfMonthFourth WeekOfMonth = original.WeekOfMonthFourth
|
||||||
Last WeekOfMonth = original.Last
|
WeekOfMonthInvalid WeekOfMonth = original.WeekOfMonthInvalid
|
||||||
Second WeekOfMonth = original.Second
|
WeekOfMonthLast WeekOfMonth = original.WeekOfMonthLast
|
||||||
Third WeekOfMonth = original.Third
|
WeekOfMonthSecond WeekOfMonth = original.WeekOfMonthSecond
|
||||||
|
WeekOfMonthThird WeekOfMonth = original.WeekOfMonthThird
|
||||||
)
|
)
|
||||||
|
|
||||||
type WorkloadItemType = original.WorkloadItemType
|
type WorkloadItemType = original.WorkloadItemType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
|
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
|
||||||
|
WorkloadItemTypeSAPHanaDatabase WorkloadItemType = original.WorkloadItemTypeSAPHanaDatabase
|
||||||
|
WorkloadItemTypeSAPHanaSystem WorkloadItemType = original.WorkloadItemTypeSAPHanaSystem
|
||||||
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
|
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
|
||||||
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
|
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
|
||||||
)
|
)
|
||||||
@@ -716,6 +751,8 @@ type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadI
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
|
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
|
||||||
|
WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1
|
||||||
|
WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1
|
||||||
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
|
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
|
||||||
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
|
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
|
||||||
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
|
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
|
||||||
@@ -731,6 +768,7 @@ const (
|
|||||||
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
|
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
|
||||||
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
|
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
|
||||||
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
|
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
|
||||||
|
WorkloadTypeSAPHanaDatabase WorkloadType = original.WorkloadTypeSAPHanaDatabase
|
||||||
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
|
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
|
||||||
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
|
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
|
||||||
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
|
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
|
||||||
@@ -739,6 +777,7 @@ const (
|
|||||||
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
|
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest
|
||||||
type AzureBackupServerContainer = original.AzureBackupServerContainer
|
type AzureBackupServerContainer = original.AzureBackupServerContainer
|
||||||
type AzureBackupServerEngine = original.AzureBackupServerEngine
|
type AzureBackupServerEngine = original.AzureBackupServerEngine
|
||||||
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
|
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
|
||||||
@@ -763,6 +802,8 @@ type BasicAzureIaaSVMProtectedItem = original.BasicAzureIaaSVMProtectedItem
|
|||||||
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
|
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
|
||||||
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
|
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
|
||||||
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
|
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
|
||||||
|
type BasicAzureRecoveryServiceVaultProtectionIntent = original.BasicAzureRecoveryServiceVaultProtectionIntent
|
||||||
|
type AzureRecoveryServiceVaultProtectionIntent = original.AzureRecoveryServiceVaultProtectionIntent
|
||||||
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
|
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
|
||||||
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
|
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
|
||||||
type AzureSQLContainer = original.AzureSQLContainer
|
type AzureSQLContainer = original.AzureSQLContainer
|
||||||
@@ -783,14 +824,23 @@ type BasicAzureVMWorkloadItem = original.BasicAzureVMWorkloadItem
|
|||||||
type AzureVMWorkloadItem = original.AzureVMWorkloadItem
|
type AzureVMWorkloadItem = original.AzureVMWorkloadItem
|
||||||
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
|
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
|
||||||
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
|
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
|
||||||
|
type BasicAzureVMWorkloadProtectedItem = original.BasicAzureVMWorkloadProtectedItem
|
||||||
|
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
|
||||||
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
|
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
|
||||||
type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy
|
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 AzureVMWorkloadSQLAvailabilityGroupProtectableItem = original.AzureVMWorkloadSQLAvailabilityGroupProtectableItem
|
||||||
type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
|
type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
|
||||||
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
|
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
|
||||||
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
|
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
|
||||||
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
|
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
|
||||||
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
|
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
|
||||||
|
type BasicAzureWorkloadAutoProtectionIntent = original.BasicAzureWorkloadAutoProtectionIntent
|
||||||
|
type AzureWorkloadAutoProtectionIntent = original.AzureWorkloadAutoProtectionIntent
|
||||||
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
|
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
|
||||||
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
|
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
|
||||||
type AzureWorkloadContainer = original.AzureWorkloadContainer
|
type AzureWorkloadContainer = original.AzureWorkloadContainer
|
||||||
@@ -803,6 +853,13 @@ type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint
|
|||||||
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
|
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
|
||||||
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
|
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
|
||||||
type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest
|
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 AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint
|
||||||
type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
|
type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
|
||||||
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
|
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
|
||||||
@@ -815,6 +872,7 @@ type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject
|
|||||||
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
|
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
|
||||||
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
|
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
|
||||||
type BMSContainerQueryObject = original.BMSContainerQueryObject
|
type BMSContainerQueryObject = original.BMSContainerQueryObject
|
||||||
|
type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject
|
||||||
type BMSPOQueryObject = original.BMSPOQueryObject
|
type BMSPOQueryObject = original.BMSPOQueryObject
|
||||||
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
|
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
|
||||||
type BMSRPQueryObject = original.BMSRPQueryObject
|
type BMSRPQueryObject = original.BMSRPQueryObject
|
||||||
@@ -1102,6 +1160,9 @@ func PossibleContainerTypeBasicProtectionContainerValues() []ContainerTypeBasicP
|
|||||||
func PossibleCopyOptionsValues() []CopyOptions {
|
func PossibleCopyOptionsValues() []CopyOptions {
|
||||||
return original.PossibleCopyOptionsValues()
|
return original.PossibleCopyOptionsValues()
|
||||||
}
|
}
|
||||||
|
func PossibleCreateModeValues() []CreateMode {
|
||||||
|
return original.PossibleCreateModeValues()
|
||||||
|
}
|
||||||
func PossibleDataSourceTypeValues() []DataSourceType {
|
func PossibleDataSourceTypeValues() []DataSourceType {
|
||||||
return original.PossibleDataSourceTypeValues()
|
return original.PossibleDataSourceTypeValues()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,12 @@ package adhybridhealthservice
|
|||||||
import original "github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice"
|
import original "github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice"
|
||||||
|
|
||||||
type AdDomainServiceMembersClient = original.AdDomainServiceMembersClient
|
type AdDomainServiceMembersClient = original.AdDomainServiceMembersClient
|
||||||
|
type AddsServiceClient = original.AddsServiceClient
|
||||||
type AddsServiceMembersClient = original.AddsServiceMembersClient
|
type AddsServiceMembersClient = original.AddsServiceMembersClient
|
||||||
type AddsServicesClient = original.AddsServicesClient
|
type AddsServicesClient = original.AddsServicesClient
|
||||||
|
type AddsServicesReplicationStatusClient = original.AddsServicesReplicationStatusClient
|
||||||
|
type AddsServicesServiceMembersClient = original.AddsServicesServiceMembersClient
|
||||||
|
type AddsServicesUserPreferenceClient = original.AddsServicesUserPreferenceClient
|
||||||
type AlertsClient = original.AlertsClient
|
type AlertsClient = original.AlertsClient
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -230,6 +234,7 @@ type Partition = original.Partition
|
|||||||
type PartitionScope = original.PartitionScope
|
type PartitionScope = original.PartitionScope
|
||||||
type PasswordHashSyncConfiguration = original.PasswordHashSyncConfiguration
|
type PasswordHashSyncConfiguration = original.PasswordHashSyncConfiguration
|
||||||
type PasswordManagementSettings = original.PasswordManagementSettings
|
type PasswordManagementSettings = original.PasswordManagementSettings
|
||||||
|
type ReplicationDetailsList = original.ReplicationDetailsList
|
||||||
type ReplicationStatus = original.ReplicationStatus
|
type ReplicationStatus = original.ReplicationStatus
|
||||||
type ReplicationSummary = original.ReplicationSummary
|
type ReplicationSummary = original.ReplicationSummary
|
||||||
type ReplicationSummaryList = original.ReplicationSummaryList
|
type ReplicationSummaryList = original.ReplicationSummaryList
|
||||||
@@ -250,8 +255,11 @@ type ServicesPage = original.ServicesPage
|
|||||||
type TabularExportError = original.TabularExportError
|
type TabularExportError = original.TabularExportError
|
||||||
type Tenant = original.Tenant
|
type Tenant = original.Tenant
|
||||||
type TenantOnboardingDetails = original.TenantOnboardingDetails
|
type TenantOnboardingDetails = original.TenantOnboardingDetails
|
||||||
|
type UserPreference = original.UserPreference
|
||||||
type ValueDelta = original.ValueDelta
|
type ValueDelta = original.ValueDelta
|
||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
|
type ReportsClient = original.ReportsClient
|
||||||
|
type ServiceClient = original.ServiceClient
|
||||||
type ServiceMembersClient = original.ServiceMembersClient
|
type ServiceMembersClient = original.ServiceMembersClient
|
||||||
type ServicesClient = original.ServicesClient
|
type ServicesClient = original.ServicesClient
|
||||||
|
|
||||||
@@ -261,6 +269,12 @@ func NewAdDomainServiceMembersClient() AdDomainServiceMembersClient {
|
|||||||
func NewAdDomainServiceMembersClientWithBaseURI(baseURI string) AdDomainServiceMembersClient {
|
func NewAdDomainServiceMembersClientWithBaseURI(baseURI string) AdDomainServiceMembersClient {
|
||||||
return original.NewAdDomainServiceMembersClientWithBaseURI(baseURI)
|
return original.NewAdDomainServiceMembersClientWithBaseURI(baseURI)
|
||||||
}
|
}
|
||||||
|
func NewAddsServiceClient() AddsServiceClient {
|
||||||
|
return original.NewAddsServiceClient()
|
||||||
|
}
|
||||||
|
func NewAddsServiceClientWithBaseURI(baseURI string) AddsServiceClient {
|
||||||
|
return original.NewAddsServiceClientWithBaseURI(baseURI)
|
||||||
|
}
|
||||||
func NewAddsServiceMembersClient() AddsServiceMembersClient {
|
func NewAddsServiceMembersClient() AddsServiceMembersClient {
|
||||||
return original.NewAddsServiceMembersClient()
|
return original.NewAddsServiceMembersClient()
|
||||||
}
|
}
|
||||||
@@ -273,6 +287,24 @@ func NewAddsServicesClient() AddsServicesClient {
|
|||||||
func NewAddsServicesClientWithBaseURI(baseURI string) AddsServicesClient {
|
func NewAddsServicesClientWithBaseURI(baseURI string) AddsServicesClient {
|
||||||
return original.NewAddsServicesClientWithBaseURI(baseURI)
|
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 {
|
func NewAlertsClient() AlertsClient {
|
||||||
return original.NewAlertsClient()
|
return original.NewAlertsClient()
|
||||||
}
|
}
|
||||||
@@ -336,6 +368,18 @@ func NewOperationsClient() OperationsClient {
|
|||||||
func NewOperationsClientWithBaseURI(baseURI string) OperationsClient {
|
func NewOperationsClientWithBaseURI(baseURI string) OperationsClient {
|
||||||
return original.NewOperationsClientWithBaseURI(baseURI)
|
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 {
|
func NewServiceMembersClient() ServiceMembersClient {
|
||||||
return original.NewServiceMembersClient()
|
return original.NewServiceMembersClient()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ type OperationEntityListResult = original.OperationEntityListResult
|
|||||||
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
|
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
|
||||||
type OperationEntityListResultPage = original.OperationEntityListResultPage
|
type OperationEntityListResultPage = original.OperationEntityListResultPage
|
||||||
type RecommendationProperties = original.RecommendationProperties
|
type RecommendationProperties = original.RecommendationProperties
|
||||||
type RecommendationsGetGenerateStatusFuture = original.RecommendationsGetGenerateStatusFuture
|
|
||||||
type Resource = original.Resource
|
type Resource = original.Resource
|
||||||
type ResourceRecommendationBase = original.ResourceRecommendationBase
|
type ResourceRecommendationBase = original.ResourceRecommendationBase
|
||||||
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult
|
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ package insights
|
|||||||
|
|
||||||
import original "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/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 AnnotationsClient = original.AnnotationsClient
|
||||||
type APIKeysClient = original.APIKeysClient
|
type APIKeysClient = original.APIKeysClient
|
||||||
|
|
||||||
@@ -36,7 +36,6 @@ type ComponentFeatureCapabilitiesClient = original.ComponentFeatureCapabilitiesC
|
|||||||
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
|
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
|
||||||
type ComponentsClient = original.ComponentsClient
|
type ComponentsClient = original.ComponentsClient
|
||||||
type ExportConfigurationsClient = original.ExportConfigurationsClient
|
type ExportConfigurationsClient = original.ExportConfigurationsClient
|
||||||
type FavoriteClient = original.FavoriteClient
|
|
||||||
type FavoritesClient = original.FavoritesClient
|
type FavoritesClient = original.FavoritesClient
|
||||||
type ApplicationType = original.ApplicationType
|
type ApplicationType = original.ApplicationType
|
||||||
|
|
||||||
@@ -142,6 +141,7 @@ const (
|
|||||||
|
|
||||||
type Annotation = original.Annotation
|
type Annotation = original.Annotation
|
||||||
type AnnotationError = original.AnnotationError
|
type AnnotationError = original.AnnotationError
|
||||||
|
type AnnotationsListResult = original.AnnotationsListResult
|
||||||
type APIKeyRequest = original.APIKeyRequest
|
type APIKeyRequest = original.APIKeyRequest
|
||||||
type ApplicationInsightsComponent = original.ApplicationInsightsComponent
|
type ApplicationInsightsComponent = original.ApplicationInsightsComponent
|
||||||
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
|
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
|
||||||
@@ -170,7 +170,7 @@ type ComponentPurgeBody = original.ComponentPurgeBody
|
|||||||
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
|
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
|
||||||
type ComponentPurgeResponse = original.ComponentPurgeResponse
|
type ComponentPurgeResponse = original.ComponentPurgeResponse
|
||||||
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
|
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
|
||||||
type ComponentsPurgeFuture = original.ComponentsPurgeFuture
|
type ComponentsResource = original.ComponentsResource
|
||||||
type ErrorFieldContract = original.ErrorFieldContract
|
type ErrorFieldContract = original.ErrorFieldContract
|
||||||
type ErrorResponse = original.ErrorResponse
|
type ErrorResponse = original.ErrorResponse
|
||||||
type InnerError = original.InnerError
|
type InnerError = original.InnerError
|
||||||
@@ -180,13 +180,11 @@ type ListApplicationInsightsComponentAnalyticsItem = original.ListApplicationIns
|
|||||||
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
|
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
|
||||||
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
|
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
|
||||||
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
|
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
|
||||||
type ListWorkItemConfiguration = original.ListWorkItemConfiguration
|
|
||||||
type Operation = original.Operation
|
type Operation = original.Operation
|
||||||
type OperationDisplay = original.OperationDisplay
|
type OperationDisplay = original.OperationDisplay
|
||||||
type OperationListResult = original.OperationListResult
|
type OperationListResult = original.OperationListResult
|
||||||
type OperationListResultIterator = original.OperationListResultIterator
|
type OperationListResultIterator = original.OperationListResultIterator
|
||||||
type OperationListResultPage = original.OperationListResultPage
|
type OperationListResultPage = original.OperationListResultPage
|
||||||
type Resource = original.Resource
|
|
||||||
type SetObject = original.SetObject
|
type SetObject = original.SetObject
|
||||||
type TagsResource = original.TagsResource
|
type TagsResource = original.TagsResource
|
||||||
type WebTest = original.WebTest
|
type WebTest = original.WebTest
|
||||||
@@ -196,26 +194,28 @@ type WebTestListResultIterator = original.WebTestListResultIterator
|
|||||||
type WebTestListResultPage = original.WebTestListResultPage
|
type WebTestListResultPage = original.WebTestListResultPage
|
||||||
type WebTestProperties = original.WebTestProperties
|
type WebTestProperties = original.WebTestProperties
|
||||||
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
|
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
|
||||||
|
type WebtestsResource = original.WebtestsResource
|
||||||
type Workbook = original.Workbook
|
type Workbook = original.Workbook
|
||||||
type WorkbookError = original.WorkbookError
|
type WorkbookError = original.WorkbookError
|
||||||
type WorkbookProperties = original.WorkbookProperties
|
type WorkbookProperties = original.WorkbookProperties
|
||||||
type Workbooks = original.Workbooks
|
type WorkbookResource = original.WorkbookResource
|
||||||
|
type WorkbooksListResult = original.WorkbooksListResult
|
||||||
type WorkItemConfiguration = original.WorkItemConfiguration
|
type WorkItemConfiguration = original.WorkItemConfiguration
|
||||||
type WorkItemConfigurationError = original.WorkItemConfigurationError
|
type WorkItemConfigurationError = original.WorkItemConfigurationError
|
||||||
|
type WorkItemConfigurationsListResult = original.WorkItemConfigurationsListResult
|
||||||
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
|
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
|
||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
|
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
|
||||||
type WebTestLocationsClient = original.WebTestLocationsClient
|
type WebTestLocationsClient = original.WebTestLocationsClient
|
||||||
type WebTestsClient = original.WebTestsClient
|
type WebTestsClient = original.WebTestsClient
|
||||||
type WorkbookClient = original.WorkbookClient
|
|
||||||
type WorkbooksClient = original.WorkbooksClient
|
type WorkbooksClient = original.WorkbooksClient
|
||||||
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
|
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
|
||||||
|
|
||||||
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient {
|
func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
|
||||||
return original.NewAnalyticsItemClient(subscriptionID)
|
return original.NewAnalyticsItemsClient(subscriptionID)
|
||||||
}
|
}
|
||||||
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient {
|
func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
|
||||||
return original.NewAnalyticsItemClientWithBaseURI(baseURI, subscriptionID)
|
return original.NewAnalyticsItemsClientWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
|
func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
|
||||||
return original.NewAnnotationsClient(subscriptionID)
|
return original.NewAnnotationsClient(subscriptionID)
|
||||||
@@ -271,12 +271,6 @@ func NewExportConfigurationsClient(subscriptionID string) ExportConfigurationsCl
|
|||||||
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
|
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
|
||||||
return original.NewExportConfigurationsClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func NewFavoritesClient(subscriptionID string) FavoritesClient {
|
||||||
return original.NewFavoritesClient(subscriptionID)
|
return original.NewFavoritesClient(subscriptionID)
|
||||||
}
|
}
|
||||||
@@ -352,12 +346,6 @@ func NewWebTestsClient(subscriptionID string) WebTestsClient {
|
|||||||
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
|
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
|
||||||
return original.NewWebTestsClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func NewWorkbooksClient(subscriptionID string) WorkbooksClient {
|
||||||
return original.NewWorkbooksClient(subscriptionID)
|
return original.NewWorkbooksClient(subscriptionID)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,8 +112,8 @@ const (
|
|||||||
Chainer ToolType = original.Chainer
|
Chainer ToolType = original.Chainer
|
||||||
Cntk ToolType = original.Cntk
|
Cntk ToolType = original.Cntk
|
||||||
Custom ToolType = original.Custom
|
Custom ToolType = original.Custom
|
||||||
|
Custommpi ToolType = original.Custommpi
|
||||||
Horovod ToolType = original.Horovod
|
Horovod ToolType = original.Horovod
|
||||||
Mpi ToolType = original.Mpi
|
|
||||||
Tensorflow ToolType = original.Tensorflow
|
Tensorflow ToolType = original.Tensorflow
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -242,6 +242,7 @@ type WorkspaceListResultPage = original.WorkspaceListResultPage
|
|||||||
type WorkspaceProperties = original.WorkspaceProperties
|
type WorkspaceProperties = original.WorkspaceProperties
|
||||||
type WorkspacesCreateFuture = original.WorkspacesCreateFuture
|
type WorkspacesCreateFuture = original.WorkspacesCreateFuture
|
||||||
type WorkspacesDeleteFuture = original.WorkspacesDeleteFuture
|
type WorkspacesDeleteFuture = original.WorkspacesDeleteFuture
|
||||||
|
type WorkspaceUpdateParameters = original.WorkspaceUpdateParameters
|
||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
type UsagesClient = original.UsagesClient
|
type UsagesClient = original.UsagesClient
|
||||||
type WorkspacesClient = original.WorkspacesClient
|
type WorkspacesClient = original.WorkspacesClient
|
||||||
|
|||||||
176
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/cognitiveservices/autosuggest/models.go
generated
vendored
Normal file
176
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/cognitiveservices/autosuggest/models.go
generated
vendored
Normal 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()
|
||||||
|
}
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package computervision
|
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 BaseClient = original.BaseClient
|
||||||
type AzureRegions = original.AzureRegions
|
type AzureRegions = original.AzureRegions
|
||||||
@@ -46,13 +46,6 @@ const (
|
|||||||
Landmarks Details = original.Landmarks
|
Landmarks Details = original.Landmarks
|
||||||
)
|
)
|
||||||
|
|
||||||
type DomainModels = original.DomainModels
|
|
||||||
|
|
||||||
const (
|
|
||||||
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
|
|
||||||
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
|
|
||||||
)
|
|
||||||
|
|
||||||
type ErrorCodes = original.ErrorCodes
|
type ErrorCodes = original.ErrorCodes
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -119,6 +112,13 @@ const (
|
|||||||
Succeeded TextOperationStatusCodes = original.Succeeded
|
Succeeded TextOperationStatusCodes = original.Succeeded
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type TextRecognitionMode = original.TextRecognitionMode
|
||||||
|
|
||||||
|
const (
|
||||||
|
Handwritten TextRecognitionMode = original.Handwritten
|
||||||
|
Printed TextRecognitionMode = original.Printed
|
||||||
|
)
|
||||||
|
|
||||||
type VisualFeatureTypes = original.VisualFeatureTypes
|
type VisualFeatureTypes = original.VisualFeatureTypes
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -135,8 +135,8 @@ type AdultInfo = original.AdultInfo
|
|||||||
type Category = original.Category
|
type Category = original.Category
|
||||||
type CategoryDetail = original.CategoryDetail
|
type CategoryDetail = original.CategoryDetail
|
||||||
type CelebritiesModel = original.CelebritiesModel
|
type CelebritiesModel = original.CelebritiesModel
|
||||||
|
type CelebrityResults = original.CelebrityResults
|
||||||
type ColorInfo = original.ColorInfo
|
type ColorInfo = original.ColorInfo
|
||||||
type DomainModelResult = original.DomainModelResult
|
|
||||||
type DomainModelResults = original.DomainModelResults
|
type DomainModelResults = original.DomainModelResults
|
||||||
type Error = original.Error
|
type Error = original.Error
|
||||||
type FaceDescription = original.FaceDescription
|
type FaceDescription = original.FaceDescription
|
||||||
@@ -149,6 +149,8 @@ type ImageMetadata = original.ImageMetadata
|
|||||||
type ImageTag = original.ImageTag
|
type ImageTag = original.ImageTag
|
||||||
type ImageType = original.ImageType
|
type ImageType = original.ImageType
|
||||||
type ImageURL = original.ImageURL
|
type ImageURL = original.ImageURL
|
||||||
|
type LandmarkResults = original.LandmarkResults
|
||||||
|
type LandmarksModel = original.LandmarksModel
|
||||||
type Line = original.Line
|
type Line = original.Line
|
||||||
type ListModelsResult = original.ListModelsResult
|
type ListModelsResult = original.ListModelsResult
|
||||||
type ModelDescription = original.ModelDescription
|
type ModelDescription = original.ModelDescription
|
||||||
@@ -174,9 +176,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
|
|||||||
func PossibleDetailsValues() []Details {
|
func PossibleDetailsValues() []Details {
|
||||||
return original.PossibleDetailsValues()
|
return original.PossibleDetailsValues()
|
||||||
}
|
}
|
||||||
func PossibleDomainModelsValues() []DomainModels {
|
|
||||||
return original.PossibleDomainModelsValues()
|
|
||||||
}
|
|
||||||
func PossibleErrorCodesValues() []ErrorCodes {
|
func PossibleErrorCodesValues() []ErrorCodes {
|
||||||
return original.PossibleErrorCodesValues()
|
return original.PossibleErrorCodesValues()
|
||||||
}
|
}
|
||||||
@@ -189,6 +188,9 @@ func PossibleOcrLanguagesValues() []OcrLanguages {
|
|||||||
func PossibleTextOperationStatusCodesValues() []TextOperationStatusCodes {
|
func PossibleTextOperationStatusCodesValues() []TextOperationStatusCodes {
|
||||||
return original.PossibleTextOperationStatusCodesValues()
|
return original.PossibleTextOperationStatusCodesValues()
|
||||||
}
|
}
|
||||||
|
func PossibleTextRecognitionModeValues() []TextRecognitionMode {
|
||||||
|
return original.PossibleTextRecognitionModeValues()
|
||||||
|
}
|
||||||
func PossibleVisualFeatureTypesValues() []VisualFeatureTypes {
|
func PossibleVisualFeatureTypesValues() []VisualFeatureTypes {
|
||||||
return original.PossibleVisualFeatureTypesValues()
|
return original.PossibleVisualFeatureTypesValues()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,12 +56,16 @@ type AzureRegions = original.AzureRegions
|
|||||||
const (
|
const (
|
||||||
Australiaeast AzureRegions = original.Australiaeast
|
Australiaeast AzureRegions = original.Australiaeast
|
||||||
Brazilsouth AzureRegions = original.Brazilsouth
|
Brazilsouth AzureRegions = original.Brazilsouth
|
||||||
|
Canadacentral AzureRegions = original.Canadacentral
|
||||||
|
Centralindia AzureRegions = original.Centralindia
|
||||||
Eastasia AzureRegions = original.Eastasia
|
Eastasia AzureRegions = original.Eastasia
|
||||||
Eastus AzureRegions = original.Eastus
|
Eastus AzureRegions = original.Eastus
|
||||||
Eastus2 AzureRegions = original.Eastus2
|
Eastus2 AzureRegions = original.Eastus2
|
||||||
|
Japaneast AzureRegions = original.Japaneast
|
||||||
Northeurope AzureRegions = original.Northeurope
|
Northeurope AzureRegions = original.Northeurope
|
||||||
Southcentralus AzureRegions = original.Southcentralus
|
Southcentralus AzureRegions = original.Southcentralus
|
||||||
Southeastasia AzureRegions = original.Southeastasia
|
Southeastasia AzureRegions = original.Southeastasia
|
||||||
|
Uksouth AzureRegions = original.Uksouth
|
||||||
Westcentralus AzureRegions = original.Westcentralus
|
Westcentralus AzureRegions = original.Westcentralus
|
||||||
Westeurope AzureRegions = original.Westeurope
|
Westeurope AzureRegions = original.Westeurope
|
||||||
Westus AzureRegions = original.Westus
|
Westus AzureRegions = original.Westus
|
||||||
|
|||||||
@@ -31,12 +31,16 @@ type AzureRegions = original.AzureRegions
|
|||||||
const (
|
const (
|
||||||
Australiaeast AzureRegions = original.Australiaeast
|
Australiaeast AzureRegions = original.Australiaeast
|
||||||
Brazilsouth AzureRegions = original.Brazilsouth
|
Brazilsouth AzureRegions = original.Brazilsouth
|
||||||
|
Canadacentral AzureRegions = original.Canadacentral
|
||||||
|
Centralindia AzureRegions = original.Centralindia
|
||||||
Eastasia AzureRegions = original.Eastasia
|
Eastasia AzureRegions = original.Eastasia
|
||||||
Eastus AzureRegions = original.Eastus
|
Eastus AzureRegions = original.Eastus
|
||||||
Eastus2 AzureRegions = original.Eastus2
|
Eastus2 AzureRegions = original.Eastus2
|
||||||
|
Japaneast AzureRegions = original.Japaneast
|
||||||
Northeurope AzureRegions = original.Northeurope
|
Northeurope AzureRegions = original.Northeurope
|
||||||
Southcentralus AzureRegions = original.Southcentralus
|
Southcentralus AzureRegions = original.Southcentralus
|
||||||
Southeastasia AzureRegions = original.Southeastasia
|
Southeastasia AzureRegions = original.Southeastasia
|
||||||
|
Uksouth AzureRegions = original.Uksouth
|
||||||
Westcentralus AzureRegions = original.Westcentralus
|
Westcentralus AzureRegions = original.Westcentralus
|
||||||
Westeurope AzureRegions = original.Westeurope
|
Westeurope AzureRegions = original.Westeurope
|
||||||
Westus AzureRegions = original.Westus
|
Westus AzureRegions = original.Westus
|
||||||
|
|||||||
@@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
|
|||||||
const (
|
const (
|
||||||
Australiaeast AzureRegions = original.Australiaeast
|
Australiaeast AzureRegions = original.Australiaeast
|
||||||
Brazilsouth AzureRegions = original.Brazilsouth
|
Brazilsouth AzureRegions = original.Brazilsouth
|
||||||
|
Canadacentral AzureRegions = original.Canadacentral
|
||||||
|
Centralindia AzureRegions = original.Centralindia
|
||||||
Eastasia AzureRegions = original.Eastasia
|
Eastasia AzureRegions = original.Eastasia
|
||||||
Eastus AzureRegions = original.Eastus
|
Eastus AzureRegions = original.Eastus
|
||||||
Eastus2 AzureRegions = original.Eastus2
|
Eastus2 AzureRegions = original.Eastus2
|
||||||
|
Japaneast AzureRegions = original.Japaneast
|
||||||
Northeurope AzureRegions = original.Northeurope
|
Northeurope AzureRegions = original.Northeurope
|
||||||
Southcentralus AzureRegions = original.Southcentralus
|
Southcentralus AzureRegions = original.Southcentralus
|
||||||
Southeastasia AzureRegions = original.Southeastasia
|
Southeastasia AzureRegions = original.Southeastasia
|
||||||
|
Uksouth AzureRegions = original.Uksouth
|
||||||
Westcentralus AzureRegions = original.Westcentralus
|
Westcentralus AzureRegions = original.Westcentralus
|
||||||
Westeurope AzureRegions = original.Westeurope
|
Westeurope AzureRegions = original.Westeurope
|
||||||
Westus AzureRegions = original.Westus
|
Westus AzureRegions = original.Westus
|
||||||
|
|||||||
@@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
|
|||||||
const (
|
const (
|
||||||
Australiaeast AzureRegions = original.Australiaeast
|
Australiaeast AzureRegions = original.Australiaeast
|
||||||
Brazilsouth AzureRegions = original.Brazilsouth
|
Brazilsouth AzureRegions = original.Brazilsouth
|
||||||
|
Canadacentral AzureRegions = original.Canadacentral
|
||||||
|
Centralindia AzureRegions = original.Centralindia
|
||||||
Eastasia AzureRegions = original.Eastasia
|
Eastasia AzureRegions = original.Eastasia
|
||||||
Eastus AzureRegions = original.Eastus
|
Eastus AzureRegions = original.Eastus
|
||||||
Eastus2 AzureRegions = original.Eastus2
|
Eastus2 AzureRegions = original.Eastus2
|
||||||
|
Japaneast AzureRegions = original.Japaneast
|
||||||
Northeurope AzureRegions = original.Northeurope
|
Northeurope AzureRegions = original.Northeurope
|
||||||
Southcentralus AzureRegions = original.Southcentralus
|
Southcentralus AzureRegions = original.Southcentralus
|
||||||
Southeastasia AzureRegions = original.Southeastasia
|
Southeastasia AzureRegions = original.Southeastasia
|
||||||
|
Uksouth AzureRegions = original.Uksouth
|
||||||
Westcentralus AzureRegions = original.Westcentralus
|
Westcentralus AzureRegions = original.Westcentralus
|
||||||
Westeurope AzureRegions = original.Westeurope
|
Westeurope AzureRegions = original.Westeurope
|
||||||
Westus AzureRegions = original.Westus
|
Westus AzureRegions = original.Westus
|
||||||
|
|||||||
@@ -55,13 +55,24 @@ type Forecast = original.Forecast
|
|||||||
type ForecastProperties = original.ForecastProperties
|
type ForecastProperties = original.ForecastProperties
|
||||||
type ForecastPropertiesConfidenceLevelsItem = original.ForecastPropertiesConfidenceLevelsItem
|
type ForecastPropertiesConfidenceLevelsItem = original.ForecastPropertiesConfidenceLevelsItem
|
||||||
type ForecastsListResult = original.ForecastsListResult
|
type ForecastsListResult = original.ForecastsListResult
|
||||||
|
type MeterDetails = original.MeterDetails
|
||||||
type Operation = original.Operation
|
type Operation = original.Operation
|
||||||
type OperationDisplay = original.OperationDisplay
|
type OperationDisplay = original.OperationDisplay
|
||||||
type OperationListResult = original.OperationListResult
|
type OperationListResult = original.OperationListResult
|
||||||
type OperationListResultIterator = original.OperationListResultIterator
|
type OperationListResultIterator = original.OperationListResultIterator
|
||||||
type OperationListResultPage = original.OperationListResultPage
|
type OperationListResultPage = original.OperationListResultPage
|
||||||
|
type PriceSheetModel = original.PriceSheetModel
|
||||||
|
type PriceSheetProperties = original.PriceSheetProperties
|
||||||
|
type PriceSheetResult = original.PriceSheetResult
|
||||||
type Resource = original.Resource
|
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 OperationsClient = original.OperationsClient
|
||||||
|
type PriceSheetClient = original.PriceSheetClient
|
||||||
|
type UsageDetailsClient = original.UsageDetailsClient
|
||||||
|
|
||||||
func New(subscriptionID string) BaseClient {
|
func New(subscriptionID string) BaseClient {
|
||||||
return original.New(subscriptionID)
|
return original.New(subscriptionID)
|
||||||
@@ -90,6 +101,18 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
|
|||||||
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
|
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
|
||||||
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func UserAgent() string {
|
||||||
return original.UserAgent() + " profiles/preview"
|
return original.UserAgent() + " profiles/preview"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package containerservice
|
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 (
|
const (
|
||||||
DefaultBaseURI = original.DefaultBaseURI
|
DefaultBaseURI = original.DefaultBaseURI
|
||||||
@@ -28,6 +28,19 @@ const (
|
|||||||
type BaseClient = original.BaseClient
|
type BaseClient = original.BaseClient
|
||||||
type ContainerServicesClient = original.ContainerServicesClient
|
type ContainerServicesClient = original.ContainerServicesClient
|
||||||
type ManagedClustersClient = original.ManagedClustersClient
|
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
|
type OrchestratorTypes = original.OrchestratorTypes
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -244,7 +257,10 @@ type ListResult = original.ListResult
|
|||||||
type ListResultIterator = original.ListResultIterator
|
type ListResultIterator = original.ListResultIterator
|
||||||
type ListResultPage = original.ListResultPage
|
type ListResultPage = original.ListResultPage
|
||||||
type ManagedCluster = original.ManagedCluster
|
type ManagedCluster = original.ManagedCluster
|
||||||
|
type ManagedClusterAADProfile = original.ManagedClusterAADProfile
|
||||||
type ManagedClusterAccessProfile = original.ManagedClusterAccessProfile
|
type ManagedClusterAccessProfile = original.ManagedClusterAccessProfile
|
||||||
|
type ManagedClusterAddonProfile = original.ManagedClusterAddonProfile
|
||||||
|
type ManagedClusterAgentPoolProfile = original.ManagedClusterAgentPoolProfile
|
||||||
type ManagedClusterListResult = original.ManagedClusterListResult
|
type ManagedClusterListResult = original.ManagedClusterListResult
|
||||||
type ManagedClusterListResultIterator = original.ManagedClusterListResultIterator
|
type ManagedClusterListResultIterator = original.ManagedClusterListResultIterator
|
||||||
type ManagedClusterListResultPage = original.ManagedClusterListResultPage
|
type ManagedClusterListResultPage = original.ManagedClusterListResultPage
|
||||||
@@ -255,6 +271,10 @@ type ManagedClustersDeleteFuture = original.ManagedClustersDeleteFuture
|
|||||||
type ManagedClusterUpgradeProfile = original.ManagedClusterUpgradeProfile
|
type ManagedClusterUpgradeProfile = original.ManagedClusterUpgradeProfile
|
||||||
type ManagedClusterUpgradeProfileProperties = original.ManagedClusterUpgradeProfileProperties
|
type ManagedClusterUpgradeProfileProperties = original.ManagedClusterUpgradeProfileProperties
|
||||||
type MasterProfile = original.MasterProfile
|
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 OrchestratorProfile = original.OrchestratorProfile
|
||||||
type OrchestratorProfileType = original.OrchestratorProfileType
|
type OrchestratorProfileType = original.OrchestratorProfileType
|
||||||
type OrchestratorVersionProfile = original.OrchestratorVersionProfile
|
type OrchestratorVersionProfile = original.OrchestratorVersionProfile
|
||||||
@@ -267,6 +287,7 @@ type SSHConfiguration = original.SSHConfiguration
|
|||||||
type SSHPublicKey = original.SSHPublicKey
|
type SSHPublicKey = original.SSHPublicKey
|
||||||
type VMDiagnostics = original.VMDiagnostics
|
type VMDiagnostics = original.VMDiagnostics
|
||||||
type WindowsProfile = original.WindowsProfile
|
type WindowsProfile = original.WindowsProfile
|
||||||
|
type OperationsClient = original.OperationsClient
|
||||||
|
|
||||||
func New(subscriptionID string) BaseClient {
|
func New(subscriptionID string) BaseClient {
|
||||||
return original.New(subscriptionID)
|
return original.New(subscriptionID)
|
||||||
@@ -286,6 +307,12 @@ func NewManagedClustersClient(subscriptionID string) ManagedClustersClient {
|
|||||||
func NewManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) ManagedClustersClient {
|
func NewManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) ManagedClustersClient {
|
||||||
return original.NewManagedClustersClientWithBaseURI(baseURI, subscriptionID)
|
return original.NewManagedClustersClientWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
|
func PossibleNetworkPluginValues() []NetworkPlugin {
|
||||||
|
return original.PossibleNetworkPluginValues()
|
||||||
|
}
|
||||||
|
func PossibleNetworkPolicyValues() []NetworkPolicy {
|
||||||
|
return original.PossibleNetworkPolicyValues()
|
||||||
|
}
|
||||||
func PossibleOrchestratorTypesValues() []OrchestratorTypes {
|
func PossibleOrchestratorTypesValues() []OrchestratorTypes {
|
||||||
return original.PossibleOrchestratorTypesValues()
|
return original.PossibleOrchestratorTypesValues()
|
||||||
}
|
}
|
||||||
@@ -298,6 +325,12 @@ func PossibleStorageProfileTypesValues() []StorageProfileTypes {
|
|||||||
func PossibleVMSizeTypesValues() []VMSizeTypes {
|
func PossibleVMSizeTypesValues() []VMSizeTypes {
|
||||||
return original.PossibleVMSizeTypesValues()
|
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 {
|
func UserAgent() string {
|
||||||
return original.UserAgent() + " profiles/preview"
|
return original.UserAgent() + " profiles/preview"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package datafactory
|
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
|
type ActivityRunsClient = original.ActivityRunsClient
|
||||||
|
|
||||||
@@ -42,14 +42,6 @@ const (
|
|||||||
AuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = original.AuthenticationTypeWebLinkedServiceTypeProperties
|
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
|
type AzureSearchIndexWriteBehaviorType = original.AzureSearchIndexWriteBehaviorType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -57,6 +49,13 @@ const (
|
|||||||
Upload AzureSearchIndexWriteBehaviorType = original.Upload
|
Upload AzureSearchIndexWriteBehaviorType = original.Upload
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type BlobEventTypes = original.BlobEventTypes
|
||||||
|
|
||||||
|
const (
|
||||||
|
MicrosoftStorageBlobCreated BlobEventTypes = original.MicrosoftStorageBlobCreated
|
||||||
|
MicrosoftStorageBlobDeleted BlobEventTypes = original.MicrosoftStorageBlobDeleted
|
||||||
|
)
|
||||||
|
|
||||||
type CassandraSourceReadConsistencyLevels = original.CassandraSourceReadConsistencyLevels
|
type CassandraSourceReadConsistencyLevels = original.CassandraSourceReadConsistencyLevels
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -321,38 +320,6 @@ const (
|
|||||||
PhoenixAuthenticationTypeWindowsAzureHDInsightService PhoenixAuthenticationType = original.PhoenixAuthenticationTypeWindowsAzureHDInsightService
|
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
|
type PolybaseSettingsRejectType = original.PolybaseSettingsRejectType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -379,6 +346,51 @@ const (
|
|||||||
Year RecurrenceFrequency = original.Year
|
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
|
type SalesforceSinkWriteBehavior = original.SalesforceSinkWriteBehavior
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -714,6 +726,14 @@ const (
|
|||||||
TypeTextFormat TypeBasicDatasetStorageFormat = original.TypeTextFormat
|
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
|
type TypeBasicIntegrationRuntime = original.TypeBasicIntegrationRuntime
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -809,6 +829,7 @@ const (
|
|||||||
type TypeBasicTrigger = original.TypeBasicTrigger
|
type TypeBasicTrigger = original.TypeBasicTrigger
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
TypeBlobEventsTrigger TypeBasicTrigger = original.TypeBlobEventsTrigger
|
||||||
TypeBlobTrigger TypeBasicTrigger = original.TypeBlobTrigger
|
TypeBlobTrigger TypeBasicTrigger = original.TypeBlobTrigger
|
||||||
TypeMultiplePipelineTrigger TypeBasicTrigger = original.TypeMultiplePipelineTrigger
|
TypeMultiplePipelineTrigger TypeBasicTrigger = original.TypeMultiplePipelineTrigger
|
||||||
TypeScheduleTrigger TypeBasicTrigger = original.TypeScheduleTrigger
|
TypeScheduleTrigger TypeBasicTrigger = original.TypeScheduleTrigger
|
||||||
@@ -830,9 +851,7 @@ type Activity = original.Activity
|
|||||||
type ActivityDependency = original.ActivityDependency
|
type ActivityDependency = original.ActivityDependency
|
||||||
type ActivityPolicy = original.ActivityPolicy
|
type ActivityPolicy = original.ActivityPolicy
|
||||||
type ActivityRun = original.ActivityRun
|
type ActivityRun = original.ActivityRun
|
||||||
type ActivityRunsListResponse = original.ActivityRunsListResponse
|
type ActivityRunsQueryResponse = original.ActivityRunsQueryResponse
|
||||||
type ActivityRunsListResponseIterator = original.ActivityRunsListResponseIterator
|
|
||||||
type ActivityRunsListResponsePage = original.ActivityRunsListResponsePage
|
|
||||||
type AmazonMWSLinkedService = original.AmazonMWSLinkedService
|
type AmazonMWSLinkedService = original.AmazonMWSLinkedService
|
||||||
type AmazonMWSLinkedServiceTypeProperties = original.AmazonMWSLinkedServiceTypeProperties
|
type AmazonMWSLinkedServiceTypeProperties = original.AmazonMWSLinkedServiceTypeProperties
|
||||||
type AmazonMWSObjectDataset = original.AmazonMWSObjectDataset
|
type AmazonMWSObjectDataset = original.AmazonMWSObjectDataset
|
||||||
@@ -898,6 +917,8 @@ type AzureTableDataset = original.AzureTableDataset
|
|||||||
type AzureTableDatasetTypeProperties = original.AzureTableDatasetTypeProperties
|
type AzureTableDatasetTypeProperties = original.AzureTableDatasetTypeProperties
|
||||||
type AzureTableSink = original.AzureTableSink
|
type AzureTableSink = original.AzureTableSink
|
||||||
type AzureTableSource = original.AzureTableSource
|
type AzureTableSource = original.AzureTableSource
|
||||||
|
type BlobEventsTrigger = original.BlobEventsTrigger
|
||||||
|
type BlobEventsTriggerTypeProperties = original.BlobEventsTriggerTypeProperties
|
||||||
type BlobSink = original.BlobSink
|
type BlobSink = original.BlobSink
|
||||||
type BlobSource = original.BlobSource
|
type BlobSource = original.BlobSource
|
||||||
type BlobTrigger = original.BlobTrigger
|
type BlobTrigger = original.BlobTrigger
|
||||||
@@ -907,6 +928,8 @@ type CassandraLinkedServiceTypeProperties = original.CassandraLinkedServiceTypeP
|
|||||||
type CassandraSource = original.CassandraSource
|
type CassandraSource = original.CassandraSource
|
||||||
type CassandraTableDataset = original.CassandraTableDataset
|
type CassandraTableDataset = original.CassandraTableDataset
|
||||||
type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties
|
type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties
|
||||||
|
type CloudError = original.CloudError
|
||||||
|
type CloudErrorBody = original.CloudErrorBody
|
||||||
type ConcurLinkedService = original.ConcurLinkedService
|
type ConcurLinkedService = original.ConcurLinkedService
|
||||||
type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties
|
type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties
|
||||||
type ConcurObjectDataset = original.ConcurObjectDataset
|
type ConcurObjectDataset = original.ConcurObjectDataset
|
||||||
@@ -973,7 +996,6 @@ type EloquaLinkedService = original.EloquaLinkedService
|
|||||||
type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypeProperties
|
type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypeProperties
|
||||||
type EloquaObjectDataset = original.EloquaObjectDataset
|
type EloquaObjectDataset = original.EloquaObjectDataset
|
||||||
type EloquaSource = original.EloquaSource
|
type EloquaSource = original.EloquaSource
|
||||||
type ErrorResponse = original.ErrorResponse
|
|
||||||
type ExecutePipelineActivity = original.ExecutePipelineActivity
|
type ExecutePipelineActivity = original.ExecutePipelineActivity
|
||||||
type ExecutePipelineActivityTypeProperties = original.ExecutePipelineActivityTypeProperties
|
type ExecutePipelineActivityTypeProperties = original.ExecutePipelineActivityTypeProperties
|
||||||
type ExecuteSSISPackageActivity = original.ExecuteSSISPackageActivity
|
type ExecuteSSISPackageActivity = original.ExecuteSSISPackageActivity
|
||||||
@@ -982,11 +1004,14 @@ type BasicExecutionActivity = original.BasicExecutionActivity
|
|||||||
type ExecutionActivity = original.ExecutionActivity
|
type ExecutionActivity = original.ExecutionActivity
|
||||||
type Expression = original.Expression
|
type Expression = original.Expression
|
||||||
type Factory = original.Factory
|
type Factory = original.Factory
|
||||||
|
type FactoryGitHubConfiguration = original.FactoryGitHubConfiguration
|
||||||
type FactoryIdentity = original.FactoryIdentity
|
type FactoryIdentity = original.FactoryIdentity
|
||||||
type FactoryListResponse = original.FactoryListResponse
|
type FactoryListResponse = original.FactoryListResponse
|
||||||
type FactoryListResponseIterator = original.FactoryListResponseIterator
|
type FactoryListResponseIterator = original.FactoryListResponseIterator
|
||||||
type FactoryListResponsePage = original.FactoryListResponsePage
|
type FactoryListResponsePage = original.FactoryListResponsePage
|
||||||
type FactoryProperties = original.FactoryProperties
|
type FactoryProperties = original.FactoryProperties
|
||||||
|
type BasicFactoryRepoConfiguration = original.BasicFactoryRepoConfiguration
|
||||||
|
type FactoryRepoConfiguration = original.FactoryRepoConfiguration
|
||||||
type FactoryRepoUpdate = original.FactoryRepoUpdate
|
type FactoryRepoUpdate = original.FactoryRepoUpdate
|
||||||
type FactoryUpdateParameters = original.FactoryUpdateParameters
|
type FactoryUpdateParameters = original.FactoryUpdateParameters
|
||||||
type FactoryVSTSConfiguration = original.FactoryVSTSConfiguration
|
type FactoryVSTSConfiguration = original.FactoryVSTSConfiguration
|
||||||
@@ -1066,7 +1091,6 @@ type IntegrationRuntimeNodeIPAddress = original.IntegrationRuntimeNodeIPAddress
|
|||||||
type IntegrationRuntimeNodeMonitoringData = original.IntegrationRuntimeNodeMonitoringData
|
type IntegrationRuntimeNodeMonitoringData = original.IntegrationRuntimeNodeMonitoringData
|
||||||
type IntegrationRuntimeReference = original.IntegrationRuntimeReference
|
type IntegrationRuntimeReference = original.IntegrationRuntimeReference
|
||||||
type IntegrationRuntimeRegenerateKeyParameters = original.IntegrationRuntimeRegenerateKeyParameters
|
type IntegrationRuntimeRegenerateKeyParameters = original.IntegrationRuntimeRegenerateKeyParameters
|
||||||
type IntegrationRuntimeRemoveNodeRequest = original.IntegrationRuntimeRemoveNodeRequest
|
|
||||||
type IntegrationRuntimeResource = original.IntegrationRuntimeResource
|
type IntegrationRuntimeResource = original.IntegrationRuntimeResource
|
||||||
type IntegrationRuntimeSsisCatalogInfo = original.IntegrationRuntimeSsisCatalogInfo
|
type IntegrationRuntimeSsisCatalogInfo = original.IntegrationRuntimeSsisCatalogInfo
|
||||||
type IntegrationRuntimeSsisProperties = original.IntegrationRuntimeSsisProperties
|
type IntegrationRuntimeSsisProperties = original.IntegrationRuntimeSsisProperties
|
||||||
@@ -1082,12 +1106,6 @@ type JiraLinkedServiceTypeProperties = original.JiraLinkedServiceTypeProperties
|
|||||||
type JiraObjectDataset = original.JiraObjectDataset
|
type JiraObjectDataset = original.JiraObjectDataset
|
||||||
type JiraSource = original.JiraSource
|
type JiraSource = original.JiraSource
|
||||||
type JSONFormat = original.JSONFormat
|
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 BasicLinkedService = original.BasicLinkedService
|
||||||
type LinkedService = original.LinkedService
|
type LinkedService = original.LinkedService
|
||||||
type LinkedServiceListResponse = original.LinkedServiceListResponse
|
type LinkedServiceListResponse = original.LinkedServiceListResponse
|
||||||
@@ -1139,8 +1157,11 @@ type OdbcSink = original.OdbcSink
|
|||||||
type Operation = original.Operation
|
type Operation = original.Operation
|
||||||
type OperationDisplay = original.OperationDisplay
|
type OperationDisplay = original.OperationDisplay
|
||||||
type OperationListResponse = original.OperationListResponse
|
type OperationListResponse = original.OperationListResponse
|
||||||
|
type OperationListResponseIterator = original.OperationListResponseIterator
|
||||||
|
type OperationListResponsePage = original.OperationListResponsePage
|
||||||
type OperationLogSpecification = original.OperationLogSpecification
|
type OperationLogSpecification = original.OperationLogSpecification
|
||||||
type OperationMetricAvailability = original.OperationMetricAvailability
|
type OperationMetricAvailability = original.OperationMetricAvailability
|
||||||
|
type OperationMetricDimension = original.OperationMetricDimension
|
||||||
type OperationMetricSpecification = original.OperationMetricSpecification
|
type OperationMetricSpecification = original.OperationMetricSpecification
|
||||||
type OperationProperties = original.OperationProperties
|
type OperationProperties = original.OperationProperties
|
||||||
type OperationServiceSpecification = original.OperationServiceSpecification
|
type OperationServiceSpecification = original.OperationServiceSpecification
|
||||||
@@ -1168,11 +1189,8 @@ type PipelineListResponsePage = original.PipelineListResponsePage
|
|||||||
type PipelineReference = original.PipelineReference
|
type PipelineReference = original.PipelineReference
|
||||||
type PipelineResource = original.PipelineResource
|
type PipelineResource = original.PipelineResource
|
||||||
type PipelineRun = original.PipelineRun
|
type PipelineRun = original.PipelineRun
|
||||||
type PipelineRunFilterParameters = original.PipelineRunFilterParameters
|
|
||||||
type PipelineRunInvokedBy = original.PipelineRunInvokedBy
|
type PipelineRunInvokedBy = original.PipelineRunInvokedBy
|
||||||
type PipelineRunQueryFilter = original.PipelineRunQueryFilter
|
type PipelineRunsQueryResponse = original.PipelineRunsQueryResponse
|
||||||
type PipelineRunQueryOrderBy = original.PipelineRunQueryOrderBy
|
|
||||||
type PipelineRunQueryResponse = original.PipelineRunQueryResponse
|
|
||||||
type PolybaseSettings = original.PolybaseSettings
|
type PolybaseSettings = original.PolybaseSettings
|
||||||
type PostgreSQLLinkedService = original.PostgreSQLLinkedService
|
type PostgreSQLLinkedService = original.PostgreSQLLinkedService
|
||||||
type PostgreSQLLinkedServiceTypeProperties = original.PostgreSQLLinkedServiceTypeProperties
|
type PostgreSQLLinkedServiceTypeProperties = original.PostgreSQLLinkedServiceTypeProperties
|
||||||
@@ -1197,6 +1215,9 @@ type ResponsysLinkedServiceTypeProperties = original.ResponsysLinkedServiceTypeP
|
|||||||
type ResponsysObjectDataset = original.ResponsysObjectDataset
|
type ResponsysObjectDataset = original.ResponsysObjectDataset
|
||||||
type ResponsysSource = original.ResponsysSource
|
type ResponsysSource = original.ResponsysSource
|
||||||
type RetryPolicy = original.RetryPolicy
|
type RetryPolicy = original.RetryPolicy
|
||||||
|
type RunFilterParameters = original.RunFilterParameters
|
||||||
|
type RunQueryFilter = original.RunQueryFilter
|
||||||
|
type RunQueryOrderBy = original.RunQueryOrderBy
|
||||||
type SalesforceLinkedService = original.SalesforceLinkedService
|
type SalesforceLinkedService = original.SalesforceLinkedService
|
||||||
type SalesforceLinkedServiceTypeProperties = original.SalesforceLinkedServiceTypeProperties
|
type SalesforceLinkedServiceTypeProperties = original.SalesforceLinkedServiceTypeProperties
|
||||||
type SalesforceMarketingCloudLinkedService = original.SalesforceMarketingCloudLinkedService
|
type SalesforceMarketingCloudLinkedService = original.SalesforceMarketingCloudLinkedService
|
||||||
@@ -1280,9 +1301,7 @@ type TriggerListResponsePage = original.TriggerListResponsePage
|
|||||||
type TriggerPipelineReference = original.TriggerPipelineReference
|
type TriggerPipelineReference = original.TriggerPipelineReference
|
||||||
type TriggerResource = original.TriggerResource
|
type TriggerResource = original.TriggerResource
|
||||||
type TriggerRun = original.TriggerRun
|
type TriggerRun = original.TriggerRun
|
||||||
type TriggerRunListResponse = original.TriggerRunListResponse
|
type TriggerRunsQueryResponse = original.TriggerRunsQueryResponse
|
||||||
type TriggerRunListResponseIterator = original.TriggerRunListResponseIterator
|
|
||||||
type TriggerRunListResponsePage = original.TriggerRunListResponsePage
|
|
||||||
type TriggersStartFuture = original.TriggersStartFuture
|
type TriggersStartFuture = original.TriggersStartFuture
|
||||||
type TriggersStopFuture = original.TriggersStopFuture
|
type TriggersStopFuture = original.TriggersStopFuture
|
||||||
type TumblingWindowTrigger = original.TumblingWindowTrigger
|
type TumblingWindowTrigger = original.TumblingWindowTrigger
|
||||||
@@ -1320,6 +1339,7 @@ type ZohoSource = original.ZohoSource
|
|||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
type PipelineRunsClient = original.PipelineRunsClient
|
type PipelineRunsClient = original.PipelineRunsClient
|
||||||
type PipelinesClient = original.PipelinesClient
|
type PipelinesClient = original.PipelinesClient
|
||||||
|
type TriggerRunsClient = original.TriggerRunsClient
|
||||||
type TriggersClient = original.TriggersClient
|
type TriggersClient = original.TriggersClient
|
||||||
|
|
||||||
func NewActivityRunsClient(subscriptionID string) ActivityRunsClient {
|
func NewActivityRunsClient(subscriptionID string) ActivityRunsClient {
|
||||||
@@ -1367,12 +1387,12 @@ func NewLinkedServicesClientWithBaseURI(baseURI string, subscriptionID string) L
|
|||||||
func PossibleAuthenticationTypeValues() []AuthenticationType {
|
func PossibleAuthenticationTypeValues() []AuthenticationType {
|
||||||
return original.PossibleAuthenticationTypeValues()
|
return original.PossibleAuthenticationTypeValues()
|
||||||
}
|
}
|
||||||
func PossibleAuthorizationTypeValues() []AuthorizationType {
|
|
||||||
return original.PossibleAuthorizationTypeValues()
|
|
||||||
}
|
|
||||||
func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBehaviorType {
|
func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBehaviorType {
|
||||||
return original.PossibleAzureSearchIndexWriteBehaviorTypeValues()
|
return original.PossibleAzureSearchIndexWriteBehaviorTypeValues()
|
||||||
}
|
}
|
||||||
|
func PossibleBlobEventTypesValues() []BlobEventTypes {
|
||||||
|
return original.PossibleBlobEventTypesValues()
|
||||||
|
}
|
||||||
func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels {
|
func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels {
|
||||||
return original.PossibleCassandraSourceReadConsistencyLevelsValues()
|
return original.PossibleCassandraSourceReadConsistencyLevelsValues()
|
||||||
}
|
}
|
||||||
@@ -1466,18 +1486,6 @@ func PossibleParameterTypeValues() []ParameterType {
|
|||||||
func PossiblePhoenixAuthenticationTypeValues() []PhoenixAuthenticationType {
|
func PossiblePhoenixAuthenticationTypeValues() []PhoenixAuthenticationType {
|
||||||
return original.PossiblePhoenixAuthenticationTypeValues()
|
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 {
|
func PossiblePolybaseSettingsRejectTypeValues() []PolybaseSettingsRejectType {
|
||||||
return original.PossiblePolybaseSettingsRejectTypeValues()
|
return original.PossiblePolybaseSettingsRejectTypeValues()
|
||||||
}
|
}
|
||||||
@@ -1487,6 +1495,18 @@ func PossiblePrestoAuthenticationTypeValues() []PrestoAuthenticationType {
|
|||||||
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
|
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
|
||||||
return original.PossibleRecurrenceFrequencyValues()
|
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 {
|
func PossibleSalesforceSinkWriteBehaviorValues() []SalesforceSinkWriteBehavior {
|
||||||
return original.PossibleSalesforceSinkWriteBehaviorValues()
|
return original.PossibleSalesforceSinkWriteBehaviorValues()
|
||||||
}
|
}
|
||||||
@@ -1562,6 +1582,9 @@ func PossibleTypeBasicDatasetCompressionValues() []TypeBasicDatasetCompression {
|
|||||||
func PossibleTypeBasicDatasetStorageFormatValues() []TypeBasicDatasetStorageFormat {
|
func PossibleTypeBasicDatasetStorageFormatValues() []TypeBasicDatasetStorageFormat {
|
||||||
return original.PossibleTypeBasicDatasetStorageFormatValues()
|
return original.PossibleTypeBasicDatasetStorageFormatValues()
|
||||||
}
|
}
|
||||||
|
func PossibleTypeBasicFactoryRepoConfigurationValues() []TypeBasicFactoryRepoConfiguration {
|
||||||
|
return original.PossibleTypeBasicFactoryRepoConfigurationValues()
|
||||||
|
}
|
||||||
func PossibleTypeBasicIntegrationRuntimeValues() []TypeBasicIntegrationRuntime {
|
func PossibleTypeBasicIntegrationRuntimeValues() []TypeBasicIntegrationRuntime {
|
||||||
return original.PossibleTypeBasicIntegrationRuntimeValues()
|
return original.PossibleTypeBasicIntegrationRuntimeValues()
|
||||||
}
|
}
|
||||||
@@ -1595,6 +1618,12 @@ func NewPipelinesClient(subscriptionID string) PipelinesClient {
|
|||||||
func NewPipelinesClientWithBaseURI(baseURI string, subscriptionID string) PipelinesClient {
|
func NewPipelinesClientWithBaseURI(baseURI string, subscriptionID string) PipelinesClient {
|
||||||
return original.NewPipelinesClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func NewTriggersClient(subscriptionID string) TriggersClient {
|
||||||
return original.NewTriggersClient(subscriptionID)
|
return original.NewTriggersClient(subscriptionID)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package keyvault
|
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 (
|
const (
|
||||||
DefaultBaseURI = original.DefaultBaseURI
|
DefaultBaseURI = original.DefaultBaseURI
|
||||||
@@ -37,6 +37,7 @@ const (
|
|||||||
type CertificatePermissions = original.CertificatePermissions
|
type CertificatePermissions = original.CertificatePermissions
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Backup CertificatePermissions = original.Backup
|
||||||
Create CertificatePermissions = original.Create
|
Create CertificatePermissions = original.Create
|
||||||
Delete CertificatePermissions = original.Delete
|
Delete CertificatePermissions = original.Delete
|
||||||
Deleteissuers CertificatePermissions = original.Deleteissuers
|
Deleteissuers CertificatePermissions = original.Deleteissuers
|
||||||
@@ -49,6 +50,7 @@ const (
|
|||||||
Manageissuers CertificatePermissions = original.Manageissuers
|
Manageissuers CertificatePermissions = original.Manageissuers
|
||||||
Purge CertificatePermissions = original.Purge
|
Purge CertificatePermissions = original.Purge
|
||||||
Recover CertificatePermissions = original.Recover
|
Recover CertificatePermissions = original.Recover
|
||||||
|
Restore CertificatePermissions = original.Restore
|
||||||
Setissuers CertificatePermissions = original.Setissuers
|
Setissuers CertificatePermissions = original.Setissuers
|
||||||
Update CertificatePermissions = original.Update
|
Update CertificatePermissions = original.Update
|
||||||
)
|
)
|
||||||
@@ -81,6 +83,20 @@ const (
|
|||||||
KeyPermissionsWrapKey KeyPermissions = original.KeyPermissionsWrapKey
|
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
|
type Reason = original.Reason
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -134,7 +150,9 @@ type DeletedVaultListResult = original.DeletedVaultListResult
|
|||||||
type DeletedVaultListResultIterator = original.DeletedVaultListResultIterator
|
type DeletedVaultListResultIterator = original.DeletedVaultListResultIterator
|
||||||
type DeletedVaultListResultPage = original.DeletedVaultListResultPage
|
type DeletedVaultListResultPage = original.DeletedVaultListResultPage
|
||||||
type DeletedVaultProperties = original.DeletedVaultProperties
|
type DeletedVaultProperties = original.DeletedVaultProperties
|
||||||
|
type IPRule = original.IPRule
|
||||||
type LogSpecification = original.LogSpecification
|
type LogSpecification = original.LogSpecification
|
||||||
|
type NetworkRuleSet = original.NetworkRuleSet
|
||||||
type Operation = original.Operation
|
type Operation = original.Operation
|
||||||
type OperationDisplay = original.OperationDisplay
|
type OperationDisplay = original.OperationDisplay
|
||||||
type OperationListResult = original.OperationListResult
|
type OperationListResult = original.OperationListResult
|
||||||
@@ -159,7 +177,9 @@ type VaultListResultPage = original.VaultListResultPage
|
|||||||
type VaultPatchParameters = original.VaultPatchParameters
|
type VaultPatchParameters = original.VaultPatchParameters
|
||||||
type VaultPatchProperties = original.VaultPatchProperties
|
type VaultPatchProperties = original.VaultPatchProperties
|
||||||
type VaultProperties = original.VaultProperties
|
type VaultProperties = original.VaultProperties
|
||||||
|
type VaultsCreateOrUpdateFuture = original.VaultsCreateOrUpdateFuture
|
||||||
type VaultsPurgeDeletedFuture = original.VaultsPurgeDeletedFuture
|
type VaultsPurgeDeletedFuture = original.VaultsPurgeDeletedFuture
|
||||||
|
type VirtualNetworkRule = original.VirtualNetworkRule
|
||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
type VaultsClient = original.VaultsClient
|
type VaultsClient = original.VaultsClient
|
||||||
|
|
||||||
@@ -181,6 +201,12 @@ func PossibleCreateModeValues() []CreateMode {
|
|||||||
func PossibleKeyPermissionsValues() []KeyPermissions {
|
func PossibleKeyPermissionsValues() []KeyPermissions {
|
||||||
return original.PossibleKeyPermissionsValues()
|
return original.PossibleKeyPermissionsValues()
|
||||||
}
|
}
|
||||||
|
func PossibleNetworkRuleActionValues() []NetworkRuleAction {
|
||||||
|
return original.PossibleNetworkRuleActionValues()
|
||||||
|
}
|
||||||
|
func PossibleNetworkRuleBypassOptionsValues() []NetworkRuleBypassOptions {
|
||||||
|
return original.PossibleNetworkRuleBypassOptionsValues()
|
||||||
|
}
|
||||||
func PossibleReasonValues() []Reason {
|
func PossibleReasonValues() []Reason {
|
||||||
return original.PossibleReasonValues()
|
return original.PossibleReasonValues()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -523,6 +523,7 @@ type ProbeProtocol = original.ProbeProtocol
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
ProbeProtocolHTTP ProbeProtocol = original.ProbeProtocolHTTP
|
ProbeProtocolHTTP ProbeProtocol = original.ProbeProtocolHTTP
|
||||||
|
ProbeProtocolHTTPS ProbeProtocol = original.ProbeProtocolHTTPS
|
||||||
ProbeProtocolTCP ProbeProtocol = original.ProbeProtocolTCP
|
ProbeProtocolTCP ProbeProtocol = original.ProbeProtocolTCP
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ type BaiduCredentialProperties = original.BaiduCredentialProperties
|
|||||||
type CheckAvailabilityParameters = original.CheckAvailabilityParameters
|
type CheckAvailabilityParameters = original.CheckAvailabilityParameters
|
||||||
type CheckAvailabilityResult = original.CheckAvailabilityResult
|
type CheckAvailabilityResult = original.CheckAvailabilityResult
|
||||||
type CreateOrUpdateParameters = original.CreateOrUpdateParameters
|
type CreateOrUpdateParameters = original.CreateOrUpdateParameters
|
||||||
|
type DebugSendResponse = original.DebugSendResponse
|
||||||
|
type DebugSendResult = original.DebugSendResult
|
||||||
type ErrorResponse = original.ErrorResponse
|
type ErrorResponse = original.ErrorResponse
|
||||||
type GcmCredential = original.GcmCredential
|
type GcmCredential = original.GcmCredential
|
||||||
type GcmCredentialProperties = original.GcmCredentialProperties
|
type GcmCredentialProperties = original.GcmCredentialProperties
|
||||||
@@ -79,6 +81,7 @@ type OperationDisplay = original.OperationDisplay
|
|||||||
type OperationListResult = original.OperationListResult
|
type OperationListResult = original.OperationListResult
|
||||||
type OperationListResultIterator = original.OperationListResultIterator
|
type OperationListResultIterator = original.OperationListResultIterator
|
||||||
type OperationListResultPage = original.OperationListResultPage
|
type OperationListResultPage = original.OperationListResultPage
|
||||||
|
type PatchParameters = original.PatchParameters
|
||||||
type PnsCredentialsProperties = original.PnsCredentialsProperties
|
type PnsCredentialsProperties = original.PnsCredentialsProperties
|
||||||
type PnsCredentialsResource = original.PnsCredentialsResource
|
type PnsCredentialsResource = original.PnsCredentialsResource
|
||||||
type PolicykeyResource = original.PolicykeyResource
|
type PolicykeyResource = original.PolicykeyResource
|
||||||
|
|||||||
@@ -19,11 +19,10 @@
|
|||||||
|
|
||||||
package apimanagement
|
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 APIClient = original.APIClient
|
||||||
type APIDiagnosticClient = original.APIDiagnosticClient
|
type APIDiagnosticClient = original.APIDiagnosticClient
|
||||||
type APIDiagnosticLoggerClient = original.APIDiagnosticLoggerClient
|
|
||||||
type APIExportClient = original.APIExportClient
|
type APIExportClient = original.APIExportClient
|
||||||
type APIIssueClient = original.APIIssueClient
|
type APIIssueClient = original.APIIssueClient
|
||||||
type APIIssueAttachmentClient = original.APIIssueAttachmentClient
|
type APIIssueAttachmentClient = original.APIIssueAttachmentClient
|
||||||
@@ -47,12 +46,17 @@ const (
|
|||||||
type BaseClient = original.BaseClient
|
type BaseClient = original.BaseClient
|
||||||
type DelegationSettingsClient = original.DelegationSettingsClient
|
type DelegationSettingsClient = original.DelegationSettingsClient
|
||||||
type DiagnosticClient = original.DiagnosticClient
|
type DiagnosticClient = original.DiagnosticClient
|
||||||
type DiagnosticLoggerClient = original.DiagnosticLoggerClient
|
|
||||||
type EmailTemplateClient = original.EmailTemplateClient
|
type EmailTemplateClient = original.EmailTemplateClient
|
||||||
type GroupClient = original.GroupClient
|
type GroupClient = original.GroupClient
|
||||||
type GroupUserClient = original.GroupUserClient
|
type GroupUserClient = original.GroupUserClient
|
||||||
type IdentityProviderClient = original.IdentityProviderClient
|
type IdentityProviderClient = original.IdentityProviderClient
|
||||||
type LoggerClient = original.LoggerClient
|
type LoggerClient = original.LoggerClient
|
||||||
|
type AlwaysLog = original.AlwaysLog
|
||||||
|
|
||||||
|
const (
|
||||||
|
AllErrors AlwaysLog = original.AllErrors
|
||||||
|
)
|
||||||
|
|
||||||
type APIType = original.APIType
|
type APIType = original.APIType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -241,6 +245,12 @@ const (
|
|||||||
ProtocolHTTPS Protocol = original.ProtocolHTTPS
|
ProtocolHTTPS Protocol = original.ProtocolHTTPS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type SamplingType = original.SamplingType
|
||||||
|
|
||||||
|
const (
|
||||||
|
Fixed SamplingType = original.Fixed
|
||||||
|
)
|
||||||
|
|
||||||
type SkuType = original.SkuType
|
type SkuType = original.SkuType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -398,6 +408,7 @@ type BackendServiceFabricClusterProperties = original.BackendServiceFabricCluste
|
|||||||
type BackendTLSProperties = original.BackendTLSProperties
|
type BackendTLSProperties = original.BackendTLSProperties
|
||||||
type BackendUpdateParameterProperties = original.BackendUpdateParameterProperties
|
type BackendUpdateParameterProperties = original.BackendUpdateParameterProperties
|
||||||
type BackendUpdateParameters = original.BackendUpdateParameters
|
type BackendUpdateParameters = original.BackendUpdateParameters
|
||||||
|
type BodyDiagnosticSettings = original.BodyDiagnosticSettings
|
||||||
type CertificateCollection = original.CertificateCollection
|
type CertificateCollection = original.CertificateCollection
|
||||||
type CertificateCollectionIterator = original.CertificateCollectionIterator
|
type CertificateCollectionIterator = original.CertificateCollectionIterator
|
||||||
type CertificateCollectionPage = original.CertificateCollectionPage
|
type CertificateCollectionPage = original.CertificateCollectionPage
|
||||||
@@ -437,6 +448,7 @@ type GroupUpdateParameters = original.GroupUpdateParameters
|
|||||||
type GroupUpdateParametersProperties = original.GroupUpdateParametersProperties
|
type GroupUpdateParametersProperties = original.GroupUpdateParametersProperties
|
||||||
type HostnameConfiguration = original.HostnameConfiguration
|
type HostnameConfiguration = original.HostnameConfiguration
|
||||||
type HostnameConfigurationOld = original.HostnameConfigurationOld
|
type HostnameConfigurationOld = original.HostnameConfigurationOld
|
||||||
|
type HTTPMessageDiagnostic = original.HTTPMessageDiagnostic
|
||||||
type IdentityProviderBaseParameters = original.IdentityProviderBaseParameters
|
type IdentityProviderBaseParameters = original.IdentityProviderBaseParameters
|
||||||
type IdentityProviderContract = original.IdentityProviderContract
|
type IdentityProviderContract = original.IdentityProviderContract
|
||||||
type IdentityProviderContractProperties = original.IdentityProviderContractProperties
|
type IdentityProviderContractProperties = original.IdentityProviderContractProperties
|
||||||
@@ -500,6 +512,7 @@ type OperationTagResourceContractProperties = original.OperationTagResourceContr
|
|||||||
type OperationUpdateContract = original.OperationUpdateContract
|
type OperationUpdateContract = original.OperationUpdateContract
|
||||||
type OperationUpdateContractProperties = original.OperationUpdateContractProperties
|
type OperationUpdateContractProperties = original.OperationUpdateContractProperties
|
||||||
type ParameterContract = original.ParameterContract
|
type ParameterContract = original.ParameterContract
|
||||||
|
type PipelineDiagnosticSettings = original.PipelineDiagnosticSettings
|
||||||
type PolicyCollection = original.PolicyCollection
|
type PolicyCollection = original.PolicyCollection
|
||||||
type PolicyContract = original.PolicyContract
|
type PolicyContract = original.PolicyContract
|
||||||
type PolicyContractProperties = original.PolicyContractProperties
|
type PolicyContractProperties = original.PolicyContractProperties
|
||||||
@@ -554,6 +567,7 @@ type RequestReportCollection = original.RequestReportCollection
|
|||||||
type RequestReportRecordContract = original.RequestReportRecordContract
|
type RequestReportRecordContract = original.RequestReportRecordContract
|
||||||
type Resource = original.Resource
|
type Resource = original.Resource
|
||||||
type ResponseContract = original.ResponseContract
|
type ResponseContract = original.ResponseContract
|
||||||
|
type SamplingSettings = original.SamplingSettings
|
||||||
type SaveConfigurationParameter = original.SaveConfigurationParameter
|
type SaveConfigurationParameter = original.SaveConfigurationParameter
|
||||||
type SchemaCollection = original.SchemaCollection
|
type SchemaCollection = original.SchemaCollection
|
||||||
type SchemaCollectionIterator = original.SchemaCollectionIterator
|
type SchemaCollectionIterator = original.SchemaCollectionIterator
|
||||||
@@ -683,12 +697,6 @@ func NewAPIDiagnosticClient(subscriptionID string) APIDiagnosticClient {
|
|||||||
func NewAPIDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticClient {
|
func NewAPIDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticClient {
|
||||||
return original.NewAPIDiagnosticClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func NewAPIExportClient(subscriptionID string) APIExportClient {
|
||||||
return original.NewAPIExportClient(subscriptionID)
|
return original.NewAPIExportClient(subscriptionID)
|
||||||
}
|
}
|
||||||
@@ -797,12 +805,6 @@ func NewDiagnosticClient(subscriptionID string) DiagnosticClient {
|
|||||||
func NewDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticClient {
|
func NewDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticClient {
|
||||||
return original.NewDiagnosticClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func NewEmailTemplateClient(subscriptionID string) EmailTemplateClient {
|
||||||
return original.NewEmailTemplateClient(subscriptionID)
|
return original.NewEmailTemplateClient(subscriptionID)
|
||||||
}
|
}
|
||||||
@@ -833,6 +835,9 @@ func NewLoggerClient(subscriptionID string) LoggerClient {
|
|||||||
func NewLoggerClientWithBaseURI(baseURI string, subscriptionID string) LoggerClient {
|
func NewLoggerClientWithBaseURI(baseURI string, subscriptionID string) LoggerClient {
|
||||||
return original.NewLoggerClientWithBaseURI(baseURI, subscriptionID)
|
return original.NewLoggerClientWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
|
func PossibleAlwaysLogValues() []AlwaysLog {
|
||||||
|
return original.PossibleAlwaysLogValues()
|
||||||
|
}
|
||||||
func PossibleAPITypeValues() []APIType {
|
func PossibleAPITypeValues() []APIType {
|
||||||
return original.PossibleAPITypeValues()
|
return original.PossibleAPITypeValues()
|
||||||
}
|
}
|
||||||
@@ -899,6 +904,9 @@ func PossibleProductStateValues() []ProductState {
|
|||||||
func PossibleProtocolValues() []Protocol {
|
func PossibleProtocolValues() []Protocol {
|
||||||
return original.PossibleProtocolValues()
|
return original.PossibleProtocolValues()
|
||||||
}
|
}
|
||||||
|
func PossibleSamplingTypeValues() []SamplingType {
|
||||||
|
return original.PossibleSamplingTypeValues()
|
||||||
|
}
|
||||||
func PossibleSkuTypeValues() []SkuType {
|
func PossibleSkuTypeValues() []SkuType {
|
||||||
return original.PossibleSkuTypeValues()
|
return original.PossibleSkuTypeValues()
|
||||||
}
|
}
|
||||||
|
|||||||
915
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/automation/mgmt/automation/models.go
generated
vendored
Normal file
915
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/automation/mgmt/automation/models.go
generated
vendored
Normal 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)
|
||||||
|
}
|
||||||
111
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/devspaces/mgmt/devspaces/models.go
generated
vendored
Normal file
111
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/devspaces/mgmt/devspaces/models.go
generated
vendored
Normal 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()
|
||||||
|
}
|
||||||
@@ -28,6 +28,27 @@ const (
|
|||||||
type BaseClient = original.BaseClient
|
type BaseClient = original.BaseClient
|
||||||
type ClustersClient = original.ClustersClient
|
type ClustersClient = original.ClustersClient
|
||||||
type ConfigurationClient = original.ConfigurationClient
|
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 Cluster = original.Cluster
|
||||||
type ClusterListResult = original.ClusterListResult
|
type ClusterListResult = original.ClusterListResult
|
||||||
type ClusterListResultIterator = original.ClusterListResultIterator
|
type ClusterListResultIterator = original.ClusterListResultIterator
|
||||||
@@ -36,14 +57,33 @@ type ClusterProperties = original.ClusterProperties
|
|||||||
type ClusterQuotaConfigurationProperties = original.ClusterQuotaConfigurationProperties
|
type ClusterQuotaConfigurationProperties = original.ClusterQuotaConfigurationProperties
|
||||||
type ClusterSku = original.ClusterSku
|
type ClusterSku = original.ClusterSku
|
||||||
type ClustersPatchFuture = original.ClustersPatchFuture
|
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 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 Operation = original.Operation
|
||||||
type OperationDisplay = original.OperationDisplay
|
type OperationDisplay = original.OperationDisplay
|
||||||
type OperationListResult = original.OperationListResult
|
type OperationListResult = original.OperationListResult
|
||||||
type OperationListResultIterator = original.OperationListResultIterator
|
type OperationListResultIterator = original.OperationListResultIterator
|
||||||
type OperationListResultPage = original.OperationListResultPage
|
type OperationListResultPage = original.OperationListResultPage
|
||||||
type Resource = original.Resource
|
type Resource = original.Resource
|
||||||
|
type Sku = original.Sku
|
||||||
type TrackedResource = original.TrackedResource
|
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
|
type OperationsClient = original.OperationsClient
|
||||||
|
|
||||||
func New(subscriptionID string) BaseClient {
|
func New(subscriptionID string) BaseClient {
|
||||||
@@ -64,6 +104,21 @@ func NewConfigurationClient(subscriptionID string) ConfigurationClient {
|
|||||||
func NewConfigurationClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationClient {
|
func NewConfigurationClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationClient {
|
||||||
return original.NewConfigurationClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func NewOperationsClient(subscriptionID string) OperationsClient {
|
||||||
return original.NewOperationsClient(subscriptionID)
|
return original.NewOperationsClient(subscriptionID)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package hdinsight
|
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
|
type ApplicationsClient = original.ApplicationsClient
|
||||||
|
|
||||||
@@ -30,8 +30,8 @@ const (
|
|||||||
type BaseClient = original.BaseClient
|
type BaseClient = original.BaseClient
|
||||||
type ClustersClient = original.ClustersClient
|
type ClustersClient = original.ClustersClient
|
||||||
type ConfigurationsClient = original.ConfigurationsClient
|
type ConfigurationsClient = original.ConfigurationsClient
|
||||||
type ExtensionClient = original.ExtensionClient
|
type ExtensionsClient = original.ExtensionsClient
|
||||||
type LocationClient = original.LocationClient
|
type LocationsClient = original.LocationsClient
|
||||||
type AsyncOperationState = original.AsyncOperationState
|
type AsyncOperationState = original.AsyncOperationState
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -56,13 +56,6 @@ const (
|
|||||||
ActiveDirectory DirectoryType = original.ActiveDirectory
|
ActiveDirectory DirectoryType = original.ActiveDirectory
|
||||||
)
|
)
|
||||||
|
|
||||||
type EnabledCredential = original.EnabledCredential
|
|
||||||
|
|
||||||
const (
|
|
||||||
False EnabledCredential = original.False
|
|
||||||
True EnabledCredential = original.True
|
|
||||||
)
|
|
||||||
|
|
||||||
type OSType = original.OSType
|
type OSType = original.OSType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -80,12 +73,12 @@ const (
|
|||||||
type Application = original.Application
|
type Application = original.Application
|
||||||
type ApplicationGetEndpoint = original.ApplicationGetEndpoint
|
type ApplicationGetEndpoint = original.ApplicationGetEndpoint
|
||||||
type ApplicationGetHTTPSEndpoint = original.ApplicationGetHTTPSEndpoint
|
type ApplicationGetHTTPSEndpoint = original.ApplicationGetHTTPSEndpoint
|
||||||
type ApplicationGetProperties = original.ApplicationGetProperties
|
|
||||||
type ApplicationListResult = original.ApplicationListResult
|
type ApplicationListResult = original.ApplicationListResult
|
||||||
type ApplicationListResultIterator = original.ApplicationListResultIterator
|
type ApplicationListResultIterator = original.ApplicationListResultIterator
|
||||||
type ApplicationListResultPage = original.ApplicationListResultPage
|
type ApplicationListResultPage = original.ApplicationListResultPage
|
||||||
|
type ApplicationProperties = original.ApplicationProperties
|
||||||
|
type ApplicationsCreateFuture = original.ApplicationsCreateFuture
|
||||||
type ApplicationsDeleteFuture = original.ApplicationsDeleteFuture
|
type ApplicationsDeleteFuture = original.ApplicationsDeleteFuture
|
||||||
type CapabilitiesResult = original.CapabilitiesResult
|
|
||||||
type Cluster = original.Cluster
|
type Cluster = original.Cluster
|
||||||
type ClusterCreateParametersExtended = original.ClusterCreateParametersExtended
|
type ClusterCreateParametersExtended = original.ClusterCreateParametersExtended
|
||||||
type ClusterCreateProperties = original.ClusterCreateProperties
|
type ClusterCreateProperties = original.ClusterCreateProperties
|
||||||
@@ -108,14 +101,17 @@ type ComputeProfile = original.ComputeProfile
|
|||||||
type ConfigurationsUpdateHTTPSettingsFuture = original.ConfigurationsUpdateHTTPSettingsFuture
|
type ConfigurationsUpdateHTTPSettingsFuture = original.ConfigurationsUpdateHTTPSettingsFuture
|
||||||
type ConnectivityEndpoint = original.ConnectivityEndpoint
|
type ConnectivityEndpoint = original.ConnectivityEndpoint
|
||||||
type DataDisksGroups = original.DataDisksGroups
|
type DataDisksGroups = original.DataDisksGroups
|
||||||
|
type ErrorResponse = original.ErrorResponse
|
||||||
type Errors = original.Errors
|
type Errors = original.Errors
|
||||||
type ExecuteScriptActionParameters = original.ExecuteScriptActionParameters
|
type ExecuteScriptActionParameters = original.ExecuteScriptActionParameters
|
||||||
type Extension = original.Extension
|
type Extension = original.Extension
|
||||||
type ExtensionDisableMonitoringFuture = original.ExtensionDisableMonitoringFuture
|
type ExtensionsCreateFuture = original.ExtensionsCreateFuture
|
||||||
type ExtensionEnableMonitoringFuture = original.ExtensionEnableMonitoringFuture
|
type ExtensionsDeleteFuture = original.ExtensionsDeleteFuture
|
||||||
|
type ExtensionsDisableMonitoringFuture = original.ExtensionsDisableMonitoringFuture
|
||||||
|
type ExtensionsEnableMonitoringFuture = original.ExtensionsEnableMonitoringFuture
|
||||||
type HardwareProfile = original.HardwareProfile
|
type HardwareProfile = original.HardwareProfile
|
||||||
type HTTPConnectivitySettings = original.HTTPConnectivitySettings
|
|
||||||
type LinuxOperatingSystemProfile = original.LinuxOperatingSystemProfile
|
type LinuxOperatingSystemProfile = original.LinuxOperatingSystemProfile
|
||||||
|
type LocalizedName = original.LocalizedName
|
||||||
type Operation = original.Operation
|
type Operation = original.Operation
|
||||||
type OperationDisplay = original.OperationDisplay
|
type OperationDisplay = original.OperationDisplay
|
||||||
type OperationListResult = original.OperationListResult
|
type OperationListResult = original.OperationListResult
|
||||||
@@ -124,10 +120,7 @@ type OperationListResultPage = original.OperationListResultPage
|
|||||||
type OperationResource = original.OperationResource
|
type OperationResource = original.OperationResource
|
||||||
type OsProfile = original.OsProfile
|
type OsProfile = original.OsProfile
|
||||||
type ProxyResource = original.ProxyResource
|
type ProxyResource = original.ProxyResource
|
||||||
type QuotaCapability = original.QuotaCapability
|
|
||||||
type QuotaInfo = original.QuotaInfo
|
type QuotaInfo = original.QuotaInfo
|
||||||
type RegionalQuotaCapability = original.RegionalQuotaCapability
|
|
||||||
type RegionsCapability = original.RegionsCapability
|
|
||||||
type Resource = original.Resource
|
type Resource = original.Resource
|
||||||
type Role = original.Role
|
type Role = original.Role
|
||||||
type RuntimeScriptAction = original.RuntimeScriptAction
|
type RuntimeScriptAction = original.RuntimeScriptAction
|
||||||
@@ -148,11 +141,9 @@ type SSHPublicKey = original.SSHPublicKey
|
|||||||
type StorageAccount = original.StorageAccount
|
type StorageAccount = original.StorageAccount
|
||||||
type StorageProfile = original.StorageProfile
|
type StorageProfile = original.StorageProfile
|
||||||
type TrackedResource = original.TrackedResource
|
type TrackedResource = original.TrackedResource
|
||||||
type VersionsCapability = original.VersionsCapability
|
type Usage = original.Usage
|
||||||
type VersionSpec = original.VersionSpec
|
type UsagesListResult = original.UsagesListResult
|
||||||
type VirtualNetworkProfile = original.VirtualNetworkProfile
|
type VirtualNetworkProfile = original.VirtualNetworkProfile
|
||||||
type VMSizeCompatibilityFilter = original.VMSizeCompatibilityFilter
|
|
||||||
type VMSizesCapability = original.VMSizesCapability
|
|
||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
type ScriptActionsClient = original.ScriptActionsClient
|
type ScriptActionsClient = original.ScriptActionsClient
|
||||||
type ScriptExecutionHistoryClient = original.ScriptExecutionHistoryClient
|
type ScriptExecutionHistoryClient = original.ScriptExecutionHistoryClient
|
||||||
@@ -181,17 +172,17 @@ func NewConfigurationsClient(subscriptionID string) ConfigurationsClient {
|
|||||||
func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient {
|
func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient {
|
||||||
return original.NewConfigurationsClientWithBaseURI(baseURI, subscriptionID)
|
return original.NewConfigurationsClientWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
func NewExtensionClient(subscriptionID string) ExtensionClient {
|
func NewExtensionsClient(subscriptionID string) ExtensionsClient {
|
||||||
return original.NewExtensionClient(subscriptionID)
|
return original.NewExtensionsClient(subscriptionID)
|
||||||
}
|
}
|
||||||
func NewExtensionClientWithBaseURI(baseURI string, subscriptionID string) ExtensionClient {
|
func NewExtensionsClientWithBaseURI(baseURI string, subscriptionID string) ExtensionsClient {
|
||||||
return original.NewExtensionClientWithBaseURI(baseURI, subscriptionID)
|
return original.NewExtensionsClientWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
func NewLocationClient(subscriptionID string) LocationClient {
|
func NewLocationsClient(subscriptionID string) LocationsClient {
|
||||||
return original.NewLocationClient(subscriptionID)
|
return original.NewLocationsClient(subscriptionID)
|
||||||
}
|
}
|
||||||
func NewLocationClientWithBaseURI(baseURI string, subscriptionID string) LocationClient {
|
func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string) LocationsClient {
|
||||||
return original.NewLocationClientWithBaseURI(baseURI, subscriptionID)
|
return original.NewLocationsClientWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
func PossibleAsyncOperationStateValues() []AsyncOperationState {
|
func PossibleAsyncOperationStateValues() []AsyncOperationState {
|
||||||
return original.PossibleAsyncOperationStateValues()
|
return original.PossibleAsyncOperationStateValues()
|
||||||
@@ -202,9 +193,6 @@ func PossibleClusterProvisioningStateValues() []ClusterProvisioningState {
|
|||||||
func PossibleDirectoryTypeValues() []DirectoryType {
|
func PossibleDirectoryTypeValues() []DirectoryType {
|
||||||
return original.PossibleDirectoryTypeValues()
|
return original.PossibleDirectoryTypeValues()
|
||||||
}
|
}
|
||||||
func PossibleEnabledCredentialValues() []EnabledCredential {
|
|
||||||
return original.PossibleEnabledCredentialValues()
|
|
||||||
}
|
|
||||||
func PossibleOSTypeValues() []OSType {
|
func PossibleOSTypeValues() []OSType {
|
||||||
return original.PossibleOSTypeValues()
|
return original.PossibleOSTypeValues()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,10 +19,7 @@
|
|||||||
|
|
||||||
package iotcentral
|
package iotcentral
|
||||||
|
|
||||||
import (
|
import original "github.com/Azure/azure-sdk-for-go/services/preview/iotcentral/mgmt/2017-07-01-privatepreview/iotcentral"
|
||||||
original "github.com/Azure/azure-sdk-for-go/services/preview/iotcentral/mgmt/2017-07-01-privatepreview/iotcentral"
|
|
||||||
uuid "github.com/satori/go.uuid"
|
|
||||||
)
|
|
||||||
|
|
||||||
type AppsClient = original.AppsClient
|
type AppsClient = original.AppsClient
|
||||||
|
|
||||||
@@ -66,16 +63,16 @@ type OperationListResultPage = original.OperationListResultPage
|
|||||||
type Resource = original.Resource
|
type Resource = original.Resource
|
||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
|
|
||||||
func NewAppsClient(subscriptionID uuid.UUID) AppsClient {
|
func NewAppsClient(subscriptionID string) AppsClient {
|
||||||
return original.NewAppsClient(subscriptionID)
|
return original.NewAppsClient(subscriptionID)
|
||||||
}
|
}
|
||||||
func NewAppsClientWithBaseURI(baseURI string, subscriptionID uuid.UUID) AppsClient {
|
func NewAppsClientWithBaseURI(baseURI string, subscriptionID string) AppsClient {
|
||||||
return original.NewAppsClientWithBaseURI(baseURI, subscriptionID)
|
return original.NewAppsClientWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
func New(subscriptionID uuid.UUID) BaseClient {
|
func New(subscriptionID string) BaseClient {
|
||||||
return original.New(subscriptionID)
|
return original.New(subscriptionID)
|
||||||
}
|
}
|
||||||
func NewWithBaseURI(baseURI string, subscriptionID uuid.UUID) BaseClient {
|
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
|
||||||
return original.NewWithBaseURI(baseURI, subscriptionID)
|
return original.NewWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason {
|
func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason {
|
||||||
@@ -84,10 +81,10 @@ func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason {
|
|||||||
func PossibleAppSkuValues() []AppSku {
|
func PossibleAppSkuValues() []AppSku {
|
||||||
return original.PossibleAppSkuValues()
|
return original.PossibleAppSkuValues()
|
||||||
}
|
}
|
||||||
func NewOperationsClient(subscriptionID uuid.UUID) OperationsClient {
|
func NewOperationsClient(subscriptionID string) OperationsClient {
|
||||||
return original.NewOperationsClient(subscriptionID)
|
return original.NewOperationsClient(subscriptionID)
|
||||||
}
|
}
|
||||||
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID uuid.UUID) OperationsClient {
|
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
|
||||||
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
|
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
func UserAgent() string {
|
func UserAgent() string {
|
||||||
|
|||||||
@@ -42,9 +42,9 @@ type JSONWebKeyCurveName = original.JSONWebKeyCurveName
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
P256 JSONWebKeyCurveName = original.P256
|
P256 JSONWebKeyCurveName = original.P256
|
||||||
|
P256K JSONWebKeyCurveName = original.P256K
|
||||||
P384 JSONWebKeyCurveName = original.P384
|
P384 JSONWebKeyCurveName = original.P384
|
||||||
P521 JSONWebKeyCurveName = original.P521
|
P521 JSONWebKeyCurveName = original.P521
|
||||||
SECP256K1 JSONWebKeyCurveName = original.SECP256K1
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type JSONWebKeyEncryptionAlgorithm = original.JSONWebKeyEncryptionAlgorithm
|
type JSONWebKeyEncryptionAlgorithm = original.JSONWebKeyEncryptionAlgorithm
|
||||||
@@ -69,8 +69,8 @@ const (
|
|||||||
type JSONWebKeySignatureAlgorithm = original.JSONWebKeySignatureAlgorithm
|
type JSONWebKeySignatureAlgorithm = original.JSONWebKeySignatureAlgorithm
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ECDSA256 JSONWebKeySignatureAlgorithm = original.ECDSA256
|
|
||||||
ES256 JSONWebKeySignatureAlgorithm = original.ES256
|
ES256 JSONWebKeySignatureAlgorithm = original.ES256
|
||||||
|
ES256K JSONWebKeySignatureAlgorithm = original.ES256K
|
||||||
ES384 JSONWebKeySignatureAlgorithm = original.ES384
|
ES384 JSONWebKeySignatureAlgorithm = original.ES384
|
||||||
ES512 JSONWebKeySignatureAlgorithm = original.ES512
|
ES512 JSONWebKeySignatureAlgorithm = original.ES512
|
||||||
PS256 JSONWebKeySignatureAlgorithm = original.PS256
|
PS256 JSONWebKeySignatureAlgorithm = original.PS256
|
||||||
@@ -116,6 +116,7 @@ const (
|
|||||||
type Action = original.Action
|
type Action = original.Action
|
||||||
type AdministratorDetails = original.AdministratorDetails
|
type AdministratorDetails = original.AdministratorDetails
|
||||||
type Attributes = original.Attributes
|
type Attributes = original.Attributes
|
||||||
|
type BackupCertificateResult = original.BackupCertificateResult
|
||||||
type BackupKeyResult = original.BackupKeyResult
|
type BackupKeyResult = original.BackupKeyResult
|
||||||
type BackupSecretResult = original.BackupSecretResult
|
type BackupSecretResult = original.BackupSecretResult
|
||||||
type BackupStorageResult = original.BackupStorageResult
|
type BackupStorageResult = original.BackupStorageResult
|
||||||
@@ -137,6 +138,7 @@ type CertificateMergeParameters = original.CertificateMergeParameters
|
|||||||
type CertificateOperation = original.CertificateOperation
|
type CertificateOperation = original.CertificateOperation
|
||||||
type CertificateOperationUpdateParameter = original.CertificateOperationUpdateParameter
|
type CertificateOperationUpdateParameter = original.CertificateOperationUpdateParameter
|
||||||
type CertificatePolicy = original.CertificatePolicy
|
type CertificatePolicy = original.CertificatePolicy
|
||||||
|
type CertificateRestoreParameters = original.CertificateRestoreParameters
|
||||||
type CertificateUpdateParameters = original.CertificateUpdateParameters
|
type CertificateUpdateParameters = original.CertificateUpdateParameters
|
||||||
type Contact = original.Contact
|
type Contact = original.Contact
|
||||||
type Contacts = original.Contacts
|
type Contacts = original.Contacts
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package media
|
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
|
type AssetsClient = original.AssetsClient
|
||||||
|
|
||||||
@@ -607,7 +607,6 @@ type StreamingLocatorCollectionIterator = original.StreamingLocatorCollectionIte
|
|||||||
type StreamingLocatorCollectionPage = original.StreamingLocatorCollectionPage
|
type StreamingLocatorCollectionPage = original.StreamingLocatorCollectionPage
|
||||||
type StreamingLocatorContentKey = original.StreamingLocatorContentKey
|
type StreamingLocatorContentKey = original.StreamingLocatorContentKey
|
||||||
type StreamingLocatorProperties = original.StreamingLocatorProperties
|
type StreamingLocatorProperties = original.StreamingLocatorProperties
|
||||||
type StreamingLocatorUserDefinedContentKey = original.StreamingLocatorUserDefinedContentKey
|
|
||||||
type StreamingPath = original.StreamingPath
|
type StreamingPath = original.StreamingPath
|
||||||
type StreamingPolicy = original.StreamingPolicy
|
type StreamingPolicy = original.StreamingPolicy
|
||||||
type StreamingPolicyCollection = original.StreamingPolicyCollection
|
type StreamingPolicyCollection = original.StreamingPolicyCollection
|
||||||
|
|||||||
@@ -331,13 +331,16 @@ type ItsmReceiver = original.ItsmReceiver
|
|||||||
type LocalizableString = original.LocalizableString
|
type LocalizableString = original.LocalizableString
|
||||||
type LocationThresholdRuleCondition = original.LocationThresholdRuleCondition
|
type LocationThresholdRuleCondition = original.LocationThresholdRuleCondition
|
||||||
type LogicAppReceiver = original.LogicAppReceiver
|
type LogicAppReceiver = original.LogicAppReceiver
|
||||||
|
type LogMetricTrigger = original.LogMetricTrigger
|
||||||
type LogProfileCollection = original.LogProfileCollection
|
type LogProfileCollection = original.LogProfileCollection
|
||||||
type LogProfileProperties = original.LogProfileProperties
|
type LogProfileProperties = original.LogProfileProperties
|
||||||
type LogProfileResource = original.LogProfileResource
|
type LogProfileResource = original.LogProfileResource
|
||||||
type LogProfileResourcePatch = original.LogProfileResourcePatch
|
type LogProfileResourcePatch = original.LogProfileResourcePatch
|
||||||
type LogSearchRule = original.LogSearchRule
|
type LogSearchRule = original.LogSearchRule
|
||||||
|
type LogSearchRulePatch = original.LogSearchRulePatch
|
||||||
type LogSearchRuleResource = original.LogSearchRuleResource
|
type LogSearchRuleResource = original.LogSearchRuleResource
|
||||||
type LogSearchRuleResourceCollection = original.LogSearchRuleResourceCollection
|
type LogSearchRuleResourceCollection = original.LogSearchRuleResourceCollection
|
||||||
|
type LogSearchRuleResourcePatch = original.LogSearchRuleResourcePatch
|
||||||
type LogSettings = original.LogSettings
|
type LogSettings = original.LogSettings
|
||||||
type ManagementEventAggregationCondition = original.ManagementEventAggregationCondition
|
type ManagementEventAggregationCondition = original.ManagementEventAggregationCondition
|
||||||
type ManagementEventRuleCondition = original.ManagementEventRuleCondition
|
type ManagementEventRuleCondition = original.ManagementEventRuleCondition
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ type Solution = original.Solution
|
|||||||
type SolutionPlan = original.SolutionPlan
|
type SolutionPlan = original.SolutionPlan
|
||||||
type SolutionProperties = original.SolutionProperties
|
type SolutionProperties = original.SolutionProperties
|
||||||
type SolutionPropertiesList = original.SolutionPropertiesList
|
type SolutionPropertiesList = original.SolutionPropertiesList
|
||||||
|
type SolutionsCreateOrUpdateFuture = original.SolutionsCreateOrUpdateFuture
|
||||||
|
type SolutionsDeleteFuture = original.SolutionsDeleteFuture
|
||||||
type OperationsClient = original.OperationsClient
|
type OperationsClient = original.OperationsClient
|
||||||
type SolutionsClient = original.SolutionsClient
|
type SolutionsClient = original.SolutionsClient
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ const (
|
|||||||
Basic SkuTier = original.Basic
|
Basic SkuTier = original.Basic
|
||||||
Free SkuTier = original.Free
|
Free SkuTier = original.Free
|
||||||
Premium SkuTier = original.Premium
|
Premium SkuTier = original.Premium
|
||||||
|
Standard SkuTier = original.Standard
|
||||||
)
|
)
|
||||||
|
|
||||||
type CreateOrUpdateFuture = original.CreateOrUpdateFuture
|
type CreateOrUpdateFuture = original.CreateOrUpdateFuture
|
||||||
|
|||||||
21
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/sql/mgmt/sql/models.go
generated
vendored
21
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/sql/mgmt/sql/models.go
generated
vendored
@@ -35,6 +35,7 @@ type DatabaseVulnerabilityAssessmentScansClient = original.DatabaseVulnerability
|
|||||||
type ElasticPoolOperationsClient = original.ElasticPoolOperationsClient
|
type ElasticPoolOperationsClient = original.ElasticPoolOperationsClient
|
||||||
type ElasticPoolsClient = original.ElasticPoolsClient
|
type ElasticPoolsClient = original.ElasticPoolsClient
|
||||||
type InstanceFailoverGroupsClient = original.InstanceFailoverGroupsClient
|
type InstanceFailoverGroupsClient = original.InstanceFailoverGroupsClient
|
||||||
|
type ManagedInstanceTdeCertificatesClient = original.ManagedInstanceTdeCertificatesClient
|
||||||
type CapabilityGroup = original.CapabilityGroup
|
type CapabilityGroup = original.CapabilityGroup
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -211,6 +212,9 @@ const (
|
|||||||
type BackupShortTermRetentionPoliciesCreateOrUpdateFuture = original.BackupShortTermRetentionPoliciesCreateOrUpdateFuture
|
type BackupShortTermRetentionPoliciesCreateOrUpdateFuture = original.BackupShortTermRetentionPoliciesCreateOrUpdateFuture
|
||||||
type BackupShortTermRetentionPoliciesUpdateFuture = original.BackupShortTermRetentionPoliciesUpdateFuture
|
type BackupShortTermRetentionPoliciesUpdateFuture = original.BackupShortTermRetentionPoliciesUpdateFuture
|
||||||
type BackupShortTermRetentionPolicy = original.BackupShortTermRetentionPolicy
|
type BackupShortTermRetentionPolicy = original.BackupShortTermRetentionPolicy
|
||||||
|
type BackupShortTermRetentionPolicyListResult = original.BackupShortTermRetentionPolicyListResult
|
||||||
|
type BackupShortTermRetentionPolicyListResultIterator = original.BackupShortTermRetentionPolicyListResultIterator
|
||||||
|
type BackupShortTermRetentionPolicyListResultPage = original.BackupShortTermRetentionPolicyListResultPage
|
||||||
type BackupShortTermRetentionPolicyProperties = original.BackupShortTermRetentionPolicyProperties
|
type BackupShortTermRetentionPolicyProperties = original.BackupShortTermRetentionPolicyProperties
|
||||||
type Database = original.Database
|
type Database = original.Database
|
||||||
type DatabaseListResult = original.DatabaseListResult
|
type DatabaseListResult = original.DatabaseListResult
|
||||||
@@ -272,6 +276,7 @@ type LogSizeCapability = original.LogSizeCapability
|
|||||||
type ManagedInstanceEditionCapability = original.ManagedInstanceEditionCapability
|
type ManagedInstanceEditionCapability = original.ManagedInstanceEditionCapability
|
||||||
type ManagedInstanceFamilyCapability = original.ManagedInstanceFamilyCapability
|
type ManagedInstanceFamilyCapability = original.ManagedInstanceFamilyCapability
|
||||||
type ManagedInstancePairInfo = original.ManagedInstancePairInfo
|
type ManagedInstancePairInfo = original.ManagedInstancePairInfo
|
||||||
|
type ManagedInstanceTdeCertificatesCreateFuture = original.ManagedInstanceTdeCertificatesCreateFuture
|
||||||
type ManagedInstanceVcoresCapability = original.ManagedInstanceVcoresCapability
|
type ManagedInstanceVcoresCapability = original.ManagedInstanceVcoresCapability
|
||||||
type ManagedInstanceVersionCapability = original.ManagedInstanceVersionCapability
|
type ManagedInstanceVersionCapability = original.ManagedInstanceVersionCapability
|
||||||
type MaxSizeCapability = original.MaxSizeCapability
|
type MaxSizeCapability = original.MaxSizeCapability
|
||||||
@@ -284,6 +289,9 @@ type ResourceMoveDefinition = original.ResourceMoveDefinition
|
|||||||
type ServerVersionCapability = original.ServerVersionCapability
|
type ServerVersionCapability = original.ServerVersionCapability
|
||||||
type ServiceObjectiveCapability = original.ServiceObjectiveCapability
|
type ServiceObjectiveCapability = original.ServiceObjectiveCapability
|
||||||
type Sku = original.Sku
|
type Sku = original.Sku
|
||||||
|
type TdeCertificate = original.TdeCertificate
|
||||||
|
type TdeCertificateProperties = original.TdeCertificateProperties
|
||||||
|
type TdeCertificatesCreateFuture = original.TdeCertificatesCreateFuture
|
||||||
type TrackedResource = original.TrackedResource
|
type TrackedResource = original.TrackedResource
|
||||||
type VulnerabilityAssessmentRecurringScansProperties = original.VulnerabilityAssessmentRecurringScansProperties
|
type VulnerabilityAssessmentRecurringScansProperties = original.VulnerabilityAssessmentRecurringScansProperties
|
||||||
type VulnerabilityAssessmentScanError = original.VulnerabilityAssessmentScanError
|
type VulnerabilityAssessmentScanError = original.VulnerabilityAssessmentScanError
|
||||||
@@ -292,6 +300,7 @@ type VulnerabilityAssessmentScanRecordListResult = original.VulnerabilityAssessm
|
|||||||
type VulnerabilityAssessmentScanRecordListResultIterator = original.VulnerabilityAssessmentScanRecordListResultIterator
|
type VulnerabilityAssessmentScanRecordListResultIterator = original.VulnerabilityAssessmentScanRecordListResultIterator
|
||||||
type VulnerabilityAssessmentScanRecordListResultPage = original.VulnerabilityAssessmentScanRecordListResultPage
|
type VulnerabilityAssessmentScanRecordListResultPage = original.VulnerabilityAssessmentScanRecordListResultPage
|
||||||
type VulnerabilityAssessmentScanRecordProperties = original.VulnerabilityAssessmentScanRecordProperties
|
type VulnerabilityAssessmentScanRecordProperties = original.VulnerabilityAssessmentScanRecordProperties
|
||||||
|
type TdeCertificatesClient = original.TdeCertificatesClient
|
||||||
|
|
||||||
func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient {
|
func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient {
|
||||||
return original.NewBackupShortTermRetentionPoliciesClient(subscriptionID)
|
return original.NewBackupShortTermRetentionPoliciesClient(subscriptionID)
|
||||||
@@ -347,6 +356,12 @@ func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGrou
|
|||||||
func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient {
|
func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient {
|
||||||
return original.NewInstanceFailoverGroupsClientWithBaseURI(baseURI, subscriptionID)
|
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 {
|
func PossibleCapabilityGroupValues() []CapabilityGroup {
|
||||||
return original.PossibleCapabilityGroupValues()
|
return original.PossibleCapabilityGroupValues()
|
||||||
}
|
}
|
||||||
@@ -404,6 +419,12 @@ func PossibleVulnerabilityAssessmentScanStateValues() []VulnerabilityAssessmentS
|
|||||||
func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType {
|
func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType {
|
||||||
return original.PossibleVulnerabilityAssessmentScanTriggerTypeValues()
|
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 {
|
func UserAgent() string {
|
||||||
return original.UserAgent() + " profiles/preview"
|
return original.UserAgent() + " profiles/preview"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,17 +52,22 @@ const (
|
|||||||
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
|
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
|
||||||
ContainerTypeCluster ContainerType = original.ContainerTypeCluster
|
ContainerTypeCluster ContainerType = original.ContainerTypeCluster
|
||||||
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
|
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
|
||||||
|
ContainerTypeExchangeDAG ContainerType = original.ContainerTypeExchangeDAG
|
||||||
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
|
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
|
||||||
|
ContainerTypeHyperVCluster ContainerType = original.ContainerTypeHyperVCluster
|
||||||
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
|
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
|
||||||
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
|
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
|
||||||
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
|
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
|
||||||
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
|
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
|
||||||
|
ContainerTypeSharepointFarm ContainerType = original.ContainerTypeSharepointFarm
|
||||||
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
|
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
|
||||||
|
ContainerTypeSQLCluster ContainerType = original.ContainerTypeSQLCluster
|
||||||
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
|
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
|
||||||
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
|
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
|
||||||
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
|
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
|
||||||
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
|
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
|
||||||
ContainerTypeWindows ContainerType = original.ContainerTypeWindows
|
ContainerTypeWindows ContainerType = original.ContainerTypeWindows
|
||||||
|
ContainerTypeWindowsClient ContainerType = original.ContainerTypeWindowsClient
|
||||||
)
|
)
|
||||||
|
|
||||||
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
|
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
|
||||||
@@ -74,13 +79,13 @@ const (
|
|||||||
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
|
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
|
||||||
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
|
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
|
||||||
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
|
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
|
||||||
ContainerTypeMABWindowsContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeMABWindowsContainer
|
|
||||||
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
|
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
|
||||||
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
|
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
|
||||||
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
|
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
|
||||||
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
|
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
|
||||||
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
|
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
|
||||||
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
|
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
|
||||||
|
ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1
|
||||||
)
|
)
|
||||||
|
|
||||||
type CopyOptions = original.CopyOptions
|
type CopyOptions = original.CopyOptions
|
||||||
@@ -93,6 +98,14 @@ const (
|
|||||||
CopyOptionsSkip CopyOptions = original.CopyOptionsSkip
|
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
|
type DataSourceType = original.DataSourceType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -103,6 +116,7 @@ const (
|
|||||||
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
|
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
|
||||||
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
|
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
|
||||||
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
|
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
|
||||||
|
DataSourceTypeSAPHanaDatabase DataSourceType = original.DataSourceTypeSAPHanaDatabase
|
||||||
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
|
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
|
||||||
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
|
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
|
||||||
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
|
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
|
||||||
@@ -149,6 +163,7 @@ const (
|
|||||||
type FeatureType = original.FeatureType
|
type FeatureType = original.FeatureType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
FeatureTypeAzureBackupGoals FeatureType = original.FeatureTypeAzureBackupGoals
|
||||||
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
|
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
|
||||||
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
|
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
|
||||||
)
|
)
|
||||||
@@ -241,6 +256,7 @@ const (
|
|||||||
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
|
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
|
||||||
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
|
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
|
||||||
ItemTypeInvalid ItemType = original.ItemTypeInvalid
|
ItemTypeInvalid ItemType = original.ItemTypeInvalid
|
||||||
|
ItemTypeSAPHanaDatabase ItemType = original.ItemTypeSAPHanaDatabase
|
||||||
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
|
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
|
||||||
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
|
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
|
||||||
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
|
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
|
||||||
@@ -309,17 +325,22 @@ const (
|
|||||||
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
|
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
|
||||||
MabServerTypeCluster MabServerType = original.MabServerTypeCluster
|
MabServerTypeCluster MabServerType = original.MabServerTypeCluster
|
||||||
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
|
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
|
||||||
|
MabServerTypeExchangeDAG MabServerType = original.MabServerTypeExchangeDAG
|
||||||
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
|
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
|
||||||
|
MabServerTypeHyperVCluster MabServerType = original.MabServerTypeHyperVCluster
|
||||||
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
|
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
|
||||||
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
|
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
|
||||||
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
|
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
|
||||||
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
|
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
|
||||||
|
MabServerTypeSharepointFarm MabServerType = original.MabServerTypeSharepointFarm
|
||||||
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
|
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
|
||||||
|
MabServerTypeSQLCluster MabServerType = original.MabServerTypeSQLCluster
|
||||||
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
|
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
|
||||||
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
|
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
|
||||||
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
|
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
|
||||||
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
|
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
|
||||||
MabServerTypeWindows MabServerType = original.MabServerTypeWindows
|
MabServerTypeWindows MabServerType = original.MabServerTypeWindows
|
||||||
|
MabServerTypeWindowsClient MabServerType = original.MabServerTypeWindowsClient
|
||||||
)
|
)
|
||||||
|
|
||||||
type ManagementType = original.ManagementType
|
type ManagementType = original.ManagementType
|
||||||
@@ -404,6 +425,8 @@ type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint
|
|||||||
const (
|
const (
|
||||||
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
|
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
|
||||||
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
|
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
|
||||||
|
ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint
|
||||||
|
ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint
|
||||||
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
|
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
|
||||||
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
|
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
|
||||||
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
|
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
|
||||||
@@ -416,6 +439,8 @@ type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest
|
|||||||
const (
|
const (
|
||||||
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
|
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
|
||||||
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
|
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
|
||||||
|
ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest
|
||||||
|
ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest
|
||||||
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
|
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
|
||||||
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
|
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
|
||||||
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
|
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
|
||||||
@@ -456,6 +481,8 @@ const (
|
|||||||
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
|
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
|
||||||
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
|
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
|
||||||
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
|
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
|
||||||
|
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
|
||||||
|
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
|
||||||
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
|
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
|
||||||
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
|
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
|
||||||
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
|
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
|
||||||
@@ -488,6 +515,8 @@ type ProtectedItemType = original.ProtectedItemType
|
|||||||
const (
|
const (
|
||||||
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
|
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
|
||||||
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
|
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
|
||||||
|
ProtectedItemTypeAzureVMWorkloadProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadProtectedItem
|
||||||
|
ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase
|
||||||
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
|
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
|
||||||
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
|
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
|
||||||
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
|
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
|
||||||
@@ -502,7 +531,10 @@ type ProtectionIntentItemType = original.ProtectionIntentItemType
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
|
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
|
||||||
|
ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent
|
||||||
|
ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent
|
||||||
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
|
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
|
||||||
|
ProtectionIntentItemTypeRecoveryServiceVaultItem ProtectionIntentItemType = original.ProtectionIntentItemTypeRecoveryServiceVaultItem
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProtectionState = original.ProtectionState
|
type ProtectionState = original.ProtectionState
|
||||||
@@ -697,17 +729,20 @@ const (
|
|||||||
type WeekOfMonth = original.WeekOfMonth
|
type WeekOfMonth = original.WeekOfMonth
|
||||||
|
|
||||||
const (
|
const (
|
||||||
First WeekOfMonth = original.First
|
WeekOfMonthFirst WeekOfMonth = original.WeekOfMonthFirst
|
||||||
Fourth WeekOfMonth = original.Fourth
|
WeekOfMonthFourth WeekOfMonth = original.WeekOfMonthFourth
|
||||||
Last WeekOfMonth = original.Last
|
WeekOfMonthInvalid WeekOfMonth = original.WeekOfMonthInvalid
|
||||||
Second WeekOfMonth = original.Second
|
WeekOfMonthLast WeekOfMonth = original.WeekOfMonthLast
|
||||||
Third WeekOfMonth = original.Third
|
WeekOfMonthSecond WeekOfMonth = original.WeekOfMonthSecond
|
||||||
|
WeekOfMonthThird WeekOfMonth = original.WeekOfMonthThird
|
||||||
)
|
)
|
||||||
|
|
||||||
type WorkloadItemType = original.WorkloadItemType
|
type WorkloadItemType = original.WorkloadItemType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
|
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
|
||||||
|
WorkloadItemTypeSAPHanaDatabase WorkloadItemType = original.WorkloadItemTypeSAPHanaDatabase
|
||||||
|
WorkloadItemTypeSAPHanaSystem WorkloadItemType = original.WorkloadItemTypeSAPHanaSystem
|
||||||
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
|
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
|
||||||
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
|
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
|
||||||
)
|
)
|
||||||
@@ -716,6 +751,8 @@ type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadI
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
|
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
|
||||||
|
WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1
|
||||||
|
WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1
|
||||||
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
|
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
|
||||||
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
|
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
|
||||||
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
|
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
|
||||||
@@ -731,6 +768,7 @@ const (
|
|||||||
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
|
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
|
||||||
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
|
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
|
||||||
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
|
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
|
||||||
|
WorkloadTypeSAPHanaDatabase WorkloadType = original.WorkloadTypeSAPHanaDatabase
|
||||||
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
|
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
|
||||||
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
|
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
|
||||||
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
|
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
|
||||||
@@ -739,6 +777,7 @@ const (
|
|||||||
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
|
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest
|
||||||
type AzureBackupServerContainer = original.AzureBackupServerContainer
|
type AzureBackupServerContainer = original.AzureBackupServerContainer
|
||||||
type AzureBackupServerEngine = original.AzureBackupServerEngine
|
type AzureBackupServerEngine = original.AzureBackupServerEngine
|
||||||
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
|
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
|
||||||
@@ -763,6 +802,8 @@ type BasicAzureIaaSVMProtectedItem = original.BasicAzureIaaSVMProtectedItem
|
|||||||
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
|
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
|
||||||
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
|
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
|
||||||
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
|
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
|
||||||
|
type BasicAzureRecoveryServiceVaultProtectionIntent = original.BasicAzureRecoveryServiceVaultProtectionIntent
|
||||||
|
type AzureRecoveryServiceVaultProtectionIntent = original.AzureRecoveryServiceVaultProtectionIntent
|
||||||
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
|
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
|
||||||
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
|
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
|
||||||
type AzureSQLContainer = original.AzureSQLContainer
|
type AzureSQLContainer = original.AzureSQLContainer
|
||||||
@@ -783,14 +824,23 @@ type BasicAzureVMWorkloadItem = original.BasicAzureVMWorkloadItem
|
|||||||
type AzureVMWorkloadItem = original.AzureVMWorkloadItem
|
type AzureVMWorkloadItem = original.AzureVMWorkloadItem
|
||||||
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
|
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
|
||||||
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
|
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
|
||||||
|
type BasicAzureVMWorkloadProtectedItem = original.BasicAzureVMWorkloadProtectedItem
|
||||||
|
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
|
||||||
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
|
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
|
||||||
type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy
|
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 AzureVMWorkloadSQLAvailabilityGroupProtectableItem = original.AzureVMWorkloadSQLAvailabilityGroupProtectableItem
|
||||||
type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
|
type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
|
||||||
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
|
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
|
||||||
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
|
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
|
||||||
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
|
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
|
||||||
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
|
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
|
||||||
|
type BasicAzureWorkloadAutoProtectionIntent = original.BasicAzureWorkloadAutoProtectionIntent
|
||||||
|
type AzureWorkloadAutoProtectionIntent = original.AzureWorkloadAutoProtectionIntent
|
||||||
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
|
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
|
||||||
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
|
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
|
||||||
type AzureWorkloadContainer = original.AzureWorkloadContainer
|
type AzureWorkloadContainer = original.AzureWorkloadContainer
|
||||||
@@ -803,6 +853,13 @@ type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint
|
|||||||
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
|
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
|
||||||
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
|
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
|
||||||
type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest
|
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 AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint
|
||||||
type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
|
type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
|
||||||
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
|
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
|
||||||
@@ -815,6 +872,7 @@ type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject
|
|||||||
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
|
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
|
||||||
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
|
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
|
||||||
type BMSContainerQueryObject = original.BMSContainerQueryObject
|
type BMSContainerQueryObject = original.BMSContainerQueryObject
|
||||||
|
type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject
|
||||||
type BMSPOQueryObject = original.BMSPOQueryObject
|
type BMSPOQueryObject = original.BMSPOQueryObject
|
||||||
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
|
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
|
||||||
type BMSRPQueryObject = original.BMSRPQueryObject
|
type BMSRPQueryObject = original.BMSRPQueryObject
|
||||||
@@ -1102,6 +1160,9 @@ func PossibleContainerTypeBasicProtectionContainerValues() []ContainerTypeBasicP
|
|||||||
func PossibleCopyOptionsValues() []CopyOptions {
|
func PossibleCopyOptionsValues() []CopyOptions {
|
||||||
return original.PossibleCopyOptionsValues()
|
return original.PossibleCopyOptionsValues()
|
||||||
}
|
}
|
||||||
|
func PossibleCreateModeValues() []CreateMode {
|
||||||
|
return original.PossibleCreateModeValues()
|
||||||
|
}
|
||||||
func PossibleDataSourceTypeValues() []DataSourceType {
|
func PossibleDataSourceTypeValues() []DataSourceType {
|
||||||
return original.PossibleDataSourceTypeValues()
|
return original.PossibleDataSourceTypeValues()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,71 +33,64 @@ const (
|
|||||||
Single AppliedScopeType = original.Single
|
Single AppliedScopeType = original.Single
|
||||||
)
|
)
|
||||||
|
|
||||||
type AppliedScopeType1 = original.AppliedScopeType1
|
type ErrorResponseCode = original.ErrorResponseCode
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AppliedScopeType1Shared AppliedScopeType1 = original.AppliedScopeType1Shared
|
ActivateQuoteFailed ErrorResponseCode = original.ActivateQuoteFailed
|
||||||
AppliedScopeType1Single AppliedScopeType1 = original.AppliedScopeType1Single
|
AppliedScopesNotAssociatedWithCommerceAccount ErrorResponseCode = original.AppliedScopesNotAssociatedWithCommerceAccount
|
||||||
)
|
AuthorizationFailed ErrorResponseCode = original.AuthorizationFailed
|
||||||
|
BadRequest ErrorResponseCode = original.BadRequest
|
||||||
type Code = original.Code
|
BillingCustomerInputError ErrorResponseCode = original.BillingCustomerInputError
|
||||||
|
BillingError ErrorResponseCode = original.BillingError
|
||||||
const (
|
BillingPaymentInstrumentHardError ErrorResponseCode = original.BillingPaymentInstrumentHardError
|
||||||
ActivateQuoteFailed Code = original.ActivateQuoteFailed
|
BillingPaymentInstrumentSoftError ErrorResponseCode = original.BillingPaymentInstrumentSoftError
|
||||||
AppliedScopesNotAssociatedWithCommerceAccount Code = original.AppliedScopesNotAssociatedWithCommerceAccount
|
BillingScopeIDCannotBeChanged ErrorResponseCode = original.BillingScopeIDCannotBeChanged
|
||||||
AuthorizationFailed Code = original.AuthorizationFailed
|
BillingTransientError ErrorResponseCode = original.BillingTransientError
|
||||||
BadRequest Code = original.BadRequest
|
CalculatePriceFailed ErrorResponseCode = original.CalculatePriceFailed
|
||||||
BillingCustomerInputError Code = original.BillingCustomerInputError
|
CapacityUpdateScopesFailed ErrorResponseCode = original.CapacityUpdateScopesFailed
|
||||||
BillingError Code = original.BillingError
|
ClientCertificateThumbprintNotSet ErrorResponseCode = original.ClientCertificateThumbprintNotSet
|
||||||
BillingPaymentInstrumentHardError Code = original.BillingPaymentInstrumentHardError
|
CreateQuoteFailed ErrorResponseCode = original.CreateQuoteFailed
|
||||||
BillingPaymentInstrumentSoftError Code = original.BillingPaymentInstrumentSoftError
|
Forbidden ErrorResponseCode = original.Forbidden
|
||||||
BillingScopeIDCannotBeChanged Code = original.BillingScopeIDCannotBeChanged
|
FulfillmentConfigurationError ErrorResponseCode = original.FulfillmentConfigurationError
|
||||||
BillingTransientError Code = original.BillingTransientError
|
FulfillmentError ErrorResponseCode = original.FulfillmentError
|
||||||
CalculatePriceFailed Code = original.CalculatePriceFailed
|
FulfillmentOutOfStockError ErrorResponseCode = original.FulfillmentOutOfStockError
|
||||||
CapacityUpdateScopesFailed Code = original.CapacityUpdateScopesFailed
|
FulfillmentTransientError ErrorResponseCode = original.FulfillmentTransientError
|
||||||
ClientCertificateThumbprintNotSet Code = original.ClientCertificateThumbprintNotSet
|
HTTPMethodNotSupported ErrorResponseCode = original.HTTPMethodNotSupported
|
||||||
CreateQuoteFailed Code = original.CreateQuoteFailed
|
InternalServerError ErrorResponseCode = original.InternalServerError
|
||||||
Forbidden Code = original.Forbidden
|
InvalidAccessToken ErrorResponseCode = original.InvalidAccessToken
|
||||||
FulfillmentConfigurationError Code = original.FulfillmentConfigurationError
|
InvalidFulfillmentRequestParameters ErrorResponseCode = original.InvalidFulfillmentRequestParameters
|
||||||
FulfillmentError Code = original.FulfillmentError
|
InvalidHealthCheckType ErrorResponseCode = original.InvalidHealthCheckType
|
||||||
FulfillmentOutOfStockError Code = original.FulfillmentOutOfStockError
|
InvalidLocationID ErrorResponseCode = original.InvalidLocationID
|
||||||
FulfillmentTransientError Code = original.FulfillmentTransientError
|
InvalidRefundQuantity ErrorResponseCode = original.InvalidRefundQuantity
|
||||||
HTTPMethodNotSupported Code = original.HTTPMethodNotSupported
|
InvalidRequestContent ErrorResponseCode = original.InvalidRequestContent
|
||||||
InternalServerError Code = original.InternalServerError
|
InvalidRequestURI ErrorResponseCode = original.InvalidRequestURI
|
||||||
InvalidAccessToken Code = original.InvalidAccessToken
|
InvalidReservationID ErrorResponseCode = original.InvalidReservationID
|
||||||
InvalidFulfillmentRequestParameters Code = original.InvalidFulfillmentRequestParameters
|
InvalidReservationOrderID ErrorResponseCode = original.InvalidReservationOrderID
|
||||||
InvalidHealthCheckType Code = original.InvalidHealthCheckType
|
InvalidSingleAppliedScopesCount ErrorResponseCode = original.InvalidSingleAppliedScopesCount
|
||||||
InvalidLocationID Code = original.InvalidLocationID
|
InvalidSubscriptionID ErrorResponseCode = original.InvalidSubscriptionID
|
||||||
InvalidRefundQuantity Code = original.InvalidRefundQuantity
|
InvalidTenantID ErrorResponseCode = original.InvalidTenantID
|
||||||
InvalidRequestContent Code = original.InvalidRequestContent
|
MissingAppliedScopesForSingle ErrorResponseCode = original.MissingAppliedScopesForSingle
|
||||||
InvalidRequestURI Code = original.InvalidRequestURI
|
MissingTenantID ErrorResponseCode = original.MissingTenantID
|
||||||
InvalidReservationID Code = original.InvalidReservationID
|
NonsupportedAccountID ErrorResponseCode = original.NonsupportedAccountID
|
||||||
InvalidReservationOrderID Code = original.InvalidReservationOrderID
|
NotSpecified ErrorResponseCode = original.NotSpecified
|
||||||
InvalidSingleAppliedScopesCount Code = original.InvalidSingleAppliedScopesCount
|
NotSupportedCountry ErrorResponseCode = original.NotSupportedCountry
|
||||||
InvalidSubscriptionID Code = original.InvalidSubscriptionID
|
NoValidReservationsToReRate ErrorResponseCode = original.NoValidReservationsToReRate
|
||||||
InvalidTenantID Code = original.InvalidTenantID
|
OperationCannotBePerformedInCurrentState ErrorResponseCode = original.OperationCannotBePerformedInCurrentState
|
||||||
MissingAppliedScopesForSingle Code = original.MissingAppliedScopesForSingle
|
OperationFailed ErrorResponseCode = original.OperationFailed
|
||||||
MissingTenantID Code = original.MissingTenantID
|
PatchValuesSameAsExisting ErrorResponseCode = original.PatchValuesSameAsExisting
|
||||||
NonsupportedAccountID Code = original.NonsupportedAccountID
|
PaymentInstrumentNotFound ErrorResponseCode = original.PaymentInstrumentNotFound
|
||||||
NotSpecified Code = original.NotSpecified
|
PurchaseError ErrorResponseCode = original.PurchaseError
|
||||||
NotSupportedCountry Code = original.NotSupportedCountry
|
ReRateOnlyAllowedForEA ErrorResponseCode = original.ReRateOnlyAllowedForEA
|
||||||
NoValidReservationsToReRate Code = original.NoValidReservationsToReRate
|
ReservationIDNotInReservationOrder ErrorResponseCode = original.ReservationIDNotInReservationOrder
|
||||||
OperationCannotBePerformedInCurrentState Code = original.OperationCannotBePerformedInCurrentState
|
ReservationOrderCreationFailed ErrorResponseCode = original.ReservationOrderCreationFailed
|
||||||
OperationFailed Code = original.OperationFailed
|
ReservationOrderIDAlreadyExists ErrorResponseCode = original.ReservationOrderIDAlreadyExists
|
||||||
PatchValuesSameAsExisting Code = original.PatchValuesSameAsExisting
|
ReservationOrderNotEnabled ErrorResponseCode = original.ReservationOrderNotEnabled
|
||||||
PaymentInstrumentNotFound Code = original.PaymentInstrumentNotFound
|
ReservationOrderNotFound ErrorResponseCode = original.ReservationOrderNotFound
|
||||||
PurchaseError Code = original.PurchaseError
|
RiskCheckFailed ErrorResponseCode = original.RiskCheckFailed
|
||||||
ReRateOnlyAllowedForEA Code = original.ReRateOnlyAllowedForEA
|
RoleAssignmentCreationFailed ErrorResponseCode = original.RoleAssignmentCreationFailed
|
||||||
ReservationIDNotInReservationOrder Code = original.ReservationIDNotInReservationOrder
|
ServerTimeout ErrorResponseCode = original.ServerTimeout
|
||||||
ReservationOrderCreationFailed Code = original.ReservationOrderCreationFailed
|
UnauthenticatedRequestsThrottled ErrorResponseCode = original.UnauthenticatedRequestsThrottled
|
||||||
ReservationOrderIDAlreadyExists Code = original.ReservationOrderIDAlreadyExists
|
UnsupportedReservationTerm ErrorResponseCode = original.UnsupportedReservationTerm
|
||||||
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
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type InstanceFlexibility = original.InstanceFlexibility
|
type InstanceFlexibility = original.InstanceFlexibility
|
||||||
@@ -108,81 +101,11 @@ const (
|
|||||||
On InstanceFlexibility = original.On
|
On InstanceFlexibility = original.On
|
||||||
)
|
)
|
||||||
|
|
||||||
type InstanceFlexibility1 = original.InstanceFlexibility1
|
type ReservationTerm = original.ReservationTerm
|
||||||
|
|
||||||
const (
|
const (
|
||||||
InstanceFlexibility1NotSupported InstanceFlexibility1 = original.InstanceFlexibility1NotSupported
|
P1Y ReservationTerm = original.P1Y
|
||||||
InstanceFlexibility1Off InstanceFlexibility1 = original.InstanceFlexibility1Off
|
P3Y ReservationTerm = original.P3Y
|
||||||
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
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type ReservedResourceType = original.ReservedResourceType
|
type ReservedResourceType = original.ReservedResourceType
|
||||||
@@ -207,13 +130,6 @@ const (
|
|||||||
StatusCodeSucceeded StatusCode = original.StatusCodeSucceeded
|
StatusCodeSucceeded StatusCode = original.StatusCodeSucceeded
|
||||||
)
|
)
|
||||||
|
|
||||||
type Term = original.Term
|
|
||||||
|
|
||||||
const (
|
|
||||||
P1Y Term = original.P1Y
|
|
||||||
P3Y Term = original.P3Y
|
|
||||||
)
|
|
||||||
|
|
||||||
type AppliedReservationList = original.AppliedReservationList
|
type AppliedReservationList = original.AppliedReservationList
|
||||||
type AppliedReservations = original.AppliedReservations
|
type AppliedReservations = original.AppliedReservations
|
||||||
type AppliedReservationsProperties = original.AppliedReservationsProperties
|
type AppliedReservationsProperties = original.AppliedReservationsProperties
|
||||||
@@ -265,26 +181,14 @@ func NewWithBaseURI(baseURI string) BaseClient {
|
|||||||
func PossibleAppliedScopeTypeValues() []AppliedScopeType {
|
func PossibleAppliedScopeTypeValues() []AppliedScopeType {
|
||||||
return original.PossibleAppliedScopeTypeValues()
|
return original.PossibleAppliedScopeTypeValues()
|
||||||
}
|
}
|
||||||
func PossibleAppliedScopeType1Values() []AppliedScopeType1 {
|
func PossibleErrorResponseCodeValues() []ErrorResponseCode {
|
||||||
return original.PossibleAppliedScopeType1Values()
|
return original.PossibleErrorResponseCodeValues()
|
||||||
}
|
|
||||||
func PossibleCodeValues() []Code {
|
|
||||||
return original.PossibleCodeValues()
|
|
||||||
}
|
}
|
||||||
func PossibleInstanceFlexibilityValues() []InstanceFlexibility {
|
func PossibleInstanceFlexibilityValues() []InstanceFlexibility {
|
||||||
return original.PossibleInstanceFlexibilityValues()
|
return original.PossibleInstanceFlexibilityValues()
|
||||||
}
|
}
|
||||||
func PossibleInstanceFlexibility1Values() []InstanceFlexibility1 {
|
func PossibleReservationTermValues() []ReservationTerm {
|
||||||
return original.PossibleInstanceFlexibility1Values()
|
return original.PossibleReservationTermValues()
|
||||||
}
|
|
||||||
func PossibleLocationValues() []Location {
|
|
||||||
return original.PossibleLocationValues()
|
|
||||||
}
|
|
||||||
func PossibleProvisioningStateValues() []ProvisioningState {
|
|
||||||
return original.PossibleProvisioningStateValues()
|
|
||||||
}
|
|
||||||
func PossibleProvisioningState1Values() []ProvisioningState1 {
|
|
||||||
return original.PossibleProvisioningState1Values()
|
|
||||||
}
|
}
|
||||||
func PossibleReservedResourceTypeValues() []ReservedResourceType {
|
func PossibleReservedResourceTypeValues() []ReservedResourceType {
|
||||||
return original.PossibleReservedResourceTypeValues()
|
return original.PossibleReservedResourceTypeValues()
|
||||||
@@ -292,9 +196,6 @@ func PossibleReservedResourceTypeValues() []ReservedResourceType {
|
|||||||
func PossibleStatusCodeValues() []StatusCode {
|
func PossibleStatusCodeValues() []StatusCode {
|
||||||
return original.PossibleStatusCodeValues()
|
return original.PossibleStatusCodeValues()
|
||||||
}
|
}
|
||||||
func PossibleTermValues() []Term {
|
|
||||||
return original.PossibleTermValues()
|
|
||||||
}
|
|
||||||
func NewOperationClient() OperationClient {
|
func NewOperationClient() OperationClient {
|
||||||
return original.NewOperationClient()
|
return original.NewOperationClient()
|
||||||
}
|
}
|
||||||
|
|||||||
120
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/storage/datalake/storagedatalake/models.go
generated
vendored
Normal file
120
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/storage/datalake/storagedatalake/models.go
generated
vendored
Normal 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()
|
||||||
|
}
|
||||||
121
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservice.go
generated
vendored
Normal file
121
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservice.go
generated
vendored
Normal 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
|
||||||
|
}
|
||||||
@@ -21,6 +21,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"github.com/Azure/go-autorest/autorest"
|
"github.com/Azure/go-autorest/autorest"
|
||||||
"github.com/Azure/go-autorest/autorest/azure"
|
"github.com/Azure/go-autorest/autorest/azure"
|
||||||
|
"github.com/satori/go.uuid"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -39,6 +40,145 @@ func NewAddsServiceMembersClientWithBaseURI(baseURI string) AddsServiceMembersCl
|
|||||||
return AddsServiceMembersClient{NewWithBaseURI(baseURI)}
|
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
|
// 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.
|
// onboarded to Azure Active Directory Connect Health.
|
||||||
// Parameters:
|
// Parameters:
|
||||||
@@ -135,3 +275,74 @@ func (client AddsServiceMembersClient) ListComplete(ctx context.Context, service
|
|||||||
result.page, err = client.List(ctx, serviceName, filter)
|
result.page, err = client.List(ctx, serviceName, filter)
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
|||||||
@@ -448,71 +448,6 @@ func (client AddsServicesClient) GetMetricMetadataForGroupResponder(resp *http.R
|
|||||||
return
|
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
|
// List gets the details of Active Directory Domain Service, for a tenant, that are onboarded to Azure Active Directory
|
||||||
// Connect Health.
|
// Connect Health.
|
||||||
// Parameters:
|
// Parameters:
|
||||||
@@ -1019,6 +954,79 @@ func (client AddsServicesClient) ListPremiumServicesComplete(ctx context.Context
|
|||||||
return
|
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
|
// 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.
|
// Directory Domain Service, that is onboarded to Azure Active Directory Connect Health.
|
||||||
// Parameters:
|
// Parameters:
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
213
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesservicemembers.go
generated
vendored
Normal file
213
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesservicemembers.go
generated
vendored
Normal 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
|
||||||
|
}
|
||||||
239
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesuserpreference.go
generated
vendored
Normal file
239
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesuserpreference.go
generated
vendored
Normal 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
|
||||||
|
}
|
||||||
@@ -2110,6 +2110,19 @@ type PasswordManagementSettings struct {
|
|||||||
UnlockAccount *bool `json:"unlockAccount,omitempty"`
|
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.
|
// ReplicationStatus replication summary for a domain controller.
|
||||||
type ReplicationStatus struct {
|
type ReplicationStatus struct {
|
||||||
autorest.Response `json:"-"`
|
autorest.Response `json:"-"`
|
||||||
@@ -2613,6 +2626,13 @@ type TenantOnboardingDetails struct {
|
|||||||
OnboardingDisplayURL *string `json:"onboardingDisplayUrl,omitempty"`
|
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.
|
// ValueDelta the value of the delta.
|
||||||
type ValueDelta struct {
|
type ValueDelta struct {
|
||||||
// OperationType - The operation type. Possible values include: 'ValueDeltaOperationTypeUndefined', 'ValueDeltaOperationTypeAdd', 'ValueDeltaOperationTypeUpdate', 'ValueDeltaOperationTypeDelete'
|
// OperationType - The operation type. Possible values include: 'ValueDeltaOperationTypeUndefined', 'ValueDeltaOperationTypeAdd', 'ValueDeltaOperationTypeUpdate', 'ValueDeltaOperationTypeDelete'
|
||||||
|
|||||||
98
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/reports.go
generated
vendored
Normal file
98
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/reports.go
generated
vendored
Normal 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
|
||||||
|
}
|
||||||
121
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/service.go
generated
vendored
Normal file
121
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/service.go
generated
vendored
Normal 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
|
||||||
|
}
|
||||||
@@ -311,6 +311,88 @@ func (client ServiceMembersClient) GetResponder(resp *http.Response) (result Ser
|
|||||||
return
|
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.
|
// GetServiceConfiguration gets the service configuration.
|
||||||
// Parameters:
|
// Parameters:
|
||||||
// serviceName - the name of the service.
|
// serviceName - the name of the service.
|
||||||
@@ -954,85 +1036,3 @@ func (client ServiceMembersClient) ListGlobalConfigurationResponder(resp *http.R
|
|||||||
result.Response = autorest.Response{Response: resp}
|
result.Response = autorest.Response{Response: resp}
|
||||||
return
|
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
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ package advisor
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/Azure/go-autorest/autorest"
|
"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/date"
|
||||||
"github.com/Azure/go-autorest/autorest/to"
|
"github.com/Azure/go-autorest/autorest/to"
|
||||||
"github.com/satori/go.uuid"
|
"github.com/satori/go.uuid"
|
||||||
@@ -410,29 +409,6 @@ func (rp RecommendationProperties) MarshalJSON() ([]byte, error) {
|
|||||||
return json.Marshal(objectMap)
|
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.
|
// Resource an Azure resource.
|
||||||
type Resource struct {
|
type Resource struct {
|
||||||
// ID - The resource ID.
|
// ID - The resource ID.
|
||||||
|
|||||||
@@ -175,19 +175,25 @@ func (client RecommendationsClient) GetResponder(resp *http.Response) (result Re
|
|||||||
// Parameters:
|
// Parameters:
|
||||||
// operationID - the operation ID, which can be found from the Location field in the generate recommendation
|
// operationID - the operation ID, which can be found from the Location field in the generate recommendation
|
||||||
// response header.
|
// 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)
|
req, err := client.GetGenerateStatusPreparer(ctx, operationID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", nil, "Failure preparing request")
|
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", nil, "Failure preparing request")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err = client.GetGenerateStatusSender(req)
|
resp, err := client.GetGenerateStatusSender(req)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result, err = client.GetGenerateStatusResponder(resp)
|
||||||
|
if err != nil {
|
||||||
|
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", resp, "Failure responding to request")
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,19 +219,9 @@ func (client RecommendationsClient) GetGenerateStatusPreparer(ctx context.Contex
|
|||||||
|
|
||||||
// GetGenerateStatusSender sends the GetGenerateStatus request. The method will close the
|
// GetGenerateStatusSender sends the GetGenerateStatus request. The method will close the
|
||||||
// http.Response Body if it receives an error.
|
// http.Response Body if it receives an error.
|
||||||
func (client RecommendationsClient) GetGenerateStatusSender(req *http.Request) (future RecommendationsGetGenerateStatusFuture, err error) {
|
func (client RecommendationsClient) GetGenerateStatusSender(req *http.Request) (*http.Response, error) {
|
||||||
var resp *http.Response
|
return autorest.SendWithSender(client, req,
|
||||||
resp, err = autorest.SendWithSender(client, req,
|
|
||||||
azure.DoRetryWithRegistration(client.Client))
|
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
|
// GetGenerateStatusResponder handles the response to the GetGenerateStatus request. The method always
|
||||||
|
|||||||
@@ -24,19 +24,19 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AnalyticsItemClient is the composite Swagger for Application Insights Management Client
|
// AnalyticsItemsClient is the composite Swagger for Application Insights Management Client
|
||||||
type AnalyticsItemClient struct {
|
type AnalyticsItemsClient struct {
|
||||||
BaseClient
|
BaseClient
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewAnalyticsItemClient creates an instance of the AnalyticsItemClient client.
|
// NewAnalyticsItemsClient creates an instance of the AnalyticsItemsClient client.
|
||||||
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient {
|
func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
|
||||||
return NewAnalyticsItemClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
return NewAnalyticsItemsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewAnalyticsItemClientWithBaseURI creates an instance of the AnalyticsItemClient client.
|
// NewAnalyticsItemsClientWithBaseURI creates an instance of the AnalyticsItemsClient client.
|
||||||
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient {
|
func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
|
||||||
return AnalyticsItemClient{NewWithBaseURI(baseURI, subscriptionID)}
|
return AnalyticsItemsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete deletes a specific Analytics Items defined within an Application Insights component.
|
// 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.
|
// users with access to the Application Insights component.
|
||||||
// ID - the Id of a specific item defined in 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
|
// 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)
|
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := client.DeleteSender(req)
|
resp, err := client.DeleteSender(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
result.Response = resp
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err = client.DeleteResponder(resp)
|
result, err = client.DeleteResponder(resp)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeletePreparer prepares the Delete request.
|
// 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{}{
|
pathParameters := map[string]interface{}{
|
||||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||||
"resourceName": autorest.Encode("path", resourceName),
|
"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
|
// DeleteSender sends the Delete request. The method will close the
|
||||||
// http.Response Body if it receives an error.
|
// 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,
|
return autorest.SendWithSender(client, req,
|
||||||
azure.DoRetryWithRegistration(client.Client))
|
azure.DoRetryWithRegistration(client.Client))
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteResponder handles the response to the Delete request. The method always
|
// DeleteResponder handles the response to the Delete request. The method always
|
||||||
// closes the http.Response Body.
|
// 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(
|
err = autorest.Respond(
|
||||||
resp,
|
resp,
|
||||||
client.ByInspecting(),
|
client.ByInspecting(),
|
||||||
@@ -124,30 +124,30 @@ func (client AnalyticsItemClient) DeleteResponder(resp *http.Response) (result a
|
|||||||
// users with access to the Application Insights component.
|
// users with access to the Application Insights component.
|
||||||
// ID - the Id of a specific item defined in 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
|
// 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)
|
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := client.GetSender(req)
|
resp, err := client.GetSender(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
result.Response = autorest.Response{Response: resp}
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err = client.GetResponder(resp)
|
result, err = client.GetResponder(resp)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetPreparer prepares the Get request.
|
// 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{}{
|
pathParameters := map[string]interface{}{
|
||||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||||
"resourceName": autorest.Encode("path", resourceName),
|
"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
|
// GetSender sends the Get request. The method will close the
|
||||||
// http.Response Body if it receives an error.
|
// 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,
|
return autorest.SendWithSender(client, req,
|
||||||
azure.DoRetryWithRegistration(client.Client))
|
azure.DoRetryWithRegistration(client.Client))
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetResponder handles the response to the Get request. The method always
|
// GetResponder handles the response to the Get request. The method always
|
||||||
// closes the http.Response Body.
|
// 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(
|
err = autorest.Respond(
|
||||||
resp,
|
resp,
|
||||||
client.ByInspecting(),
|
client.ByInspecting(),
|
||||||
@@ -205,30 +205,30 @@ func (client AnalyticsItemClient) GetResponder(resp *http.Response) (result Appl
|
|||||||
// typeParameter - enum indicating the type of the Analytics item.
|
// 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,
|
// includeContent - flag indicating whether or not to return the content of each applicable item. If false,
|
||||||
// only return the item information.
|
// 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)
|
req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, scopePath, scope, typeParameter, includeContent)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := client.ListSender(req)
|
resp, err := client.ListSender(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
result.Response = autorest.Response{Response: resp}
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err = client.ListResponder(resp)
|
result, err = client.ListResponder(resp)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListPreparer prepares the List request.
|
// 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{}{
|
pathParameters := map[string]interface{}{
|
||||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||||
"resourceName": autorest.Encode("path", resourceName),
|
"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
|
// ListSender sends the List request. The method will close the
|
||||||
// http.Response Body if it receives an error.
|
// 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,
|
return autorest.SendWithSender(client, req,
|
||||||
azure.DoRetryWithRegistration(client.Client))
|
azure.DoRetryWithRegistration(client.Client))
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListResponder handles the response to the List request. The method always
|
// ListResponder handles the response to the List request. The method always
|
||||||
// closes the http.Response Body.
|
// 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(
|
err = autorest.Respond(
|
||||||
resp,
|
resp,
|
||||||
client.ByInspecting(),
|
client.ByInspecting(),
|
||||||
@@ -292,30 +292,30 @@ func (client AnalyticsItemClient) ListResponder(resp *http.Response) (result Lis
|
|||||||
// Insights component.
|
// Insights component.
|
||||||
// overrideItem - flag indicating whether or not to force save an item. This allows overriding an item if it
|
// overrideItem - flag indicating whether or not to force save an item. This allows overriding an item if it
|
||||||
// already exists.
|
// 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)
|
req, err := client.PutPreparer(ctx, resourceGroupName, resourceName, scopePath, itemProperties, overrideItem)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := client.PutSender(req)
|
resp, err := client.PutSender(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
result.Response = autorest.Response{Response: resp}
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err = client.PutResponder(resp)
|
result, err = client.PutResponder(resp)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// PutPreparer prepares the Put request.
|
// 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{}{
|
pathParameters := map[string]interface{}{
|
||||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||||
"resourceName": autorest.Encode("path", resourceName),
|
"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
|
// PutSender sends the Put request. The method will close the
|
||||||
// http.Response Body if it receives an error.
|
// 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,
|
return autorest.SendWithSender(client, req,
|
||||||
azure.DoRetryWithRegistration(client.Client))
|
azure.DoRetryWithRegistration(client.Client))
|
||||||
}
|
}
|
||||||
|
|
||||||
// PutResponder handles the response to the Put request. The method always
|
// PutResponder handles the response to the Put request. The method always
|
||||||
// closes the http.Response Body.
|
// 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(
|
err = autorest.Respond(
|
||||||
resp,
|
resp,
|
||||||
client.ByInspecting(),
|
client.ByInspecting(),
|
||||||
@@ -254,7 +254,7 @@ func (client AnnotationsClient) GetResponder(resp *http.Response) (result ListAn
|
|||||||
// resourceName - the name of the Application Insights component resource.
|
// 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.
|
// 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.
|
// 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)
|
req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, start, end)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "List", nil, "Failure preparing request")
|
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
|
// ListResponder handles the response to the List request. The method always
|
||||||
// closes the http.Response Body.
|
// 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(
|
err = autorest.Respond(
|
||||||
resp,
|
resp,
|
||||||
client.ByInspecting(),
|
client.ByInspecting(),
|
||||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||||
autorest.ByUnmarshallingJSON(&result.Value),
|
autorest.ByUnmarshallingJSON(&result),
|
||||||
autorest.ByClosing())
|
autorest.ByClosing())
|
||||||
result.Response = autorest.Response{Response: resp}
|
result.Response = autorest.Response{Response: resp}
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -250,6 +250,75 @@ func (client ComponentsClient) GetResponder(resp *http.Response) (result Applica
|
|||||||
return
|
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.
|
// List gets a list of all Application Insights components within a subscription.
|
||||||
func (client ComponentsClient) List(ctx context.Context) (result ApplicationInsightsComponentListResultPage, err error) {
|
func (client ComponentsClient) List(ctx context.Context) (result ApplicationInsightsComponentListResultPage, err error) {
|
||||||
result.fn = client.listNextResults
|
result.fn = client.listNextResults
|
||||||
@@ -438,7 +507,7 @@ func (client ComponentsClient) ListByResourceGroupComplete(ctx context.Context,
|
|||||||
// resourceGroupName - the name of the resource group.
|
// resourceGroupName - the name of the resource group.
|
||||||
// resourceName - the name of the Application Insights component resource.
|
// 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
|
// 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{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: body,
|
{TargetValue: body,
|
||||||
Constraints: []validation.Constraint{{Target: "body.Table", Name: validation.Null, Rule: true, Chain: nil},
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err = client.PurgeSender(req)
|
resp, err := client.PurgeSender(req)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result, err = client.PurgeResponder(resp)
|
||||||
|
if err != nil {
|
||||||
|
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Purge", resp, "Failure responding to request")
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -486,24 +561,14 @@ func (client ComponentsClient) PurgePreparer(ctx context.Context, resourceGroupN
|
|||||||
|
|
||||||
// PurgeSender sends the Purge request. The method will close the
|
// PurgeSender sends the Purge request. The method will close the
|
||||||
// http.Response Body if it receives an error.
|
// http.Response Body if it receives an error.
|
||||||
func (client ComponentsClient) PurgeSender(req *http.Request) (future ComponentsPurgeFuture, err error) {
|
func (client ComponentsClient) PurgeSender(req *http.Request) (*http.Response, error) {
|
||||||
var resp *http.Response
|
return autorest.SendWithSender(client, req,
|
||||||
resp, err = autorest.SendWithSender(client, req,
|
|
||||||
azure.DoRetryWithRegistration(client.Client))
|
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
|
// PurgeResponder handles the response to the Purge request. The method always
|
||||||
// closes the http.Response Body.
|
// 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(
|
err = autorest.Respond(
|
||||||
resp,
|
resp,
|
||||||
client.ByInspecting(),
|
client.ByInspecting(),
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
|
||||||
@@ -39,6 +39,216 @@ func NewFavoritesClientWithBaseURI(baseURI string, subscriptionID string) Favori
|
|||||||
return FavoritesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
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.
|
// List gets a list of favorites defined within an Application Insights component.
|
||||||
// Parameters:
|
// Parameters:
|
||||||
// resourceGroupName - the name of the resource group.
|
// 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}
|
result.Response = autorest.Response{Response: resp}
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ package insights
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/Azure/go-autorest/autorest"
|
"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/date"
|
||||||
"github.com/Azure/go-autorest/autorest/to"
|
"github.com/Azure/go-autorest/autorest/to"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -190,9 +189,9 @@ type PurgeState string
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// Completed ...
|
// Completed ...
|
||||||
Completed PurgeState = "Completed"
|
Completed PurgeState = "completed"
|
||||||
// Pending ...
|
// Pending ...
|
||||||
Pending PurgeState = "Pending"
|
Pending PurgeState = "pending"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PossiblePurgeStateValues returns an array of possible values for the PurgeState const type.
|
// PossiblePurgeStateValues returns an array of possible values for the PurgeState const type.
|
||||||
@@ -268,6 +267,13 @@ type AnnotationError struct {
|
|||||||
Innererror *InnerError `json:"innererror,omitempty"`
|
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.
|
// APIKeyRequest an Application Insights component API Key createion request definition.
|
||||||
type APIKeyRequest struct {
|
type APIKeyRequest struct {
|
||||||
// Name - The name of the API Key.
|
// Name - The name of the API Key.
|
||||||
@@ -876,42 +882,51 @@ type ComponentPurgeBodyFilters struct {
|
|||||||
|
|
||||||
// ComponentPurgeResponse response containing operationId for a specific purge action.
|
// ComponentPurgeResponse response containing operationId for a specific purge action.
|
||||||
type ComponentPurgeResponse struct {
|
type ComponentPurgeResponse struct {
|
||||||
|
autorest.Response `json:"-"`
|
||||||
// OperationID - Id to use when querying for status for a particular purge operation.
|
// OperationID - Id to use when querying for status for a particular purge operation.
|
||||||
OperationID *string `json:"operationId,omitempty"`
|
OperationID *string `json:"operationId,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ComponentPurgeStatusResponse response containing status for a specific purge operation.
|
// ComponentPurgeStatusResponse response containing status for a specific purge operation.
|
||||||
type ComponentPurgeStatusResponse struct {
|
type ComponentPurgeStatusResponse struct {
|
||||||
|
autorest.Response `json:"-"`
|
||||||
// Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed'
|
// Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed'
|
||||||
Status PurgeState `json:"status,omitempty"`
|
Status PurgeState `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ComponentsPurgeFuture an abstraction for monitoring and retrieving the results of a long-running operation.
|
// ComponentsResource an azure resource object
|
||||||
type ComponentsPurgeFuture struct {
|
type ComponentsResource struct {
|
||||||
azure.Future
|
// 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.
|
// MarshalJSON is the custom marshaler for ComponentsResource.
|
||||||
// If the operation has not completed it will return an error.
|
func (cr ComponentsResource) MarshalJSON() ([]byte, error) {
|
||||||
func (future *ComponentsPurgeFuture) Result(client ComponentsClient) (so SetObject, err error) {
|
objectMap := make(map[string]interface{})
|
||||||
var done bool
|
if cr.ID != nil {
|
||||||
done, err = future.Done(client)
|
objectMap["id"] = cr.ID
|
||||||
if err != nil {
|
|
||||||
err = autorest.NewErrorWithError(err, "insights.ComponentsPurgeFuture", "Result", future.Response(), "Polling failure")
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
if !done {
|
if cr.Name != nil {
|
||||||
err = azure.NewAsyncOpIncompleteError("insights.ComponentsPurgeFuture")
|
objectMap["name"] = cr.Name
|
||||||
return
|
|
||||||
}
|
}
|
||||||
sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
|
if cr.Type != nil {
|
||||||
if so.Response.Response, err = future.GetResult(sender); err == nil && so.Response.Response.StatusCode != http.StatusNoContent {
|
objectMap["type"] = cr.Type
|
||||||
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.Location != nil {
|
||||||
|
objectMap["location"] = cr.Location
|
||||||
}
|
}
|
||||||
return
|
if cr.Tags != nil {
|
||||||
|
objectMap["tags"] = cr.Tags
|
||||||
|
}
|
||||||
|
return json.Marshal(objectMap)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrorFieldContract error Field contract.
|
// ErrorFieldContract error Field contract.
|
||||||
@@ -981,12 +996,6 @@ type ListApplicationInsightsComponentProactiveDetectionConfiguration struct {
|
|||||||
Value *[]ApplicationInsightsComponentProactiveDetectionConfiguration `json:"value,omitempty"`
|
Value *[]ApplicationInsightsComponentProactiveDetectionConfiguration `json:"value,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListWorkItemConfiguration ...
|
|
||||||
type ListWorkItemConfiguration struct {
|
|
||||||
autorest.Response `json:"-"`
|
|
||||||
Value *[]WorkItemConfiguration `json:"value,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// Operation CDN REST API operation
|
// Operation CDN REST API operation
|
||||||
type Operation struct {
|
type Operation struct {
|
||||||
// Name - Operation name: {provider}/{resource}/{operation}
|
// Name - Operation name: {provider}/{resource}/{operation}
|
||||||
@@ -1108,41 +1117,6 @@ func (page OperationListResultPage) Values() []Operation {
|
|||||||
return *page.olr.Value
|
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 ...
|
// SetObject ...
|
||||||
type SetObject struct {
|
type SetObject struct {
|
||||||
autorest.Response `json:"-"`
|
autorest.Response `json:"-"`
|
||||||
@@ -1430,6 +1404,41 @@ type WebTestPropertiesConfiguration struct {
|
|||||||
WebTest *string `json:"WebTest,omitempty"`
|
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.
|
// Workbook an Application Insights workbook definition.
|
||||||
type Workbook struct {
|
type Workbook struct {
|
||||||
autorest.Response `json:"-"`
|
autorest.Response `json:"-"`
|
||||||
@@ -1588,8 +1597,43 @@ type WorkbookProperties struct {
|
|||||||
SourceResourceID *string `json:"sourceResourceId,omitempty"`
|
SourceResourceID *string `json:"sourceResourceId,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Workbooks workbook list result.
|
// WorkbookResource an azure resource object
|
||||||
type Workbooks struct {
|
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:"-"`
|
autorest.Response `json:"-"`
|
||||||
// Value - An array of workbooks.
|
// Value - An array of workbooks.
|
||||||
Value *[]Workbook `json:"value,omitempty"`
|
Value *[]Workbook `json:"value,omitempty"`
|
||||||
@@ -1619,6 +1663,13 @@ type WorkItemConfigurationError struct {
|
|||||||
Innererror *InnerError `json:"innererror,omitempty"`
|
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
|
// WorkItemCreateConfiguration work item configuration creation payload
|
||||||
type WorkItemCreateConfiguration struct {
|
type WorkItemCreateConfiguration struct {
|
||||||
// ConnectorID - Unique connector id
|
// ConnectorID - Unique connector id
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
|
||||||
@@ -21,6 +21,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"github.com/Azure/go-autorest/autorest"
|
"github.com/Azure/go-autorest/autorest"
|
||||||
"github.com/Azure/go-autorest/autorest/azure"
|
"github.com/Azure/go-autorest/autorest/azure"
|
||||||
|
"github.com/Azure/go-autorest/autorest/validation"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -39,6 +40,221 @@ func NewWorkbooksClientWithBaseURI(baseURI string, subscriptionID string) Workbo
|
|||||||
return WorkbooksClient{NewWithBaseURI(baseURI, subscriptionID)}
|
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.
|
// ListByResourceGroup get all Workbooks defined within a specified resource group and category.
|
||||||
// Parameters:
|
// Parameters:
|
||||||
// resourceGroupName - the name of the resource group.
|
// 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.
|
// tags - tags presents on each workbook returned.
|
||||||
// canFetchContent - flag indicating whether or not to return the full content for each applicable workbook. If
|
// canFetchContent - flag indicating whether or not to return the full content for each applicable workbook. If
|
||||||
// false, only return summary content for workbooks.
|
// 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)
|
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, category, tags, canFetchContent)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "ListByResourceGroup", nil, "Failure preparing request")
|
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
|
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
|
||||||
// closes the http.Response Body.
|
// 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(
|
err = autorest.Respond(
|
||||||
resp,
|
resp,
|
||||||
client.ByInspecting(),
|
client.ByInspecting(),
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ func (client WorkItemConfigurationsClient) GetDefaultResponder(resp *http.Respon
|
|||||||
// Parameters:
|
// Parameters:
|
||||||
// resourceGroupName - the name of the resource group.
|
// resourceGroupName - the name of the resource group.
|
||||||
// resourceName - the name of the Application Insights component resource.
|
// 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)
|
req, err := client.ListPreparer(ctx, resourceGroupName, resourceName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "List", nil, "Failure preparing request")
|
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
|
// ListResponder handles the response to the List request. The method always
|
||||||
// closes the http.Response Body.
|
// 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(
|
err = autorest.Respond(
|
||||||
resp,
|
resp,
|
||||||
client.ByInspecting(),
|
client.ByInspecting(),
|
||||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||||
autorest.ByUnmarshallingJSON(&result.Value),
|
autorest.ByUnmarshallingJSON(&result),
|
||||||
autorest.ByClosing())
|
autorest.ByClosing())
|
||||||
result.Response = autorest.Response{Response: resp}
|
result.Response = autorest.Response{Response: resp}
|
||||||
return
|
return
|
||||||
|
|||||||
681
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/client.go
generated
vendored
681
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/client.go
generated
vendored
@@ -21,11 +21,7 @@ package insights
|
|||||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"github.com/Azure/go-autorest/autorest"
|
"github.com/Azure/go-autorest/autorest"
|
||||||
"github.com/Azure/go-autorest/autorest/azure"
|
|
||||||
"github.com/Azure/go-autorest/autorest/validation"
|
|
||||||
"net/http"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -37,688 +33,17 @@ const (
|
|||||||
type BaseClient struct {
|
type BaseClient struct {
|
||||||
autorest.Client
|
autorest.Client
|
||||||
BaseURI string
|
BaseURI string
|
||||||
AppID string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates an instance of the BaseClient client.
|
// New creates an instance of the BaseClient client.
|
||||||
func New(appID string) BaseClient {
|
func New() BaseClient {
|
||||||
return NewWithBaseURI(DefaultBaseURI, appID)
|
return NewWithBaseURI(DefaultBaseURI)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewWithBaseURI creates an instance of the BaseClient client.
|
// NewWithBaseURI creates an instance of the BaseClient client.
|
||||||
func NewWithBaseURI(baseURI string, appID string) BaseClient {
|
func NewWithBaseURI(baseURI string) BaseClient {
|
||||||
return BaseClient{
|
return BaseClient{
|
||||||
Client: autorest.NewClientWithUserAgent(UserAgent()),
|
Client: autorest.NewClientWithUserAgent(UserAgent()),
|
||||||
BaseURI: baseURI,
|
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
|
|
||||||
}
|
|
||||||
|
|||||||
280
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/events.go
generated
vendored
Normal file
280
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/events.go
generated
vendored
Normal 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
|
||||||
|
}
|
||||||
283
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/metrics.go
generated
vendored
Normal file
283
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/metrics.go
generated
vendored
Normal 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
|
||||||
|
}
|
||||||
79
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/models.go
generated
vendored
79
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/models.go
generated
vendored
@@ -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}
|
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 enumerates the values for type.
|
||||||
type Type string
|
type Type string
|
||||||
|
|
||||||
@@ -741,7 +807,7 @@ type EventsCustomMetricInfo struct {
|
|||||||
// ValueSum - The sum of the custom metric
|
// ValueSum - The sum of the custom metric
|
||||||
ValueSum *float64 `json:"valueSum,omitempty"`
|
ValueSum *float64 `json:"valueSum,omitempty"`
|
||||||
// ValueCount - The count of the custom metric
|
// 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 - The minimum value of the custom metric
|
||||||
ValueMin *float64 `json:"valueMin,omitempty"`
|
ValueMin *float64 `json:"valueMin,omitempty"`
|
||||||
// ValueMax - The maximum value of the custom metric
|
// ValueMax - The maximum value of the custom metric
|
||||||
@@ -1423,7 +1489,7 @@ func (epvr EventsPageViewResult) AsBasicEventsResultData() (BasicEventsResultDat
|
|||||||
// EventsPerformanceCounterInfo the performance counter info
|
// EventsPerformanceCounterInfo the performance counter info
|
||||||
type EventsPerformanceCounterInfo struct {
|
type EventsPerformanceCounterInfo struct {
|
||||||
// Value - The value of the performance counter
|
// 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 - The name of the performance counter
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
// Category - The category of the performance counter
|
// Category - The category of the performance counter
|
||||||
@@ -2244,9 +2310,9 @@ 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 - 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"`
|
MetricID MetricID `json:"metricId,omitempty"`
|
||||||
Timespan *string `json:"timespan,omitempty"`
|
Timespan *string `json:"timespan,omitempty"`
|
||||||
Aggregation *[]string `json:"aggregation,omitempty"`
|
Aggregation *[]MetricsAggregation `json:"aggregation,omitempty"`
|
||||||
Interval *string `json:"interval,omitempty"`
|
Interval *string `json:"interval,omitempty"`
|
||||||
Segment *[]string `json:"segment,omitempty"`
|
Segment *[]MetricsSegment `json:"segment,omitempty"`
|
||||||
Top *int32 `json:"top,omitempty"`
|
Top *int32 `json:"top,omitempty"`
|
||||||
Orderby *string `json:"orderby,omitempty"`
|
Orderby *string `json:"orderby,omitempty"`
|
||||||
Filter *string `json:"filter,omitempty"`
|
Filter *string `json:"filter,omitempty"`
|
||||||
@@ -2333,13 +2399,14 @@ func (msi MetricsSegmentInfo) MarshalJSON() ([]byte, error) {
|
|||||||
return json.Marshal(objectMap)
|
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 {
|
type QueryBody struct {
|
||||||
// Query - The query to execute.
|
// Query - The query to execute.
|
||||||
Query *string `json:"query,omitempty"`
|
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 - 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"`
|
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"`
|
Applications *[]string `json:"applications,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
112
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/query.go
generated
vendored
Normal file
112
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/query.go
generated
vendored
Normal 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
|
||||||
|
}
|
||||||
@@ -41,13 +41,16 @@ func NewAccountClientWithBaseURI(baseURI string, subscriptionID string) AccountC
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CreateOrUpdate create or update automation account.
|
// CreateOrUpdate create or update automation account.
|
||||||
//
|
// Parameters:
|
||||||
// resourceGroupName is the resource group name. automationAccountName is parameters supplied to the create or
|
// resourceGroupName - name of an Azure Resource group.
|
||||||
// update automation account. parameters is parameters supplied to the create or update automation account.
|
// 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) {
|
func (client AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountCreateOrUpdateParameters) (result Account, err error) {
|
||||||
if err := validation.Validate([]validation.Validation{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: resourceGroupName,
|
{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())
|
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.
|
// Delete delete an automation account.
|
||||||
//
|
// Parameters:
|
||||||
// resourceGroupName is the resource group name. automationAccountName is automation account name.
|
// 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) {
|
func (client AccountClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string) (result autorest.Response, err error) {
|
||||||
if err := validation.Validate([]validation.Validation{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: resourceGroupName,
|
{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())
|
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.
|
// Get get information about an Automation Account.
|
||||||
//
|
// Parameters:
|
||||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
// 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) {
|
func (client AccountClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result Account, err error) {
|
||||||
if err := validation.Validate([]validation.Validation{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: resourceGroupName,
|
{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())
|
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.
|
// ListByResourceGroup retrieve a list of accounts within a given resource group.
|
||||||
//
|
// Parameters:
|
||||||
// resourceGroupName is the resource group name.
|
// resourceGroupName - name of an Azure Resource group.
|
||||||
func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error) {
|
func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error) {
|
||||||
if err := validation.Validate([]validation.Validation{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: resourceGroupName,
|
{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())
|
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.
|
// Update update an automation account.
|
||||||
//
|
// Parameters:
|
||||||
// resourceGroupName is the resource group name. automationAccountName is automation account name. parameters is
|
// resourceGroupName - name of an Azure Resource group.
|
||||||
// parameters supplied to the update automation account.
|
// 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) {
|
func (client AccountClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountUpdateParameters) (result Account, err error) {
|
||||||
if err := validation.Validate([]validation.Validation{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: resourceGroupName,
|
{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())
|
return result, validation.NewError("automation.AccountClient", "Update", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
// Get retrieve the activity in the module identified by module name and activity name.
|
||||||
//
|
// Parameters:
|
||||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
// resourceGroupName - name of an Azure Resource group.
|
||||||
// is the name of module. activityName is the name of activity.
|
// 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) {
|
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{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: resourceGroupName,
|
{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())
|
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.
|
// ListByModule retrieve a list of activities in the module identified by module name.
|
||||||
//
|
// Parameters:
|
||||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
// resourceGroupName - name of an Azure Resource group.
|
||||||
// is the name of module.
|
// 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) {
|
func (client ActivityClient) ListByModule(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result ActivityListResultPage, err error) {
|
||||||
if err := validation.Validate([]validation.Validation{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: resourceGroupName,
|
{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())
|
return result, validation.NewError("automation.ActivityClient", "ListByModule", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,12 +42,15 @@ func NewAgentRegistrationInformationClientWithBaseURI(baseURI string, subscripti
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get retrieve the automation agent registration information.
|
// Get retrieve the automation agent registration information.
|
||||||
//
|
// Parameters:
|
||||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
// 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) {
|
func (client AgentRegistrationInformationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result AgentRegistration, err error) {
|
||||||
if err := validation.Validate([]validation.Validation{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: resourceGroupName,
|
{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())
|
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
|
// RegenerateKey regenerate a primary or secondary agent registration key
|
||||||
//
|
// Parameters:
|
||||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. parameters
|
// resourceGroupName - name of an Azure Resource group.
|
||||||
// is the name of the agent registration key to be regenerated
|
// 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) {
|
func (client AgentRegistrationInformationClient) RegenerateKey(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AgentRegistrationRegenerateKeyParameter) (result AgentRegistration, err error) {
|
||||||
if err := validation.Validate([]validation.Validation{
|
if err := validation.Validate([]validation.Validation{
|
||||||
{TargetValue: resourceGroupName,
|
{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())
|
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
Reference in New Issue
Block a user