@@ -13,6 +13,7 @@ describe('resource resourceGroups', () => {
13
13
test ( 'create: only required params' , async ( ) => {
14
14
const responsePromise = client . iam . resourceGroups . create ( {
15
15
account_id : 'eb78d65290b24279ba6f44721b3ea3c4' ,
16
+ name : 'NewResourceGroup' ,
16
17
scope : {
17
18
key : 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4' ,
18
19
objects : [ { key : 'com.cloudflare.api.account.zone.23f8d65290b24279ba6f44721b3eaad5' } ] ,
@@ -30,21 +31,17 @@ describe('resource resourceGroups', () => {
30
31
test ( 'create: required and optional params' , async ( ) => {
31
32
const response = await client . iam . resourceGroups . create ( {
32
33
account_id : 'eb78d65290b24279ba6f44721b3ea3c4' ,
34
+ name : 'NewResourceGroup' ,
33
35
scope : {
34
36
key : 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4' ,
35
37
objects : [ { key : 'com.cloudflare.api.account.zone.23f8d65290b24279ba6f44721b3eaad5' } ] ,
36
38
} ,
37
- meta : { editable : 'false' } ,
38
39
} ) ;
39
40
} ) ;
40
41
41
42
test ( 'update: only required params' , async ( ) => {
42
43
const responsePromise = client . iam . resourceGroups . update ( '6d7f2f5f5b1d4a0e9081fdc98d432fd1' , {
43
44
account_id : 'eb78d65290b24279ba6f44721b3ea3c4' ,
44
- scope : {
45
- key : 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4' ,
46
- objects : [ { key : 'com.cloudflare.api.account.zone.23f8d65290b24279ba6f44721b3eaad5' } ] ,
47
- } ,
48
45
} ) ;
49
46
const rawResponse = await responsePromise . asResponse ( ) ;
50
47
expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
@@ -58,11 +55,11 @@ describe('resource resourceGroups', () => {
58
55
test ( 'update: required and optional params' , async ( ) => {
59
56
const response = await client . iam . resourceGroups . update ( '6d7f2f5f5b1d4a0e9081fdc98d432fd1' , {
60
57
account_id : 'eb78d65290b24279ba6f44721b3ea3c4' ,
58
+ name : 'UpdatedResourceGroup' ,
61
59
scope : {
62
60
key : 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4' ,
63
61
objects : [ { key : 'com.cloudflare.api.account.zone.23f8d65290b24279ba6f44721b3eaad5' } ] ,
64
62
} ,
65
- meta : { editable : 'false' } ,
66
63
} ) ;
67
64
} ) ;
68
65
0 commit comments