Skip to content

Commit

Permalink
use requestBody replace parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanwen Liu committed May 31, 2024
1 parent ca49a04 commit e4dd975
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,24 @@ interface Evidence {
);
@@encodedName(Evidence.download::parameters.body,
"application/json",
"parameters"
"requestBody"
);
@@clientName(Evidence.download::parameters.body, "requestBody");
@@OpenAPI.extension(Evidence.download::parameters.body,
"x-ms-client-name",
"requestBody"
);

@@doc(Evidence.download::parameters.body, "Parameters for the query operation");

@@encodedName(Evidence.createOrUpdate::parameters.resource,
"application/json",
"parameters"
"requestBody"
);

@@OpenAPI.extension(Evidence.createOrUpdate::parameters.resource,
"x-ms-client-name",
"properties"
"requestBody"
);

@@clientName(Evidence.createOrUpdate::parameters.resource, "parameters");
@@clientName(Evidence.createOrUpdate::parameters.resource, "requestBody");
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ interface Report {
);
@@encodedName(Report.createOrUpdate::parameters.resource,
"application/json",
"parameters"
"requestBody"
);

@@OpenAPI.extension(Report.createOrUpdate::parameters.resource,
"x-ms-client-name",
"properties"
"requestBody"
);

@@clientName(Report.createOrUpdate::parameters.resource, "parameters");
@@clientName(Report.createOrUpdate::parameters.resource, "requestBody");

@@doc(Report.update::parameters.properties,
"Parameters for the create or update operation"
Expand All @@ -182,10 +182,20 @@ interface Report {

@@encodedName(Report.update::parameters.properties,
"application/json",
"parameters"
"requestBody"
);
@@clientName(Report.update::parameters.properties, "requestBody");
@@OpenAPI.extension(Report.update::parameters.properties,
"x-ms-client-name",
"requestBody"
);

@@encodedName(Report.syncCertRecord::parameters.body,
"application/json",
"parameters"
"requestBody"
);
@@clientName(Report.syncCertRecord::parameters.body, "requestBody");
@@OpenAPI.extension(Report.syncCertRecord::parameters.body,
"x-ms-client-name",
"requestBody"
);
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ interface ScopingConfiguration {

@@encodedName(ScopingConfiguration.createOrUpdate::parameters.resource,
"application/json",
"parameters"
"requestBody"
);

@@OpenAPI.extension(ScopingConfiguration.createOrUpdate::parameters.resource,
"x-ms-client-name",
"properties"
"requestBody"
);

@@clientName(ScopingConfiguration.createOrUpdate::parameters.resource,
"parameters"
"requestBody"
);
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ interface Webhook {

@@encodedName(Webhook.update::parameters.properties,
"application/json",
"parameters"
"requestBody"
);

@@encodedName(Webhook.createOrUpdate::parameters.resource,
"application/json",
"parameters"
"requestBody"
);

@@OpenAPI.extension(Webhook.createOrUpdate::parameters.resource,
"x-ms-client-name",
"properties"
"requestBody"
);

@@clientName(Webhook.createOrUpdate::parameters.resource, "parameters");
@@clientName(Webhook.createOrUpdate::parameters.resource, "requestBody");
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ interface ProviderActions {

@@encodedName(ArmProviderActionAsync::parameters.body,
"application/json",
"parameters"
"requestBody"
);
@@encodedName(ArmProviderActionSync::parameters.body,
"application/json",
"parameters"
"requestBody"
);
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "The content of the action request",
"required": true,
Expand Down Expand Up @@ -102,7 +102,7 @@
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "The content of the action request",
"required": true,
Expand Down Expand Up @@ -145,7 +145,7 @@
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "The content of the action request",
"required": true,
Expand Down Expand Up @@ -188,7 +188,7 @@
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "The content of the action request",
"required": true,
Expand Down Expand Up @@ -234,7 +234,7 @@
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "The content of the action request",
"required": true,
Expand Down Expand Up @@ -435,14 +435,14 @@
"pattern": "^[-a-zA-Z0-9_]{1,50}$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "Parameters for the create or update operation",
"required": true,
"schema": {
"$ref": "#/definitions/ReportResource"
},
"x-ms-client-name": "properties"
"x-ms-client-name": "requestBody"
}
],
"responses": {
Expand Down Expand Up @@ -501,14 +501,14 @@
"pattern": "^[-a-zA-Z0-9_]{1,50}$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "Parameters for the create or update operation",
"required": true,
"schema": {
"$ref": "#/definitions/ReportResourcePatch"
},
"x-ms-client-name": "properties"
"x-ms-client-name": "requestBody"
}
],
"responses": {
Expand Down Expand Up @@ -624,7 +624,7 @@
"pattern": "^[-a-zA-Z0-9_]{1,50}$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "NameAvailabilityRequest object.",
"required": true,
Expand Down Expand Up @@ -807,14 +807,14 @@
"pattern": "^[a-zA-Z0-9-_.]+$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "Parameters for the create or update operation",
"required": true,
"schema": {
"$ref": "#/definitions/EvidenceResource"
},
"x-ms-client-name": "properties"
"x-ms-client-name": "requestBody"
}
],
"responses": {
Expand Down Expand Up @@ -919,14 +919,14 @@
"pattern": "^[a-zA-Z0-9-_.]+$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "Parameters for the query operation",
"required": true,
"schema": {
"$ref": "#/definitions/EvidenceFileDownloadRequest"
},
"x-ms-client-name": "body"
"x-ms-client-name": "requestBody"
}
],
"responses": {
Expand Down Expand Up @@ -1169,14 +1169,14 @@
"pattern": "^[a-zA-Z0-9_]*$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "Parameters for the create or update operation, this is a singleton resource, so please make sure you're using 'default' as the name.",
"required": true,
"schema": {
"$ref": "#/definitions/ScopingConfigurationResource"
},
"x-ms-client-name": "properties"
"x-ms-client-name": "requestBody"
}
],
"responses": {
Expand Down Expand Up @@ -1395,7 +1395,7 @@
"pattern": "^[a-zA-Z0-9-_]{1,64}$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "Parameters for the query operation",
"required": true,
Expand Down Expand Up @@ -1473,14 +1473,14 @@
"pattern": "^[-a-zA-Z0-9_]{1,50}$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "Parameters for synchronize certification record operation",
"required": true,
"schema": {
"$ref": "#/definitions/SyncCertRecordRequest"
},
"x-ms-client-name": "body"
"x-ms-client-name": "requestBody"
}
],
"responses": {
Expand Down Expand Up @@ -1721,14 +1721,14 @@
"pattern": "^[-a-zA-Z0-9_]{1,50}$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "Parameters for the create or update operation",
"required": true,
"schema": {
"$ref": "#/definitions/WebhookResource"
},
"x-ms-client-name": "properties"
"x-ms-client-name": "requestBody"
}
],
"responses": {
Expand Down Expand Up @@ -1784,7 +1784,7 @@
"pattern": "^[-a-zA-Z0-9_]{1,50}$"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "Parameters for the create or update operation",
"required": true,
Expand Down Expand Up @@ -1874,7 +1874,7 @@
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"name": "requestBody",
"in": "body",
"description": "The content of the action request",
"required": true,
Expand Down

0 comments on commit e4dd975

Please sign in to comment.