Example #1
0
func getAzureReport() {
	var reportClient = azurereport.NewWithBaseURI(utils.GetBaseURI())
	res, err := reportClient.GetReport()
	if err != nil {
		fmt.Println("Error:", err)
	}
	printReport(res.Value, "Azure")
}
Example #2
0
func getReport() {
	var reportClient = report.NewWithBaseURI(utils.GetBaseURI())
	res, err := reportClient.GetReport()
	if err != nil {
		fmt.Println("Error:", err)
	}

	count := 0
	for key, val := range *res.Value {
		if *val <= 0 {
			fmt.Println(key, *val)
			count++
		}
	}
	total := len(*res.Value)
	fmt.Printf("\nReport:	Passed(%v)  Failed(%v)\n", total-count, count)
	fmt.Println("Go Done.......\n")
}
Example #3
0
func getValidationClient() ManagementClient {
	c := New("abc123")
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #4
0
func getNumberClient() NumberClient {
	c := NewNumberClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #5
0
func getQueryClient() QueriesClient {
	c := NewQueriesClient("globalStringPath", "globalStringQuery")
	c.BaseURI = utils.GetBaseURI()
	return c
}
func getDictionaryClient() DictionaryClient {
	c := NewDictionaryClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #7
0
func getPolymorphismClient() PolymorphismClient {
	c := NewPolymorphismClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #8
0
func getPrimitiveClient() PrimitiveClient {
	c := NewPrimitiveClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #9
0
func getArrayComplexClient() ArrayClient {
	c := NewArrayClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
func getHTTPSuccessClient() HTTPSuccessClient {
	c := NewHTTPSuccessClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #11
0
func getHeaderClient() HeaderClient {
	c := NewHeaderClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #12
0
func getIntegerClient() IntGroupClient {
	c := NewIntGroupClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #13
0
func getEnumClient() EnumClient {
	c := NewEnumClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #14
0
func getFileClient() FilesClient {
	c := NewFilesClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
func getCustomBaseURIClient() PathsClient {
	c := NewPathsClient("local")
	c.BaseURI = utils.GetBaseURI()
	return c
}
func getHTTPRetryClient() HTTPRetryClient {
	c := NewHTTPRetryClient()
	c.BaseURI = utils.GetBaseURI()
	c.RetryDuration = 3 * time.Second
	return c
}
Example #17
0
func getDateTimeClient() DatetimeClient {
	c := NewDatetimeClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
func getHTTPRedirectClient() HTTPRedirectsClient {
	c := NewHTTPRedirectsClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #19
0
func getBasicOperationsClient() BasicOperationsClient {
	c := NewBasicOperationsClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
func getHTTPServerFailureClient() HTTPServerFailureClient {
	c := NewHTTPServerFailureClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #21
0
func getInheritanceClient() InheritanceClient {
	c := NewInheritanceClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
func getHTTPMultipleResponsesClient() MultipleResponsesClient {
	c := NewMultipleResponsesClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #23
0
func getReadOnlyClient() ReadonlypropertyClient {
	c := NewReadonlypropertyClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #24
0
func getFormdataClient() FormdataClient {
	c := NewFormdataClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #25
0
func getDurationClient() DurationClient {
	c := NewDurationClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
func getRequiredImplicitTestClient() ImplicitClient {
	c := NewImplicitClient("", "", nil)
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #27
0
func getPathClient() PathsClient {
	c := NewPathsClient("globalStringPath", "globalStringQuery")
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #28
0
func getByteClient() OperationsClient {
	c := NewOperationsClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}
func getmodelflatteningClient() ManagementClient {
	c := New()
	c.BaseURI = utils.GetBaseURI()
	return c
}
Example #30
0
func getBooleanClient() BoolGroupClient {
	c := NewBoolGroupClient()
	c.BaseURI = utils.GetBaseURI()
	return c
}