Skip to content

Commit

Permalink
Generates modules from pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
pipeline-anypoint-clients-generator committed Aug 28, 2024
1 parent ea3d4b8 commit 1509cb6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 34 deletions.
2 changes: 0 additions & 2 deletions application_manager_v2/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
Expand Down Expand Up @@ -79,5 +78,4 @@ model_sidecars.go
model_state.go
model_target.go
response.go
test/api_default_test.go
utils.go
3 changes: 1 addition & 2 deletions exchange_assets/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ components:
classifier:
description: The type of the asset to be created
enum:
- mule-application
- raml-fragment
- raml
- oas
Expand Down Expand Up @@ -809,12 +810,10 @@ components:
title: assetLink
type: string
required:
- apiVersion
- asset
- assetId
- classifier
- groupId
- main
- name
- organizationId
- version
Expand Down
42 changes: 20 additions & 22 deletions exchange_assets/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions exchange_assets/docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Name | Type | Description | Notes

## AssetsPost

> PostAssetResponse AssetsPost(ctx).XStrictPackage(xStrictPackage).OrganizationId(organizationId).AssetId(assetId).Version(version).Name(name).Classifier(classifier).ApiVersion(apiVersion).Main(main).GroupId(groupId).Asset(asset).XAllowedApiSpecFormats(xAllowedApiSpecFormats).Dependencies(dependencies).OriginalFormatVersion(originalFormatVersion).Metadata(metadata).Tags(tags).AssetLink(assetLink).Execute()
> PostAssetResponse AssetsPost(ctx).XStrictPackage(xStrictPackage).OrganizationId(organizationId).AssetId(assetId).Version(version).Name(name).Classifier(classifier).GroupId(groupId).Asset(asset).XAllowedApiSpecFormats(xAllowedApiSpecFormats).ApiVersion(apiVersion).Main(main).Dependencies(dependencies).OriginalFormatVersion(originalFormatVersion).Metadata(metadata).Tags(tags).AssetLink(assetLink).Execute()
Create a new asset

Expand All @@ -261,11 +261,11 @@ func main() {
version := "version_example" // string | The version of the asset being created (must follow Semver syntax)
name := "name_example" // string | The visible name of the asset
classifier := "classifier_example" // string | The type of the asset to be created
apiVersion := "apiVersion_example" // string | The product version of API assets. Required for \\\"raml\\\", \\\"oas\\\", \\\"wsdl\\\" and \\\"http\\\" assets
main := "main_example" // string | The main file of the asset. Required for \\\"raml\\\", \\\"raml-fragment\\\", \\\"oas\\\" and \\\"wsdl\\\".
groupId := "groupId_example" // string | The id of the business group the asset will belong to
asset := os.NewFile(1234, "some_file") // *os.File | The asset file. Required for \\\"raml\\\", \\\"raml-fragment\\\", \\\"oas\\\" and \\\"wsdl\\\". Maximum size of 5 MB. This field must be the last field of the multipart.
xAllowedApiSpecFormats := "xAllowedApiSpecFormats_example" // string | Specify API Spec formats that assets are allowed to use (optional)
apiVersion := "apiVersion_example" // string | The product version of API assets. Required for \\\"raml\\\", \\\"oas\\\", \\\"wsdl\\\" and \\\"http\\\" assets (optional)
main := "main_example" // string | The main file of the asset. Required for \\\"raml\\\", \\\"raml-fragment\\\", \\\"oas\\\" and \\\"wsdl\\\". (optional)
dependencies := "dependencies_example" // string | Required for \\\"api-group\\\" classifier only, They are APIs included in it, as a JSON array of objects. Because the field must be of String type, the stringified value of the JSON array must be passed as parameter. (optional)
originalFormatVersion := "originalFormatVersion_example" // string | The version of the format of the api specification. ie ‘2.0’ for OAS 2.0 (optional)
metadata := "metadata_example" // string | A design center object describing asset projectId, branchId and commitId. Because the field must be of String type, the stringified value of the JSON object must be passed as parameter. (optional)
Expand All @@ -274,7 +274,7 @@ func main() {

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.AssetsPost(context.Background()).XStrictPackage(xStrictPackage).OrganizationId(organizationId).AssetId(assetId).Version(version).Name(name).Classifier(classifier).ApiVersion(apiVersion).Main(main).GroupId(groupId).Asset(asset).XAllowedApiSpecFormats(xAllowedApiSpecFormats).Dependencies(dependencies).OriginalFormatVersion(originalFormatVersion).Metadata(metadata).Tags(tags).AssetLink(assetLink).Execute()
resp, r, err := apiClient.DefaultApi.AssetsPost(context.Background()).XStrictPackage(xStrictPackage).OrganizationId(organizationId).AssetId(assetId).Version(version).Name(name).Classifier(classifier).GroupId(groupId).Asset(asset).XAllowedApiSpecFormats(xAllowedApiSpecFormats).ApiVersion(apiVersion).Main(main).Dependencies(dependencies).OriginalFormatVersion(originalFormatVersion).Metadata(metadata).Tags(tags).AssetLink(assetLink).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AssetsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -301,11 +301,11 @@ Name | Type | Description | Notes
**version** | **string** | The version of the asset being created (must follow Semver syntax) |
**name** | **string** | The visible name of the asset |
**classifier** | **string** | The type of the asset to be created |
**apiVersion** | **string** | The product version of API assets. Required for \\\"raml\\\", \\\"oas\\\", \\\"wsdl\\\" and \\\"http\\\" assets |
**main** | **string** | The main file of the asset. Required for \\\"raml\\\", \\\"raml-fragment\\\", \\\"oas\\\" and \\\"wsdl\\\". |
**groupId** | **string** | The id of the business group the asset will belong to |
**asset** | ***os.File** | The asset file. Required for \\\"raml\\\", \\\"raml-fragment\\\", \\\"oas\\\" and \\\"wsdl\\\". Maximum size of 5 MB. This field must be the last field of the multipart. |
**xAllowedApiSpecFormats** | **string** | Specify API Spec formats that assets are allowed to use |
**apiVersion** | **string** | The product version of API assets. Required for \\\"raml\\\", \\\"oas\\\", \\\"wsdl\\\" and \\\"http\\\" assets |
**main** | **string** | The main file of the asset. Required for \\\"raml\\\", \\\"raml-fragment\\\", \\\"oas\\\" and \\\"wsdl\\\". |
**dependencies** | **string** | Required for \\\"api-group\\\" classifier only, They are APIs included in it, as a JSON array of objects. Because the field must be of String type, the stringified value of the JSON array must be passed as parameter. |
**originalFormatVersion** | **string** | The version of the format of the api specification. ie ‘2.0’ for OAS 2.0 |
**metadata** | **string** | A design center object describing asset projectId, branchId and commitId. Because the field must be of String type, the stringified value of the JSON object must be passed as parameter. |
Expand Down
2 changes: 0 additions & 2 deletions rtf/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
Expand Down Expand Up @@ -51,5 +50,4 @@ model_ingress.go
model_post_fabrics_404_response.go
model_status.go
response.go
test/api_default_test.go
utils.go

0 comments on commit 1509cb6

Please sign in to comment.