func getAzureReport() { var reportClient = azurereport.NewWithBaseURI(utils.GetBaseURI()) res, err := reportClient.GetReport() if err != nil { fmt.Println("Error:", err) } printReport(res.Value, "Azure") }
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") }
func getValidationClient() ManagementClient { c := New("abc123") c.BaseURI = utils.GetBaseURI() return c }
func getNumberClient() NumberClient { c := NewNumberClient() c.BaseURI = utils.GetBaseURI() return c }
func getQueryClient() QueriesClient { c := NewQueriesClient("globalStringPath", "globalStringQuery") c.BaseURI = utils.GetBaseURI() return c }
func getDictionaryClient() DictionaryClient { c := NewDictionaryClient() c.BaseURI = utils.GetBaseURI() return c }
func getPolymorphismClient() PolymorphismClient { c := NewPolymorphismClient() c.BaseURI = utils.GetBaseURI() return c }
func getPrimitiveClient() PrimitiveClient { c := NewPrimitiveClient() c.BaseURI = utils.GetBaseURI() return c }
func getArrayComplexClient() ArrayClient { c := NewArrayClient() c.BaseURI = utils.GetBaseURI() return c }
func getHTTPSuccessClient() HTTPSuccessClient { c := NewHTTPSuccessClient() c.BaseURI = utils.GetBaseURI() return c }
func getHeaderClient() HeaderClient { c := NewHeaderClient() c.BaseURI = utils.GetBaseURI() return c }
func getIntegerClient() IntGroupClient { c := NewIntGroupClient() c.BaseURI = utils.GetBaseURI() return c }
func getEnumClient() EnumClient { c := NewEnumClient() c.BaseURI = utils.GetBaseURI() return c }
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 }
func getDateTimeClient() DatetimeClient { c := NewDatetimeClient() c.BaseURI = utils.GetBaseURI() return c }
func getHTTPRedirectClient() HTTPRedirectsClient { c := NewHTTPRedirectsClient() c.BaseURI = utils.GetBaseURI() return c }
func getBasicOperationsClient() BasicOperationsClient { c := NewBasicOperationsClient() c.BaseURI = utils.GetBaseURI() return c }
func getHTTPServerFailureClient() HTTPServerFailureClient { c := NewHTTPServerFailureClient() c.BaseURI = utils.GetBaseURI() return c }
func getInheritanceClient() InheritanceClient { c := NewInheritanceClient() c.BaseURI = utils.GetBaseURI() return c }
func getHTTPMultipleResponsesClient() MultipleResponsesClient { c := NewMultipleResponsesClient() c.BaseURI = utils.GetBaseURI() return c }
func getReadOnlyClient() ReadonlypropertyClient { c := NewReadonlypropertyClient() c.BaseURI = utils.GetBaseURI() return c }
func getFormdataClient() FormdataClient { c := NewFormdataClient() c.BaseURI = utils.GetBaseURI() return c }
func getDurationClient() DurationClient { c := NewDurationClient() c.BaseURI = utils.GetBaseURI() return c }
func getRequiredImplicitTestClient() ImplicitClient { c := NewImplicitClient("", "", nil) c.BaseURI = utils.GetBaseURI() return c }
func getPathClient() PathsClient { c := NewPathsClient("globalStringPath", "globalStringQuery") c.BaseURI = utils.GetBaseURI() return c }
func getByteClient() OperationsClient { c := NewOperationsClient() c.BaseURI = utils.GetBaseURI() return c }
func getmodelflatteningClient() ManagementClient { c := New() c.BaseURI = utils.GetBaseURI() return c }
func getBooleanClient() BoolGroupClient { c := NewBoolGroupClient() c.BaseURI = utils.GetBaseURI() return c }