@@ -70,6 +70,12 @@ func (p *ListAsyncJobsParams) toURLValues() url.Values {
7070 vv := strconv .Itoa (v .(int ))
7171 u .Set ("pagesize" , vv )
7272 }
73+ if v , found := p .p ["resourceid" ]; found {
74+ u .Set ("resourceid" , v .(string ))
75+ }
76+ if v , found := p .p ["resourcetype" ]; found {
77+ u .Set ("resourcetype" , v .(string ))
78+ }
7379 if v , found := p .p ["startdate" ]; found {
7480 u .Set ("startdate" , v .(string ))
7581 }
@@ -244,6 +250,48 @@ func (p *ListAsyncJobsParams) GetPagesize() (int, bool) {
244250 return value , ok
245251}
246252
253+ func (p * ListAsyncJobsParams ) SetResourceid (v string ) {
254+ if p .p == nil {
255+ p .p = make (map [string ]interface {})
256+ }
257+ p .p ["resourceid" ] = v
258+ }
259+
260+ func (p * ListAsyncJobsParams ) ResetResourceid () {
261+ if p .p != nil && p .p ["resourceid" ] != nil {
262+ delete (p .p , "resourceid" )
263+ }
264+ }
265+
266+ func (p * ListAsyncJobsParams ) GetResourceid () (string , bool ) {
267+ if p .p == nil {
268+ p .p = make (map [string ]interface {})
269+ }
270+ value , ok := p .p ["resourceid" ].(string )
271+ return value , ok
272+ }
273+
274+ func (p * ListAsyncJobsParams ) SetResourcetype (v string ) {
275+ if p .p == nil {
276+ p .p = make (map [string ]interface {})
277+ }
278+ p .p ["resourcetype" ] = v
279+ }
280+
281+ func (p * ListAsyncJobsParams ) ResetResourcetype () {
282+ if p .p != nil && p .p ["resourcetype" ] != nil {
283+ delete (p .p , "resourcetype" )
284+ }
285+ }
286+
287+ func (p * ListAsyncJobsParams ) GetResourcetype () (string , bool ) {
288+ if p .p == nil {
289+ p .p = make (map [string ]interface {})
290+ }
291+ value , ok := p .p ["resourcetype" ].(string )
292+ return value , ok
293+ }
294+
247295func (p * ListAsyncJobsParams ) SetStartdate (v string ) {
248296 if p .p == nil {
249297 p .p = make (map [string ]interface {})
@@ -273,7 +321,7 @@ func (s *AsyncjobService) NewListAsyncJobsParams() *ListAsyncJobsParams {
273321 return p
274322}
275323
276- // Lists all pending asynchronous jobs for the account .
324+ // Lists all pending asynchronous jobs for the Account .
277325func (s * AsyncjobService ) ListAsyncJobs (p * ListAsyncJobsParams ) (* ListAsyncJobsResponse , error ) {
278326 resp , err := s .cs .newRequest ("listAsyncJobs" , p .toURLValues ())
279327 if err != nil {
@@ -326,6 +374,12 @@ func (p *QueryAsyncJobResultParams) toURLValues() url.Values {
326374 if v , found := p .p ["jobid" ]; found {
327375 u .Set ("jobid" , v .(string ))
328376 }
377+ if v , found := p .p ["resourceid" ]; found {
378+ u .Set ("resourceid" , v .(string ))
379+ }
380+ if v , found := p .p ["resourcetype" ]; found {
381+ u .Set ("resourcetype" , v .(string ))
382+ }
329383 return u
330384}
331385
@@ -350,6 +404,48 @@ func (p *QueryAsyncJobResultParams) GetJobID() (string, bool) {
350404 return value , ok
351405}
352406
407+ func (p * QueryAsyncJobResultParams ) SetResourceid (v string ) {
408+ if p .p == nil {
409+ p .p = make (map [string ]interface {})
410+ }
411+ p .p ["resourceid" ] = v
412+ }
413+
414+ func (p * QueryAsyncJobResultParams ) ResetResourceid () {
415+ if p .p != nil && p .p ["resourceid" ] != nil {
416+ delete (p .p , "resourceid" )
417+ }
418+ }
419+
420+ func (p * QueryAsyncJobResultParams ) GetResourceid () (string , bool ) {
421+ if p .p == nil {
422+ p .p = make (map [string ]interface {})
423+ }
424+ value , ok := p .p ["resourceid" ].(string )
425+ return value , ok
426+ }
427+
428+ func (p * QueryAsyncJobResultParams ) SetResourcetype (v string ) {
429+ if p .p == nil {
430+ p .p = make (map [string ]interface {})
431+ }
432+ p .p ["resourcetype" ] = v
433+ }
434+
435+ func (p * QueryAsyncJobResultParams ) ResetResourcetype () {
436+ if p .p != nil && p .p ["resourcetype" ] != nil {
437+ delete (p .p , "resourcetype" )
438+ }
439+ }
440+
441+ func (p * QueryAsyncJobResultParams ) GetResourcetype () (string , bool ) {
442+ if p .p == nil {
443+ p .p = make (map [string ]interface {})
444+ }
445+ value , ok := p .p ["resourcetype" ].(string )
446+ return value , ok
447+ }
448+
353449// You should always use this function to get a new QueryAsyncJobResultParams instance,
354450// as then you are sure you have configured all required params
355451func (s * AsyncjobService ) NewQueryAsyncJobResultParams (jobid string ) * QueryAsyncJobResultParams {
0 commit comments