@@ -13,6 +13,7 @@ describe('resource resourceGroups', () => {
1313 test ( 'create: only required params' , async ( ) => {
1414 const responsePromise = client . iam . resourceGroups . create ( {
1515 account_id : 'eb78d65290b24279ba6f44721b3ea3c4' ,
16+ name : 'NewResourceGroup' ,
1617 scope : {
1718 key : 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4' ,
1819 objects : [ { key : 'com.cloudflare.api.account.zone.23f8d65290b24279ba6f44721b3eaad5' } ] ,
@@ -30,21 +31,17 @@ describe('resource resourceGroups', () => {
3031 test ( 'create: required and optional params' , async ( ) => {
3132 const response = await client . iam . resourceGroups . create ( {
3233 account_id : 'eb78d65290b24279ba6f44721b3ea3c4' ,
34+ name : 'NewResourceGroup' ,
3335 scope : {
3436 key : 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4' ,
3537 objects : [ { key : 'com.cloudflare.api.account.zone.23f8d65290b24279ba6f44721b3eaad5' } ] ,
3638 } ,
37- meta : { editable : 'false' } ,
3839 } ) ;
3940 } ) ;
4041
4142 test ( 'update: only required params' , async ( ) => {
4243 const responsePromise = client . iam . resourceGroups . update ( '6d7f2f5f5b1d4a0e9081fdc98d432fd1' , {
4344 account_id : 'eb78d65290b24279ba6f44721b3ea3c4' ,
44- scope : {
45- key : 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4' ,
46- objects : [ { key : 'com.cloudflare.api.account.zone.23f8d65290b24279ba6f44721b3eaad5' } ] ,
47- } ,
4845 } ) ;
4946 const rawResponse = await responsePromise . asResponse ( ) ;
5047 expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
@@ -58,11 +55,11 @@ describe('resource resourceGroups', () => {
5855 test ( 'update: required and optional params' , async ( ) => {
5956 const response = await client . iam . resourceGroups . update ( '6d7f2f5f5b1d4a0e9081fdc98d432fd1' , {
6057 account_id : 'eb78d65290b24279ba6f44721b3ea3c4' ,
58+ name : 'UpdatedResourceGroup' ,
6159 scope : {
6260 key : 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4' ,
6361 objects : [ { key : 'com.cloudflare.api.account.zone.23f8d65290b24279ba6f44721b3eaad5' } ] ,
6462 } ,
65- meta : { editable : 'false' } ,
6663 } ) ;
6764 } ) ;
6865
0 commit comments