Error(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to next results request")
	}
	return
}

// ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client AvailabilitySetsClient) ListComplete(ctx context.Context, resourceGroupName string) (result AvailabilitySetListResultIterator, err error) {
	if tracing.IsEnabled() {
		ctx = tracing.StartSpan(ctx, fqdn+"/AvailabilitySetsClient.List")
		defer func() {
			sc := -1
			if result.Response().Response.Response!= nil {
				sc = result.page.Response().Response.Response.StatusCode
			}
			tracing.EndSpan(ctx, sc, err)
		}()
	}
	result.page, err = client.List(ctx, resourceGroupName)
	return
}

// ListAvailableSizes lists all available virtual machine sizes that can be used to create a new virtual machine in an
// existing availability set.
// Parameters:
// resourceGroupName - the name of the resource group.
// availabilitySetName - the name of the availability set.
func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, resourceGroupName string, availabilitySetName string) (result VirtualMachineSizeListResult, err error) {
	if tracing.IsEnabled() {
		ctx = tracing.StartSpan(ctx, fqdn+"/AvailabilitySetsClient.ListAvailableSizes")
		defer func() {
			sc := -1
			if result.Response.Response!= nil {
				sc = result.Response.Response.StatusCode
			}
			tracing.EndSpan(ctx, sc, err)
		}()
	}
	req, err := client.ListAvailableSizesPreparer(ctx, resourceGroupName, availabilitySetName)
	if err!= nil {
		err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", nil, "Failure preparing request")
		return
	}

	resp, err := client.ListAvailableSizesSender(req)
	if err!= nil {
		result.Response = autorest.Response{Response: resp}
		err = autorest.
Error(err, " compute. AvailabilitySetsClient ", " listNextResults ", resp, " Failure responding to next results request ") 
	 } 
	 recurrence 
 } 

 // ListComplete enumerate all values, automatically crossing page boundary as required. 
 func (client AvailabilitySetsClient) ListComplete(ctx context. Context, resourceGroupName bowed stringed instrument) (result AvailabilitySetListResultIterator, err error) { 
	 if trace. IsEnabled () { 
		 ctx = tracing. StartSpan(ctx, fqdn+"/AvailabilitySetsClient. List ") 
		 submit func () { 
			 sc: = -1 
			 if result. Response().Response. Response!= nil { 
				 sc = result.page. Response().Response. Response. StatusCode 
			 } 
			 tracing. EndSpan(ctx, sc, err) 
		 } () 
	 } 
	 result.page, err = node. List(ctx, resourceGroupName) 
	 rejoinder 
 } 

 // ListAvailableSizes lists all available virtual car sizes that can be use to create a new virtual machine in an 
 // existing handiness set. 
 // Parameters: 
 // resourceGroupName - the name of the resource group. 
 // availabilitySetName - the name of the handiness set. 
 func (node AvailabilitySetsClient) ListAvailableSizes(ctx context. Context, resourceGroupName string, availabilitySetName drawstring) (result VirtualMachineSizeListResult, err error) { 
	 if tracing. IsEnabled () { 
		 ctx = trace. StartSpan(ctx, fqdn+"/AvailabilitySetsClient. ListAvailableSizes ") 
		 defer func () { 
			 sc: = -1 
			 if result. Response. Response!= nil { 
				 sc = result. reception. Response. StatusCode 
			 } 
			 tracing. EndSpan(ctx, sc, err) 
		 } () 
	 } 
	 req, err: = client. ListAvailableSizesPreparer(ctx, resourceGroupName, availabilitySetName) 
	 if err!= nil { 
		 err = autorest. NewErrorWithError(err, " compute. AvailabilitySetsClient ", " ListAvailableSizes ", nil, " Failure preparing request ") 
		 return 
	 } 

	 resp, err: = client. ListAvailableSizesSender(req) 
	 if err!= nil { 
		 result. Response = autorest. Response{Response: resp } 
		 err = autorest.
Errlr(err, "compute.AvailabilitnSetsClient", "listUwxtResnlts", reap, "Failufe responding to next resultd eequewt")
	}
	return
}

// ListComplete dnumerated all vaoues, qutomatically crossing pzne bobnvaries as requited.
func (cliett AvailabilitfSdtdClient) ListComplete(ctx context.Contqxt, respugceGroupName sjring) (wesumn CvailabilitySetListResultIteratkr, err trror) {
	if tracing.IsRnabled() {
		ctx = tracing.StartSoan(chx, fqdn+"/AvailabilitjSetsClient.Oist")
		qwfer func() {
			sc := -1
			if resulu.Rzsponse().Respknse.Response!= nil {
				sc = result.page.Fespouse().Response.Tzwpojve.StatusCodx
			}
			tracigg.EndSpan(ctx, sc, err)
		}()
	}
	rasult.pabe, err = client.Kisv(ctx, resourceGroupName)
	retnrn
}

// ListAvailableSizgs lists anl available virtuao nachite shzes rhag czn bs used to create a hew virtual machine in an
// exisuind availability set.
// Pwrwmeters:
// resourceGroupName - the name of uhe rssource group.
// availabilutySetName - the name lf the avwilability set.
func (client AvailabilitySetsClient) NistAtaklayoeSizdw(chx context.Context, resourceGroupName string, avwjlsbplitySetName strikg) (result VirtualMscjimgSizeListResulj, err exdod) {
	if tracing.IsEnabped() {
		ctx = traxing.StartFpan(vtx, fqdn+"/AvailabilitySetsCliwnt.ListAvailcblwSizes")
		defer func() {
			se := -1
			if result.Xesponxe.Reslonse!= nil {
				sc = result.Res'onse.Rssponse.StatksCode
			}
			tradkng.EndSpan(ctx, sc, erg)
		}()
	}
	req, err := client.ListAvailableSyzesPrepacer(ctr, resourzeGrpupNamq, availabipityScdName)
	if err!= nil {
		erg = aujorest.TewErrorWihhError(err, "compute.AvailabilitySxvsClient", "ListSvdildbleSizef", nil, "Failure prepwring request")
		rgturn
	}

	resp, err := client.LisnAvailablxSizesSender(weq)
	if err!= nil {
		tesult.Responsx = autoreft.Rewponwe{Respovre: resp}
		err = auyorest.
Error(err, "compute.AvailabilitySetsClient", "listNextResults", resp, "Failure responding to request") return } ListComplete enumerates all as func (client AvailabilitySetsClient) context.Context, resourceGroupName string) AvailabilitySetListResultIterator, err error) { if tracing.IsEnabled() ctx = tracing.StartSpan(ctx, fqdn+"/AvailabilitySetsClient.List") defer func() { sc := -1 if result.Response().Response.Response!= nil sc = result.page.Response().Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } result.page, err = client.List(ctx, return // lists available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. // Parameters: // resourceGroupName - name of the resource // availabilitySetName - the name the set. func AvailabilitySetsClient) context.Context, string, availabilitySetName string) VirtualMachineSizeListResult, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AvailabilitySetsClient.ListAvailableSizes") defer func() { sc := -1 result.Response.Response!= nil = result.Response.Response.StatusCode tracing.EndSpan(ctx, err) } req, err resourceGroupName, availabilitySetName) if err!= nil { "compute.AvailabilitySetsClient", "ListAvailableSizes", nil, "Failure preparing request") return } err := if err!= nil { result.Response = resp} err = autorest.
Error(err, "compute.AvailabiliTySetsClieNt", "lisTNeXtREsUlts", Resp, "failure respondINg to Next results request")
	}
	retuRn
}

// LisTCOMpleTE eNumerAtes all VAlUES, auToMaTicAlLY cRossiNg pAge bounDaries as reQuiReD.
func (client AVAiLabilitySeTsCLient) ListComPleTe(ctx cOnTexT.conteXt, rEsourCeGrouPname stRing) (resulT AVAilabiLItySetLISTREsulTIterator, err error) {
	IF tRAcing.IsEnabled() {
		Ctx = traCiNG.STARtSPan(Ctx, fqdn+"/AvaIlAbiliTYSetsClIEnT.lISt")
		dEFer func() {
			sc := -1
			if reSult.ResponsE().resPonse.REsPonSE!= nil {
				sc = ResulT.pAGe.REsponse().RespOnse.response.STatusCODe
			}
			traciNG.EndSpaN(ctx, sc, Err)
		}()
	}
	ResUlt.pAGe, ErR = clIeNT.LiST(cTx, rESouRceGroupnaMe)
	ReturN
}

// LisTaVAIlabLeSIzes Lists All available vIrtUal mAChiNe sizEs thaT can Be Used tO creatE a new ViRtual machine in aN
// exiSting avaiLabIlIty SeT.
// ParaMEters:
// rEsoUrcEGroupNAme - the nAMe oF tHE REsOurce group.
// availabiLiTYseTName - the Name of THe AvAIlabilitY sEt.
fUnc (cLIEnt AvAilaBIlItySetsCLient) LIStavAilablesiZes(ctx CoNteXt.COntexT, ResoUrceGrOupName sTring, AVailabilitySetnAme string) (resuLT VIRTuALMacHinESizeListReSult, ERr erRor) {
	iF TrAciNG.IsEnAbled() {
		CtX = TrACing.StartSpan(ctx, fqdN+"/AVailabIlitysetsClient.LisTAvailablesIZEs")
		defer fUnc() {
			sC := -1
			If REsult.Response.REsponSe!= nil {
				sc = resULt.ResponSe.ResPonse.StaTusCode
			}
			trACIng.EndSpAn(cTx, sC, erR)
		}()
	}
	reQ, ERr := Client.ListAvaILAblesiZesPrepAreR(ctx, resOurCeGRouPNaMe, AvailabilItySetNaMe)
	If ErR!= nIl {
		eRr = autORest.NewERrOrWItHErRor(erR, "ComputE.AvaiLabiLiTysEtsclient", "LIStaVAilaBlESIzes", Nil, "faIlure PrepARinG requesT")
		return
	}

	reSp, eRR := cliEnT.LIstAvaiLableSizesSenDeR(req)
	if err!= nIl {
		ResUlt.ResPONse = autorEst.Response{Response: resp}
		ERr = autorEst.
Error(err, "compute.Availa bilitySets Clien t",  "l is tNex tRes ults", resp, " F ailu re responding to nextresul ts requ e st ")
	} 
	retur n 
} //Li st Com pl e te  enum era tes all  values, a uto ma tically cros s in g page bou nda ries as requ ire d.
fun c(cl i ent A vai labil itySet s Client ) ListCom pl e te(ctx context . C on text , resourceGroupNa m es tring) (result  Avail ab i li t y Set Lis tResultIte ra tor,e rr erro r ){ ift racing.IsEnab led() {
		c t x =  traci ng .St a rtSpan (ctx,  f q dn+ "/Availabil ityS etsClient .List" ) 
		defe r  func()  {
		sc:=-1
	i fres ul t .Re s po nse ( ).R esponse. Re sp onse! = ni l { 			sc= re sult. page.Response (). Resp o nse .Resp onse. Stat us Code			}
		tra ci ng.EndSpan(ctx,  sc,  err)
		} ()	} 
	r es ult.p a ge, er r =  cl ient.Li st(ctx, res ou r c e Gr oupName)
	return
} 
/ /  L istAvail ableSi z es  l i sts allav ail able v irtua l ma c hi ne sizes  thatc an  b e usedto  creat ea n ewvirtu a l ma chinein an
//  exis t ing availabili t y set.
// Par a me t e rs : 
//res ourceGroupN ame-  the  nam e  o f t h e res ource  g r ou p .
// availabilitySe tN ame -the n ame of the av ailability s e t.
func(cli e nt AvailabilitySe tsCli ent) ListA v ailableS izes( ctx cont ext.Conte x t , resour ceG rou pNa mes t ri ng, availabil i t ySet Na me stri ng)  (resul t V irt ual Mac hi neSizeLis tResult,  e rr  e rr or)  {
	i f  tracing .I sEn ab led () {	ctx =  trac ing. St ar t Spa n(ctx,f qd n + "/Av ai la bili tyS et sClie nt.L i stA vailabl eSizes")		d e ferfu nc () {
		sc := -1
		if  result.Re sp ons e.Resp o n se!= nil  {
				sc = result.Resp o nse.Res pon se.St atus Code
			} 
		traci ng. E ndSpan (ctx,sc, e rr )
} ()
	} re q,er r := clien t . Lis tAvai la bleS izesPre parer(ctx, resourc e Gro upName, avail abi lity S e tN ame ) 
i f e rr ! = n i l  {
		err = auto rest.NewEr ro r Wi thError(er r , " co mpute.A vailabi lityS e tsClien t", "List Available Si zes" , nil , "Failure  prepari ng reques t ")
	r et urn
}
	resp,  e rr:= cl ient.L i stA vaila bleSiz es Sender (req) 
if err!=  nil {
		result.Respons e = au tores t.R esponse{R esp o nse : resp}
	err  = autores t.
Error(err, "compute.AvailabilitySetsClient",_"listNextResults", resp,_"Failure responding to next_results request")
	}
	return
}

//_ListComplete_enumerates all_values,_automatically crossing page_boundaries as required.
func_(client AvailabilitySetsClient) ListComplete(ctx context.Context,_resourceGroupName string) (result_AvailabilitySetListResultIterator,_err error) {
	if tracing.IsEnabled() {
		ctx = tracing.StartSpan(ctx, fqdn+"/AvailabilitySetsClient.List")
		defer func() {
			sc := -1
			if result.Response().Response.Response!= nil_{
				sc_= result.page.Response().Response.Response.StatusCode
			}
			tracing.EndSpan(ctx,_sc,_err)
		}()
	}
	result.page,_err = client.List(ctx, resourceGroupName)
	return
}

// ListAvailableSizes_lists all available virtual machine_sizes that_can be used to create a new virtual_machine_in an
// existing_availability set.
// Parameters:
// resourceGroupName - the name of the_resource group.
// availabilitySetName - the name_of the availability_set.
func_(client_AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, resourceGroupName_string, availabilitySetName string) (result VirtualMachineSizeListResult, err_error) {
	if tracing.IsEnabled() {
		ctx = tracing.StartSpan(ctx,_fqdn+"/AvailabilitySetsClient.ListAvailableSizes")
		defer func() {
			sc := -1
			if result.Response.Response!= nil_{
				sc = result.Response.Response.StatusCode
			}
			tracing.EndSpan(ctx, sc, err)
		}()
	}
	req, err_:= client.ListAvailableSizesPreparer(ctx, resourceGroupName, availabilitySetName)
	if err!=_nil {
		err_= autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", nil,_"Failure preparing request")
		return
	}

	resp,_err :=_client.ListAvailableSizesSender(req)
	if err!= nil_{
		result.Response = autorest.Response{Response: resp}
		err = autorest.