diff --git a/.openapi/registry-instance.json b/.openapi/registry-instance.json index 413c1c37..9908747a 100644 --- a/.openapi/registry-instance.json +++ b/.openapi/registry-instance.json @@ -3323,7 +3323,7 @@ "type": "string" }, "builtOn": { - "format": "date-time", + "format": "utc-date", "type": "string" } }, @@ -3493,14 +3493,14 @@ "type": "string" }, "createdOn": { - "format": "date-time", + "format": "utc-date", "type": "string" }, "modifiedBy": { "type": "string" }, "modifiedOn": { - "format": "date-time", + "format": "utc-date", "type": "string" }, "id": { @@ -3608,7 +3608,7 @@ "type": "string" }, "createdOn": { - "format": "date-time", + "format": "utc-date", "description": "", "type": "string" }, @@ -3632,7 +3632,7 @@ "description": "" }, "modifiedOn": { - "format": "date-time", + "format": "utc-date", "description": "", "type": "string" }, @@ -3687,7 +3687,7 @@ "type": "string" }, "createdOn": { - "format": "date-time", + "format": "utc-date", "type": "string" }, "type": { @@ -3780,7 +3780,7 @@ "type": "string" }, "createdOn": { - "format": "date-time", + "format": "utc-date", "description": "", "type": "string" }, @@ -4101,7 +4101,7 @@ "type": "string" }, "createdOn": { - "format": "date-time", + "format": "utc-date", "description": "", "type": "string" }, @@ -4110,7 +4110,7 @@ "type": "string" }, "modifiedOn": { - "format": "date-time", + "format": "utc-date", "description": "", "type": "string" }, @@ -4154,14 +4154,14 @@ "type": "string" }, "createdOn": { - "format": "date-time", + "format": "utc-date", "type": "string" }, "modifiedBy": { "type": "string" }, "modifiedOn": { - "format": "date-time", + "format": "utc-date", "type": "string" }, "properties": { diff --git a/registryinstance/apiv1internal/client/.openapi-generator/FILES b/registryinstance/apiv1internal/client/.openapi-generator/FILES index 2b068d35..9a598f8e 100644 --- a/registryinstance/apiv1internal/client/.openapi-generator/FILES +++ b/registryinstance/apiv1internal/client/.openapi-generator/FILES @@ -4,7 +4,7 @@ api/openapi.yaml api_admin.go api_artifact_rules.go api_artifacts.go -api_global_rules.go +api_groups.go api_metadata.go api_search.go api_system.go @@ -19,14 +19,17 @@ docs/ArtifactReference.md docs/ArtifactRulesApi.md docs/ArtifactSearchResults.md docs/ArtifactState.md -docs/ArtifactType.md +docs/ArtifactTypeInfo.md docs/ArtifactsApi.md docs/ConfigurationProperty.md docs/ContentCreateRequest.md +docs/CreateGroupMetaData.md docs/DownloadRef.md docs/EditableMetaData.md docs/Error.md -docs/GlobalRulesApi.md +docs/GroupMetaData.md +docs/GroupSearchResults.md +docs/GroupsApi.md docs/IfExists.md docs/Limits.md docs/LogConfiguration.md @@ -43,6 +46,7 @@ docs/RuleViolationError.md docs/RuleViolationErrorAllOf.md docs/SearchApi.md docs/SearchedArtifact.md +docs/SearchedGroup.md docs/SearchedVersion.md docs/SortBy.md docs/SortOrder.md @@ -61,12 +65,15 @@ model_artifact_owner.go model_artifact_reference.go model_artifact_search_results.go model_artifact_state.go -model_artifact_type.go +model_artifact_type_info.go model_configuration_property.go model_content_create_request.go +model_create_group_meta_data.go model_download_ref.go model_editable_meta_data.go model_error.go +model_group_meta_data.go +model_group_search_results.go model_if_exists.go model_limits.go model_log_configuration.go @@ -81,6 +88,7 @@ model_rule_violation_cause.go model_rule_violation_error.go model_rule_violation_error_all_of.go model_searched_artifact.go +model_searched_group.go model_searched_version.go model_sort_by.go model_sort_order.go diff --git a/registryinstance/apiv1internal/client/README.md b/registryinstance/apiv1internal/client/README.md index a8929f26..2d470408 100644 --- a/registryinstance/apiv1internal/client/README.md +++ b/registryinstance/apiv1internal/client/README.md @@ -22,7 +22,7 @@ The supported artifact types include: ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 2.2.5.Final +- API version: 2.4.x - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://github.com/apicurio/apicurio-registry](https://github.com/apicurio/apicurio-registry) @@ -96,20 +96,27 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AdminApi* | [**CreateGlobalRule**](docs/AdminApi.md#createglobalrule) | **Post** /admin/rules | Create global rule *AdminApi* | [**CreateRoleMapping**](docs/AdminApi.md#createrolemapping) | **Post** /admin/roleMappings | Create a new role mapping +*AdminApi* | [**DeleteAllGlobalRules**](docs/AdminApi.md#deleteallglobalrules) | **Delete** /admin/rules | Delete all global rules +*AdminApi* | [**DeleteGlobalRule**](docs/AdminApi.md#deleteglobalrule) | **Delete** /admin/rules/{rule} | Delete global rule *AdminApi* | [**DeleteRoleMapping**](docs/AdminApi.md#deleterolemapping) | **Delete** /admin/roleMappings/{principalId} | Delete a role mapping *AdminApi* | [**ExportData**](docs/AdminApi.md#exportdata) | **Get** /admin/export | Export registry data *AdminApi* | [**GetConfigProperty**](docs/AdminApi.md#getconfigproperty) | **Get** /admin/config/properties/{propertyName} | Get configuration property value +*AdminApi* | [**GetGlobalRuleConfig**](docs/AdminApi.md#getglobalruleconfig) | **Get** /admin/rules/{rule} | Get global rule configuration *AdminApi* | [**GetLogConfiguration**](docs/AdminApi.md#getlogconfiguration) | **Get** /admin/loggers/{logger} | Get a single logger configuration *AdminApi* | [**GetRoleMapping**](docs/AdminApi.md#getrolemapping) | **Get** /admin/roleMappings/{principalId} | Return a single role mapping *AdminApi* | [**ImportData**](docs/AdminApi.md#importdata) | **Post** /admin/import | Import registry data +*AdminApi* | [**ListArtifactTypes**](docs/AdminApi.md#listartifacttypes) | **Get** /admin/artifactTypes | List artifact types *AdminApi* | [**ListConfigProperties**](docs/AdminApi.md#listconfigproperties) | **Get** /admin/config/properties | List all configuration properties +*AdminApi* | [**ListGlobalRules**](docs/AdminApi.md#listglobalrules) | **Get** /admin/rules | List global rules *AdminApi* | [**ListLogConfigurations**](docs/AdminApi.md#listlogconfigurations) | **Get** /admin/loggers | List logging configurations *AdminApi* | [**ListRoleMappings**](docs/AdminApi.md#listrolemappings) | **Get** /admin/roleMappings | List all role mappings *AdminApi* | [**RemoveLogConfiguration**](docs/AdminApi.md#removelogconfiguration) | **Delete** /admin/loggers/{logger} | Removes logger configuration *AdminApi* | [**ResetConfigProperty**](docs/AdminApi.md#resetconfigproperty) | **Delete** /admin/config/properties/{propertyName} | Reset a configuration property *AdminApi* | [**SetLogConfiguration**](docs/AdminApi.md#setlogconfiguration) | **Put** /admin/loggers/{logger} | Set a logger's configuration *AdminApi* | [**UpdateConfigProperty**](docs/AdminApi.md#updateconfigproperty) | **Put** /admin/config/properties/{propertyName} | Update a configuration property +*AdminApi* | [**UpdateGlobalRuleConfig**](docs/AdminApi.md#updateglobalruleconfig) | **Put** /admin/rules/{rule} | Update global rule configuration *AdminApi* | [**UpdateRoleMapping**](docs/AdminApi.md#updaterolemapping) | **Put** /admin/roleMappings/{principalId} | Update a role mapping *ArtifactRulesApi* | [**CreateArtifactRule**](docs/ArtifactRulesApi.md#createartifactrule) | **Post** /groups/{groupId}/artifacts/{artifactId}/rules | Create artifact rule *ArtifactRulesApi* | [**DeleteArtifactRule**](docs/ArtifactRulesApi.md#deleteartifactrule) | **Delete** /groups/{groupId}/artifacts/{artifactId}/rules/{rule} | Delete artifact rule @@ -128,15 +135,13 @@ Class | Method | HTTP request | Description *ArtifactsApi* | [**ListArtifactsInGroup**](docs/ArtifactsApi.md#listartifactsingroup) | **Get** /groups/{groupId}/artifacts | List artifacts in group *ArtifactsApi* | [**ReferencesByContentHash**](docs/ArtifactsApi.md#referencesbycontenthash) | **Get** /ids/contentHashes/{contentHash}/references | List artifact references by hash *ArtifactsApi* | [**ReferencesByContentId**](docs/ArtifactsApi.md#referencesbycontentid) | **Get** /ids/contentIds/{contentId}/references | List artifact references by content ID -*ArtifactsApi* | [**ReferencesByGlobalId**](docs/ArtifactsApi.md#referencesbyglobalid) | **Get** /ids/globalIds/{globalId}/references | Returns a list with all the references for the artifact with the given global id. +*ArtifactsApi* | [**ReferencesByGlobalId**](docs/ArtifactsApi.md#referencesbyglobalid) | **Get** /ids/globalIds/{globalId}/references | List artifact references by global ID *ArtifactsApi* | [**UpdateArtifact**](docs/ArtifactsApi.md#updateartifact) | **Put** /groups/{groupId}/artifacts/{artifactId} | Update artifact *ArtifactsApi* | [**UpdateArtifactState**](docs/ArtifactsApi.md#updateartifactstate) | **Put** /groups/{groupId}/artifacts/{artifactId}/state | Update artifact state -*GlobalRulesApi* | [**CreateGlobalRule**](docs/GlobalRulesApi.md#createglobalrule) | **Post** /admin/rules | Create global rule -*GlobalRulesApi* | [**DeleteAllGlobalRules**](docs/GlobalRulesApi.md#deleteallglobalrules) | **Delete** /admin/rules | Delete all global rules -*GlobalRulesApi* | [**DeleteGlobalRule**](docs/GlobalRulesApi.md#deleteglobalrule) | **Delete** /admin/rules/{rule} | Delete global rule -*GlobalRulesApi* | [**GetGlobalRuleConfig**](docs/GlobalRulesApi.md#getglobalruleconfig) | **Get** /admin/rules/{rule} | Get global rule configuration -*GlobalRulesApi* | [**ListGlobalRules**](docs/GlobalRulesApi.md#listglobalrules) | **Get** /admin/rules | List global rules -*GlobalRulesApi* | [**UpdateGlobalRuleConfig**](docs/GlobalRulesApi.md#updateglobalruleconfig) | **Put** /admin/rules/{rule} | Update global rule configuration +*GroupsApi* | [**CreateGroup**](docs/GroupsApi.md#creategroup) | **Post** /groups | Create a new group +*GroupsApi* | [**DeleteGroupById**](docs/GroupsApi.md#deletegroupbyid) | **Delete** /groups/{groupId} | Delete a group by the specified ID. +*GroupsApi* | [**GetGroupById**](docs/GroupsApi.md#getgroupbyid) | **Get** /groups/{groupId} | Get a group by the specified ID. +*GroupsApi* | [**ListGroups**](docs/GroupsApi.md#listgroups) | **Get** /groups | List groups *MetadataApi* | [**DeleteArtifactVersionMetaData**](docs/MetadataApi.md#deleteartifactversionmetadata) | **Delete** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta | Delete artifact version metadata *MetadataApi* | [**GetArtifactMetaData**](docs/MetadataApi.md#getartifactmetadata) | **Get** /groups/{groupId}/artifacts/{artifactId}/meta | Get artifact metadata *MetadataApi* | [**GetArtifactOwner**](docs/MetadataApi.md#getartifactowner) | **Get** /groups/{groupId}/artifacts/{artifactId}/owner | Get artifact owner @@ -164,12 +169,15 @@ Class | Method | HTTP request | Description - [ArtifactReference](docs/ArtifactReference.md) - [ArtifactSearchResults](docs/ArtifactSearchResults.md) - [ArtifactState](docs/ArtifactState.md) - - [ArtifactType](docs/ArtifactType.md) + - [ArtifactTypeInfo](docs/ArtifactTypeInfo.md) - [ConfigurationProperty](docs/ConfigurationProperty.md) - [ContentCreateRequest](docs/ContentCreateRequest.md) + - [CreateGroupMetaData](docs/CreateGroupMetaData.md) - [DownloadRef](docs/DownloadRef.md) - [EditableMetaData](docs/EditableMetaData.md) - [Error](docs/Error.md) + - [GroupMetaData](docs/GroupMetaData.md) + - [GroupSearchResults](docs/GroupSearchResults.md) - [IfExists](docs/IfExists.md) - [Limits](docs/Limits.md) - [LogConfiguration](docs/LogConfiguration.md) @@ -184,6 +192,7 @@ Class | Method | HTTP request | Description - [RuleViolationError](docs/RuleViolationError.md) - [RuleViolationErrorAllOf](docs/RuleViolationErrorAllOf.md) - [SearchedArtifact](docs/SearchedArtifact.md) + - [SearchedGroup](docs/SearchedGroup.md) - [SearchedVersion](docs/SearchedVersion.md) - [SortBy](docs/SortBy.md) - [SortOrder](docs/SortOrder.md) diff --git a/registryinstance/apiv1internal/client/api/openapi.yaml b/registryinstance/apiv1internal/client/api/openapi.yaml index 1e9271be..b64939f9 100644 --- a/registryinstance/apiv1internal/client/api/openapi.yaml +++ b/registryinstance/apiv1internal/client/api/openapi.yaml @@ -24,7 +24,7 @@ info: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 title: Apicurio Registry API [v2] - version: 2.2.5.Final + version: 2.4.x servers: - url: / tags: @@ -36,10 +36,10 @@ tags: \ This section contains \noperations to access (and in some cases change) an artifact's\ \ metadata." name: Metadata -- description: "Whenever an artifact's content is updated, the old versions of the\ - \ artifact's content\nare not lost. All versions can be listed and accessed if\ - \ necessary. This section \ndescribes the operations used to list and access\ - \ all versions of an artifact's content\nand metadata." +- description: When artifact content is updated, old versions of the artifact content + are not lost. All versions can be listed and accessed if necessary. This section + describes the operations used to list and access all versions of an artifact's + content and metadata. name: Versions - description: |- Rules can be configured on a per-artifact basis, allowing for different approaches @@ -47,13 +47,6 @@ tags: that have been configured. This section contains the operations used to manage a single artifact's rules. name: Artifact rules -- description: "Global rules can be configured in the registry to govern how artifact\ - \ content can \nevolve over time (as artifact content is **updated**). Global\ - \ rules are applied \nwhenever an artifact is added to the registry, and also\ - \ whenever an artifact's \ncontent is updated (only if that artifact does not\ - \ have its own specific rules \nconfigured). This section describes the operations\ - \ used to manage the global rules." - name: Global rules - description: 'The search API is used to browse or find artifacts in the registry. This section describes the operations for searching for artifacts and versions. ' name: Search @@ -62,8 +55,11 @@ tags: name: Admin - description: System level functionality, including versioning and status information. name: System -- description: Some operations related to users. +- description: Operations related to users. name: Users +- description: Registry artifacts can be collected together using groups. This section + includes all of the primary operations related to groups. + name: Groups paths: /ids/contentIds/{contentId}/: get: @@ -266,6 +262,40 @@ paths: tags: - Artifacts summary: Access artifact content utilizing the SHA-256 hash of the content. + /admin/artifactTypes: + get: + description: | + Gets a list of all the configured artifact types. + + This operation can fail for the following reasons: + + * A server error occurred (HTTP error `500`) + operationId: listArtifactTypes + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ArtifactTypeInfo' + type: array + description: The list of available artifact types. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: List artifact types + tags: + - Admin + summary: The list of artifact types supported by this instance of Registry. /admin/rules: delete: description: | @@ -292,7 +322,7 @@ paths: server error. summary: Delete all global rules tags: - - Global rules + - Admin get: description: | Gets a list of all the currently configured global rules (if any). @@ -324,7 +354,7 @@ paths: server error. summary: List global rules tags: - - Global rules + - Admin post: description: | Adds a rule to the list of globally configured rules. @@ -377,7 +407,7 @@ paths: server error. summary: Create global rule tags: - - Global rules + - Admin summary: Manage the global rules that apply to all artifacts if not otherwise configured. /admin/rules/{rule}: @@ -431,7 +461,7 @@ paths: server error. summary: Delete global rule tags: - - Global rules + - Admin get: description: | Returns information about the named globally configured rule. @@ -484,7 +514,7 @@ paths: server error. summary: Get global rule configuration tags: - - Global rules + - Admin put: description: | Updates the configuration for a globally configured rule. @@ -543,7 +573,7 @@ paths: server error. summary: Update global rule configuration tags: - - Global rules + - Admin summary: Manage the configuration of a single global artifact rule. /admin/loggers: get: @@ -968,13 +998,6 @@ paths: description: Exports registry data as a ZIP archive. operationId: exportData parameters: - - explode: false - in: header - name: Accept - required: false - schema: - type: string - style: simple - description: Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser @@ -992,6 +1015,9 @@ paths: application/zip: schema: $ref: '#/components/schemas/FileContent' + application/json: + schema: + $ref: '#/components/schemas/DownloadRef' description: Response when the export is successful. "500": content: @@ -2260,7 +2286,7 @@ paths: /ids/globalIds/{globalId}/references: get: description: |- - Returns a list containing all the artifact references using the artifact global id. + Returns a list containing all the artifact references using the artifact global ID. This operation may fail for one of the following reasons: @@ -2286,8 +2312,7 @@ paths: type: array description: A list containing all the references for the artifact with the given global id. - summary: Returns a list with all the references for the artifact with the given - global id. + summary: List artifact references by global ID tags: - Artifacts /groups/{groupId}/artifacts/{artifactId}/versions/{version}/references: @@ -2811,6 +2836,15 @@ paths: schema: $ref: '#/components/schemas/EncodedArtifactDescription' style: simple + - description: This header is explicit so clients using the OpenAPI Generator + are able select the content type. Ignore otherwise. + explode: false + in: header + name: Content-Type + required: false + schema: + type: string + style: simple requestBody: content: '*/*': @@ -2849,8 +2883,12 @@ paths: example: property-1: value1 property-2: true - schema: {} - application/json: + schema: + $ref: '#/components/schemas/FileContent' + application/create.extended+json: + schema: + $ref: '#/components/schemas/ContentCreateRequest' + application/vnd.create.extended+json: schema: $ref: '#/components/schemas/ContentCreateRequest' description: | @@ -2919,7 +2957,8 @@ paths: description: Deletes all of the artifacts that exist in a given group. operationId: deleteArtifactsInGroup parameters: - - description: Unique ID of an artifact group. + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. explode: false in: path name: groupId @@ -2949,7 +2988,8 @@ paths: description: Returns a list of all artifacts in the group. This list is paged. operationId: listArtifactsInGroup parameters: - - description: Unique ID of an artifact group. + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. explode: false in: path name: groupId @@ -3053,7 +3093,8 @@ paths: \ (HTTP error `409`)\n* A server error occurred (HTTP error `500`)\n" operationId: createArtifact parameters: - - description: Unique ID of an artifact group. + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. explode: false in: path name: groupId @@ -3180,6 +3221,15 @@ paths: - MD5 type: string style: simple + - description: This header is explicit so clients using the OpenAPI Generator + are able select the content type. Ignore otherwise. + explode: false + in: header + name: Content-Type + required: false + schema: + type: string + style: simple requestBody: content: '*/*': @@ -3219,9 +3269,11 @@ paths: property-1: value1 property-2: true schema: - format: binary - type: string - application/json: + $ref: '#/components/schemas/FileContent' + application/create.extended+json: + schema: + $ref: '#/components/schemas/ContentCreateRequest' + application/vnd.create.extended+json: schema: $ref: '#/components/schemas/ContentCreateRequest' description: | @@ -3326,7 +3378,8 @@ paths: requestBody: content: '*/*': - schema: {} + schema: + $ref: '#/components/schemas/FileContent' description: | The content of the artifact being tested. This is often, but not always, JSON data representing one of the supported artifact types: @@ -3564,6 +3617,15 @@ paths: schema: $ref: '#/components/schemas/EncodedArtifactName' style: simple + - description: This header is explicit so clients using the OpenAPI Generator + are able select the content type. Ignore otherwise. + explode: false + in: header + name: Content-Type + required: false + schema: + type: string + style: simple requestBody: content: '*/*': @@ -3602,8 +3664,12 @@ paths: example: property-1: value1 property-2: true - schema: {} - application/json: + schema: + $ref: '#/components/schemas/FileContent' + application/create.extended+json: + schema: + $ref: '#/components/schemas/ContentCreateRequest' + application/vnd.create.extended+json: schema: $ref: '#/components/schemas/ContentCreateRequest' description: | @@ -3817,7 +3883,8 @@ paths: example: property-1: value1 property-2: true - schema: {} + schema: + $ref: '#/components/schemas/FileContent' description: The content of an artifact version. required: true responses: @@ -4050,6 +4117,224 @@ paths: tags: - Metadata summary: Manage the ownership of a single artifact. + /groups/{groupId}: + delete: + description: | + Deletes a group by identifier. + + This operation can fail for the following reasons: + + * A server error occurred (HTTP error `500`) + * The group does not exist (HTTP error `404`) + operationId: deleteGroupById + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + responses: + "204": + description: Empty content indicates a successful deletion. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Delete a group by the specified ID. + tags: + - Groups + get: + description: |- + Returns a group using the specified id. + + This operation can fail for the following reasons: + + * No group exists with the specified ID (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: getGroupById + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GroupMetaData' + description: The group's metadata. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get a group by the specified ID. + tags: + - Groups + summary: Collection to manage a single group in the registry. + /groups: + get: + description: Returns a list of all groups. This list is paged. + operationId: listGroups + parameters: + - description: The number of groups to return. Defaults to 20. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - description: The number of groups to skip before starting the result set. Defaults + to 0. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Sort order, ascending (`asc`) or descending (`desc`). + explode: true + in: query + name: order + required: false + schema: + $ref: '#/components/schemas/SortOrder' + style: form + - description: | + The field to sort by. Can be one of: + + * `name` + * `createdOn` + explode: true + in: query + name: orderby + required: false + schema: + $ref: '#/components/schemas/SortBy' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GroupSearchResults' + description: On a successful response, returns a bounded set of groups. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: List groups + tags: + - Groups + post: + description: | + Creates a new group. + + This operation can fail for the following reasons: + + * A server error occurred (HTTP error `500`) + * The group already exist (HTTP error `409`) + operationId: createGroup + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateGroupMetaData' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GroupMetaData' + description: The group has been successfully created. + "409": + content: + application/json: + examples: + ConflictExample: + value: + error_code: 409 + message: The artifact content was invalid. + schema: + $ref: '#/components/schemas/Error' + description: Common response used when an input conflicts with existing + data. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Create a new group + tags: + - Groups + summary: Collection of the groups in the registry. components: responses: NotFound: @@ -4197,20 +4482,16 @@ components: type: string x-codegen-package: io.apicurio.registry.types ArtifactType: - enum: - - AVRO - - PROTOBUF - - JSON - - OPENAPI - - ASYNCAPI - - GRAPHQL - - KCONNECT - - WSDL - - XSD - - XML example: AVRO type: string x-codegen-package: io.apicurio.registry.types + ArtifactTypeInfo: + example: + name: AVRO + properties: + name: + type: string + type: object UpdateState: example: state: DISABLED @@ -4552,13 +4833,11 @@ components: createdOn: format: utc-date type: string - x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ modifiedBy: type: string modifiedOn: format: utc-date type: string - x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ id: description: The ID of a single artifact. example: example-artifact @@ -4566,7 +4845,9 @@ components: version: type: string type: - $ref: '#/components/schemas/ArtifactType' + example: AVRO + type: string + x-codegen-package: io.apicurio.registry.types globalId: format: int64 type: integer @@ -4635,11 +4916,12 @@ components: createdOn: format: utc-date type: string - x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ createdBy: type: string type: - $ref: '#/components/schemas/ArtifactType' + example: AVRO + type: string + x-codegen-package: io.apicurio.registry.types labels: items: type: string @@ -4649,7 +4931,6 @@ components: modifiedOn: format: utc-date type: string - x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ modifiedBy: type: string groupId: @@ -4699,9 +4980,10 @@ components: createdOn: format: utc-date type: string - x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ type: - $ref: '#/components/schemas/ArtifactType' + example: AVRO + type: string + x-codegen-package: io.apicurio.registry.types globalId: format: int64 type: integer @@ -4765,11 +5047,12 @@ components: createdOn: format: utc-date type: string - x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ createdBy: type: string type: - $ref: '#/components/schemas/ArtifactType' + example: AVRO + type: string + x-codegen-package: io.apicurio.registry.types labels: items: type: string @@ -4965,6 +5248,145 @@ components: type: string title: Root Type for ArtifactOwner type: object + SearchedGroup: + description: Models a single group from the result set returned when searching + for groups. + example: + id: My-Group + name: Group Name + description: Description of the group + createdBy: user1 + createdOn: 2019-03-22T12:51:19Z + modifiedBy: user1 + modifiedOn: 2019-03-22T12:51:19Z + properties: + id: + description: An ID of a single artifact group. + example: my-group + type: string + description: + type: string + createdOn: + format: utc-date + type: string + createdBy: + type: string + modifiedOn: + format: utc-date + type: string + modifiedBy: + type: string + required: + - createdBy + - createdOn + - description + - id + - modifiedBy + - modifiedOn + type: object + GroupMetaData: + example: + id: group-identifier + description: Description of the group + artifactsType: AVRO + createdBy: user1 + createdOn: 2019-03-22T12:51:19Z + modifiedBy: user2 + modifiedOn: 2019-07-19T15:09:00Z + properties: + custom-1: foo + custom-2: bar + properties: + id: + description: An ID of a single artifact group. + example: my-group + type: string + description: + type: string + createdBy: + type: string + createdOn: + format: utc-date + type: string + modifiedBy: + type: string + modifiedOn: + format: utc-date + type: string + properties: + additionalProperties: + type: string + description: User-defined name-value pairs. Name and value must be strings. + type: object + x-codegen-inline: true + x-codegen-type: StringMap + required: + - createdBy + - createdOn + - description + - id + - modifiedBy + - modifiedOn + - properties + title: Root Type for GroupMetaData + type: object + GroupSearchResults: + description: Describes the response received when searching for groups. + example: + count: 0 + groups: + - id: My-Group + name: Group Name + description: Description of the group + createdBy: user1 + createdOn: 2019-03-22T12:51:19Z + modifiedBy: user1 + modifiedOn: 2019-03-22T12:51:19Z + - id: My-Group + name: Group Name + description: Description of the group + createdBy: user1 + createdOn: 2019-03-22T12:51:19Z + modifiedBy: user1 + modifiedOn: 2019-03-22T12:51:19Z + properties: + groups: + description: The groups returned in the result set. + items: + $ref: '#/components/schemas/SearchedGroup' + type: array + count: + description: "The total number of groups that matched the query that produced\ + \ the result set (may be \nmore than the number of groups in the result\ + \ set)." + type: integer + required: + - count + - groups + type: object + CreateGroupMetaData: + example: + id: group-identifier + description: The description of the artifact. + properties: + custom-1: foo + custom-2: bar + properties: + description: + type: string + properties: + additionalProperties: + type: string + description: User-defined name-value pairs. Name and value must be strings. + type: object + x-codegen-inline: true + x-codegen-type: StringMap + id: + type: string + required: + - id + title: Root Type for CreateGroupMetaData + type: object NamedLogConfiguration_allOf: properties: name: @@ -4982,3 +5404,16 @@ components: required: - causes type: object +x-codegen: + bean-annotations: + - io.quarkus.runtime.annotations.RegisterForReflection + - annotation: lombok.experimental.SuperBuilder + excludeEnums: true + - annotation: lombok.AllArgsConstructor + excludeEnums: true + - annotation: lombok.NoArgsConstructor + excludeEnums: true + - annotation: lombok.EqualsAndHashCode + excludeEnums: true + - annotation: lombok.ToString(callSuper = true) + excludeEnums: true diff --git a/registryinstance/apiv1internal/client/api_admin.go b/registryinstance/apiv1internal/client/api_admin.go index 90503db3..a51b9172 100644 --- a/registryinstance/apiv1internal/client/api_admin.go +++ b/registryinstance/apiv1internal/client/api_admin.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -28,6 +28,26 @@ var ( type AdminApi interface { + /* + * CreateGlobalRule Create global rule + * Adds a rule to the list of globally configured rules. + +This operation can fail for the following reasons: + +* The rule type is unknown (HTTP error `400`) +* The rule already exists (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateGlobalRuleRequest + */ + CreateGlobalRule(ctx _context.Context) ApiCreateGlobalRuleRequest + + /* + * CreateGlobalRuleExecute executes the request + */ + CreateGlobalRuleExecute(r ApiCreateGlobalRuleRequest) (*_nethttp.Response, error) + /* * CreateRoleMapping Create a new role mapping * Creates a new mapping between a user/principal and a role. @@ -47,6 +67,47 @@ This operation can fail for the following reasons: */ CreateRoleMappingExecute(r ApiCreateRoleMappingRequest) (*_nethttp.Response, error) + /* + * DeleteAllGlobalRules Delete all global rules + * Deletes all globally configured rules. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiDeleteAllGlobalRulesRequest + */ + DeleteAllGlobalRules(ctx _context.Context) ApiDeleteAllGlobalRulesRequest + + /* + * DeleteAllGlobalRulesExecute executes the request + */ + DeleteAllGlobalRulesExecute(r ApiDeleteAllGlobalRulesRequest) (*_nethttp.Response, error) + + /* + * DeleteGlobalRule Delete global rule + * Deletes a single global rule. If this is the only rule configured, this is the same +as deleting **all** rules. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* Rule cannot be deleted (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiDeleteGlobalRuleRequest + */ + DeleteGlobalRule(ctx _context.Context, rule RuleType) ApiDeleteGlobalRuleRequest + + /* + * DeleteGlobalRuleExecute executes the request + */ + DeleteGlobalRuleExecute(r ApiDeleteGlobalRuleRequest) (*_nethttp.Response, error) + /* * DeleteRoleMapping Delete a role mapping * Deletes a single role mapping, effectively denying access to a user/principal. @@ -102,6 +163,28 @@ This operation may fail for one of the following reasons: */ GetConfigPropertyExecute(r ApiGetConfigPropertyRequest) (ConfigurationProperty, *_nethttp.Response, error) + /* + * GetGlobalRuleConfig Get global rule configuration + * Returns information about the named globally configured rule. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiGetGlobalRuleConfigRequest + */ + GetGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiGetGlobalRuleConfigRequest + + /* + * GetGlobalRuleConfigExecute executes the request + * @return Rule + */ + GetGlobalRuleConfigExecute(r ApiGetGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) + /* * GetLogConfiguration Get a single logger configuration * Returns the configured logger configuration for the provided logger name, if no logger configuration is persisted it will return the current default log configuration in the system. @@ -151,6 +234,25 @@ This operation can fail for the following reasons: */ ImportDataExecute(r ApiImportDataRequest) (*_nethttp.Response, error) + /* + * ListArtifactTypes List artifact types + * Gets a list of all the configured artifact types. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListArtifactTypesRequest + */ + ListArtifactTypes(ctx _context.Context) ApiListArtifactTypesRequest + + /* + * ListArtifactTypesExecute executes the request + * @return []ArtifactTypeInfo + */ + ListArtifactTypesExecute(r ApiListArtifactTypesRequest) ([]ArtifactTypeInfo, *_nethttp.Response, error) + /* * ListConfigProperties List all configuration properties * Returns a list of all configuration properties that have been set. The list is not paged. @@ -170,6 +272,25 @@ This operation may fail for one of the following reasons: */ ListConfigPropertiesExecute(r ApiListConfigPropertiesRequest) ([]ConfigurationProperty, *_nethttp.Response, error) + /* + * ListGlobalRules List global rules + * Gets a list of all the currently configured global rules (if any). + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListGlobalRulesRequest + */ + ListGlobalRules(ctx _context.Context) ApiListGlobalRulesRequest + + /* + * ListGlobalRulesExecute executes the request + * @return []RuleType + */ + ListGlobalRulesExecute(r ApiListGlobalRulesRequest) ([]RuleType, *_nethttp.Response, error) + /* * ListLogConfigurations List logging configurations * List all of the configured logging levels. These override the default @@ -276,6 +397,28 @@ This operation may fail for one of the following reasons: */ UpdateConfigPropertyExecute(r ApiUpdateConfigPropertyRequest) (*_nethttp.Response, error) + /* + * UpdateGlobalRuleConfig Update global rule configuration + * Updates the configuration for a globally configured rule. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiUpdateGlobalRuleConfigRequest + */ + UpdateGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiUpdateGlobalRuleConfigRequest + + /* + * UpdateGlobalRuleConfigExecute executes the request + * @return Rule + */ + UpdateGlobalRuleConfigExecute(r ApiUpdateGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) + /* * UpdateRoleMapping Update a role mapping * Updates a single role mapping for one user/principal. @@ -300,35 +443,36 @@ This operation can fail for the following reasons: // AdminApiService AdminApi service type AdminApiService service -type ApiCreateRoleMappingRequest struct { +type ApiCreateGlobalRuleRequest struct { ctx _context.Context ApiService AdminApi - roleMapping *RoleMapping + rule *Rule } -func (r ApiCreateRoleMappingRequest) RoleMapping(roleMapping RoleMapping) ApiCreateRoleMappingRequest { - r.roleMapping = &roleMapping +func (r ApiCreateGlobalRuleRequest) Rule(rule Rule) ApiCreateGlobalRuleRequest { + r.rule = &rule return r } -func (r ApiCreateRoleMappingRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.CreateRoleMappingExecute(r) +func (r ApiCreateGlobalRuleRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.CreateGlobalRuleExecute(r) } /* - * CreateRoleMapping Create a new role mapping - * Creates a new mapping between a user/principal and a role. + * CreateGlobalRule Create global rule + * Adds a rule to the list of globally configured rules. This operation can fail for the following reasons: +* The rule type is unknown (HTTP error `400`) +* The rule already exists (HTTP error `409`) * A server error occurred (HTTP error `500`) - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateRoleMappingRequest + * @return ApiCreateGlobalRuleRequest */ -func (a *AdminApiService) CreateRoleMapping(ctx _context.Context) ApiCreateRoleMappingRequest { - return ApiCreateRoleMappingRequest{ +func (a *AdminApiService) CreateGlobalRule(ctx _context.Context) ApiCreateGlobalRuleRequest { + return ApiCreateGlobalRuleRequest{ ApiService: a, ctx: ctx, } @@ -337,7 +481,7 @@ func (a *AdminApiService) CreateRoleMapping(ctx _context.Context) ApiCreateRoleM /* * Execute executes the request */ -func (a *AdminApiService) CreateRoleMappingExecute(r ApiCreateRoleMappingRequest) (*_nethttp.Response, error) { +func (a *AdminApiService) CreateGlobalRuleExecute(r ApiCreateGlobalRuleRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -346,18 +490,18 @@ func (a *AdminApiService) CreateRoleMappingExecute(r ApiCreateRoleMappingRequest localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.CreateRoleMapping") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.CreateGlobalRule") if err != nil { return nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/roleMappings" + localVarPath := localBasePath + "/admin/rules" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} - if r.roleMapping == nil { - return nil, reportError("roleMapping is required and must be specified") + if r.rule == nil { + return nil, reportError("rule is required and must be specified") } // to determine the Content-Type header @@ -378,7 +522,7 @@ func (a *AdminApiService) CreateRoleMappingExecute(r ApiCreateRoleMappingRequest localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.roleMapping + localVarPostBody = r.rule req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -401,6 +545,26 @@ func (a *AdminApiService) CreateRoleMappingExecute(r ApiCreateRoleMappingRequest body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -416,64 +580,68 @@ func (a *AdminApiService) CreateRoleMappingExecute(r ApiCreateRoleMappingRequest return localVarHTTPResponse, nil } -type ApiDeleteRoleMappingRequest struct { +type ApiCreateRoleMappingRequest struct { ctx _context.Context ApiService AdminApi - principalId string + roleMapping *RoleMapping } +func (r ApiCreateRoleMappingRequest) RoleMapping(roleMapping RoleMapping) ApiCreateRoleMappingRequest { + r.roleMapping = &roleMapping + return r +} -func (r ApiDeleteRoleMappingRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.DeleteRoleMappingExecute(r) +func (r ApiCreateRoleMappingRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.CreateRoleMappingExecute(r) } /* - * DeleteRoleMapping Delete a role mapping - * Deletes a single role mapping, effectively denying access to a user/principal. + * CreateRoleMapping Create a new role mapping + * Creates a new mapping between a user/principal and a role. This operation can fail for the following reasons: -* No role mapping for the principalId exists (HTTP error `404`) * A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param principalId Unique id of a principal (typically either a user or service account). - * @return ApiDeleteRoleMappingRequest + * @return ApiCreateRoleMappingRequest */ -func (a *AdminApiService) DeleteRoleMapping(ctx _context.Context, principalId string) ApiDeleteRoleMappingRequest { - return ApiDeleteRoleMappingRequest{ +func (a *AdminApiService) CreateRoleMapping(ctx _context.Context) ApiCreateRoleMappingRequest { + return ApiCreateRoleMappingRequest{ ApiService: a, ctx: ctx, - principalId: principalId, } } /* * Execute executes the request */ -func (a *AdminApiService) DeleteRoleMappingExecute(r ApiDeleteRoleMappingRequest) (*_nethttp.Response, error) { +func (a *AdminApiService) CreateRoleMappingExecute(r ApiCreateRoleMappingRequest) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodDelete + localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.DeleteRoleMapping") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.CreateRoleMapping") if err != nil { return nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/roleMappings/{principalId}" - localVarPath = strings.Replace(localVarPath, "{"+"principalId"+"}", _neturl.PathEscape(parameterToString(r.principalId, "")), -1) + localVarPath := localBasePath + "/admin/roleMappings" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if r.roleMapping == nil { + return nil, reportError("roleMapping is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -489,6 +657,8 @@ func (a *AdminApiService) DeleteRoleMappingExecute(r ApiDeleteRoleMappingRequest if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.roleMapping req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -511,16 +681,6 @@ func (a *AdminApiService) DeleteRoleMappingExecute(r ApiDeleteRoleMappingRequest body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -536,34 +696,29 @@ func (a *AdminApiService) DeleteRoleMappingExecute(r ApiDeleteRoleMappingRequest return localVarHTTPResponse, nil } -type ApiExportDataRequest struct { +type ApiDeleteAllGlobalRulesRequest struct { ctx _context.Context ApiService AdminApi - accept *string - forBrowser *bool } -func (r ApiExportDataRequest) Accept(accept string) ApiExportDataRequest { - r.accept = &accept - return r -} -func (r ApiExportDataRequest) ForBrowser(forBrowser bool) ApiExportDataRequest { - r.forBrowser = &forBrowser - return r -} -func (r ApiExportDataRequest) Execute() (*os.File, *_nethttp.Response, error) { - return r.ApiService.ExportDataExecute(r) +func (r ApiDeleteAllGlobalRulesRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteAllGlobalRulesExecute(r) } /* - * ExportData Export registry data - * Exports registry data as a ZIP archive. + * DeleteAllGlobalRules Delete all global rules + * Deletes all globally configured rules. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiExportDataRequest + * @return ApiDeleteAllGlobalRulesRequest */ -func (a *AdminApiService) ExportData(ctx _context.Context) ApiExportDataRequest { - return ApiExportDataRequest{ +func (a *AdminApiService) DeleteAllGlobalRules(ctx _context.Context) ApiDeleteAllGlobalRulesRequest { + return ApiDeleteAllGlobalRulesRequest{ ApiService: a, ctx: ctx, } @@ -571,32 +726,27 @@ func (a *AdminApiService) ExportData(ctx _context.Context) ApiExportDataRequest /* * Execute executes the request - * @return *os.File */ -func (a *AdminApiService) ExportDataExecute(r ApiExportDataRequest) (*os.File, *_nethttp.Response, error) { +func (a *AdminApiService) DeleteAllGlobalRulesExecute(r ApiDeleteAllGlobalRulesRequest) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue *os.File ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ExportData") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.DeleteAllGlobalRules") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/export" + localVarPath := localBasePath + "/admin/rules" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} - if r.forBrowser != nil { - localVarQueryParams.Add("forBrowser", parameterToString(*r.forBrowser, "")) - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -607,31 +757,28 @@ func (a *AdminApiService) ExportDataExecute(r ApiExportDataRequest) (*os.File, * } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/zip", "application/json"} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.accept != nil { - localVarHeaderParams["Accept"] = parameterToString(*r.accept, "") - } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -644,78 +791,70 @@ func (a *AdminApiService) ExportDataExecute(r ApiExportDataRequest) (*os.File, * err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } newErr.model = v } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiGetConfigPropertyRequest struct { +type ApiDeleteGlobalRuleRequest struct { ctx _context.Context ApiService AdminApi - propertyName string + rule RuleType } -func (r ApiGetConfigPropertyRequest) Execute() (ConfigurationProperty, *_nethttp.Response, error) { - return r.ApiService.GetConfigPropertyExecute(r) +func (r ApiDeleteGlobalRuleRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteGlobalRuleExecute(r) } /* - * GetConfigProperty Get configuration property value - * Returns the value of a single configuration property. + * DeleteGlobalRule Delete global rule + * Deletes a single global rule. If this is the only rule configured, this is the same +as deleting **all** rules. -This operation may fail for one of the following reasons: +This operation can fail for the following reasons: -* Property not found or not configured (HTTP error `404`) +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* Rule cannot be deleted (HTTP error `409`) * A server error occurred (HTTP error `500`) * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param propertyName The name of a configuration property. - * @return ApiGetConfigPropertyRequest + * @param rule The unique name/type of a rule. + * @return ApiDeleteGlobalRuleRequest */ -func (a *AdminApiService) GetConfigProperty(ctx _context.Context, propertyName string) ApiGetConfigPropertyRequest { - return ApiGetConfigPropertyRequest{ +func (a *AdminApiService) DeleteGlobalRule(ctx _context.Context, rule RuleType) ApiDeleteGlobalRuleRequest { + return ApiDeleteGlobalRuleRequest{ ApiService: a, ctx: ctx, - propertyName: propertyName, + rule: rule, } } /* * Execute executes the request - * @return ConfigurationProperty */ -func (a *AdminApiService) GetConfigPropertyExecute(r ApiGetConfigPropertyRequest) (ConfigurationProperty, *_nethttp.Response, error) { +func (a *AdminApiService) DeleteGlobalRuleExecute(r ApiDeleteGlobalRuleRequest) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue ConfigurationProperty ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetConfigProperty") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.DeleteGlobalRule") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/config/properties/{propertyName}" - localVarPath = strings.Replace(localVarPath, "{"+"propertyName"+"}", _neturl.PathEscape(parameterToString(r.propertyName, "")), -1) + localVarPath := localBasePath + "/admin/rules/{rule}" + localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -740,12 +879,751 @@ func (a *AdminApiService) GetConfigPropertyExecute(r ApiGetConfigPropertyRequest } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteRoleMappingRequest struct { + ctx _context.Context + ApiService AdminApi + principalId string +} + + +func (r ApiDeleteRoleMappingRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteRoleMappingExecute(r) +} + +/* + * DeleteRoleMapping Delete a role mapping + * Deletes a single role mapping, effectively denying access to a user/principal. + +This operation can fail for the following reasons: + +* No role mapping for the principalId exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param principalId Unique id of a principal (typically either a user or service account). + * @return ApiDeleteRoleMappingRequest + */ +func (a *AdminApiService) DeleteRoleMapping(ctx _context.Context, principalId string) ApiDeleteRoleMappingRequest { + return ApiDeleteRoleMappingRequest{ + ApiService: a, + ctx: ctx, + principalId: principalId, + } +} + +/* + * Execute executes the request + */ +func (a *AdminApiService) DeleteRoleMappingExecute(r ApiDeleteRoleMappingRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.DeleteRoleMapping") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/roleMappings/{principalId}" + localVarPath = strings.Replace(localVarPath, "{"+"principalId"+"}", _neturl.PathEscape(parameterToString(r.principalId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExportDataRequest struct { + ctx _context.Context + ApiService AdminApi + forBrowser *bool +} + +func (r ApiExportDataRequest) ForBrowser(forBrowser bool) ApiExportDataRequest { + r.forBrowser = &forBrowser + return r +} + +func (r ApiExportDataRequest) Execute() (*os.File, *_nethttp.Response, error) { + return r.ApiService.ExportDataExecute(r) +} + +/* + * ExportData Export registry data + * Exports registry data as a ZIP archive. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiExportDataRequest + */ +func (a *AdminApiService) ExportData(ctx _context.Context) ApiExportDataRequest { + return ApiExportDataRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return *os.File + */ +func (a *AdminApiService) ExportDataExecute(r ApiExportDataRequest) (*os.File, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ExportData") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/export" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.forBrowser != nil { + localVarQueryParams.Add("forBrowser", parameterToString(*r.forBrowser, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/zip", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConfigPropertyRequest struct { + ctx _context.Context + ApiService AdminApi + propertyName string +} + + +func (r ApiGetConfigPropertyRequest) Execute() (ConfigurationProperty, *_nethttp.Response, error) { + return r.ApiService.GetConfigPropertyExecute(r) +} + +/* + * GetConfigProperty Get configuration property value + * Returns the value of a single configuration property. + +This operation may fail for one of the following reasons: + +* Property not found or not configured (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param propertyName The name of a configuration property. + * @return ApiGetConfigPropertyRequest + */ +func (a *AdminApiService) GetConfigProperty(ctx _context.Context, propertyName string) ApiGetConfigPropertyRequest { + return ApiGetConfigPropertyRequest{ + ApiService: a, + ctx: ctx, + propertyName: propertyName, + } +} + +/* + * Execute executes the request + * @return ConfigurationProperty + */ +func (a *AdminApiService) GetConfigPropertyExecute(r ApiGetConfigPropertyRequest) (ConfigurationProperty, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConfigurationProperty + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetConfigProperty") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/config/properties/{propertyName}" + localVarPath = strings.Replace(localVarPath, "{"+"propertyName"+"}", _neturl.PathEscape(parameterToString(r.propertyName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetGlobalRuleConfigRequest struct { + ctx _context.Context + ApiService AdminApi + rule RuleType +} + + +func (r ApiGetGlobalRuleConfigRequest) Execute() (Rule, *_nethttp.Response, error) { + return r.ApiService.GetGlobalRuleConfigExecute(r) +} + +/* + * GetGlobalRuleConfig Get global rule configuration + * Returns information about the named globally configured rule. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiGetGlobalRuleConfigRequest + */ +func (a *AdminApiService) GetGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiGetGlobalRuleConfigRequest { + return ApiGetGlobalRuleConfigRequest{ + ApiService: a, + ctx: ctx, + rule: rule, + } +} + +/* + * Execute executes the request + * @return Rule + */ +func (a *AdminApiService) GetGlobalRuleConfigExecute(r ApiGetGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Rule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetGlobalRuleConfig") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/rules/{rule}" + localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetLogConfigurationRequest struct { + ctx _context.Context + ApiService AdminApi + logger string +} + + +func (r ApiGetLogConfigurationRequest) Execute() (NamedLogConfiguration, *_nethttp.Response, error) { + return r.ApiService.GetLogConfigurationExecute(r) +} + +/* + * GetLogConfiguration Get a single logger configuration + * Returns the configured logger configuration for the provided logger name, if no logger configuration is persisted it will return the current default log configuration in the system. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param logger The name of a single logger. + * @return ApiGetLogConfigurationRequest + */ +func (a *AdminApiService) GetLogConfiguration(ctx _context.Context, logger string) ApiGetLogConfigurationRequest { + return ApiGetLogConfigurationRequest{ + ApiService: a, + ctx: ctx, + logger: logger, + } +} + +/* + * Execute executes the request + * @return NamedLogConfiguration + */ +func (a *AdminApiService) GetLogConfigurationExecute(r ApiGetLogConfigurationRequest) (NamedLogConfiguration, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue NamedLogConfiguration + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetLogConfiguration") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/loggers/{logger}" + localVarPath = strings.Replace(localVarPath, "{"+"logger"+"}", _neturl.PathEscape(parameterToString(r.logger, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetRoleMappingRequest struct { + ctx _context.Context + ApiService AdminApi + principalId string +} + + +func (r ApiGetRoleMappingRequest) Execute() (RoleMapping, *_nethttp.Response, error) { + return r.ApiService.GetRoleMappingExecute(r) +} + +/* + * GetRoleMapping Return a single role mapping + * Gets the details of a single role mapping (by `principalId`). + +This operation can fail for the following reasons: + +* No role mapping for the `principalId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param principalId Unique id of a principal (typically either a user or service account). + * @return ApiGetRoleMappingRequest + */ +func (a *AdminApiService) GetRoleMapping(ctx _context.Context, principalId string) ApiGetRoleMappingRequest { + return ApiGetRoleMappingRequest{ + ApiService: a, + ctx: ctx, + principalId: principalId, + } +} + +/* + * Execute executes the request + * @return RoleMapping + */ +func (a *AdminApiService) GetRoleMappingExecute(r ApiGetRoleMappingRequest) (RoleMapping, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RoleMapping + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetRoleMapping") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/roleMappings/{principalId}" + localVarPath = strings.Replace(localVarPath, "{"+"principalId"+"}", _neturl.PathEscape(parameterToString(r.principalId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) @@ -794,60 +1672,72 @@ func (a *AdminApiService) GetConfigPropertyExecute(r ApiGetConfigPropertyRequest return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetLogConfigurationRequest struct { +type ApiImportDataRequest struct { ctx _context.Context ApiService AdminApi - logger string + body **os.File + xRegistryPreserveGlobalId *bool + xRegistryPreserveContentId *bool } +func (r ApiImportDataRequest) Body(body *os.File) ApiImportDataRequest { + r.body = &body + return r +} +func (r ApiImportDataRequest) XRegistryPreserveGlobalId(xRegistryPreserveGlobalId bool) ApiImportDataRequest { + r.xRegistryPreserveGlobalId = &xRegistryPreserveGlobalId + return r +} +func (r ApiImportDataRequest) XRegistryPreserveContentId(xRegistryPreserveContentId bool) ApiImportDataRequest { + r.xRegistryPreserveContentId = &xRegistryPreserveContentId + return r +} -func (r ApiGetLogConfigurationRequest) Execute() (NamedLogConfiguration, *_nethttp.Response, error) { - return r.ApiService.GetLogConfigurationExecute(r) +func (r ApiImportDataRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ImportDataExecute(r) } /* - * GetLogConfiguration Get a single logger configuration - * Returns the configured logger configuration for the provided logger name, if no logger configuration is persisted it will return the current default log configuration in the system. + * ImportData Import registry data + * Imports registry data that was previously exported using the `/admin/export` operation. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param logger The name of a single logger. - * @return ApiGetLogConfigurationRequest + * @return ApiImportDataRequest */ -func (a *AdminApiService) GetLogConfiguration(ctx _context.Context, logger string) ApiGetLogConfigurationRequest { - return ApiGetLogConfigurationRequest{ +func (a *AdminApiService) ImportData(ctx _context.Context) ApiImportDataRequest { + return ApiImportDataRequest{ ApiService: a, ctx: ctx, - logger: logger, } } /* * Execute executes the request - * @return NamedLogConfiguration */ -func (a *AdminApiService) GetLogConfigurationExecute(r ApiGetLogConfigurationRequest) (NamedLogConfiguration, *_nethttp.Response, error) { +func (a *AdminApiService) ImportDataExecute(r ApiImportDataRequest) (*_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue NamedLogConfiguration ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetLogConfiguration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ImportData") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/loggers/{logger}" - localVarPath = strings.Replace(localVarPath, "{"+"logger"+"}", _neturl.PathEscape(parameterToString(r.logger, "")), -1) + localVarPath := localBasePath + "/admin/import" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if r.body == nil { + return nil, reportError("body is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/zip"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -863,21 +1753,29 @@ func (a *AdminApiService) GetLogConfigurationExecute(r ApiGetLogConfigurationReq if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if r.xRegistryPreserveGlobalId != nil { + localVarHeaderParams["X-Registry-Preserve-GlobalId"] = parameterToString(*r.xRegistryPreserveGlobalId, "") + } + if r.xRegistryPreserveContentId != nil { + localVarHeaderParams["X-Registry-Preserve-ContentId"] = parameterToString(*r.xRegistryPreserveContentId, "") + } + // body params + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -890,78 +1788,64 @@ func (a *AdminApiService) GetLogConfigurationExecute(r ApiGetLogConfigurationReq err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } newErr.model = v } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiGetRoleMappingRequest struct { +type ApiListArtifactTypesRequest struct { ctx _context.Context ApiService AdminApi - principalId string } -func (r ApiGetRoleMappingRequest) Execute() (RoleMapping, *_nethttp.Response, error) { - return r.ApiService.GetRoleMappingExecute(r) +func (r ApiListArtifactTypesRequest) Execute() ([]ArtifactTypeInfo, *_nethttp.Response, error) { + return r.ApiService.ListArtifactTypesExecute(r) } /* - * GetRoleMapping Return a single role mapping - * Gets the details of a single role mapping (by `principalId`). + * ListArtifactTypes List artifact types + * Gets a list of all the configured artifact types. This operation can fail for the following reasons: -* No role mapping for the `principalId` exists (HTTP error `404`) * A server error occurred (HTTP error `500`) * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param principalId Unique id of a principal (typically either a user or service account). - * @return ApiGetRoleMappingRequest + * @return ApiListArtifactTypesRequest */ -func (a *AdminApiService) GetRoleMapping(ctx _context.Context, principalId string) ApiGetRoleMappingRequest { - return ApiGetRoleMappingRequest{ +func (a *AdminApiService) ListArtifactTypes(ctx _context.Context) ApiListArtifactTypesRequest { + return ApiListArtifactTypesRequest{ ApiService: a, ctx: ctx, - principalId: principalId, } } /* * Execute executes the request - * @return RoleMapping + * @return []ArtifactTypeInfo */ -func (a *AdminApiService) GetRoleMappingExecute(r ApiGetRoleMappingRequest) (RoleMapping, *_nethttp.Response, error) { +func (a *AdminApiService) ListArtifactTypesExecute(r ApiListArtifactTypesRequest) ([]ArtifactTypeInfo, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue RoleMapping + localVarReturnValue []ArtifactTypeInfo ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetRoleMapping") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ListArtifactTypes") if err != nil { return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/roleMappings/{principalId}" - localVarPath = strings.Replace(localVarPath, "{"+"principalId"+"}", _neturl.PathEscape(parameterToString(r.principalId, "")), -1) + localVarPath := localBasePath + "/admin/artifactTypes" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1006,16 +1890,6 @@ func (a *AdminApiService) GetRoleMappingExecute(r ApiGetRoleMappingRequest) (Rol body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1040,39 +1914,29 @@ func (a *AdminApiService) GetRoleMappingExecute(r ApiGetRoleMappingRequest) (Rol return localVarReturnValue, localVarHTTPResponse, nil } -type ApiImportDataRequest struct { +type ApiListConfigPropertiesRequest struct { ctx _context.Context ApiService AdminApi - body **os.File - xRegistryPreserveGlobalId *bool - xRegistryPreserveContentId *bool } -func (r ApiImportDataRequest) Body(body *os.File) ApiImportDataRequest { - r.body = &body - return r -} -func (r ApiImportDataRequest) XRegistryPreserveGlobalId(xRegistryPreserveGlobalId bool) ApiImportDataRequest { - r.xRegistryPreserveGlobalId = &xRegistryPreserveGlobalId - return r -} -func (r ApiImportDataRequest) XRegistryPreserveContentId(xRegistryPreserveContentId bool) ApiImportDataRequest { - r.xRegistryPreserveContentId = &xRegistryPreserveContentId - return r -} -func (r ApiImportDataRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.ImportDataExecute(r) +func (r ApiListConfigPropertiesRequest) Execute() ([]ConfigurationProperty, *_nethttp.Response, error) { + return r.ApiService.ListConfigPropertiesExecute(r) } /* - * ImportData Import registry data - * Imports registry data that was previously exported using the `/admin/export` operation. + * ListConfigProperties List all configuration properties + * Returns a list of all configuration properties that have been set. The list is not paged. + +This operation may fail for one of the following reasons: + +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiImportDataRequest + * @return ApiListConfigPropertiesRequest */ -func (a *AdminApiService) ImportData(ctx _context.Context) ApiImportDataRequest { - return ApiImportDataRequest{ +func (a *AdminApiService) ListConfigProperties(ctx _context.Context) ApiListConfigPropertiesRequest { + return ApiListConfigPropertiesRequest{ ApiService: a, ctx: ctx, } @@ -1080,32 +1944,31 @@ func (a *AdminApiService) ImportData(ctx _context.Context) ApiImportDataRequest /* * Execute executes the request + * @return []ConfigurationProperty */ -func (a *AdminApiService) ImportDataExecute(r ApiImportDataRequest) (*_nethttp.Response, error) { +func (a *AdminApiService) ListConfigPropertiesExecute(r ApiListConfigPropertiesRequest) ([]ConfigurationProperty, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte + localVarReturnValue []ConfigurationProperty ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ImportData") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ListConfigProperties") if err != nil { - return nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/import" + localVarPath := localBasePath + "/admin/config/properties" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} - if r.body == nil { - return nil, reportError("body is required and must be specified") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/zip"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -1121,29 +1984,21 @@ func (a *AdminApiService) ImportDataExecute(r ApiImportDataRequest) (*_nethttp.R if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.xRegistryPreserveGlobalId != nil { - localVarHeaderParams["X-Registry-Preserve-GlobalId"] = parameterToString(*r.xRegistryPreserveGlobalId, "") - } - if r.xRegistryPreserveContentId != nil { - localVarHeaderParams["X-Registry-Preserve-ContentId"] = parameterToString(*r.xRegistryPreserveContentId, "") - } - // body params - localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -1156,39 +2011,48 @@ func (a *AdminApiService) ImportDataExecute(r ApiImportDataRequest) (*_nethttp.R err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } newErr.model = v } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -type ApiListConfigPropertiesRequest struct { +type ApiListGlobalRulesRequest struct { ctx _context.Context ApiService AdminApi } -func (r ApiListConfigPropertiesRequest) Execute() ([]ConfigurationProperty, *_nethttp.Response, error) { - return r.ApiService.ListConfigPropertiesExecute(r) +func (r ApiListGlobalRulesRequest) Execute() ([]RuleType, *_nethttp.Response, error) { + return r.ApiService.ListGlobalRulesExecute(r) } /* - * ListConfigProperties List all configuration properties - * Returns a list of all configuration properties that have been set. The list is not paged. + * ListGlobalRules List global rules + * Gets a list of all the currently configured global rules (if any). -This operation may fail for one of the following reasons: +This operation can fail for the following reasons: * A server error occurred (HTTP error `500`) * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiListConfigPropertiesRequest + * @return ApiListGlobalRulesRequest */ -func (a *AdminApiService) ListConfigProperties(ctx _context.Context) ApiListConfigPropertiesRequest { - return ApiListConfigPropertiesRequest{ +func (a *AdminApiService) ListGlobalRules(ctx _context.Context) ApiListGlobalRulesRequest { + return ApiListGlobalRulesRequest{ ApiService: a, ctx: ctx, } @@ -1196,24 +2060,24 @@ func (a *AdminApiService) ListConfigProperties(ctx _context.Context) ApiListConf /* * Execute executes the request - * @return []ConfigurationProperty + * @return []RuleType */ -func (a *AdminApiService) ListConfigPropertiesExecute(r ApiListConfigPropertiesRequest) ([]ConfigurationProperty, *_nethttp.Response, error) { +func (a *AdminApiService) ListGlobalRulesExecute(r ApiListGlobalRulesRequest) ([]RuleType, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue []ConfigurationProperty + localVarReturnValue []RuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ListConfigProperties") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ListGlobalRules") if err != nil { return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/admin/config/properties" + localVarPath := localBasePath + "/admin/rules" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -2002,6 +2866,148 @@ func (a *AdminApiService) UpdateConfigPropertyExecute(r ApiUpdateConfigPropertyR return localVarHTTPResponse, nil } +type ApiUpdateGlobalRuleConfigRequest struct { + ctx _context.Context + ApiService AdminApi + rule RuleType + rule2 *Rule +} + +func (r ApiUpdateGlobalRuleConfigRequest) Rule2(rule2 Rule) ApiUpdateGlobalRuleConfigRequest { + r.rule2 = &rule2 + return r +} + +func (r ApiUpdateGlobalRuleConfigRequest) Execute() (Rule, *_nethttp.Response, error) { + return r.ApiService.UpdateGlobalRuleConfigExecute(r) +} + +/* + * UpdateGlobalRuleConfig Update global rule configuration + * Updates the configuration for a globally configured rule. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiUpdateGlobalRuleConfigRequest + */ +func (a *AdminApiService) UpdateGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiUpdateGlobalRuleConfigRequest { + return ApiUpdateGlobalRuleConfigRequest{ + ApiService: a, + ctx: ctx, + rule: rule, + } +} + +/* + * Execute executes the request + * @return Rule + */ +func (a *AdminApiService) UpdateGlobalRuleConfigExecute(r ApiUpdateGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Rule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.UpdateGlobalRuleConfig") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/rules/{rule}" + localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.rule2 == nil { + return localVarReturnValue, nil, reportError("rule2 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rule2 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiUpdateRoleMappingRequest struct { ctx _context.Context ApiService AdminApi diff --git a/registryinstance/apiv1internal/client/api_artifact_rules.go b/registryinstance/apiv1internal/client/api_artifact_rules.go index e5a9effb..8e5d7835 100644 --- a/registryinstance/apiv1internal/client/api_artifact_rules.go +++ b/registryinstance/apiv1internal/client/api_artifact_rules.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -18,6 +18,7 @@ import ( _nethttp "net/http" _neturl "net/url" "strings" + "os" ) // Linger please @@ -894,10 +895,10 @@ type ApiTestUpdateArtifactRequest struct { ApiService ArtifactRulesApi groupId string artifactId string - body *interface{} + body **os.File } -func (r ApiTestUpdateArtifactRequest) Body(body interface{}) ApiTestUpdateArtifactRequest { +func (r ApiTestUpdateArtifactRequest) Body(body *os.File) ApiTestUpdateArtifactRequest { r.body = &body return r } diff --git a/registryinstance/apiv1internal/client/api_artifacts.go b/registryinstance/apiv1internal/client/api_artifacts.go index e309482d..78a4c14c 100644 --- a/registryinstance/apiv1internal/client/api_artifacts.go +++ b/registryinstance/apiv1internal/client/api_artifacts.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -83,7 +83,7 @@ This operation may fail for one of the following reasons: * A server error occurred (HTTP error `500`) * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param groupId Unique ID of an artifact group. + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @return ApiCreateArtifactRequest */ CreateArtifact(ctx _context.Context, groupId string) ApiCreateArtifactRequest @@ -117,7 +117,7 @@ deleted. This may fail for one of the following reasons: * DeleteArtifactsInGroup Delete artifacts in group * Deletes all of the artifacts that exist in a given group. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param groupId Unique ID of an artifact group. + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @return ApiDeleteArtifactsInGroupRequest */ DeleteArtifactsInGroup(ctx _context.Context, groupId string) ApiDeleteArtifactsInGroupRequest @@ -223,7 +223,7 @@ This operation may fail for one of the following reasons: * ListArtifactsInGroup List artifacts in group * Returns a list of all artifacts in the group. This list is paged. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param groupId Unique ID of an artifact group. + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @return ApiListArtifactsInGroupRequest */ ListArtifactsInGroup(ctx _context.Context, groupId string) ApiListArtifactsInGroupRequest @@ -274,8 +274,8 @@ This operation may fail for one of the following reasons: ReferencesByContentIdExecute(r ApiReferencesByContentIdRequest) ([]ArtifactReference, *_nethttp.Response, error) /* - * ReferencesByGlobalId Returns a list with all the references for the artifact with the given global id. - * Returns a list containing all the artifact references using the artifact global id. + * ReferencesByGlobalId List artifact references by global ID + * Returns a list containing all the artifact references using the artifact global ID. This operation may fail for one of the following reasons: @@ -355,7 +355,7 @@ type ApiCreateArtifactRequest struct { ApiService ArtifactsApi groupId string body **os.File - xRegistryArtifactType *ArtifactType + xRegistryArtifactType *string xRegistryArtifactId *string xRegistryVersion *string ifExists *IfExists @@ -366,13 +366,14 @@ type ApiCreateArtifactRequest struct { xRegistryNameEncoded *string xRegistryContentHash *string xRegistryHashAlgorithm *string + contentType *string } func (r ApiCreateArtifactRequest) Body(body *os.File) ApiCreateArtifactRequest { r.body = &body return r } -func (r ApiCreateArtifactRequest) XRegistryArtifactType(xRegistryArtifactType ArtifactType) ApiCreateArtifactRequest { +func (r ApiCreateArtifactRequest) XRegistryArtifactType(xRegistryArtifactType string) ApiCreateArtifactRequest { r.xRegistryArtifactType = &xRegistryArtifactType return r } @@ -416,6 +417,10 @@ func (r ApiCreateArtifactRequest) XRegistryHashAlgorithm(xRegistryHashAlgorithm r.xRegistryHashAlgorithm = &xRegistryHashAlgorithm return r } +func (r ApiCreateArtifactRequest) ContentType(contentType string) ApiCreateArtifactRequest { + r.contentType = &contentType + return r +} func (r ApiCreateArtifactRequest) Execute() (ArtifactMetaData, *_nethttp.Response, error) { return r.ApiService.CreateArtifactExecute(r) @@ -476,7 +481,7 @@ This operation may fail for one of the following reasons: * A server error occurred (HTTP error `500`) * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param groupId Unique ID of an artifact group. + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @return ApiCreateArtifactRequest */ func (a *ArtifactsApiService) CreateArtifact(ctx _context.Context, groupId string) ApiCreateArtifactRequest { @@ -523,7 +528,7 @@ func (a *ArtifactsApiService) CreateArtifactExecute(r ApiCreateArtifactRequest) localVarQueryParams.Add("canonical", parameterToString(*r.canonical, "")) } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{"application/create.extended+json", "application/vnd.create.extended+json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -566,6 +571,9 @@ func (a *ArtifactsApiService) CreateArtifactExecute(r ApiCreateArtifactRequest) if r.xRegistryHashAlgorithm != nil { localVarHeaderParams["X-Registry-Hash-Algorithm"] = parameterToString(*r.xRegistryHashAlgorithm, "") } + if r.contentType != nil { + localVarHeaderParams["Content-Type"] = parameterToString(*r.contentType, "") + } // body params localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) @@ -771,7 +779,7 @@ func (r ApiDeleteArtifactsInGroupRequest) Execute() (*_nethttp.Response, error) * DeleteArtifactsInGroup Delete artifacts in group * Deletes all of the artifacts that exist in a given group. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param groupId Unique ID of an artifact group. + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @return ApiDeleteArtifactsInGroupRequest */ func (a *ArtifactsApiService) DeleteArtifactsInGroup(ctx _context.Context, groupId string) ApiDeleteArtifactsInGroupRequest { @@ -1446,7 +1454,7 @@ func (r ApiListArtifactsInGroupRequest) Execute() (ArtifactSearchResults, *_neth * ListArtifactsInGroup List artifacts in group * Returns a list of all artifacts in the group. This list is paged. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param groupId Unique ID of an artifact group. + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. * @return ApiListArtifactsInGroupRequest */ func (a *ArtifactsApiService) ListArtifactsInGroup(ctx _context.Context, groupId string) ApiListArtifactsInGroupRequest { @@ -1791,8 +1799,8 @@ func (r ApiReferencesByGlobalIdRequest) Execute() ([]ArtifactReference, *_nethtt } /* - * ReferencesByGlobalId Returns a list with all the references for the artifact with the given global id. - * Returns a list containing all the artifact references using the artifact global id. + * ReferencesByGlobalId List artifact references by global ID + * Returns a list containing all the artifact references using the artifact global ID. This operation may fail for one of the following reasons: @@ -1894,15 +1902,16 @@ type ApiUpdateArtifactRequest struct { ApiService ArtifactsApi groupId string artifactId string - body *interface{} + body **os.File xRegistryVersion *string xRegistryName *string xRegistryNameEncoded *string xRegistryDescription *string xRegistryDescriptionEncoded *string + contentType *string } -func (r ApiUpdateArtifactRequest) Body(body interface{}) ApiUpdateArtifactRequest { +func (r ApiUpdateArtifactRequest) Body(body *os.File) ApiUpdateArtifactRequest { r.body = &body return r } @@ -1926,6 +1935,10 @@ func (r ApiUpdateArtifactRequest) XRegistryDescriptionEncoded(xRegistryDescripti r.xRegistryDescriptionEncoded = &xRegistryDescriptionEncoded return r } +func (r ApiUpdateArtifactRequest) ContentType(contentType string) ApiUpdateArtifactRequest { + r.contentType = &contentType + return r +} func (r ApiUpdateArtifactRequest) Execute() (ArtifactMetaData, *_nethttp.Response, error) { return r.ApiService.UpdateArtifactExecute(r) @@ -1994,7 +2007,7 @@ func (a *ArtifactsApiService) UpdateArtifactExecute(r ApiUpdateArtifactRequest) } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{"application/create.extended+json", "application/vnd.create.extended+json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -2025,6 +2038,9 @@ func (a *ArtifactsApiService) UpdateArtifactExecute(r ApiUpdateArtifactRequest) if r.xRegistryDescriptionEncoded != nil { localVarHeaderParams["X-Registry-Description-Encoded"] = parameterToString(*r.xRegistryDescriptionEncoded, "") } + if r.contentType != nil { + localVarHeaderParams["Content-Type"] = parameterToString(*r.contentType, "") + } // body params localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) diff --git a/registryinstance/apiv1internal/client/api_global_rules.go b/registryinstance/apiv1internal/client/api_global_rules.go deleted file mode 100644 index 11312b45..00000000 --- a/registryinstance/apiv1internal/client/api_global_rules.go +++ /dev/null @@ -1,911 +0,0 @@ -/* - * Apicurio Registry API [v2] - * - * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. - * - * API version: 2.2.5.Final - * Contact: apicurio@lists.jboss.org - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package registryinstanceclient - -import ( - "bytes" - _context "context" - _ioutil "io/ioutil" - _nethttp "net/http" - _neturl "net/url" - "strings" -) - -// Linger please -var ( - _ _context.Context -) - -type GlobalRulesApi interface { - - /* - * CreateGlobalRule Create global rule - * Adds a rule to the list of globally configured rules. - -This operation can fail for the following reasons: - -* The rule type is unknown (HTTP error `400`) -* The rule already exists (HTTP error `409`) -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateGlobalRuleRequest - */ - CreateGlobalRule(ctx _context.Context) ApiCreateGlobalRuleRequest - - /* - * CreateGlobalRuleExecute executes the request - */ - CreateGlobalRuleExecute(r ApiCreateGlobalRuleRequest) (*_nethttp.Response, error) - - /* - * DeleteAllGlobalRules Delete all global rules - * Deletes all globally configured rules. - -This operation can fail for the following reasons: - -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiDeleteAllGlobalRulesRequest - */ - DeleteAllGlobalRules(ctx _context.Context) ApiDeleteAllGlobalRulesRequest - - /* - * DeleteAllGlobalRulesExecute executes the request - */ - DeleteAllGlobalRulesExecute(r ApiDeleteAllGlobalRulesRequest) (*_nethttp.Response, error) - - /* - * DeleteGlobalRule Delete global rule - * Deletes a single global rule. If this is the only rule configured, this is the same -as deleting **all** rules. - -This operation can fail for the following reasons: - -* Invalid rule name/type (HTTP error `400`) -* No rule with name/type `rule` exists (HTTP error `404`) -* Rule cannot be deleted (HTTP error `409`) -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param rule The unique name/type of a rule. - * @return ApiDeleteGlobalRuleRequest - */ - DeleteGlobalRule(ctx _context.Context, rule RuleType) ApiDeleteGlobalRuleRequest - - /* - * DeleteGlobalRuleExecute executes the request - */ - DeleteGlobalRuleExecute(r ApiDeleteGlobalRuleRequest) (*_nethttp.Response, error) - - /* - * GetGlobalRuleConfig Get global rule configuration - * Returns information about the named globally configured rule. - -This operation can fail for the following reasons: - -* Invalid rule name/type (HTTP error `400`) -* No rule with name/type `rule` exists (HTTP error `404`) -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param rule The unique name/type of a rule. - * @return ApiGetGlobalRuleConfigRequest - */ - GetGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiGetGlobalRuleConfigRequest - - /* - * GetGlobalRuleConfigExecute executes the request - * @return Rule - */ - GetGlobalRuleConfigExecute(r ApiGetGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) - - /* - * ListGlobalRules List global rules - * Gets a list of all the currently configured global rules (if any). - -This operation can fail for the following reasons: - -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiListGlobalRulesRequest - */ - ListGlobalRules(ctx _context.Context) ApiListGlobalRulesRequest - - /* - * ListGlobalRulesExecute executes the request - * @return []RuleType - */ - ListGlobalRulesExecute(r ApiListGlobalRulesRequest) ([]RuleType, *_nethttp.Response, error) - - /* - * UpdateGlobalRuleConfig Update global rule configuration - * Updates the configuration for a globally configured rule. - -This operation can fail for the following reasons: - -* Invalid rule name/type (HTTP error `400`) -* No rule with name/type `rule` exists (HTTP error `404`) -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param rule The unique name/type of a rule. - * @return ApiUpdateGlobalRuleConfigRequest - */ - UpdateGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiUpdateGlobalRuleConfigRequest - - /* - * UpdateGlobalRuleConfigExecute executes the request - * @return Rule - */ - UpdateGlobalRuleConfigExecute(r ApiUpdateGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) -} - -// GlobalRulesApiService GlobalRulesApi service -type GlobalRulesApiService service - -type ApiCreateGlobalRuleRequest struct { - ctx _context.Context - ApiService GlobalRulesApi - rule *Rule -} - -func (r ApiCreateGlobalRuleRequest) Rule(rule Rule) ApiCreateGlobalRuleRequest { - r.rule = &rule - return r -} - -func (r ApiCreateGlobalRuleRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.CreateGlobalRuleExecute(r) -} - -/* - * CreateGlobalRule Create global rule - * Adds a rule to the list of globally configured rules. - -This operation can fail for the following reasons: - -* The rule type is unknown (HTTP error `400`) -* The rule already exists (HTTP error `409`) -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateGlobalRuleRequest - */ -func (a *GlobalRulesApiService) CreateGlobalRule(ctx _context.Context) ApiCreateGlobalRuleRequest { - return ApiCreateGlobalRuleRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - */ -func (a *GlobalRulesApiService) CreateGlobalRuleExecute(r ApiCreateGlobalRuleRequest) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.CreateGlobalRule") - if err != nil { - return nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/rules" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.rule == nil { - return nil, reportError("rule is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.rule - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 409 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteAllGlobalRulesRequest struct { - ctx _context.Context - ApiService GlobalRulesApi -} - - -func (r ApiDeleteAllGlobalRulesRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.DeleteAllGlobalRulesExecute(r) -} - -/* - * DeleteAllGlobalRules Delete all global rules - * Deletes all globally configured rules. - -This operation can fail for the following reasons: - -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiDeleteAllGlobalRulesRequest - */ -func (a *GlobalRulesApiService) DeleteAllGlobalRules(ctx _context.Context) ApiDeleteAllGlobalRulesRequest { - return ApiDeleteAllGlobalRulesRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - */ -func (a *GlobalRulesApiService) DeleteAllGlobalRulesExecute(r ApiDeleteAllGlobalRulesRequest) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.DeleteAllGlobalRules") - if err != nil { - return nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/rules" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteGlobalRuleRequest struct { - ctx _context.Context - ApiService GlobalRulesApi - rule RuleType -} - - -func (r ApiDeleteGlobalRuleRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.DeleteGlobalRuleExecute(r) -} - -/* - * DeleteGlobalRule Delete global rule - * Deletes a single global rule. If this is the only rule configured, this is the same -as deleting **all** rules. - -This operation can fail for the following reasons: - -* Invalid rule name/type (HTTP error `400`) -* No rule with name/type `rule` exists (HTTP error `404`) -* Rule cannot be deleted (HTTP error `409`) -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param rule The unique name/type of a rule. - * @return ApiDeleteGlobalRuleRequest - */ -func (a *GlobalRulesApiService) DeleteGlobalRule(ctx _context.Context, rule RuleType) ApiDeleteGlobalRuleRequest { - return ApiDeleteGlobalRuleRequest{ - ApiService: a, - ctx: ctx, - rule: rule, - } -} - -/* - * Execute executes the request - */ -func (a *GlobalRulesApiService) DeleteGlobalRuleExecute(r ApiDeleteGlobalRuleRequest) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.DeleteGlobalRule") - if err != nil { - return nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/rules/{rule}" - localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiGetGlobalRuleConfigRequest struct { - ctx _context.Context - ApiService GlobalRulesApi - rule RuleType -} - - -func (r ApiGetGlobalRuleConfigRequest) Execute() (Rule, *_nethttp.Response, error) { - return r.ApiService.GetGlobalRuleConfigExecute(r) -} - -/* - * GetGlobalRuleConfig Get global rule configuration - * Returns information about the named globally configured rule. - -This operation can fail for the following reasons: - -* Invalid rule name/type (HTTP error `400`) -* No rule with name/type `rule` exists (HTTP error `404`) -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param rule The unique name/type of a rule. - * @return ApiGetGlobalRuleConfigRequest - */ -func (a *GlobalRulesApiService) GetGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiGetGlobalRuleConfigRequest { - return ApiGetGlobalRuleConfigRequest{ - ApiService: a, - ctx: ctx, - rule: rule, - } -} - -/* - * Execute executes the request - * @return Rule - */ -func (a *GlobalRulesApiService) GetGlobalRuleConfigExecute(r ApiGetGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue Rule - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.GetGlobalRuleConfig") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/rules/{rule}" - localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiListGlobalRulesRequest struct { - ctx _context.Context - ApiService GlobalRulesApi -} - - -func (r ApiListGlobalRulesRequest) Execute() ([]RuleType, *_nethttp.Response, error) { - return r.ApiService.ListGlobalRulesExecute(r) -} - -/* - * ListGlobalRules List global rules - * Gets a list of all the currently configured global rules (if any). - -This operation can fail for the following reasons: - -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiListGlobalRulesRequest - */ -func (a *GlobalRulesApiService) ListGlobalRules(ctx _context.Context) ApiListGlobalRulesRequest { - return ApiListGlobalRulesRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return []RuleType - */ -func (a *GlobalRulesApiService) ListGlobalRulesExecute(r ApiListGlobalRulesRequest) ([]RuleType, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue []RuleType - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.ListGlobalRules") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/rules" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateGlobalRuleConfigRequest struct { - ctx _context.Context - ApiService GlobalRulesApi - rule RuleType - rule2 *Rule -} - -func (r ApiUpdateGlobalRuleConfigRequest) Rule2(rule2 Rule) ApiUpdateGlobalRuleConfigRequest { - r.rule2 = &rule2 - return r -} - -func (r ApiUpdateGlobalRuleConfigRequest) Execute() (Rule, *_nethttp.Response, error) { - return r.ApiService.UpdateGlobalRuleConfigExecute(r) -} - -/* - * UpdateGlobalRuleConfig Update global rule configuration - * Updates the configuration for a globally configured rule. - -This operation can fail for the following reasons: - -* Invalid rule name/type (HTTP error `400`) -* No rule with name/type `rule` exists (HTTP error `404`) -* A server error occurred (HTTP error `500`) - - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param rule The unique name/type of a rule. - * @return ApiUpdateGlobalRuleConfigRequest - */ -func (a *GlobalRulesApiService) UpdateGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiUpdateGlobalRuleConfigRequest { - return ApiUpdateGlobalRuleConfigRequest{ - ApiService: a, - ctx: ctx, - rule: rule, - } -} - -/* - * Execute executes the request - * @return Rule - */ -func (a *GlobalRulesApiService) UpdateGlobalRuleConfigExecute(r ApiUpdateGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPut - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue Rule - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.UpdateGlobalRuleConfig") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/admin/rules/{rule}" - localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.rule2 == nil { - return localVarReturnValue, nil, reportError("rule2 is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.rule2 - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/registryinstance/apiv1internal/client/api_groups.go b/registryinstance/apiv1internal/client/api_groups.go new file mode 100644 index 00000000..4fccef5d --- /dev/null +++ b/registryinstance/apiv1internal/client/api_groups.go @@ -0,0 +1,636 @@ +/* + * Apicurio Registry API [v2] + * + * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. + * + * API version: 2.4.x + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type GroupsApi interface { + + /* + * CreateGroup Create a new group + * Creates a new group. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) +* The group already exist (HTTP error `409`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateGroupRequest + */ + CreateGroup(ctx _context.Context) ApiCreateGroupRequest + + /* + * CreateGroupExecute executes the request + * @return GroupMetaData + */ + CreateGroupExecute(r ApiCreateGroupRequest) (GroupMetaData, *_nethttp.Response, error) + + /* + * DeleteGroupById Delete a group by the specified ID. + * Deletes a group by identifier. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) +* The group does not exist (HTTP error `404`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @return ApiDeleteGroupByIdRequest + */ + DeleteGroupById(ctx _context.Context, groupId string) ApiDeleteGroupByIdRequest + + /* + * DeleteGroupByIdExecute executes the request + */ + DeleteGroupByIdExecute(r ApiDeleteGroupByIdRequest) (*_nethttp.Response, error) + + /* + * GetGroupById Get a group by the specified ID. + * Returns a group using the specified id. + +This operation can fail for the following reasons: + +* No group exists with the specified ID (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @return ApiGetGroupByIdRequest + */ + GetGroupById(ctx _context.Context, groupId string) ApiGetGroupByIdRequest + + /* + * GetGroupByIdExecute executes the request + * @return GroupMetaData + */ + GetGroupByIdExecute(r ApiGetGroupByIdRequest) (GroupMetaData, *_nethttp.Response, error) + + /* + * ListGroups List groups + * Returns a list of all groups. This list is paged. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListGroupsRequest + */ + ListGroups(ctx _context.Context) ApiListGroupsRequest + + /* + * ListGroupsExecute executes the request + * @return GroupSearchResults + */ + ListGroupsExecute(r ApiListGroupsRequest) (GroupSearchResults, *_nethttp.Response, error) +} + +// GroupsApiService GroupsApi service +type GroupsApiService service + +type ApiCreateGroupRequest struct { + ctx _context.Context + ApiService GroupsApi + createGroupMetaData *CreateGroupMetaData +} + +func (r ApiCreateGroupRequest) CreateGroupMetaData(createGroupMetaData CreateGroupMetaData) ApiCreateGroupRequest { + r.createGroupMetaData = &createGroupMetaData + return r +} + +func (r ApiCreateGroupRequest) Execute() (GroupMetaData, *_nethttp.Response, error) { + return r.ApiService.CreateGroupExecute(r) +} + +/* + * CreateGroup Create a new group + * Creates a new group. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) +* The group already exist (HTTP error `409`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateGroupRequest + */ +func (a *GroupsApiService) CreateGroup(ctx _context.Context) ApiCreateGroupRequest { + return ApiCreateGroupRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return GroupMetaData + */ +func (a *GroupsApiService) CreateGroupExecute(r ApiCreateGroupRequest) (GroupMetaData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GroupMetaData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.CreateGroup") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.createGroupMetaData == nil { + return localVarReturnValue, nil, reportError("createGroupMetaData is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createGroupMetaData + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteGroupByIdRequest struct { + ctx _context.Context + ApiService GroupsApi + groupId string +} + + +func (r ApiDeleteGroupByIdRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteGroupByIdExecute(r) +} + +/* + * DeleteGroupById Delete a group by the specified ID. + * Deletes a group by identifier. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) +* The group does not exist (HTTP error `404`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @return ApiDeleteGroupByIdRequest + */ +func (a *GroupsApiService) DeleteGroupById(ctx _context.Context, groupId string) ApiDeleteGroupByIdRequest { + return ApiDeleteGroupByIdRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + } +} + +/* + * Execute executes the request + */ +func (a *GroupsApiService) DeleteGroupByIdExecute(r ApiDeleteGroupByIdRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.DeleteGroupById") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetGroupByIdRequest struct { + ctx _context.Context + ApiService GroupsApi + groupId string +} + + +func (r ApiGetGroupByIdRequest) Execute() (GroupMetaData, *_nethttp.Response, error) { + return r.ApiService.GetGroupByIdExecute(r) +} + +/* + * GetGroupById Get a group by the specified ID. + * Returns a group using the specified id. + +This operation can fail for the following reasons: + +* No group exists with the specified ID (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @return ApiGetGroupByIdRequest + */ +func (a *GroupsApiService) GetGroupById(ctx _context.Context, groupId string) ApiGetGroupByIdRequest { + return ApiGetGroupByIdRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + } +} + +/* + * Execute executes the request + * @return GroupMetaData + */ +func (a *GroupsApiService) GetGroupByIdExecute(r ApiGetGroupByIdRequest) (GroupMetaData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GroupMetaData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.GetGroupById") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListGroupsRequest struct { + ctx _context.Context + ApiService GroupsApi + limit *int32 + offset *int32 + order *SortOrder + orderby *SortBy +} + +func (r ApiListGroupsRequest) Limit(limit int32) ApiListGroupsRequest { + r.limit = &limit + return r +} +func (r ApiListGroupsRequest) Offset(offset int32) ApiListGroupsRequest { + r.offset = &offset + return r +} +func (r ApiListGroupsRequest) Order(order SortOrder) ApiListGroupsRequest { + r.order = &order + return r +} +func (r ApiListGroupsRequest) Orderby(orderby SortBy) ApiListGroupsRequest { + r.orderby = &orderby + return r +} + +func (r ApiListGroupsRequest) Execute() (GroupSearchResults, *_nethttp.Response, error) { + return r.ApiService.ListGroupsExecute(r) +} + +/* + * ListGroups List groups + * Returns a list of all groups. This list is paged. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListGroupsRequest + */ +func (a *GroupsApiService) ListGroups(ctx _context.Context) ApiListGroupsRequest { + return ApiListGroupsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return GroupSearchResults + */ +func (a *GroupsApiService) ListGroupsExecute(r ApiListGroupsRequest) (GroupSearchResults, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GroupSearchResults + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.ListGroups") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.offset != nil { + localVarQueryParams.Add("offset", parameterToString(*r.offset, "")) + } + if r.order != nil { + localVarQueryParams.Add("order", parameterToString(*r.order, "")) + } + if r.orderby != nil { + localVarQueryParams.Add("orderby", parameterToString(*r.orderby, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/registryinstance/apiv1internal/client/api_metadata.go b/registryinstance/apiv1internal/client/api_metadata.go index 680a7ed1..d704bd59 100644 --- a/registryinstance/apiv1internal/client/api_metadata.go +++ b/registryinstance/apiv1internal/client/api_metadata.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -18,6 +18,7 @@ import ( _nethttp "net/http" _neturl "net/url" "strings" + "os" ) // Linger please @@ -762,11 +763,11 @@ type ApiGetArtifactVersionMetaDataByContentRequest struct { ApiService MetadataApi groupId string artifactId string - body *interface{} + body **os.File canonical *bool } -func (r ApiGetArtifactVersionMetaDataByContentRequest) Body(body interface{}) ApiGetArtifactVersionMetaDataByContentRequest { +func (r ApiGetArtifactVersionMetaDataByContentRequest) Body(body *os.File) ApiGetArtifactVersionMetaDataByContentRequest { r.body = &body return r } diff --git a/registryinstance/apiv1internal/client/api_search.go b/registryinstance/apiv1internal/client/api_search.go index 18c7d67b..f2bacbd7 100644 --- a/registryinstance/apiv1internal/client/api_search.go +++ b/registryinstance/apiv1internal/client/api_search.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -284,7 +284,7 @@ type ApiSearchArtifactsByContentRequest struct { ApiService SearchApi body **os.File canonical *bool - artifactType *ArtifactType + artifactType *string offset *int32 limit *int32 order *string @@ -299,7 +299,7 @@ func (r ApiSearchArtifactsByContentRequest) Canonical(canonical bool) ApiSearchA r.canonical = &canonical return r } -func (r ApiSearchArtifactsByContentRequest) ArtifactType(artifactType ArtifactType) ApiSearchArtifactsByContentRequest { +func (r ApiSearchArtifactsByContentRequest) ArtifactType(artifactType string) ApiSearchArtifactsByContentRequest { r.artifactType = &artifactType return r } diff --git a/registryinstance/apiv1internal/client/api_system.go b/registryinstance/apiv1internal/client/api_system.go index ac2821fa..9c25ea53 100644 --- a/registryinstance/apiv1internal/client/api_system.go +++ b/registryinstance/apiv1internal/client/api_system.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/api_users.go b/registryinstance/apiv1internal/client/api_users.go index 47975af9..5f4451a6 100644 --- a/registryinstance/apiv1internal/client/api_users.go +++ b/registryinstance/apiv1internal/client/api_users.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/api_versions.go b/registryinstance/apiv1internal/client/api_versions.go index f14d4309..860ac4f0 100644 --- a/registryinstance/apiv1internal/client/api_versions.go +++ b/registryinstance/apiv1internal/client/api_versions.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -168,15 +168,16 @@ type ApiCreateArtifactVersionRequest struct { ApiService VersionsApi groupId string artifactId string - body *interface{} + body **os.File xRegistryVersion *string xRegistryName *string xRegistryDescription *string xRegistryDescriptionEncoded *string xRegistryNameEncoded *string + contentType *string } -func (r ApiCreateArtifactVersionRequest) Body(body interface{}) ApiCreateArtifactVersionRequest { +func (r ApiCreateArtifactVersionRequest) Body(body *os.File) ApiCreateArtifactVersionRequest { r.body = &body return r } @@ -200,6 +201,10 @@ func (r ApiCreateArtifactVersionRequest) XRegistryNameEncoded(xRegistryNameEncod r.xRegistryNameEncoded = &xRegistryNameEncoded return r } +func (r ApiCreateArtifactVersionRequest) ContentType(contentType string) ApiCreateArtifactVersionRequest { + r.contentType = &contentType + return r +} func (r ApiCreateArtifactVersionRequest) Execute() (VersionMetaData, *_nethttp.Response, error) { return r.ApiService.CreateArtifactVersionExecute(r) @@ -268,7 +273,7 @@ func (a *VersionsApiService) CreateArtifactVersionExecute(r ApiCreateArtifactVer } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{"application/create.extended+json", "application/vnd.create.extended+json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -299,6 +304,9 @@ func (a *VersionsApiService) CreateArtifactVersionExecute(r ApiCreateArtifactVer if r.xRegistryNameEncoded != nil { localVarHeaderParams["X-Registry-Name-Encoded"] = parameterToString(*r.xRegistryNameEncoded, "") } + if r.contentType != nil { + localVarHeaderParams["Content-Type"] = parameterToString(*r.contentType, "") + } // body params localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) diff --git a/registryinstance/apiv1internal/client/client.go b/registryinstance/apiv1internal/client/client.go index c3311cbc..3bcc6282 100644 --- a/registryinstance/apiv1internal/client/client.go +++ b/registryinstance/apiv1internal/client/client.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -38,11 +38,11 @@ import ( ) var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) ) -// APIClient manages communication with the Apicurio Registry API [v2] API v2.2.5.Final +// APIClient manages communication with the Apicurio Registry API [v2] API v2.4.x // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -56,7 +56,7 @@ type APIClient struct { ArtifactsApi ArtifactsApi - GlobalRulesApi GlobalRulesApi + GroupsApi GroupsApi MetadataApi MetadataApi @@ -88,7 +88,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.AdminApi = (*AdminApiService)(&c.common) c.ArtifactRulesApi = (*ArtifactRulesApiService)(&c.common) c.ArtifactsApi = (*ArtifactsApiService)(&c.common) - c.GlobalRulesApi = (*GlobalRulesApiService)(&c.common) + c.GroupsApi = (*GroupsApiService)(&c.common) c.MetadataApi = (*MetadataApiService)(&c.common) c.SearchApi = (*SearchApiService)(&c.common) c.SystemApi = (*SystemApiService)(&c.common) diff --git a/registryinstance/apiv1internal/client/configuration.go b/registryinstance/apiv1internal/client/configuration.go index 4f6129bc..13e44777 100644 --- a/registryinstance/apiv1internal/client/configuration.go +++ b/registryinstance/apiv1internal/client/configuration.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/docs/AdminApi.md b/registryinstance/apiv1internal/client/docs/AdminApi.md index 44dda30e..1efe7bdc 100644 --- a/registryinstance/apiv1internal/client/docs/AdminApi.md +++ b/registryinstance/apiv1internal/client/docs/AdminApi.md @@ -4,24 +4,95 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateGlobalRule**](AdminApi.md#CreateGlobalRule) | **Post** /admin/rules | Create global rule [**CreateRoleMapping**](AdminApi.md#CreateRoleMapping) | **Post** /admin/roleMappings | Create a new role mapping +[**DeleteAllGlobalRules**](AdminApi.md#DeleteAllGlobalRules) | **Delete** /admin/rules | Delete all global rules +[**DeleteGlobalRule**](AdminApi.md#DeleteGlobalRule) | **Delete** /admin/rules/{rule} | Delete global rule [**DeleteRoleMapping**](AdminApi.md#DeleteRoleMapping) | **Delete** /admin/roleMappings/{principalId} | Delete a role mapping [**ExportData**](AdminApi.md#ExportData) | **Get** /admin/export | Export registry data [**GetConfigProperty**](AdminApi.md#GetConfigProperty) | **Get** /admin/config/properties/{propertyName} | Get configuration property value +[**GetGlobalRuleConfig**](AdminApi.md#GetGlobalRuleConfig) | **Get** /admin/rules/{rule} | Get global rule configuration [**GetLogConfiguration**](AdminApi.md#GetLogConfiguration) | **Get** /admin/loggers/{logger} | Get a single logger configuration [**GetRoleMapping**](AdminApi.md#GetRoleMapping) | **Get** /admin/roleMappings/{principalId} | Return a single role mapping [**ImportData**](AdminApi.md#ImportData) | **Post** /admin/import | Import registry data +[**ListArtifactTypes**](AdminApi.md#ListArtifactTypes) | **Get** /admin/artifactTypes | List artifact types [**ListConfigProperties**](AdminApi.md#ListConfigProperties) | **Get** /admin/config/properties | List all configuration properties +[**ListGlobalRules**](AdminApi.md#ListGlobalRules) | **Get** /admin/rules | List global rules [**ListLogConfigurations**](AdminApi.md#ListLogConfigurations) | **Get** /admin/loggers | List logging configurations [**ListRoleMappings**](AdminApi.md#ListRoleMappings) | **Get** /admin/roleMappings | List all role mappings [**RemoveLogConfiguration**](AdminApi.md#RemoveLogConfiguration) | **Delete** /admin/loggers/{logger} | Removes logger configuration [**ResetConfigProperty**](AdminApi.md#ResetConfigProperty) | **Delete** /admin/config/properties/{propertyName} | Reset a configuration property [**SetLogConfiguration**](AdminApi.md#SetLogConfiguration) | **Put** /admin/loggers/{logger} | Set a logger's configuration [**UpdateConfigProperty**](AdminApi.md#UpdateConfigProperty) | **Put** /admin/config/properties/{propertyName} | Update a configuration property +[**UpdateGlobalRuleConfig**](AdminApi.md#UpdateGlobalRuleConfig) | **Put** /admin/rules/{rule} | Update global rule configuration [**UpdateRoleMapping**](AdminApi.md#UpdateRoleMapping) | **Put** /admin/roleMappings/{principalId} | Update a role mapping +## CreateGlobalRule + +> CreateGlobalRule(ctx).Rule(rule).Execute() + +Create global rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rule := *openapiclient.NewRule("Config_example") // Rule | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.CreateGlobalRule(context.Background()).Rule(rule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.CreateGlobalRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateGlobalRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rule** | [**Rule**](Rule.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## CreateRoleMapping > CreateRoleMapping(ctx).RoleMapping(roleMapping).Execute() @@ -86,6 +157,133 @@ No authorization required [[Back to README]](../README.md) +## DeleteAllGlobalRules + +> DeleteAllGlobalRules(ctx).Execute() + +Delete all global rules + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.DeleteAllGlobalRules(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.DeleteAllGlobalRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAllGlobalRulesRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteGlobalRule + +> DeleteGlobalRule(ctx, rule).Execute() + +Delete global rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rule := openapiclient.RuleType("VALIDITY") // RuleType | The unique name/type of a rule. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.DeleteGlobalRule(context.Background(), rule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.DeleteGlobalRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**rule** | [**RuleType**](.md) | The unique name/type of a rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteGlobalRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## DeleteRoleMapping > DeleteRoleMapping(ctx, principalId).Execute() @@ -156,7 +354,7 @@ No authorization required ## ExportData -> *os.File ExportData(ctx).Accept(accept).ForBrowser(forBrowser).Execute() +> *os.File ExportData(ctx).ForBrowser(forBrowser).Execute() Export registry data @@ -175,12 +373,11 @@ import ( ) func main() { - accept := "accept_example" // string | (optional) forBrowser := true // bool | Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content. (optional) configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.AdminApi.ExportData(context.Background()).Accept(accept).ForBrowser(forBrowser).Execute() + resp, r, err := api_client.AdminApi.ExportData(context.Background()).ForBrowser(forBrowser).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ExportData``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -201,7 +398,6 @@ Other parameters are passed through a pointer to a apiExportDataRequest struct v Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept** | **string** | | **forBrowser** | **bool** | Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content. | ### Return type @@ -292,6 +488,76 @@ No authorization required [[Back to README]](../README.md) +## GetGlobalRuleConfig + +> Rule GetGlobalRuleConfig(ctx, rule).Execute() + +Get global rule configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rule := openapiclient.RuleType("VALIDITY") // RuleType | The unique name/type of a rule. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.GetGlobalRuleConfig(context.Background(), rule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.GetGlobalRuleConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetGlobalRuleConfig`: Rule + fmt.Fprintf(os.Stdout, "Response from `AdminApi.GetGlobalRuleConfig`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**rule** | [**RuleType**](.md) | The unique name/type of a rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetGlobalRuleConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Rule**](Rule.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GetLogConfiguration > NamedLogConfiguration GetLogConfiguration(ctx, logger).Execute() @@ -500,6 +766,67 @@ No authorization required [[Back to README]](../README.md) +## ListArtifactTypes + +> []ArtifactTypeInfo ListArtifactTypes(ctx).Execute() + +List artifact types + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.ListArtifactTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ListArtifactTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListArtifactTypes`: []ArtifactTypeInfo + fmt.Fprintf(os.Stdout, "Response from `AdminApi.ListArtifactTypes`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiListArtifactTypesRequest struct via the builder pattern + + +### Return type + +[**[]ArtifactTypeInfo**](ArtifactTypeInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## ListConfigProperties > []ConfigurationProperty ListConfigProperties(ctx).Execute() @@ -561,6 +888,67 @@ No authorization required [[Back to README]](../README.md) +## ListGlobalRules + +> []RuleType ListGlobalRules(ctx).Execute() + +List global rules + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.ListGlobalRules(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ListGlobalRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListGlobalRules`: []RuleType + fmt.Fprintf(os.Stdout, "Response from `AdminApi.ListGlobalRules`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiListGlobalRulesRequest struct via the builder pattern + + +### Return type + +[**[]RuleType**](RuleType.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## ListLogConfigurations > []NamedLogConfiguration ListLogConfigurations(ctx).Execute() @@ -963,6 +1351,78 @@ No authorization required [[Back to README]](../README.md) +## UpdateGlobalRuleConfig + +> Rule UpdateGlobalRuleConfig(ctx, rule).Rule2(rule2).Execute() + +Update global rule configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rule := openapiclient.RuleType("VALIDITY") // RuleType | The unique name/type of a rule. + rule2 := *openapiclient.NewRule("Config_example") // Rule | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.UpdateGlobalRuleConfig(context.Background(), rule).Rule2(rule2).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.UpdateGlobalRuleConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateGlobalRuleConfig`: Rule + fmt.Fprintf(os.Stdout, "Response from `AdminApi.UpdateGlobalRuleConfig`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**rule** | [**RuleType**](.md) | The unique name/type of a rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateGlobalRuleConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **rule2** | [**Rule**](Rule.md) | | + +### Return type + +[**Rule**](Rule.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## UpdateRoleMapping > UpdateRoleMapping(ctx, principalId).UpdateRole(updateRole).Execute() diff --git a/registryinstance/apiv1internal/client/docs/ArtifactMetaData.md b/registryinstance/apiv1internal/client/docs/ArtifactMetaData.md index ccdcee6c..f7991f15 100644 --- a/registryinstance/apiv1internal/client/docs/ArtifactMetaData.md +++ b/registryinstance/apiv1internal/client/docs/ArtifactMetaData.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **ModifiedOn** | **string** | | **Id** | **string** | The ID of a single artifact. | **Version** | **string** | | -**Type** | [**ArtifactType**](ArtifactType.md) | | +**Type** | **string** | | **GlobalId** | **int64** | | **State** | [**ArtifactState**](ArtifactState.md) | | **Labels** | Pointer to **[]string** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewArtifactMetaData -`func NewArtifactMetaData(createdBy string, createdOn string, modifiedBy string, modifiedOn string, id string, version string, type_ ArtifactType, globalId int64, state ArtifactState, contentId int64, ) *ArtifactMetaData` +`func NewArtifactMetaData(createdBy string, createdOn string, modifiedBy string, modifiedOn string, id string, version string, type_ string, globalId int64, state ArtifactState, contentId int64, ) *ArtifactMetaData` NewArtifactMetaData instantiates a new ArtifactMetaData object This constructor will assign default values to properties that have it defined, @@ -212,20 +212,20 @@ SetVersion sets Version field to given value. ### GetType -`func (o *ArtifactMetaData) GetType() ArtifactType` +`func (o *ArtifactMetaData) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *ArtifactMetaData) GetTypeOk() (*ArtifactType, bool)` +`func (o *ArtifactMetaData) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *ArtifactMetaData) SetType(v ArtifactType)` +`func (o *ArtifactMetaData) SetType(v string)` SetType sets Type field to given value. diff --git a/registryinstance/apiv1internal/client/docs/ArtifactRulesApi.md b/registryinstance/apiv1internal/client/docs/ArtifactRulesApi.md index d23245ef..4615c153 100644 --- a/registryinstance/apiv1internal/client/docs/ArtifactRulesApi.md +++ b/registryinstance/apiv1internal/client/docs/ArtifactRulesApi.md @@ -404,7 +404,7 @@ import ( func main() { groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. - body := interface{}(987) // interface{} | The content of the artifact being tested. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) + body := os.NewFile(1234, "some_file") // *os.File | The content of the artifact being tested. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) @@ -434,7 +434,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **interface{}** | The content of the artifact being tested. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | + **body** | ***os.File** | The content of the artifact being tested. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | ### Return type diff --git a/registryinstance/apiv1internal/client/docs/ArtifactType.md b/registryinstance/apiv1internal/client/docs/ArtifactType.md deleted file mode 100644 index 87984c83..00000000 --- a/registryinstance/apiv1internal/client/docs/ArtifactType.md +++ /dev/null @@ -1,29 +0,0 @@ -# ArtifactType - -## Enum - - -* `AVRO` (value: `"AVRO"`) - -* `PROTOBUF` (value: `"PROTOBUF"`) - -* `JSON` (value: `"JSON"`) - -* `OPENAPI` (value: `"OPENAPI"`) - -* `ASYNCAPI` (value: `"ASYNCAPI"`) - -* `GRAPHQL` (value: `"GRAPHQL"`) - -* `KCONNECT` (value: `"KCONNECT"`) - -* `WSDL` (value: `"WSDL"`) - -* `XSD` (value: `"XSD"`) - -* `XML` (value: `"XML"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/registryinstance/apiv1internal/client/docs/ArtifactTypeInfo.md b/registryinstance/apiv1internal/client/docs/ArtifactTypeInfo.md new file mode 100644 index 00000000..60f93a27 --- /dev/null +++ b/registryinstance/apiv1internal/client/docs/ArtifactTypeInfo.md @@ -0,0 +1,56 @@ +# ArtifactTypeInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewArtifactTypeInfo + +`func NewArtifactTypeInfo() *ArtifactTypeInfo` + +NewArtifactTypeInfo instantiates a new ArtifactTypeInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewArtifactTypeInfoWithDefaults + +`func NewArtifactTypeInfoWithDefaults() *ArtifactTypeInfo` + +NewArtifactTypeInfoWithDefaults instantiates a new ArtifactTypeInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ArtifactTypeInfo) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ArtifactTypeInfo) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ArtifactTypeInfo) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ArtifactTypeInfo) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/registryinstance/apiv1internal/client/docs/ArtifactsApi.md b/registryinstance/apiv1internal/client/docs/ArtifactsApi.md index 042a2601..55509de3 100644 --- a/registryinstance/apiv1internal/client/docs/ArtifactsApi.md +++ b/registryinstance/apiv1internal/client/docs/ArtifactsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description [**ListArtifactsInGroup**](ArtifactsApi.md#ListArtifactsInGroup) | **Get** /groups/{groupId}/artifacts | List artifacts in group [**ReferencesByContentHash**](ArtifactsApi.md#ReferencesByContentHash) | **Get** /ids/contentHashes/{contentHash}/references | List artifact references by hash [**ReferencesByContentId**](ArtifactsApi.md#ReferencesByContentId) | **Get** /ids/contentIds/{contentId}/references | List artifact references by content ID -[**ReferencesByGlobalId**](ArtifactsApi.md#ReferencesByGlobalId) | **Get** /ids/globalIds/{globalId}/references | Returns a list with all the references for the artifact with the given global id. +[**ReferencesByGlobalId**](ArtifactsApi.md#ReferencesByGlobalId) | **Get** /ids/globalIds/{globalId}/references | List artifact references by global ID [**UpdateArtifact**](ArtifactsApi.md#UpdateArtifact) | **Put** /groups/{groupId}/artifacts/{artifactId} | Update artifact [**UpdateArtifactState**](ArtifactsApi.md#UpdateArtifactState) | **Put** /groups/{groupId}/artifacts/{artifactId}/state | Update artifact state @@ -22,7 +22,7 @@ Method | HTTP request | Description ## CreateArtifact -> ArtifactMetaData CreateArtifact(ctx, groupId).Body(body).XRegistryArtifactType(xRegistryArtifactType).XRegistryArtifactId(xRegistryArtifactId).XRegistryVersion(xRegistryVersion).IfExists(ifExists).Canonical(canonical).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryContentHash(xRegistryContentHash).XRegistryHashAlgorithm(xRegistryHashAlgorithm).Execute() +> ArtifactMetaData CreateArtifact(ctx, groupId).Body(body).XRegistryArtifactType(xRegistryArtifactType).XRegistryArtifactId(xRegistryArtifactId).XRegistryVersion(xRegistryVersion).IfExists(ifExists).Canonical(canonical).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryContentHash(xRegistryContentHash).XRegistryHashAlgorithm(xRegistryHashAlgorithm).ContentType(contentType).Execute() Create artifact @@ -41,9 +41,9 @@ import ( ) func main() { - groupId := "groupId_example" // string | Unique ID of an artifact group. + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. body := os.NewFile(1234, "some_file") // *os.File | The content of the artifact being created. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) - xRegistryArtifactType := openapiclient.ArtifactType("AVRO") // ArtifactType | Specifies the type of the artifact being added. Possible values include: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) (optional) + xRegistryArtifactType := "xRegistryArtifactType_example" // string | Specifies the type of the artifact being added. Possible values include: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) (optional) xRegistryArtifactId := "xRegistryArtifactId_example" // string | A client-provided, globally unique identifier for the new artifact. (optional) xRegistryVersion := "xRegistryVersion_example" // string | Specifies the version number of this initial version of the artifact content. This would typically be a simple integer or a SemVer value. If not provided, the server will assign a version number automatically (starting with version `1`). (optional) ifExists := openapiclient.IfExists("FAIL") // IfExists | Set this option to instruct the server on what to do if the artifact already exists. (optional) @@ -54,10 +54,11 @@ func main() { xRegistryNameEncoded := "xRegistryNameEncoded_example" // string | Specifies the name of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. (optional) xRegistryContentHash := "xRegistryContentHash_example" // string | Specifies the (optional) hash of the artifact to be verified. (optional) xRegistryHashAlgorithm := "xRegistryHashAlgorithm_example" // string | The algorithm to use when checking the content validity. (available: SHA256, MD5; default: SHA256) (optional) + contentType := "contentType_example" // string | This header is explicit so clients using the OpenAPI Generator are able select the content type. Ignore otherwise. (optional) configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ArtifactsApi.CreateArtifact(context.Background(), groupId).Body(body).XRegistryArtifactType(xRegistryArtifactType).XRegistryArtifactId(xRegistryArtifactId).XRegistryVersion(xRegistryVersion).IfExists(ifExists).Canonical(canonical).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryContentHash(xRegistryContentHash).XRegistryHashAlgorithm(xRegistryHashAlgorithm).Execute() + resp, r, err := api_client.ArtifactsApi.CreateArtifact(context.Background(), groupId).Body(body).XRegistryArtifactType(xRegistryArtifactType).XRegistryArtifactId(xRegistryArtifactId).XRegistryVersion(xRegistryVersion).IfExists(ifExists).Canonical(canonical).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryContentHash(xRegistryContentHash).XRegistryHashAlgorithm(xRegistryHashAlgorithm).ContentType(contentType).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.CreateArtifact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -73,7 +74,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | Unique ID of an artifact group. | +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | ### Other Parameters @@ -84,7 +85,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | ***os.File** | The content of the artifact being created. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | - **xRegistryArtifactType** | [**ArtifactType**](ArtifactType.md) | Specifies the type of the artifact being added. Possible values include: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | + **xRegistryArtifactType** | **string** | Specifies the type of the artifact being added. Possible values include: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | **xRegistryArtifactId** | **string** | A client-provided, globally unique identifier for the new artifact. | **xRegistryVersion** | **string** | Specifies the version number of this initial version of the artifact content. This would typically be a simple integer or a SemVer value. If not provided, the server will assign a version number automatically (starting with version `1`). | **ifExists** | [**IfExists**](IfExists.md) | Set this option to instruct the server on what to do if the artifact already exists. | @@ -95,6 +96,7 @@ Name | Type | Description | Notes **xRegistryNameEncoded** | **string** | Specifies the name of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. | **xRegistryContentHash** | **string** | Specifies the (optional) hash of the artifact to be verified. | **xRegistryHashAlgorithm** | **string** | The algorithm to use when checking the content validity. (available: SHA256, MD5; default: SHA256) | + **contentType** | **string** | This header is explicit so clients using the OpenAPI Generator are able select the content type. Ignore otherwise. | ### Return type @@ -106,7 +108,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: application/create.extended+json, application/vnd.create.extended+json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -206,7 +208,7 @@ import ( ) func main() { - groupId := "groupId_example" // string | Unique ID of an artifact group. + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) @@ -224,7 +226,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | Unique ID of an artifact group. | +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | ### Other Parameters @@ -561,7 +563,7 @@ import ( ) func main() { - groupId := "groupId_example" // string | Unique ID of an artifact group. + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. limit := int32(56) // int32 | The number of artifacts to return. Defaults to 20. (optional) offset := int32(56) // int32 | The number of artifacts to skip before starting the result set. Defaults to 0. (optional) order := openapiclient.SortOrder("asc") // SortOrder | Sort order, ascending (`asc`) or descending (`desc`). (optional) @@ -585,7 +587,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | Unique ID of an artifact group. | +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | ### Other Parameters @@ -762,7 +764,7 @@ No authorization required > []ArtifactReference ReferencesByGlobalId(ctx, globalId).Execute() -Returns a list with all the references for the artifact with the given global id. +List artifact references by global ID @@ -830,7 +832,7 @@ No authorization required ## UpdateArtifact -> ArtifactMetaData UpdateArtifact(ctx, groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).Execute() +> ArtifactMetaData UpdateArtifact(ctx, groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).ContentType(contentType).Execute() Update artifact @@ -851,16 +853,17 @@ import ( func main() { groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. - body := interface{}({"openapi":"3.0.2","info":{"title":"Empty API","version":"1.0.7","description":"An example API design using OpenAPI."},"paths":{"/widgets":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"description":"All widgets"}},"summary":"Get widgets"}}},"components":{"schemas":{"Widget":{"title":"Root Type for Widget","description":"A sample data type.","type":"object","properties":{"property-1":{"type":"string"},"property-2":{"type":"boolean"}},"example":{"property-1":"value1","property-2":true}}}}}) // interface{} | The new content of the artifact being updated. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) + body := os.NewFile(1234, "some_file") // *os.File | The new content of the artifact being updated. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) xRegistryVersion := "xRegistryVersion_example" // string | Specifies the version number of this new version of the artifact content. This would typically be a simple integer or a SemVer value. If not provided, the server will assign a version number automatically. (optional) xRegistryName := "xRegistryName_example" // string | Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. (optional) xRegistryNameEncoded := "xRegistryNameEncoded_example" // string | Specifies the artifact name of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. (optional) xRegistryDescription := "xRegistryDescription_example" // string | Specifies the artifact description of this new version of the artifact content. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. (optional) xRegistryDescriptionEncoded := "xRegistryDescriptionEncoded_example" // string | Specifies the artifact description of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. (optional) + contentType := "contentType_example" // string | This header is explicit so clients using the OpenAPI Generator are able select the content type. Ignore otherwise. (optional) configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ArtifactsApi.UpdateArtifact(context.Background(), groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).Execute() + resp, r, err := api_client.ArtifactsApi.UpdateArtifact(context.Background(), groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).ContentType(contentType).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.UpdateArtifact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -888,12 +891,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **interface{}** | The new content of the artifact being updated. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | + **body** | ***os.File** | The new content of the artifact being updated. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | **xRegistryVersion** | **string** | Specifies the version number of this new version of the artifact content. This would typically be a simple integer or a SemVer value. If not provided, the server will assign a version number automatically. | **xRegistryName** | **string** | Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. | **xRegistryNameEncoded** | **string** | Specifies the artifact name of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. | **xRegistryDescription** | **string** | Specifies the artifact description of this new version of the artifact content. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. | **xRegistryDescriptionEncoded** | **string** | Specifies the artifact description of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. | + **contentType** | **string** | This header is explicit so clients using the OpenAPI Generator are able select the content type. Ignore otherwise. | ### Return type @@ -905,7 +909,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: application/create.extended+json, application/vnd.create.extended+json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/registryinstance/apiv1internal/client/docs/CreateGroupMetaData.md b/registryinstance/apiv1internal/client/docs/CreateGroupMetaData.md new file mode 100644 index 00000000..90f3e2ff --- /dev/null +++ b/registryinstance/apiv1internal/client/docs/CreateGroupMetaData.md @@ -0,0 +1,103 @@ +# CreateGroupMetaData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Properties** | Pointer to **map[string]string** | User-defined name-value pairs. Name and value must be strings. | [optional] +**Id** | **string** | | + +## Methods + +### NewCreateGroupMetaData + +`func NewCreateGroupMetaData(id string, ) *CreateGroupMetaData` + +NewCreateGroupMetaData instantiates a new CreateGroupMetaData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateGroupMetaDataWithDefaults + +`func NewCreateGroupMetaDataWithDefaults() *CreateGroupMetaData` + +NewCreateGroupMetaDataWithDefaults instantiates a new CreateGroupMetaData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *CreateGroupMetaData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CreateGroupMetaData) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CreateGroupMetaData) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CreateGroupMetaData) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetProperties + +`func (o *CreateGroupMetaData) GetProperties() map[string]string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CreateGroupMetaData) GetPropertiesOk() (*map[string]string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CreateGroupMetaData) SetProperties(v map[string]string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CreateGroupMetaData) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetId + +`func (o *CreateGroupMetaData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CreateGroupMetaData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CreateGroupMetaData) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/registryinstance/apiv1internal/client/docs/GlobalRulesApi.md b/registryinstance/apiv1internal/client/docs/GlobalRulesApi.md deleted file mode 100644 index e4e1703d..00000000 --- a/registryinstance/apiv1internal/client/docs/GlobalRulesApi.md +++ /dev/null @@ -1,408 +0,0 @@ -# \GlobalRulesApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateGlobalRule**](GlobalRulesApi.md#CreateGlobalRule) | **Post** /admin/rules | Create global rule -[**DeleteAllGlobalRules**](GlobalRulesApi.md#DeleteAllGlobalRules) | **Delete** /admin/rules | Delete all global rules -[**DeleteGlobalRule**](GlobalRulesApi.md#DeleteGlobalRule) | **Delete** /admin/rules/{rule} | Delete global rule -[**GetGlobalRuleConfig**](GlobalRulesApi.md#GetGlobalRuleConfig) | **Get** /admin/rules/{rule} | Get global rule configuration -[**ListGlobalRules**](GlobalRulesApi.md#ListGlobalRules) | **Get** /admin/rules | List global rules -[**UpdateGlobalRuleConfig**](GlobalRulesApi.md#UpdateGlobalRuleConfig) | **Put** /admin/rules/{rule} | Update global rule configuration - - - -## CreateGlobalRule - -> CreateGlobalRule(ctx).Rule(rule).Execute() - -Create global rule - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - rule := *openapiclient.NewRule("Config_example") // Rule | - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.GlobalRulesApi.CreateGlobalRule(context.Background()).Rule(rule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.CreateGlobalRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateGlobalRuleRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rule** | [**Rule**](Rule.md) | | - -### Return type - - (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteAllGlobalRules - -> DeleteAllGlobalRules(ctx).Execute() - -Delete all global rules - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.GlobalRulesApi.DeleteAllGlobalRules(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.DeleteAllGlobalRules``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteAllGlobalRulesRequest struct via the builder pattern - - -### Return type - - (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteGlobalRule - -> DeleteGlobalRule(ctx, rule).Execute() - -Delete global rule - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - rule := openapiclient.RuleType("VALIDITY") // RuleType | The unique name/type of a rule. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.GlobalRulesApi.DeleteGlobalRule(context.Background(), rule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.DeleteGlobalRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**rule** | [**RuleType**](.md) | The unique name/type of a rule. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteGlobalRuleRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetGlobalRuleConfig - -> Rule GetGlobalRuleConfig(ctx, rule).Execute() - -Get global rule configuration - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - rule := openapiclient.RuleType("VALIDITY") // RuleType | The unique name/type of a rule. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.GlobalRulesApi.GetGlobalRuleConfig(context.Background(), rule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.GetGlobalRuleConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetGlobalRuleConfig`: Rule - fmt.Fprintf(os.Stdout, "Response from `GlobalRulesApi.GetGlobalRuleConfig`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**rule** | [**RuleType**](.md) | The unique name/type of a rule. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetGlobalRuleConfigRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**Rule**](Rule.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ListGlobalRules - -> []RuleType ListGlobalRules(ctx).Execute() - -List global rules - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.GlobalRulesApi.ListGlobalRules(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.ListGlobalRules``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListGlobalRules`: []RuleType - fmt.Fprintf(os.Stdout, "Response from `GlobalRulesApi.ListGlobalRules`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiListGlobalRulesRequest struct via the builder pattern - - -### Return type - -[**[]RuleType**](RuleType.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateGlobalRuleConfig - -> Rule UpdateGlobalRuleConfig(ctx, rule).Rule2(rule2).Execute() - -Update global rule configuration - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - rule := openapiclient.RuleType("VALIDITY") // RuleType | The unique name/type of a rule. - rule2 := *openapiclient.NewRule("Config_example") // Rule | - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.GlobalRulesApi.UpdateGlobalRuleConfig(context.Background(), rule).Rule2(rule2).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.UpdateGlobalRuleConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateGlobalRuleConfig`: Rule - fmt.Fprintf(os.Stdout, "Response from `GlobalRulesApi.UpdateGlobalRuleConfig`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**rule** | [**RuleType**](.md) | The unique name/type of a rule. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateGlobalRuleConfigRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **rule2** | [**Rule**](Rule.md) | | - -### Return type - -[**Rule**](Rule.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/registryinstance/apiv1internal/client/docs/GroupMetaData.md b/registryinstance/apiv1internal/client/docs/GroupMetaData.md new file mode 100644 index 00000000..2a83326f --- /dev/null +++ b/registryinstance/apiv1internal/client/docs/GroupMetaData.md @@ -0,0 +1,177 @@ +# GroupMetaData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | An ID of a single artifact group. | +**Description** | **string** | | +**CreatedBy** | **string** | | +**CreatedOn** | **string** | | +**ModifiedBy** | **string** | | +**ModifiedOn** | **string** | | +**Properties** | **map[string]string** | User-defined name-value pairs. Name and value must be strings. | + +## Methods + +### NewGroupMetaData + +`func NewGroupMetaData(id string, description string, createdBy string, createdOn string, modifiedBy string, modifiedOn string, properties map[string]string, ) *GroupMetaData` + +NewGroupMetaData instantiates a new GroupMetaData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGroupMetaDataWithDefaults + +`func NewGroupMetaDataWithDefaults() *GroupMetaData` + +NewGroupMetaDataWithDefaults instantiates a new GroupMetaData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GroupMetaData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GroupMetaData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GroupMetaData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetDescription + +`func (o *GroupMetaData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *GroupMetaData) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *GroupMetaData) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetCreatedBy + +`func (o *GroupMetaData) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *GroupMetaData) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *GroupMetaData) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + + +### GetCreatedOn + +`func (o *GroupMetaData) GetCreatedOn() string` + +GetCreatedOn returns the CreatedOn field if non-nil, zero value otherwise. + +### GetCreatedOnOk + +`func (o *GroupMetaData) GetCreatedOnOk() (*string, bool)` + +GetCreatedOnOk returns a tuple with the CreatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedOn + +`func (o *GroupMetaData) SetCreatedOn(v string)` + +SetCreatedOn sets CreatedOn field to given value. + + +### GetModifiedBy + +`func (o *GroupMetaData) GetModifiedBy() string` + +GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise. + +### GetModifiedByOk + +`func (o *GroupMetaData) GetModifiedByOk() (*string, bool)` + +GetModifiedByOk returns a tuple with the ModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedBy + +`func (o *GroupMetaData) SetModifiedBy(v string)` + +SetModifiedBy sets ModifiedBy field to given value. + + +### GetModifiedOn + +`func (o *GroupMetaData) GetModifiedOn() string` + +GetModifiedOn returns the ModifiedOn field if non-nil, zero value otherwise. + +### GetModifiedOnOk + +`func (o *GroupMetaData) GetModifiedOnOk() (*string, bool)` + +GetModifiedOnOk returns a tuple with the ModifiedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedOn + +`func (o *GroupMetaData) SetModifiedOn(v string)` + +SetModifiedOn sets ModifiedOn field to given value. + + +### GetProperties + +`func (o *GroupMetaData) GetProperties() map[string]string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *GroupMetaData) GetPropertiesOk() (*map[string]string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *GroupMetaData) SetProperties(v map[string]string)` + +SetProperties sets Properties field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/registryinstance/apiv1internal/client/docs/GroupSearchResults.md b/registryinstance/apiv1internal/client/docs/GroupSearchResults.md new file mode 100644 index 00000000..a1558aa8 --- /dev/null +++ b/registryinstance/apiv1internal/client/docs/GroupSearchResults.md @@ -0,0 +1,72 @@ +# GroupSearchResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Groups** | [**[]SearchedGroup**](SearchedGroup.md) | The groups returned in the result set. | +**Count** | **int32** | The total number of groups that matched the query that produced the result set (may be more than the number of groups in the result set). | + +## Methods + +### NewGroupSearchResults + +`func NewGroupSearchResults(groups []SearchedGroup, count int32, ) *GroupSearchResults` + +NewGroupSearchResults instantiates a new GroupSearchResults object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGroupSearchResultsWithDefaults + +`func NewGroupSearchResultsWithDefaults() *GroupSearchResults` + +NewGroupSearchResultsWithDefaults instantiates a new GroupSearchResults object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroups + +`func (o *GroupSearchResults) GetGroups() []SearchedGroup` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *GroupSearchResults) GetGroupsOk() (*[]SearchedGroup, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *GroupSearchResults) SetGroups(v []SearchedGroup)` + +SetGroups sets Groups field to given value. + + +### GetCount + +`func (o *GroupSearchResults) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *GroupSearchResults) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *GroupSearchResults) SetCount(v int32)` + +SetCount sets Count field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/registryinstance/apiv1internal/client/docs/GroupsApi.md b/registryinstance/apiv1internal/client/docs/GroupsApi.md new file mode 100644 index 00000000..04e6e140 --- /dev/null +++ b/registryinstance/apiv1internal/client/docs/GroupsApi.md @@ -0,0 +1,288 @@ +# \GroupsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateGroup**](GroupsApi.md#CreateGroup) | **Post** /groups | Create a new group +[**DeleteGroupById**](GroupsApi.md#DeleteGroupById) | **Delete** /groups/{groupId} | Delete a group by the specified ID. +[**GetGroupById**](GroupsApi.md#GetGroupById) | **Get** /groups/{groupId} | Get a group by the specified ID. +[**ListGroups**](GroupsApi.md#ListGroups) | **Get** /groups | List groups + + + +## CreateGroup + +> GroupMetaData CreateGroup(ctx).CreateGroupMetaData(createGroupMetaData).Execute() + +Create a new group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + createGroupMetaData := *openapiclient.NewCreateGroupMetaData("Id_example") // CreateGroupMetaData | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GroupsApi.CreateGroup(context.Background()).CreateGroupMetaData(createGroupMetaData).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.CreateGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateGroup`: GroupMetaData + fmt.Fprintf(os.Stdout, "Response from `GroupsApi.CreateGroup`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createGroupMetaData** | [**CreateGroupMetaData**](CreateGroupMetaData.md) | | + +### Return type + +[**GroupMetaData**](GroupMetaData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteGroupById + +> DeleteGroupById(ctx, groupId).Execute() + +Delete a group by the specified ID. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GroupsApi.DeleteGroupById(context.Background(), groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.DeleteGroupById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteGroupByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetGroupById + +> GroupMetaData GetGroupById(ctx, groupId).Execute() + +Get a group by the specified ID. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GroupsApi.GetGroupById(context.Background(), groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.GetGroupById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetGroupById`: GroupMetaData + fmt.Fprintf(os.Stdout, "Response from `GroupsApi.GetGroupById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetGroupByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GroupMetaData**](GroupMetaData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListGroups + +> GroupSearchResults ListGroups(ctx).Limit(limit).Offset(offset).Order(order).Orderby(orderby).Execute() + +List groups + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + limit := int32(56) // int32 | The number of groups to return. Defaults to 20. (optional) + offset := int32(56) // int32 | The number of groups to skip before starting the result set. Defaults to 0. (optional) + order := openapiclient.SortOrder("asc") // SortOrder | Sort order, ascending (`asc`) or descending (`desc`). (optional) + orderby := openapiclient.SortBy("name") // SortBy | The field to sort by. Can be one of: * `name` * `createdOn` (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GroupsApi.ListGroups(context.Background()).Limit(limit).Offset(offset).Order(order).Orderby(orderby).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.ListGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListGroups`: GroupSearchResults + fmt.Fprintf(os.Stdout, "Response from `GroupsApi.ListGroups`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | The number of groups to return. Defaults to 20. | + **offset** | **int32** | The number of groups to skip before starting the result set. Defaults to 0. | + **order** | [**SortOrder**](SortOrder.md) | Sort order, ascending (`asc`) or descending (`desc`). | + **orderby** | [**SortBy**](SortBy.md) | The field to sort by. Can be one of: * `name` * `createdOn` | + +### Return type + +[**GroupSearchResults**](GroupSearchResults.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/registryinstance/apiv1internal/client/docs/MetadataApi.md b/registryinstance/apiv1internal/client/docs/MetadataApi.md index 9836985b..0dba82c5 100644 --- a/registryinstance/apiv1internal/client/docs/MetadataApi.md +++ b/registryinstance/apiv1internal/client/docs/MetadataApi.md @@ -334,7 +334,7 @@ import ( func main() { groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. - body := interface{}({"openapi":"3.0.2","info":{"title":"Empty API","version":"1.0.7","description":"An example API design using OpenAPI."},"paths":{"/widgets":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"description":"All widgets"}},"summary":"Get widgets"}}},"components":{"schemas":{"Widget":{"title":"Root Type for Widget","description":"A sample data type.","type":"object","properties":{"property-1":{"type":"string"},"property-2":{"type":"boolean"}},"example":{"property-1":"value1","property-2":true}}}}}) // interface{} | The content of an artifact version. + body := os.NewFile(1234, "some_file") // *os.File | The content of an artifact version. canonical := true // bool | Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for a matching version. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. (optional) configuration := openapiclient.NewConfiguration() @@ -367,7 +367,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **interface{}** | The content of an artifact version. | + **body** | ***os.File** | The content of an artifact version. | **canonical** | **bool** | Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for a matching version. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. | ### Return type diff --git a/registryinstance/apiv1internal/client/docs/SearchApi.md b/registryinstance/apiv1internal/client/docs/SearchApi.md index 51587692..0a872c16 100644 --- a/registryinstance/apiv1internal/client/docs/SearchApi.md +++ b/registryinstance/apiv1internal/client/docs/SearchApi.md @@ -118,7 +118,7 @@ import ( func main() { body := os.NewFile(1234, "some_file") // *os.File | The content to search for. canonical := true // bool | Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter. (optional) - artifactType := openapiclient.ArtifactType("AVRO") // ArtifactType | Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. (optional) + artifactType := "artifactType_example" // string | Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. (optional) offset := int32(56) // int32 | The number of artifacts to skip before starting to collect the result set. Defaults to 0. (optional) (default to 0) limit := int32(56) // int32 | The number of artifacts to return. Defaults to 20. (optional) (default to 20) order := "order_example" // string | Sort order, ascending (`asc`) or descending (`desc`). (optional) @@ -149,7 +149,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | ***os.File** | The content to search for. | **canonical** | **bool** | Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter. | - **artifactType** | [**ArtifactType**](ArtifactType.md) | Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. | + **artifactType** | **string** | Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. | **offset** | **int32** | The number of artifacts to skip before starting to collect the result set. Defaults to 0. | [default to 0] **limit** | **int32** | The number of artifacts to return. Defaults to 20. | [default to 20] **order** | **string** | Sort order, ascending (`asc`) or descending (`desc`). | diff --git a/registryinstance/apiv1internal/client/docs/SearchedArtifact.md b/registryinstance/apiv1internal/client/docs/SearchedArtifact.md index 971c47df..b7d0ef79 100644 --- a/registryinstance/apiv1internal/client/docs/SearchedArtifact.md +++ b/registryinstance/apiv1internal/client/docs/SearchedArtifact.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **CreatedOn** | **string** | | **CreatedBy** | **string** | | -**Type** | [**ArtifactType**](ArtifactType.md) | | +**Type** | **string** | | **Labels** | Pointer to **[]string** | | [optional] **State** | [**ArtifactState**](ArtifactState.md) | | **ModifiedOn** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewSearchedArtifact -`func NewSearchedArtifact(id string, createdOn string, createdBy string, type_ ArtifactType, state ArtifactState, ) *SearchedArtifact` +`func NewSearchedArtifact(id string, createdOn string, createdBy string, type_ string, state ArtifactState, ) *SearchedArtifact` NewSearchedArtifact instantiates a new SearchedArtifact object This constructor will assign default values to properties that have it defined, @@ -147,20 +147,20 @@ SetCreatedBy sets CreatedBy field to given value. ### GetType -`func (o *SearchedArtifact) GetType() ArtifactType` +`func (o *SearchedArtifact) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *SearchedArtifact) GetTypeOk() (*ArtifactType, bool)` +`func (o *SearchedArtifact) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *SearchedArtifact) SetType(v ArtifactType)` +`func (o *SearchedArtifact) SetType(v string)` SetType sets Type field to given value. diff --git a/registryinstance/apiv1internal/client/docs/SearchedGroup.md b/registryinstance/apiv1internal/client/docs/SearchedGroup.md new file mode 100644 index 00000000..78efcb1a --- /dev/null +++ b/registryinstance/apiv1internal/client/docs/SearchedGroup.md @@ -0,0 +1,156 @@ +# SearchedGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | An ID of a single artifact group. | +**Description** | **string** | | +**CreatedOn** | **string** | | +**CreatedBy** | **string** | | +**ModifiedOn** | **string** | | +**ModifiedBy** | **string** | | + +## Methods + +### NewSearchedGroup + +`func NewSearchedGroup(id string, description string, createdOn string, createdBy string, modifiedOn string, modifiedBy string, ) *SearchedGroup` + +NewSearchedGroup instantiates a new SearchedGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSearchedGroupWithDefaults + +`func NewSearchedGroupWithDefaults() *SearchedGroup` + +NewSearchedGroupWithDefaults instantiates a new SearchedGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SearchedGroup) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SearchedGroup) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SearchedGroup) SetId(v string)` + +SetId sets Id field to given value. + + +### GetDescription + +`func (o *SearchedGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SearchedGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SearchedGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetCreatedOn + +`func (o *SearchedGroup) GetCreatedOn() string` + +GetCreatedOn returns the CreatedOn field if non-nil, zero value otherwise. + +### GetCreatedOnOk + +`func (o *SearchedGroup) GetCreatedOnOk() (*string, bool)` + +GetCreatedOnOk returns a tuple with the CreatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedOn + +`func (o *SearchedGroup) SetCreatedOn(v string)` + +SetCreatedOn sets CreatedOn field to given value. + + +### GetCreatedBy + +`func (o *SearchedGroup) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *SearchedGroup) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *SearchedGroup) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + + +### GetModifiedOn + +`func (o *SearchedGroup) GetModifiedOn() string` + +GetModifiedOn returns the ModifiedOn field if non-nil, zero value otherwise. + +### GetModifiedOnOk + +`func (o *SearchedGroup) GetModifiedOnOk() (*string, bool)` + +GetModifiedOnOk returns a tuple with the ModifiedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedOn + +`func (o *SearchedGroup) SetModifiedOn(v string)` + +SetModifiedOn sets ModifiedOn field to given value. + + +### GetModifiedBy + +`func (o *SearchedGroup) GetModifiedBy() string` + +GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise. + +### GetModifiedByOk + +`func (o *SearchedGroup) GetModifiedByOk() (*string, bool)` + +GetModifiedByOk returns a tuple with the ModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedBy + +`func (o *SearchedGroup) SetModifiedBy(v string)` + +SetModifiedBy sets ModifiedBy field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/registryinstance/apiv1internal/client/docs/SearchedVersion.md b/registryinstance/apiv1internal/client/docs/SearchedVersion.md index eea316e9..bfe5833b 100644 --- a/registryinstance/apiv1internal/client/docs/SearchedVersion.md +++ b/registryinstance/apiv1internal/client/docs/SearchedVersion.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **CreatedOn** | **string** | | **CreatedBy** | **string** | | -**Type** | [**ArtifactType**](ArtifactType.md) | | +**Type** | **string** | | **Labels** | Pointer to **[]string** | | [optional] **State** | [**ArtifactState**](ArtifactState.md) | | **GlobalId** | **int64** | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewSearchedVersion -`func NewSearchedVersion(createdOn string, createdBy string, type_ ArtifactType, state ArtifactState, globalId int64, version string, contentId int64, references []ArtifactReference, ) *SearchedVersion` +`func NewSearchedVersion(createdOn string, createdBy string, type_ string, state ArtifactState, globalId int64, version string, contentId int64, references []ArtifactReference, ) *SearchedVersion` NewSearchedVersion instantiates a new SearchedVersion object This constructor will assign default values to properties that have it defined, @@ -128,20 +128,20 @@ SetCreatedBy sets CreatedBy field to given value. ### GetType -`func (o *SearchedVersion) GetType() ArtifactType` +`func (o *SearchedVersion) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *SearchedVersion) GetTypeOk() (*ArtifactType, bool)` +`func (o *SearchedVersion) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *SearchedVersion) SetType(v ArtifactType)` +`func (o *SearchedVersion) SetType(v string)` SetType sets Type field to given value. diff --git a/registryinstance/apiv1internal/client/docs/VersionMetaData.md b/registryinstance/apiv1internal/client/docs/VersionMetaData.md index 92ce8d77..a7c1dd09 100644 --- a/registryinstance/apiv1internal/client/docs/VersionMetaData.md +++ b/registryinstance/apiv1internal/client/docs/VersionMetaData.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **CreatedBy** | **string** | | **CreatedOn** | **string** | | -**Type** | [**ArtifactType**](ArtifactType.md) | | +**Type** | **string** | | **GlobalId** | **int64** | | **State** | Pointer to [**ArtifactState**](ArtifactState.md) | | [optional] **Id** | **string** | The ID of a single artifact. | @@ -22,7 +22,7 @@ Name | Type | Description | Notes ### NewVersionMetaData -`func NewVersionMetaData(version string, createdBy string, createdOn string, type_ ArtifactType, globalId int64, id string, contentId int64, ) *VersionMetaData` +`func NewVersionMetaData(version string, createdBy string, createdOn string, type_ string, globalId int64, id string, contentId int64, ) *VersionMetaData` NewVersionMetaData instantiates a new VersionMetaData object This constructor will assign default values to properties that have it defined, @@ -149,20 +149,20 @@ SetCreatedOn sets CreatedOn field to given value. ### GetType -`func (o *VersionMetaData) GetType() ArtifactType` +`func (o *VersionMetaData) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *VersionMetaData) GetTypeOk() (*ArtifactType, bool)` +`func (o *VersionMetaData) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *VersionMetaData) SetType(v ArtifactType)` +`func (o *VersionMetaData) SetType(v string)` SetType sets Type field to given value. diff --git a/registryinstance/apiv1internal/client/docs/VersionsApi.md b/registryinstance/apiv1internal/client/docs/VersionsApi.md index 1e86de39..7f1618f9 100644 --- a/registryinstance/apiv1internal/client/docs/VersionsApi.md +++ b/registryinstance/apiv1internal/client/docs/VersionsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## CreateArtifactVersion -> VersionMetaData CreateArtifactVersion(ctx, groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryNameEncoded(xRegistryNameEncoded).Execute() +> VersionMetaData CreateArtifactVersion(ctx, groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryNameEncoded(xRegistryNameEncoded).ContentType(contentType).Execute() Create artifact version @@ -35,16 +35,17 @@ import ( func main() { groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. - body := interface{}({"openapi":"3.0.2","info":{"title":"Empty API","version":"1.0.7","description":"An example API design using OpenAPI."},"paths":{"/widgets":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"description":"All widgets"}},"summary":"Get widgets"}}},"components":{"schemas":{"Widget":{"title":"Root Type for Widget","description":"A sample data type.","type":"object","properties":{"property-1":{"type":"string"},"property-2":{"type":"boolean"}},"example":{"property-1":"value1","property-2":true}}}}}) // interface{} | The content of the artifact version being created or the content and a set of references to other artifacts. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) + body := os.NewFile(1234, "some_file") // *os.File | The content of the artifact version being created or the content and a set of references to other artifacts. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) xRegistryVersion := "xRegistryVersion_example" // string | Specifies the version number of this new version of the artifact content. This would typically be a simple integer or a SemVer value. It must be unique within the artifact. If this is not provided, the server will generate a new, unique version number for this new updated content. (optional) xRegistryName := "xRegistryName_example" // string | Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. (optional) xRegistryDescription := "xRegistryDescription_example" // string | Specifies the artifact description of this new version of the artifact content. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. (optional) xRegistryDescriptionEncoded := "xRegistryDescriptionEncoded_example" // string | Specifies the artifact description of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. (optional) xRegistryNameEncoded := "xRegistryNameEncoded_example" // string | Specifies the artifact name of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. (optional) + contentType := "contentType_example" // string | This header is explicit so clients using the OpenAPI Generator are able select the content type. Ignore otherwise. (optional) configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.VersionsApi.CreateArtifactVersion(context.Background(), groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryNameEncoded(xRegistryNameEncoded).Execute() + resp, r, err := api_client.VersionsApi.CreateArtifactVersion(context.Background(), groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryNameEncoded(xRegistryNameEncoded).ContentType(contentType).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.CreateArtifactVersion``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -72,12 +73,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **interface{}** | The content of the artifact version being created or the content and a set of references to other artifacts. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | + **body** | ***os.File** | The content of the artifact version being created or the content and a set of references to other artifacts. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | **xRegistryVersion** | **string** | Specifies the version number of this new version of the artifact content. This would typically be a simple integer or a SemVer value. It must be unique within the artifact. If this is not provided, the server will generate a new, unique version number for this new updated content. | **xRegistryName** | **string** | Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. | **xRegistryDescription** | **string** | Specifies the artifact description of this new version of the artifact content. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. | **xRegistryDescriptionEncoded** | **string** | Specifies the artifact description of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. | **xRegistryNameEncoded** | **string** | Specifies the artifact name of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. | + **contentType** | **string** | This header is explicit so clients using the OpenAPI Generator are able select the content type. Ignore otherwise. | ### Return type @@ -89,7 +91,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: application/create.extended+json, application/vnd.create.extended+json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/registryinstance/apiv1internal/client/model_artifact_meta_data.go b/registryinstance/apiv1internal/client/model_artifact_meta_data.go index c17eb740..3fc57c76 100644 --- a/registryinstance/apiv1internal/client/model_artifact_meta_data.go +++ b/registryinstance/apiv1internal/client/model_artifact_meta_data.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -26,7 +26,7 @@ type ArtifactMetaData struct { // The ID of a single artifact. Id string `json:"id"` Version string `json:"version"` - Type ArtifactType `json:"type"` + Type string `json:"type"` GlobalId int64 `json:"globalId"` State ArtifactState `json:"state"` Labels *[]string `json:"labels,omitempty"` @@ -42,7 +42,7 @@ type ArtifactMetaData struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewArtifactMetaData(createdBy string, createdOn string, modifiedBy string, modifiedOn string, id string, version string, type_ ArtifactType, globalId int64, state ArtifactState, contentId int64) *ArtifactMetaData { +func NewArtifactMetaData(createdBy string, createdOn string, modifiedBy string, modifiedOn string, id string, version string, type_ string, globalId int64, state ArtifactState, contentId int64) *ArtifactMetaData { this := ArtifactMetaData{} this.CreatedBy = createdBy this.CreatedOn = createdOn @@ -274,9 +274,9 @@ func (o *ArtifactMetaData) SetVersion(v string) { } // GetType returns the Type field value -func (o *ArtifactMetaData) GetType() ArtifactType { +func (o *ArtifactMetaData) GetType() string { if o == nil { - var ret ArtifactType + var ret string return ret } @@ -285,7 +285,7 @@ func (o *ArtifactMetaData) GetType() ArtifactType { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ArtifactMetaData) GetTypeOk() (*ArtifactType, bool) { +func (o *ArtifactMetaData) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -293,7 +293,7 @@ func (o *ArtifactMetaData) GetTypeOk() (*ArtifactType, bool) { } // SetType sets field value -func (o *ArtifactMetaData) SetType(v ArtifactType) { +func (o *ArtifactMetaData) SetType(v string) { o.Type = v } diff --git a/registryinstance/apiv1internal/client/model_artifact_owner.go b/registryinstance/apiv1internal/client/model_artifact_owner.go index 7d27f9db..6ff76669 100644 --- a/registryinstance/apiv1internal/client/model_artifact_owner.go +++ b/registryinstance/apiv1internal/client/model_artifact_owner.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_artifact_reference.go b/registryinstance/apiv1internal/client/model_artifact_reference.go index 2f65d43c..3748a7a6 100644 --- a/registryinstance/apiv1internal/client/model_artifact_reference.go +++ b/registryinstance/apiv1internal/client/model_artifact_reference.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_artifact_search_results.go b/registryinstance/apiv1internal/client/model_artifact_search_results.go index 9a2363b3..edb451ff 100644 --- a/registryinstance/apiv1internal/client/model_artifact_search_results.go +++ b/registryinstance/apiv1internal/client/model_artifact_search_results.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_artifact_state.go b/registryinstance/apiv1internal/client/model_artifact_state.go index a9751cee..2fc246d9 100644 --- a/registryinstance/apiv1internal/client/model_artifact_state.go +++ b/registryinstance/apiv1internal/client/model_artifact_state.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_artifact_type.go b/registryinstance/apiv1internal/client/model_artifact_type.go deleted file mode 100644 index dc286172..00000000 --- a/registryinstance/apiv1internal/client/model_artifact_type.go +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Apicurio Registry API [v2] - * - * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. - * - * API version: 2.2.5.Final - * Contact: apicurio@lists.jboss.org - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package registryinstanceclient - -import ( - "encoding/json" - "fmt" -) - -// ArtifactType the model 'ArtifactType' -type ArtifactType string - -// List of ArtifactType -const ( - ARTIFACTTYPE_AVRO ArtifactType = "AVRO" - ARTIFACTTYPE_PROTOBUF ArtifactType = "PROTOBUF" - ARTIFACTTYPE_JSON ArtifactType = "JSON" - ARTIFACTTYPE_OPENAPI ArtifactType = "OPENAPI" - ARTIFACTTYPE_ASYNCAPI ArtifactType = "ASYNCAPI" - ARTIFACTTYPE_GRAPHQL ArtifactType = "GRAPHQL" - ARTIFACTTYPE_KCONNECT ArtifactType = "KCONNECT" - ARTIFACTTYPE_WSDL ArtifactType = "WSDL" - ARTIFACTTYPE_XSD ArtifactType = "XSD" - ARTIFACTTYPE_XML ArtifactType = "XML" -) - -var allowedArtifactTypeEnumValues = []ArtifactType{ - "AVRO", - "PROTOBUF", - "JSON", - "OPENAPI", - "ASYNCAPI", - "GRAPHQL", - "KCONNECT", - "WSDL", - "XSD", - "XML", -} - -func (v *ArtifactType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ArtifactType(value) - for _, existing := range allowedArtifactTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ArtifactType", value) -} - -// NewArtifactTypeFromValue returns a pointer to a valid ArtifactType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewArtifactTypeFromValue(v string) (*ArtifactType, error) { - ev := ArtifactType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ArtifactType: valid values are %v", v, allowedArtifactTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ArtifactType) IsValid() bool { - for _, existing := range allowedArtifactTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ArtifactType value -func (v ArtifactType) Ptr() *ArtifactType { - return &v -} - -type NullableArtifactType struct { - value *ArtifactType - isSet bool -} - -func (v NullableArtifactType) Get() *ArtifactType { - return v.value -} - -func (v *NullableArtifactType) Set(val *ArtifactType) { - v.value = val - v.isSet = true -} - -func (v NullableArtifactType) IsSet() bool { - return v.isSet -} - -func (v *NullableArtifactType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableArtifactType(val *ArtifactType) *NullableArtifactType { - return &NullableArtifactType{value: val, isSet: true} -} - -func (v NullableArtifactType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableArtifactType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/registryinstance/apiv1internal/client/model_artifact_type_info.go b/registryinstance/apiv1internal/client/model_artifact_type_info.go new file mode 100644 index 00000000..705f80d4 --- /dev/null +++ b/registryinstance/apiv1internal/client/model_artifact_type_info.go @@ -0,0 +1,116 @@ +/* + * Apicurio Registry API [v2] + * + * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. + * + * API version: 2.4.x + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// ArtifactTypeInfo struct for ArtifactTypeInfo +type ArtifactTypeInfo struct { + Name *string `json:"name,omitempty"` +} + +// NewArtifactTypeInfo instantiates a new ArtifactTypeInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewArtifactTypeInfo() *ArtifactTypeInfo { + this := ArtifactTypeInfo{} + return &this +} + +// NewArtifactTypeInfoWithDefaults instantiates a new ArtifactTypeInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewArtifactTypeInfoWithDefaults() *ArtifactTypeInfo { + this := ArtifactTypeInfo{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ArtifactTypeInfo) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactTypeInfo) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ArtifactTypeInfo) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ArtifactTypeInfo) SetName(v string) { + o.Name = &v +} + +func (o ArtifactTypeInfo) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableArtifactTypeInfo struct { + value *ArtifactTypeInfo + isSet bool +} + +func (v NullableArtifactTypeInfo) Get() *ArtifactTypeInfo { + return v.value +} + +func (v *NullableArtifactTypeInfo) Set(val *ArtifactTypeInfo) { + v.value = val + v.isSet = true +} + +func (v NullableArtifactTypeInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableArtifactTypeInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableArtifactTypeInfo(val *ArtifactTypeInfo) *NullableArtifactTypeInfo { + return &NullableArtifactTypeInfo{value: val, isSet: true} +} + +func (v NullableArtifactTypeInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableArtifactTypeInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/registryinstance/apiv1internal/client/model_configuration_property.go b/registryinstance/apiv1internal/client/model_configuration_property.go index e4aa7b1e..7eb31d1b 100644 --- a/registryinstance/apiv1internal/client/model_configuration_property.go +++ b/registryinstance/apiv1internal/client/model_configuration_property.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_content_create_request.go b/registryinstance/apiv1internal/client/model_content_create_request.go index 83cbcb31..50dc9ee9 100644 --- a/registryinstance/apiv1internal/client/model_content_create_request.go +++ b/registryinstance/apiv1internal/client/model_content_create_request.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_create_group_meta_data.go b/registryinstance/apiv1internal/client/model_create_group_meta_data.go new file mode 100644 index 00000000..287b5e6e --- /dev/null +++ b/registryinstance/apiv1internal/client/model_create_group_meta_data.go @@ -0,0 +1,182 @@ +/* + * Apicurio Registry API [v2] + * + * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. + * + * API version: 2.4.x + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// CreateGroupMetaData struct for CreateGroupMetaData +type CreateGroupMetaData struct { + Description *string `json:"description,omitempty"` + // User-defined name-value pairs. Name and value must be strings. + Properties *map[string]string `json:"properties,omitempty"` + Id string `json:"id"` +} + +// NewCreateGroupMetaData instantiates a new CreateGroupMetaData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateGroupMetaData(id string) *CreateGroupMetaData { + this := CreateGroupMetaData{} + this.Id = id + return &this +} + +// NewCreateGroupMetaDataWithDefaults instantiates a new CreateGroupMetaData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateGroupMetaDataWithDefaults() *CreateGroupMetaData { + this := CreateGroupMetaData{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateGroupMetaData) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateGroupMetaData) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateGroupMetaData) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateGroupMetaData) SetDescription(v string) { + o.Description = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *CreateGroupMetaData) GetProperties() map[string]string { + if o == nil || o.Properties == nil { + var ret map[string]string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateGroupMetaData) GetPropertiesOk() (*map[string]string, bool) { + if o == nil || o.Properties == nil { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *CreateGroupMetaData) HasProperties() bool { + if o != nil && o.Properties != nil { + return true + } + + return false +} + +// SetProperties gets a reference to the given map[string]string and assigns it to the Properties field. +func (o *CreateGroupMetaData) SetProperties(v map[string]string) { + o.Properties = &v +} + +// GetId returns the Id field value +func (o *CreateGroupMetaData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CreateGroupMetaData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CreateGroupMetaData) SetId(v string) { + o.Id = v +} + +func (o CreateGroupMetaData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Properties != nil { + toSerialize["properties"] = o.Properties + } + if true { + toSerialize["id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableCreateGroupMetaData struct { + value *CreateGroupMetaData + isSet bool +} + +func (v NullableCreateGroupMetaData) Get() *CreateGroupMetaData { + return v.value +} + +func (v *NullableCreateGroupMetaData) Set(val *CreateGroupMetaData) { + v.value = val + v.isSet = true +} + +func (v NullableCreateGroupMetaData) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateGroupMetaData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateGroupMetaData(val *CreateGroupMetaData) *NullableCreateGroupMetaData { + return &NullableCreateGroupMetaData{value: val, isSet: true} +} + +func (v NullableCreateGroupMetaData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateGroupMetaData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/registryinstance/apiv1internal/client/model_download_ref.go b/registryinstance/apiv1internal/client/model_download_ref.go index 60b03e75..888eb3c8 100644 --- a/registryinstance/apiv1internal/client/model_download_ref.go +++ b/registryinstance/apiv1internal/client/model_download_ref.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_editable_meta_data.go b/registryinstance/apiv1internal/client/model_editable_meta_data.go index 7afd16ec..ef39883c 100644 --- a/registryinstance/apiv1internal/client/model_editable_meta_data.go +++ b/registryinstance/apiv1internal/client/model_editable_meta_data.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_error.go b/registryinstance/apiv1internal/client/model_error.go index b882cb5e..de9300e4 100644 --- a/registryinstance/apiv1internal/client/model_error.go +++ b/registryinstance/apiv1internal/client/model_error.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_group_meta_data.go b/registryinstance/apiv1internal/client/model_group_meta_data.go new file mode 100644 index 00000000..3b26de24 --- /dev/null +++ b/registryinstance/apiv1internal/client/model_group_meta_data.go @@ -0,0 +1,285 @@ +/* + * Apicurio Registry API [v2] + * + * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. + * + * API version: 2.4.x + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// GroupMetaData struct for GroupMetaData +type GroupMetaData struct { + // An ID of a single artifact group. + Id string `json:"id"` + Description string `json:"description"` + CreatedBy string `json:"createdBy"` + CreatedOn string `json:"createdOn"` + ModifiedBy string `json:"modifiedBy"` + ModifiedOn string `json:"modifiedOn"` + // User-defined name-value pairs. Name and value must be strings. + Properties map[string]string `json:"properties"` +} + +// NewGroupMetaData instantiates a new GroupMetaData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGroupMetaData(id string, description string, createdBy string, createdOn string, modifiedBy string, modifiedOn string, properties map[string]string) *GroupMetaData { + this := GroupMetaData{} + this.Id = id + this.Description = description + this.CreatedBy = createdBy + this.CreatedOn = createdOn + this.ModifiedBy = modifiedBy + this.ModifiedOn = modifiedOn + this.Properties = properties + return &this +} + +// NewGroupMetaDataWithDefaults instantiates a new GroupMetaData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGroupMetaDataWithDefaults() *GroupMetaData { + this := GroupMetaData{} + return &this +} + +// GetId returns the Id field value +func (o *GroupMetaData) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GroupMetaData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GroupMetaData) SetId(v string) { + o.Id = v +} + +// GetDescription returns the Description field value +func (o *GroupMetaData) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *GroupMetaData) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *GroupMetaData) SetDescription(v string) { + o.Description = v +} + +// GetCreatedBy returns the CreatedBy field value +func (o *GroupMetaData) GetCreatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +func (o *GroupMetaData) GetCreatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedBy, true +} + +// SetCreatedBy sets field value +func (o *GroupMetaData) SetCreatedBy(v string) { + o.CreatedBy = v +} + +// GetCreatedOn returns the CreatedOn field value +func (o *GroupMetaData) GetCreatedOn() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedOn +} + +// GetCreatedOnOk returns a tuple with the CreatedOn field value +// and a boolean to check if the value has been set. +func (o *GroupMetaData) GetCreatedOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedOn, true +} + +// SetCreatedOn sets field value +func (o *GroupMetaData) SetCreatedOn(v string) { + o.CreatedOn = v +} + +// GetModifiedBy returns the ModifiedBy field value +func (o *GroupMetaData) GetModifiedBy() string { + if o == nil { + var ret string + return ret + } + + return o.ModifiedBy +} + +// GetModifiedByOk returns a tuple with the ModifiedBy field value +// and a boolean to check if the value has been set. +func (o *GroupMetaData) GetModifiedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModifiedBy, true +} + +// SetModifiedBy sets field value +func (o *GroupMetaData) SetModifiedBy(v string) { + o.ModifiedBy = v +} + +// GetModifiedOn returns the ModifiedOn field value +func (o *GroupMetaData) GetModifiedOn() string { + if o == nil { + var ret string + return ret + } + + return o.ModifiedOn +} + +// GetModifiedOnOk returns a tuple with the ModifiedOn field value +// and a boolean to check if the value has been set. +func (o *GroupMetaData) GetModifiedOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModifiedOn, true +} + +// SetModifiedOn sets field value +func (o *GroupMetaData) SetModifiedOn(v string) { + o.ModifiedOn = v +} + +// GetProperties returns the Properties field value +func (o *GroupMetaData) GetProperties() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *GroupMetaData) GetPropertiesOk() (*map[string]string, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *GroupMetaData) SetProperties(v map[string]string) { + o.Properties = v +} + +func (o GroupMetaData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["description"] = o.Description + } + if true { + toSerialize["createdBy"] = o.CreatedBy + } + if true { + toSerialize["createdOn"] = o.CreatedOn + } + if true { + toSerialize["modifiedBy"] = o.ModifiedBy + } + if true { + toSerialize["modifiedOn"] = o.ModifiedOn + } + if true { + toSerialize["properties"] = o.Properties + } + return json.Marshal(toSerialize) +} + +type NullableGroupMetaData struct { + value *GroupMetaData + isSet bool +} + +func (v NullableGroupMetaData) Get() *GroupMetaData { + return v.value +} + +func (v *NullableGroupMetaData) Set(val *GroupMetaData) { + v.value = val + v.isSet = true +} + +func (v NullableGroupMetaData) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupMetaData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupMetaData(val *GroupMetaData) *NullableGroupMetaData { + return &NullableGroupMetaData{value: val, isSet: true} +} + +func (v NullableGroupMetaData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupMetaData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/registryinstance/apiv1internal/client/model_group_search_results.go b/registryinstance/apiv1internal/client/model_group_search_results.go new file mode 100644 index 00000000..4112da4c --- /dev/null +++ b/registryinstance/apiv1internal/client/model_group_search_results.go @@ -0,0 +1,140 @@ +/* + * Apicurio Registry API [v2] + * + * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. + * + * API version: 2.4.x + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// GroupSearchResults Describes the response received when searching for groups. +type GroupSearchResults struct { + // The groups returned in the result set. + Groups []SearchedGroup `json:"groups"` + // The total number of groups that matched the query that produced the result set (may be more than the number of groups in the result set). + Count int32 `json:"count"` +} + +// NewGroupSearchResults instantiates a new GroupSearchResults object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGroupSearchResults(groups []SearchedGroup, count int32) *GroupSearchResults { + this := GroupSearchResults{} + this.Groups = groups + this.Count = count + return &this +} + +// NewGroupSearchResultsWithDefaults instantiates a new GroupSearchResults object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGroupSearchResultsWithDefaults() *GroupSearchResults { + this := GroupSearchResults{} + return &this +} + +// GetGroups returns the Groups field value +func (o *GroupSearchResults) GetGroups() []SearchedGroup { + if o == nil { + var ret []SearchedGroup + return ret + } + + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value +// and a boolean to check if the value has been set. +func (o *GroupSearchResults) GetGroupsOk() (*[]SearchedGroup, bool) { + if o == nil { + return nil, false + } + return &o.Groups, true +} + +// SetGroups sets field value +func (o *GroupSearchResults) SetGroups(v []SearchedGroup) { + o.Groups = v +} + +// GetCount returns the Count field value +func (o *GroupSearchResults) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *GroupSearchResults) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *GroupSearchResults) SetCount(v int32) { + o.Count = v +} + +func (o GroupSearchResults) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["groups"] = o.Groups + } + if true { + toSerialize["count"] = o.Count + } + return json.Marshal(toSerialize) +} + +type NullableGroupSearchResults struct { + value *GroupSearchResults + isSet bool +} + +func (v NullableGroupSearchResults) Get() *GroupSearchResults { + return v.value +} + +func (v *NullableGroupSearchResults) Set(val *GroupSearchResults) { + v.value = val + v.isSet = true +} + +func (v NullableGroupSearchResults) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupSearchResults) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupSearchResults(val *GroupSearchResults) *NullableGroupSearchResults { + return &NullableGroupSearchResults{value: val, isSet: true} +} + +func (v NullableGroupSearchResults) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupSearchResults) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/registryinstance/apiv1internal/client/model_if_exists.go b/registryinstance/apiv1internal/client/model_if_exists.go index 762c1b01..117af7c1 100644 --- a/registryinstance/apiv1internal/client/model_if_exists.go +++ b/registryinstance/apiv1internal/client/model_if_exists.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_limits.go b/registryinstance/apiv1internal/client/model_limits.go index 3551d988..f10df1e2 100644 --- a/registryinstance/apiv1internal/client/model_limits.go +++ b/registryinstance/apiv1internal/client/model_limits.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_log_configuration.go b/registryinstance/apiv1internal/client/model_log_configuration.go index 701d0b19..45d5f4a7 100644 --- a/registryinstance/apiv1internal/client/model_log_configuration.go +++ b/registryinstance/apiv1internal/client/model_log_configuration.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_log_level.go b/registryinstance/apiv1internal/client/model_log_level.go index f3f01cc2..1ff285c0 100644 --- a/registryinstance/apiv1internal/client/model_log_level.go +++ b/registryinstance/apiv1internal/client/model_log_level.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_named_log_configuration.go b/registryinstance/apiv1internal/client/model_named_log_configuration.go index c55d3070..e0e54a50 100644 --- a/registryinstance/apiv1internal/client/model_named_log_configuration.go +++ b/registryinstance/apiv1internal/client/model_named_log_configuration.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_named_log_configuration_all_of.go b/registryinstance/apiv1internal/client/model_named_log_configuration_all_of.go index 4f63253b..39b3a3b2 100644 --- a/registryinstance/apiv1internal/client/model_named_log_configuration_all_of.go +++ b/registryinstance/apiv1internal/client/model_named_log_configuration_all_of.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_role_mapping.go b/registryinstance/apiv1internal/client/model_role_mapping.go index 491f5925..6567762b 100644 --- a/registryinstance/apiv1internal/client/model_role_mapping.go +++ b/registryinstance/apiv1internal/client/model_role_mapping.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_role_type.go b/registryinstance/apiv1internal/client/model_role_type.go index ddd2cefa..4b172411 100644 --- a/registryinstance/apiv1internal/client/model_role_type.go +++ b/registryinstance/apiv1internal/client/model_role_type.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_rule.go b/registryinstance/apiv1internal/client/model_rule.go index 4600f350..5cdeb856 100644 --- a/registryinstance/apiv1internal/client/model_rule.go +++ b/registryinstance/apiv1internal/client/model_rule.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_rule_type.go b/registryinstance/apiv1internal/client/model_rule_type.go index 1caac138..bb309ad0 100644 --- a/registryinstance/apiv1internal/client/model_rule_type.go +++ b/registryinstance/apiv1internal/client/model_rule_type.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_rule_violation_cause.go b/registryinstance/apiv1internal/client/model_rule_violation_cause.go index 00269938..c2e7e5cc 100644 --- a/registryinstance/apiv1internal/client/model_rule_violation_cause.go +++ b/registryinstance/apiv1internal/client/model_rule_violation_cause.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_rule_violation_error.go b/registryinstance/apiv1internal/client/model_rule_violation_error.go index 401ef3f3..78e863e5 100644 --- a/registryinstance/apiv1internal/client/model_rule_violation_error.go +++ b/registryinstance/apiv1internal/client/model_rule_violation_error.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_rule_violation_error_all_of.go b/registryinstance/apiv1internal/client/model_rule_violation_error_all_of.go index cbd3388f..95065893 100644 --- a/registryinstance/apiv1internal/client/model_rule_violation_error_all_of.go +++ b/registryinstance/apiv1internal/client/model_rule_violation_error_all_of.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_searched_artifact.go b/registryinstance/apiv1internal/client/model_searched_artifact.go index 7edc6d61..ce8acca7 100644 --- a/registryinstance/apiv1internal/client/model_searched_artifact.go +++ b/registryinstance/apiv1internal/client/model_searched_artifact.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -23,7 +23,7 @@ type SearchedArtifact struct { Description *string `json:"description,omitempty"` CreatedOn string `json:"createdOn"` CreatedBy string `json:"createdBy"` - Type ArtifactType `json:"type"` + Type string `json:"type"` Labels *[]string `json:"labels,omitempty"` State ArtifactState `json:"state"` ModifiedOn *string `json:"modifiedOn,omitempty"` @@ -36,7 +36,7 @@ type SearchedArtifact struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSearchedArtifact(id string, createdOn string, createdBy string, type_ ArtifactType, state ArtifactState) *SearchedArtifact { +func NewSearchedArtifact(id string, createdOn string, createdBy string, type_ string, state ArtifactState) *SearchedArtifact { this := SearchedArtifact{} this.Id = id this.CreatedOn = createdOn @@ -191,9 +191,9 @@ func (o *SearchedArtifact) SetCreatedBy(v string) { } // GetType returns the Type field value -func (o *SearchedArtifact) GetType() ArtifactType { +func (o *SearchedArtifact) GetType() string { if o == nil { - var ret ArtifactType + var ret string return ret } @@ -202,7 +202,7 @@ func (o *SearchedArtifact) GetType() ArtifactType { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *SearchedArtifact) GetTypeOk() (*ArtifactType, bool) { +func (o *SearchedArtifact) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -210,7 +210,7 @@ func (o *SearchedArtifact) GetTypeOk() (*ArtifactType, bool) { } // SetType sets field value -func (o *SearchedArtifact) SetType(v ArtifactType) { +func (o *SearchedArtifact) SetType(v string) { o.Type = v } diff --git a/registryinstance/apiv1internal/client/model_searched_group.go b/registryinstance/apiv1internal/client/model_searched_group.go new file mode 100644 index 00000000..bffa9151 --- /dev/null +++ b/registryinstance/apiv1internal/client/model_searched_group.go @@ -0,0 +1,255 @@ +/* + * Apicurio Registry API [v2] + * + * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. + * + * API version: 2.4.x + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// SearchedGroup Models a single group from the result set returned when searching for groups. +type SearchedGroup struct { + // An ID of a single artifact group. + Id string `json:"id"` + Description string `json:"description"` + CreatedOn string `json:"createdOn"` + CreatedBy string `json:"createdBy"` + ModifiedOn string `json:"modifiedOn"` + ModifiedBy string `json:"modifiedBy"` +} + +// NewSearchedGroup instantiates a new SearchedGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSearchedGroup(id string, description string, createdOn string, createdBy string, modifiedOn string, modifiedBy string) *SearchedGroup { + this := SearchedGroup{} + this.Id = id + this.Description = description + this.CreatedOn = createdOn + this.CreatedBy = createdBy + this.ModifiedOn = modifiedOn + this.ModifiedBy = modifiedBy + return &this +} + +// NewSearchedGroupWithDefaults instantiates a new SearchedGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSearchedGroupWithDefaults() *SearchedGroup { + this := SearchedGroup{} + return &this +} + +// GetId returns the Id field value +func (o *SearchedGroup) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SearchedGroup) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SearchedGroup) SetId(v string) { + o.Id = v +} + +// GetDescription returns the Description field value +func (o *SearchedGroup) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SearchedGroup) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SearchedGroup) SetDescription(v string) { + o.Description = v +} + +// GetCreatedOn returns the CreatedOn field value +func (o *SearchedGroup) GetCreatedOn() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedOn +} + +// GetCreatedOnOk returns a tuple with the CreatedOn field value +// and a boolean to check if the value has been set. +func (o *SearchedGroup) GetCreatedOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedOn, true +} + +// SetCreatedOn sets field value +func (o *SearchedGroup) SetCreatedOn(v string) { + o.CreatedOn = v +} + +// GetCreatedBy returns the CreatedBy field value +func (o *SearchedGroup) GetCreatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +func (o *SearchedGroup) GetCreatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedBy, true +} + +// SetCreatedBy sets field value +func (o *SearchedGroup) SetCreatedBy(v string) { + o.CreatedBy = v +} + +// GetModifiedOn returns the ModifiedOn field value +func (o *SearchedGroup) GetModifiedOn() string { + if o == nil { + var ret string + return ret + } + + return o.ModifiedOn +} + +// GetModifiedOnOk returns a tuple with the ModifiedOn field value +// and a boolean to check if the value has been set. +func (o *SearchedGroup) GetModifiedOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModifiedOn, true +} + +// SetModifiedOn sets field value +func (o *SearchedGroup) SetModifiedOn(v string) { + o.ModifiedOn = v +} + +// GetModifiedBy returns the ModifiedBy field value +func (o *SearchedGroup) GetModifiedBy() string { + if o == nil { + var ret string + return ret + } + + return o.ModifiedBy +} + +// GetModifiedByOk returns a tuple with the ModifiedBy field value +// and a boolean to check if the value has been set. +func (o *SearchedGroup) GetModifiedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModifiedBy, true +} + +// SetModifiedBy sets field value +func (o *SearchedGroup) SetModifiedBy(v string) { + o.ModifiedBy = v +} + +func (o SearchedGroup) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["description"] = o.Description + } + if true { + toSerialize["createdOn"] = o.CreatedOn + } + if true { + toSerialize["createdBy"] = o.CreatedBy + } + if true { + toSerialize["modifiedOn"] = o.ModifiedOn + } + if true { + toSerialize["modifiedBy"] = o.ModifiedBy + } + return json.Marshal(toSerialize) +} + +type NullableSearchedGroup struct { + value *SearchedGroup + isSet bool +} + +func (v NullableSearchedGroup) Get() *SearchedGroup { + return v.value +} + +func (v *NullableSearchedGroup) Set(val *SearchedGroup) { + v.value = val + v.isSet = true +} + +func (v NullableSearchedGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableSearchedGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSearchedGroup(val *SearchedGroup) *NullableSearchedGroup { + return &NullableSearchedGroup{value: val, isSet: true} +} + +func (v NullableSearchedGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSearchedGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/registryinstance/apiv1internal/client/model_searched_version.go b/registryinstance/apiv1internal/client/model_searched_version.go index c7bd36a7..f21b6049 100644 --- a/registryinstance/apiv1internal/client/model_searched_version.go +++ b/registryinstance/apiv1internal/client/model_searched_version.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -21,7 +21,7 @@ type SearchedVersion struct { Description *string `json:"description,omitempty"` CreatedOn string `json:"createdOn"` CreatedBy string `json:"createdBy"` - Type ArtifactType `json:"type"` + Type string `json:"type"` Labels *[]string `json:"labels,omitempty"` State ArtifactState `json:"state"` GlobalId int64 `json:"globalId"` @@ -36,7 +36,7 @@ type SearchedVersion struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSearchedVersion(createdOn string, createdBy string, type_ ArtifactType, state ArtifactState, globalId int64, version string, contentId int64, references []ArtifactReference) *SearchedVersion { +func NewSearchedVersion(createdOn string, createdBy string, type_ string, state ArtifactState, globalId int64, version string, contentId int64, references []ArtifactReference) *SearchedVersion { this := SearchedVersion{} this.CreatedOn = createdOn this.CreatedBy = createdBy @@ -170,9 +170,9 @@ func (o *SearchedVersion) SetCreatedBy(v string) { } // GetType returns the Type field value -func (o *SearchedVersion) GetType() ArtifactType { +func (o *SearchedVersion) GetType() string { if o == nil { - var ret ArtifactType + var ret string return ret } @@ -181,7 +181,7 @@ func (o *SearchedVersion) GetType() ArtifactType { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *SearchedVersion) GetTypeOk() (*ArtifactType, bool) { +func (o *SearchedVersion) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -189,7 +189,7 @@ func (o *SearchedVersion) GetTypeOk() (*ArtifactType, bool) { } // SetType sets field value -func (o *SearchedVersion) SetType(v ArtifactType) { +func (o *SearchedVersion) SetType(v string) { o.Type = v } diff --git a/registryinstance/apiv1internal/client/model_sort_by.go b/registryinstance/apiv1internal/client/model_sort_by.go index 98180964..dbb4aded 100644 --- a/registryinstance/apiv1internal/client/model_sort_by.go +++ b/registryinstance/apiv1internal/client/model_sort_by.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_sort_order.go b/registryinstance/apiv1internal/client/model_sort_order.go index 04dae527..c43e818c 100644 --- a/registryinstance/apiv1internal/client/model_sort_order.go +++ b/registryinstance/apiv1internal/client/model_sort_order.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_system_info.go b/registryinstance/apiv1internal/client/model_system_info.go index dc862627..04edb070 100644 --- a/registryinstance/apiv1internal/client/model_system_info.go +++ b/registryinstance/apiv1internal/client/model_system_info.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_update_configuration_property.go b/registryinstance/apiv1internal/client/model_update_configuration_property.go index 40c22e2e..701a0780 100644 --- a/registryinstance/apiv1internal/client/model_update_configuration_property.go +++ b/registryinstance/apiv1internal/client/model_update_configuration_property.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_update_role.go b/registryinstance/apiv1internal/client/model_update_role.go index 94ddbb9b..c19efeba 100644 --- a/registryinstance/apiv1internal/client/model_update_role.go +++ b/registryinstance/apiv1internal/client/model_update_role.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_update_state.go b/registryinstance/apiv1internal/client/model_update_state.go index b9da5af0..7803a8fa 100644 --- a/registryinstance/apiv1internal/client/model_update_state.go +++ b/registryinstance/apiv1internal/client/model_update_state.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_user_info.go b/registryinstance/apiv1internal/client/model_user_info.go index bbb216a8..f734cf5f 100644 --- a/registryinstance/apiv1internal/client/model_user_info.go +++ b/registryinstance/apiv1internal/client/model_user_info.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/model_version_meta_data.go b/registryinstance/apiv1internal/client/model_version_meta_data.go index f24eb613..1d08769e 100644 --- a/registryinstance/apiv1internal/client/model_version_meta_data.go +++ b/registryinstance/apiv1internal/client/model_version_meta_data.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ @@ -22,7 +22,7 @@ type VersionMetaData struct { Description *string `json:"description,omitempty"` CreatedBy string `json:"createdBy"` CreatedOn string `json:"createdOn"` - Type ArtifactType `json:"type"` + Type string `json:"type"` GlobalId int64 `json:"globalId"` State *ArtifactState `json:"state,omitempty"` // The ID of a single artifact. @@ -39,7 +39,7 @@ type VersionMetaData struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVersionMetaData(version string, createdBy string, createdOn string, type_ ArtifactType, globalId int64, id string, contentId int64) *VersionMetaData { +func NewVersionMetaData(version string, createdBy string, createdOn string, type_ string, globalId int64, id string, contentId int64) *VersionMetaData { this := VersionMetaData{} this.Version = version this.CreatedBy = createdBy @@ -196,9 +196,9 @@ func (o *VersionMetaData) SetCreatedOn(v string) { } // GetType returns the Type field value -func (o *VersionMetaData) GetType() ArtifactType { +func (o *VersionMetaData) GetType() string { if o == nil { - var ret ArtifactType + var ret string return ret } @@ -207,7 +207,7 @@ func (o *VersionMetaData) GetType() ArtifactType { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *VersionMetaData) GetTypeOk() (*ArtifactType, bool) { +func (o *VersionMetaData) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -215,7 +215,7 @@ func (o *VersionMetaData) GetTypeOk() (*ArtifactType, bool) { } // SetType sets field value -func (o *VersionMetaData) SetType(v ArtifactType) { +func (o *VersionMetaData) SetType(v string) { o.Type = v } diff --git a/registryinstance/apiv1internal/client/model_version_search_results.go b/registryinstance/apiv1internal/client/model_version_search_results.go index 25466733..ca22c1a6 100644 --- a/registryinstance/apiv1internal/client/model_version_search_results.go +++ b/registryinstance/apiv1internal/client/model_version_search_results.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/response.go b/registryinstance/apiv1internal/client/response.go index 356bd360..783ffe32 100644 --- a/registryinstance/apiv1internal/client/response.go +++ b/registryinstance/apiv1internal/client/response.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */ diff --git a/registryinstance/apiv1internal/client/utils.go b/registryinstance/apiv1internal/client/utils.go index e5b62b2e..83ae298e 100644 --- a/registryinstance/apiv1internal/client/utils.go +++ b/registryinstance/apiv1internal/client/utils.go @@ -3,7 +3,7 @@ * * Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. * - * API version: 2.2.5.Final + * API version: 2.4.x * Contact: apicurio@lists.jboss.org */