Skip to content

Commit

Permalink
importer-msgraph-metadata: fix up response model for synchronization …
Browse files Browse the repository at this point in the history
…secrets service workaround
  • Loading branch information
manicminer committed Sep 6, 2024
1 parent 6cef487 commit e1126b9
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,18 @@ func (workaroundSynchronizationSecrets) Process(apiVersion, serviceName string,
}

resource.Operations = append(resource.Operations, parser.Operation{
Name: "GetSynchronizationSecret",
Description: "Retrieve synchronization secrets.",
Type: parser.OperationTypeRead,
Method: http.MethodGet,
ResourceId: resourceId,
UriSuffix: uriSuffix,
Name: "ListSynchronizationSecrets",
Description: "Retrieve synchronization secrets.",
Type: parser.OperationTypeList,
Method: http.MethodGet,
PaginationField: pointer.To("@odata.nextLink"),
ResourceId: resourceId,
UriSuffix: uriSuffix,
Responses: parser.Responses{
{
Status: http.StatusOK,
ContentType: pointer.To("application/json"),
ReferenceName: pointer.To("microsoft.graph.synchronizationSecret"),
ReferenceName: pointer.To("microsoft.graph.synchronizationSecretKeyStringValuePair"),
Type: pointer.To(parser.DataTypeReference),
},
},
Expand Down

0 comments on commit e1126b9

Please sign in to comment.