vendor: update all dependencies to latest versions
This commit is contained in:
+278
-85
@@ -14,9 +14,8 @@ package servicemap
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
@@ -36,19 +35,17 @@ func NewMachinesClient(subscriptionID string) MachinesClient {
|
||||
return NewMachinesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewMachinesClientWithBaseURI creates an instance of the MachinesClient
|
||||
// client.
|
||||
// NewMachinesClientWithBaseURI creates an instance of the MachinesClient client.
|
||||
func NewMachinesClientWithBaseURI(baseURI string, subscriptionID string) MachinesClient {
|
||||
return MachinesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Get returns the specified machine.
|
||||
//
|
||||
// resourceGroupName is resource group name within the specified
|
||||
// subscriptionId. workspaceName is oMS workspace containing the resources of
|
||||
// interest. machineName is machine resource name. timestamp is uTC date and
|
||||
// time specifying a time instance relative to which to evaluate the machine
|
||||
// resource. When not specified, the service uses DateTime.UtcNow.
|
||||
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
|
||||
// containing the resources of interest. machineName is machine resource name. timestamp is UTC date and time
|
||||
// specifying a time instance relative to which to evaluate the machine resource. When not specified, the service uses
|
||||
// DateTime.UtcNow.
|
||||
func (client MachinesClient) Get(resourceGroupName string, workspaceName string, machineName string, timestamp *date.Time) (result Machine, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -130,16 +127,12 @@ func (client MachinesClient) GetResponder(resp *http.Response) (result Machine,
|
||||
return
|
||||
}
|
||||
|
||||
// GetLiveness obtains the liveness status of the machine during the specified
|
||||
// time interval.
|
||||
// GetLiveness obtains the liveness status of the machine during the specified time interval.
|
||||
//
|
||||
// resourceGroupName is resource group name within the specified
|
||||
// subscriptionId. workspaceName is oMS workspace containing the resources of
|
||||
// interest. machineName is machine resource name. startTime is uTC date and
|
||||
// time specifying the start time of an interval. When not specified the
|
||||
// service uses DateTime.UtcNow - 10m endTime is uTC date and time specifying
|
||||
// the end time of an interval. When not specified the service uses
|
||||
// DateTime.UtcNow
|
||||
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
|
||||
// containing the resources of interest. machineName is machine resource name. startTime is UTC date and time
|
||||
// specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is UTC
|
||||
// date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
|
||||
func (client MachinesClient) GetLiveness(resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result Liveness, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -224,29 +217,21 @@ func (client MachinesClient) GetLivenessResponder(resp *http.Response) (result L
|
||||
return
|
||||
}
|
||||
|
||||
// ListByWorkspace returns a collection of machines matching the specified
|
||||
// conditions. The returned collection represents either machines that are
|
||||
// active/live during the specified interval of time (`live=true` and
|
||||
// `startTime`/`endTime` are specified) or that are known to have existed at or
|
||||
// some time prior to the specified point in time (`live=false` and `timestamp`
|
||||
// is specified).
|
||||
// ListByWorkspace returns a collection of machines matching the specified conditions. The returned collection
|
||||
// represents either machines that are active/live during the specified interval of time (`live=true` and
|
||||
// `startTime`/`endTime` are specified) or that are known to have existed at or some time prior to the specified point
|
||||
// in time (`live=false` and `timestamp` is specified).
|
||||
//
|
||||
// resourceGroupName is resource group name within the specified
|
||||
// subscriptionId. workspaceName is oMS workspace containing the resources of
|
||||
// interest. live is specifies whether to return live resources (true) or
|
||||
// inventory resources (false). Defaults to **true**. When retrieving live
|
||||
// resources, the start time (`startTime`) and end time (`endTime`) of the
|
||||
// desired interval should be included. When retrieving inventory resources, an
|
||||
// optional timestamp (`timestamp`) parameter can be specified to return the
|
||||
// version of each resource closest (not-after) that timestamp. startTime is
|
||||
// uTC date and time specifying the start time of an interval. When not
|
||||
// specified the service uses DateTime.UtcNow - 10m endTime is uTC date and
|
||||
// time specifying the end time of an interval. When not specified the service
|
||||
// uses DateTime.UtcNow timestamp is uTC date and time specifying a time
|
||||
// instance relative to which to evaluate each machine resource. Only applies
|
||||
// when `live=false`. When not specified, the service uses DateTime.UtcNow. top
|
||||
// is page size to use. When not specified, the default page size is 100
|
||||
// records.
|
||||
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
|
||||
// containing the resources of interest. live is specifies whether to return live resources (true) or inventory
|
||||
// resources (false). Defaults to **true**. When retrieving live resources, the start time (`startTime`) and end time
|
||||
// (`endTime`) of the desired interval should be included. When retrieving inventory resources, an optional timestamp
|
||||
// (`timestamp`) parameter can be specified to return the version of each resource closest (not-after) that timestamp.
|
||||
// startTime is UTC date and time specifying the start time of an interval. When not specified the service uses
|
||||
// DateTime.UtcNow - 10m endTime is UTC date and time specifying the end time of an interval. When not specified the
|
||||
// service uses DateTime.UtcNow timestamp is UTC date and time specifying a time instance relative to which to evaluate
|
||||
// each machine resource. Only applies when `live=false`. When not specified, the service uses DateTime.UtcNow. top is
|
||||
// page size to use. When not specified, the default page size is 100 records.
|
||||
func (client MachinesClient) ListByWorkspace(resourceGroupName string, workspaceName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time, top *int32) (result MachineCollection, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -365,16 +350,57 @@ func (client MachinesClient) ListByWorkspaceNextResults(lastResults MachineColle
|
||||
return
|
||||
}
|
||||
|
||||
// ListConnections returns a collection of connections terminating or
|
||||
// originating at the specified machine
|
||||
// ListByWorkspaceComplete gets all elements from the list without paging.
|
||||
func (client MachinesClient) ListByWorkspaceComplete(resourceGroupName string, workspaceName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time, top *int32, cancel <-chan struct{}) (<-chan Machine, <-chan error) {
|
||||
resultChan := make(chan Machine)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByWorkspace(resourceGroupName, workspaceName, live, startTime, endTime, timestamp, top)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListByWorkspaceNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// ListConnections returns a collection of connections terminating or originating at the specified machine
|
||||
//
|
||||
// resourceGroupName is resource group name within the specified
|
||||
// subscriptionId. workspaceName is oMS workspace containing the resources of
|
||||
// interest. machineName is machine resource name. startTime is uTC date and
|
||||
// time specifying the start time of an interval. When not specified the
|
||||
// service uses DateTime.UtcNow - 10m endTime is uTC date and time specifying
|
||||
// the end time of an interval. When not specified the service uses
|
||||
// DateTime.UtcNow
|
||||
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
|
||||
// containing the resources of interest. machineName is machine resource name. startTime is UTC date and time
|
||||
// specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is UTC
|
||||
// date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
|
||||
func (client MachinesClient) ListConnections(resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollection, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -483,12 +509,55 @@ func (client MachinesClient) ListConnectionsNextResults(lastResults ConnectionCo
|
||||
return
|
||||
}
|
||||
|
||||
// ListMachineGroupMembership returns a collection of machine groups this
|
||||
// machine belongs to.
|
||||
// ListConnectionsComplete gets all elements from the list without paging.
|
||||
func (client MachinesClient) ListConnectionsComplete(resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time, cancel <-chan struct{}) (<-chan Connection, <-chan error) {
|
||||
resultChan := make(chan Connection)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListConnections(resourceGroupName, workspaceName, machineName, startTime, endTime)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListConnectionsNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// ListMachineGroupMembership returns a collection of machine groups this machine belongs to.
|
||||
//
|
||||
// resourceGroupName is resource group name within the specified
|
||||
// subscriptionId. workspaceName is oMS workspace containing the resources of
|
||||
// interest. machineName is machine resource name.
|
||||
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
|
||||
// containing the resources of interest. machineName is machine resource name.
|
||||
func (client MachinesClient) ListMachineGroupMembership(resourceGroupName string, workspaceName string, machineName string) (result MachineGroupCollection, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -591,16 +660,57 @@ func (client MachinesClient) ListMachineGroupMembershipNextResults(lastResults M
|
||||
return
|
||||
}
|
||||
|
||||
// ListPorts returns a collection of live ports on the specified machine during
|
||||
// the specified time interval.
|
||||
// ListMachineGroupMembershipComplete gets all elements from the list without paging.
|
||||
func (client MachinesClient) ListMachineGroupMembershipComplete(resourceGroupName string, workspaceName string, machineName string, cancel <-chan struct{}) (<-chan MachineGroup, <-chan error) {
|
||||
resultChan := make(chan MachineGroup)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListMachineGroupMembership(resourceGroupName, workspaceName, machineName)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListMachineGroupMembershipNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// ListPorts returns a collection of live ports on the specified machine during the specified time interval.
|
||||
//
|
||||
// resourceGroupName is resource group name within the specified
|
||||
// subscriptionId. workspaceName is oMS workspace containing the resources of
|
||||
// interest. machineName is machine resource name. startTime is uTC date and
|
||||
// time specifying the start time of an interval. When not specified the
|
||||
// service uses DateTime.UtcNow - 10m endTime is uTC date and time specifying
|
||||
// the end time of an interval. When not specified the service uses
|
||||
// DateTime.UtcNow
|
||||
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
|
||||
// containing the resources of interest. machineName is machine resource name. startTime is UTC date and time
|
||||
// specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is UTC
|
||||
// date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
|
||||
func (client MachinesClient) ListPorts(resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result PortCollection, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -709,28 +819,66 @@ func (client MachinesClient) ListPortsNextResults(lastResults PortCollection) (r
|
||||
return
|
||||
}
|
||||
|
||||
// ListProcesses returns a collection of processes on the specified machine
|
||||
// matching the specified conditions. The returned collection represents either
|
||||
// processes that are active/live during the specified interval of time
|
||||
// (`live=true` and `startTime`/`endTime` are specified) or that are known to
|
||||
// have existed at or some time prior to the specified point in time
|
||||
// (`live=false` and `timestamp` is specified).
|
||||
// ListPortsComplete gets all elements from the list without paging.
|
||||
func (client MachinesClient) ListPortsComplete(resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time, cancel <-chan struct{}) (<-chan Port, <-chan error) {
|
||||
resultChan := make(chan Port)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListPorts(resourceGroupName, workspaceName, machineName, startTime, endTime)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListPortsNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// ListProcesses returns a collection of processes on the specified machine matching the specified conditions. The
|
||||
// returned collection represents either processes that are active/live during the specified interval of time
|
||||
// (`live=true` and `startTime`/`endTime` are specified) or that are known to have existed at or some time prior to
|
||||
// the specified point in time (`live=false` and `timestamp` is specified).
|
||||
//
|
||||
// resourceGroupName is resource group name within the specified
|
||||
// subscriptionId. workspaceName is oMS workspace containing the resources of
|
||||
// interest. machineName is machine resource name. live is specifies whether to
|
||||
// return live resources (true) or inventory resources (false). Defaults to
|
||||
// **true**. When retrieving live resources, the start time (`startTime`) and
|
||||
// end time (`endTime`) of the desired interval should be included. When
|
||||
// retrieving inventory resources, an optional timestamp (`timestamp`)
|
||||
// parameter can be specified to return the version of each resource closest
|
||||
// (not-after) that timestamp. startTime is uTC date and time specifying the
|
||||
// start time of an interval. When not specified the service uses
|
||||
// DateTime.UtcNow - 10m endTime is uTC date and time specifying the end time
|
||||
// of an interval. When not specified the service uses DateTime.UtcNow
|
||||
// timestamp is uTC date and time specifying a time instance relative to which
|
||||
// to evaluate all process resource. Only applies when `live=false`. When not
|
||||
// specified, the service uses DateTime.UtcNow.
|
||||
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
|
||||
// containing the resources of interest. machineName is machine resource name. live is specifies whether to return live
|
||||
// resources (true) or inventory resources (false). Defaults to **true**. When retrieving live resources, the start
|
||||
// time (`startTime`) and end time (`endTime`) of the desired interval should be included. When retrieving inventory
|
||||
// resources, an optional timestamp (`timestamp`) parameter can be specified to return the version of each resource
|
||||
// closest (not-after) that timestamp. startTime is UTC date and time specifying the start time of an interval. When
|
||||
// not specified the service uses DateTime.UtcNow - 10m endTime is UTC date and time specifying the end time of an
|
||||
// interval. When not specified the service uses DateTime.UtcNow timestamp is UTC date and time specifying a time
|
||||
// instance relative to which to evaluate all process resource. Only applies when `live=false`. When not specified, the
|
||||
// service uses DateTime.UtcNow.
|
||||
func (client MachinesClient) ListProcesses(resourceGroupName string, workspaceName string, machineName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time) (result ProcessCollection, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -844,3 +992,48 @@ func (client MachinesClient) ListProcessesNextResults(lastResults ProcessCollect
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListProcessesComplete gets all elements from the list without paging.
|
||||
func (client MachinesClient) ListProcessesComplete(resourceGroupName string, workspaceName string, machineName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time, cancel <-chan struct{}) (<-chan Process, <-chan error) {
|
||||
resultChan := make(chan Process)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListProcesses(resourceGroupName, workspaceName, machineName, live, startTime, endTime, timestamp)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListProcessesNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user