diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index 2bc8168..0000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[bumpversion] -current_version = 0.0.1 -commit = True -message = Update version {current_version} -> {new_version} - -[bumpversion:file:README.md] -search = {current_version} -replace = {new_version} - diff --git a/.bumpversion.toml b/.bumpversion.toml new file mode 100644 index 0000000..3fd5267 --- /dev/null +++ b/.bumpversion.toml @@ -0,0 +1,9 @@ +[tool.bumpversion] +current_version = "0.0.1" +commit = true +message = "Update version {current_version} -> {new_version}" + +[[tool.bumpversion.files]] +filename = "README.md" +search = "{current_version}" +replace = "{new_version}" diff --git a/.releaserc b/.releaserc index e3b7056..aac8dcb 100644 --- a/.releaserc +++ b/.releaserc @@ -9,7 +9,7 @@ [ "@semantic-release/exec", { - "prepareCmd": "bump2version --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch" + "prepareCmd": "bump-my-version bump --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version}" } ], [ diff --git a/.travis.yml b/.travis.yml index 5240087..83fafed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,6 +31,7 @@ stages: before_install: - sudo apt-get update - env | grep TRAVIS + - pyenv global 3.8 jobs: include: @@ -53,7 +54,7 @@ jobs: # - node --version # - npm --version # - npm install -# - pip install --user bump2version +# - pip install --user bump-my-version # script: # - npm run semantic-release # diff --git a/admin-rest-api.yaml b/admin-rest-api.yaml deleted file mode 100644 index dab0212..0000000 --- a/admin-rest-api.yaml +++ /dev/null @@ -1,1474 +0,0 @@ -# -# Copyright 2018, 2019 IBM -# -# Eclipse Public License - v 1.0 -# -#THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC -#LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM -#CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -swagger: '2.0' - -info: - version: 1.2.0 - title: IBM Event Streams Admin REST API - description: The administration REST API for IBM Event Streams on Cloud. - x-alternate-name: adminrest - -securityDefinitions: - APIKeyAuth: - type: apiKey - in: header - name: X-Auth-Token - description: > - A valid API key is required to access this API. API keys can be allocated - via the IBM Cloud interface, and are associated with an instance of the - Event Streams service. API key values must be supplied on every REST request - using the `X-Auth-Token` HTTP header. Failure to specify a valid API key - will result in the REST request failing with a 401 (Unauthorized) status - code. `X-Auth-Token` header is deprecated, `Authorization` header is recommanded. - TokenAuth: - type: apiKey - in: header - name: Authorization - description: > - A valid token or API key is required to access this API. API keys can be allocated - via the IBM Cloud interface, and are associated with an instance of the - Event Streams service. Token is obtained upon login to IBM Cloud and is associated with - the identity of the user. Either token or API key must be supplied on every REST request - using the `Authorization` `Bearer ${TokenOrAPIKey}` HTTP header. Failure to do so will - result in the REST request failing with a 401 (Unauthorized) status code. - BasicAuth: - type: basic - description: > - To use basic authentication, the HTTP header name is `Authorization`, value is - `Basic . - For both enterprise and standard plan, user name is `token`, password is API key. - -schemes: - - https -consumes: - - application/json -produces: - - application/json - -paths: - -#====================================================================================# -# APIs for managing topics -#====================================================================================# - /admin/topics: - #============================== - # POST /topics - #============================== - post: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: CreateTopic - summary: Create a new topic. - description: Create a new topic. - x-sdk-tags: - - Topic Operations - consumes: - - application/json - parameters: - - $ref: '#/parameters/topic_create' - responses: - 202: - description: > - Topic creation request accepted. Topic creation occurs - asynchronously, and therefore invoking the list topics REST endpoint - may not immediately show newly created topics. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - schema: - $ref: '#/definitions/empty' - 400: - $ref: '#/responses/bad_request' - 401: - $ref: '#/responses/unauthorized' - 403: - $ref: '#/responses/forbidden' - 422: - $ref: '#/responses/unprocessable_entity' - 503: - $ref: '#/responses/service_unavailable' - - x-sdk-operations: - request-examples: - curl: - - name: "Example create topic using Curl." - example: - - type: "code" - source: "__CURL_CREATE_TOPIC_EXAMPLE__" - go: - - name: "Example create topic using Go." - example: - - type: "code" - source: "__GOLANG_CREATE_TOPIC_EXAMPLE__" - java: - - name: "Example create topic using Java." - example: - - type: "code" - source: "__JAVA_CREATE_TOPIC_EXAMPLE__" - python: - - name: "Example create topic using Python." - example: - - type: "code" - source: "__PYTHON_CREATE_TOPIC_EXAMPLE__" - node: - - name: "Example create topic using Node." - example: - - type: "code" - source: "__NODE_CREATE_TOPIC_EXAMPLE__" - - #============================== - # GET /topics - #============================== - get: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: ListTopics - summary: Get a list of topics. - description: > - Returns a list containing information about all of the Kafka topics that - are defined for an instance of the Event Streams service. If there are - currently no topics defined then an empty list is returned. - x-sdk-tags: - - Topic Operations - parameters: - - $ref: '#/parameters/topic_filter' - - $ref: '#/parameters/per_page' - - $ref: '#/parameters/page' - responses: - 200: - description: > - Success. A list of topic information objects is returned in the - response body. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - X-Total-Count: - type: integer - description: The total number of topics available. - Link: - type: string - description: > - The client can scroll through pages using the links generated in the Link header. - There are 4 links encoded in the header which represent the first, last, next and - previous operations. An example header is Link: - ; rel="next", - ; rel="first", - ; rel="last" - schema: - $ref: '#/definitions/topic_list' - 401: - $ref: '#/responses/unauthorized' - 503: - $ref: '#/responses/service_unavailable' - x-sdk-operations: - request-examples: - curl: - - name: "Example lists topics using Curl." - example: - - type: "code" - source: "__CURL_LIST_TOPIC_EXAMPLE__" - go: - - name: "Example lists topics using Go." - example: - - type: "code" - source: "__GOLANG_LIST_TOPIC_EXAMPLE__" - java: - - name: "Example lists topics using Java." - example: - - type: "code" - source: "__JAVA_LIST_TOPIC_EXAMPLE__" - python: - - name: "Example lists topics using Python." - example: - - type: "code" - source: "__PYTHON_LIST_TOPIC_EXAMPLE__" - node: - - name: "Example lists topics using Node." - example: - - type: "code" - source: "__NODE_LIST_TOPIC_EXAMPLE__" - - - /admin/topics/{topic_name}: - #================================== - # GET /admin/topics/{topic_name} - #================================== - get: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: GetTopic - summary: Get detailed information on a topic. - description: Get detailed information on a topic. - x-sdk-tags: - - Topic Operations - parameters: - - $ref: '#/parameters/topic_name' - responses: - 200: - description: Returns a detailed description of a single topic. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - schema: - $ref: '#/definitions/topic_detail' - 401: - $ref: '#/responses/unauthorized' - 404: - $ref: '#/responses/not_found' - 503: - $ref: '#/responses/service_unavailable' - x-sdk-operations: - request-examples: - curl: - - name: "Example get topic details using Curl." - example: - - type: "code" - source: "__CURL_TOPIC_DETAILS_EXAMPLE__" - go: - - name: "Example get topic details using Go." - example: - - type: "code" - source: "__GOLANG_TOPIC_DETAILS_EXAMPLE__" - java: - - name: "Example get topic details using Java." - example: - - type: "code" - source: "__JAVA_TOPIC_DETAILS_EXAMPLE__" - python: - - name: "Example get topic details using Python." - example: - - type: "code" - source: "__PYTHON_TOPIC_DETAILS_EXAMPLE__" - node: - - name: "Example get topic details using Node." - example: - - type: "code" - source: "__NODE_TOPIC_DETAILS_EXAMPLE__" - - - #================================== - # DELETE /admin/topics/{topic_name} - #================================== - delete: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: DeleteTopic - summary: Delete a topic. - description: Delete a topic. - x-sdk-tags: - - Topic Operations - parameters: - - $ref: '#/parameters/topic_name' - responses: - 202: - description: > - The Topic delete request accepted. The Kafka topic deletion process - occurs asynchronously. Duplicate deletion requests for a topic which - is in the process of being deleted will return this status code. - Requests to delete a non-existent topic will also return this status - code. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - schema: - $ref: '#/definitions/empty' - 401: - $ref: '#/responses/unauthorized' - 403: - $ref: '#/responses/forbidden' - 404: - $ref: '#/responses/not_found' - 503: - $ref: '#/responses/service_unavailable' - x-sdk-operations: - request-examples: - curl: - - name: "Example delete topic using Curl." - example: - - type: "code" - source: "__CURL_DELETE_TOPIC_EXAMPLE__" - go: - - name: "Example delete topic using Go." - example: - - type: "code" - source: "__GOLANG_DELETE_TOPIC_EXAMPLE__" - java: - - name: "Example delete topic using Java." - example: - - type: "code" - source: "__JAVA_DELETE_TOPIC_EXAMPLE__" - python: - - name: "Example delete topic using Python." - example: - - type: "code" - source: "__PYTHON_DELETE_TOPIC_EXAMPLE__" - node: - - name: "Example delete topic using Node." - example: - - type: "code" - source: "__NODE_DELETE_TOPIC_EXAMPLE__" - - - #================================= - # PATCH /admin/topics/{topic_name} - #================================= - patch: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: UpdateTopic - summary: > - Increase the number of partitions and/or update one or more topic configuration parameters. - description: > - Increase the number of partitions and/or update one or more topic configuration parameters. - x-sdk-tags: - - Topic Operations - consumes: - - application/json - parameters: - - $ref: '#/parameters/topic_name' - - $ref: '#/parameters/topic_update' - responses: - 202: - description: Request was accepted. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - schema: - $ref: '#/definitions/empty' - 400: - $ref: '#/responses/bad_request' - 401: - $ref: '#/responses/unauthorized' - 403: - $ref: '#/responses/forbidden' - 404: - $ref: '#/responses/not_found' - 422: - $ref: '#/responses/unprocessable_entity' - 503: - $ref: '#/responses/service_unavailable' - x-sdk-operations: - request-examples: - curl: - - name: "Example update topic using Curl." - example: - - type: "code" - source: "__CURL_UPDATE_TOPIC_EXAMPLE__" - go: - - name: "Example update topic using Go." - example: - - type: "code" - source: "__GOLANG_UPDATE_TOPIC_EXAMPLE__" - java: - - name: "Example update topic using Java." - example: - - type: "code" - source: "__JAVA_UPDATE_TOPIC_EXAMPLE__" - python: - - name: "Example update topic using Python." - example: - - type: "code" - source: "__PYTHON_UPDATE_TOPIC_EXAMPLE__" - node: - - name: "Example update topic using Node." - example: - - type: "code" - source: "__NODE_UPDATE_TOPIC_EXAMPLE__" - - - '/admin/mirroring/topic-selection': - #===================================== - # GET /admin/mirroring/topic-selection - #===================================== - get: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: GetMirroringTopicSelection - summary: Get current topic selection for mirroring. - description: Get current topic selection for mirroring. - x-sdk-tags: - - Mirroring Operations - parameters: [] - responses: - 200: - description: Returns topic selections as patterns. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - schema: - $ref: '#/definitions/mirroring_topic_selection' - 401: - $ref: '#/responses/unauthorized' - 403: - $ref: '#/responses/forbidden' - 503: - $ref: '#/responses/service_unavailable' - x-sdk-operations: - request-examples: - curl: - - name: "Example get mirroring topic selection using Curl." - example: - - type: "code" - source: "__CURL_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - go: - - name: "Example get mirroring topic selection using Go." - example: - - type: "code" - source: "__GOLANG_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - java: - - name: "Example get mirroring topic selection using Java." - example: - - type: "code" - source: "__JAVA_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - python: - - name: "Example get mirroring topic selection using Python." - example: - - type: "code" - source: "__PYTHON_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - node: - - name: "Example get mirroring topic selection using Node." - example: - - type: "code" - source: "__NODE_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - - - #===================================== - # POST /admin/mirroring/topic-selection - #===================================== - post: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: ReplaceMirroringTopicSelection - summary: Replace topic selection for mirroring. - description: Replace topic selection for mirroring. This operation replaces the complete set of mirroring topic selections. - x-sdk-tags: - - Mirroring Operations - parameters: - - $ref: '#/parameters/mirroring_topic_selection_replacement' - responses: - 200: - description: Returns new topic selections as patterns. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - schema: - $ref: '#/definitions/mirroring_topic_selection' - 400: - $ref: '#/responses/bad_request' - 401: - $ref: '#/responses/unauthorized' - 403: - $ref: '#/responses/forbidden' - 415: - $ref: '#/responses/unsupported_media_type' - 503: - $ref: '#/responses/service_unavailable' - x-sdk-operations: - request-examples: - curl: - - name: "Example replace mirroring topic selection using Curl." - example: - - type: "code" - source: "__CURL_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - go: - - name: "Example replace mirroring topic selection using Go." - example: - - type: "code" - source: "__GOLANG_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - java: - - name: "Example replace mirroring topic selection using Java." - example: - - type: "code" - source: "__JAVA_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - python: - - name: "Example replace mirroring topic selection using Python." - example: - - type: "code" - source: "__PYTHON_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - node: - - name: "Example replace mirroring topic selection using Node." - example: - - type: "code" - source: "__NODE_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - - - '/admin/mirroring/active-topics': - #===================================== - # GET /admin/mirroring/active-topics - #===================================== - get: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: GetMirroringActiveTopics - summary: Get topics that are being actively mirrored. - description: Get topics that are being actively mirrored. - x-sdk-tags: - - Mirroring Operations - parameters: [] - responses: - 200: - description: Return topics that are being actively mirrored. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - schema: - $ref: '#/definitions/mirroring_active_topics' - 401: - $ref: '#/responses/unauthorized' - 403: - $ref: '#/responses/forbidden' - 404: - $ref: '#/responses/not_found' - 503: - $ref: '#/responses/service_unavailable' - x-sdk-operations: - request-examples: - curl: - - name: "Example get mirroring active topics using Curl." - example: - - type: "code" - source: "__CURL_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" - go: - - name: "Example get mirroring active topics using Go." - example: - - type: "code" - source: "__GOLANG_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" - java: - - name: "Example get mirroring active topics using Java." - example: - - type: "code" - source: "__JAVA_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" - python: - - name: "Example get mirroring active topics using Python." - example: - - type: "code" - source: "__PYTHON_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" - node: - - name: "Example get mirroring active topics using Node." - example: - - type: "code" - source: "__NODE_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" - #====================================================================================# - # Quotas related paths - #====================================================================================# - /admin/quotas/{entity_name}: - #============================== - # POST /admin/quotas/{entity_name} - #============================== - post: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: create_quota - summary: Create a new quota. - description: Create a new quota. - consumes: - - application/json - parameters: - - $ref: '#/parameters/quota_create' - - $ref: '#/parameters/entity_name' - responses: - 201: - description: Request was created. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - 400: - $ref: '#/responses/bad_request' - 401: - $ref: '#/responses/unauthorized' - 403: - $ref: '#/responses/forbidden' - 422: - $ref: '#/responses/unprocessable_entity' - 503: - $ref: '#/responses/service_unavailable' - - x-sdk-operations: - request-examples: - curl: - - name: "Example of creating a quota using Curl." - example: - - type: "code" - source: "__CURL_CREATE_QUOTAS_EXAMPLE__" - go: - - name: "Example of creating a quota using Go." - example: - - type: "code" - source: "__GOLANG_CREATE_QUOTAS_EXAMPLE__" - java: - - name: "Example of creating a quota using Java." - example: - - type: "code" - source: "__JAVA_CREATE_QUOTAS_EXAMPLE__" - python: - - name: "Example of creating a quota using Python." - example: - - type: "code" - source: "__PYTHON_CREATE_QUOTAS_EXAMPLE__" - node: - - name: "Example of creating a quota using Node." - example: - - type: "code" - source: "__NODE_CREATE_QUOTAS_EXAMPLE__" - - #============================== - # PATCH /admin/quotas/{entity_name} - #============================== - patch: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: update_quota - summary: Update quota. - description: Update an entity's quota. - consumes: - - application/json - parameters: - - $ref: '#/parameters/quota_update' - - $ref: '#/parameters/entity_name' - responses: - 202: - description: Request was accepted. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - 400: - $ref: '#/responses/bad_request' - 401: - $ref: '#/responses/unauthorized' - 403: - $ref: '#/responses/forbidden' - 404: - $ref: '#/responses/not_found' - 422: - $ref: '#/responses/unprocessable_entity' - 503: - $ref: '#/responses/service_unavailable' - - x-sdk-operations: - request-examples: - curl: - - name: "Example of updating a quota using Curl." - example: - - type: "code" - source: "__CURL_UPDATE_QUOTAS_EXAMPLE__" - go: - - name: "Example of updating a quota using Go." - example: - - type: "code" - source: "__GOLANG_UPDATE_QUOTAS_EXAMPLE__" - java: - - name: "Example of updating a quota using Java." - example: - - type: "code" - source: "__JAVA_UPDATE_QUOTAS_EXAMPLE__" - python: - - name: "Example of updating a quota using Python." - example: - - type: "code" - source: "__PYTHON_UPDATE_QUOTAS_EXAMPLE__" - node: - - name: "Example of updating a quota using Node." - example: - - type: "code" - source: "__NODE_UPDATE_QUOTAS_EXAMPLE__" - - #============================== - # DELETE /admin/quotas/{entity_name} - #============================== - delete: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: delete_quota - summary: Delete a quota. - description: Delete an entity's quota. - consumes: - - application/json - parameters: - - $ref: '#/parameters/entity_name' - responses: - 202: - description: Request was accepted. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - 400: - $ref: '#/responses/bad_request' - 401: - $ref: '#/responses/unauthorized' - 403: - $ref: '#/responses/forbidden' - 404: - $ref: '#/responses/not_found' - 422: - $ref: '#/responses/unprocessable_entity' - 503: - $ref: '#/responses/service_unavailable' - - x-sdk-operations: - request-examples: - curl: - - name: "Example of deleting a quota using Curl." - example: - - type: "code" - source: "__CURL_DELETE_QUOTAS_EXAMPLE__" - go: - - name: "Example of deleting a quota using Go." - example: - - type: "code" - source: "__GOLANG_DELETE_QUOTAS_EXAMPLE__" - java: - - name: "Example of deleting a quota using Java." - example: - - type: "code" - source: "__JAVA_DELETE_QUOTAS_EXAMPLE__" - python: - - name: "Example of deleting a quota using Python." - example: - - type: "code" - source: "__PYTHON_DELETE_QUOTAS_EXAMPLE__" - node: - - name: "Example of deleting a quota using Node." - example: - - type: "code" - source: "__NODE_DELETE_QUOTAS_EXAMPLE__" - #================================== - # GET /admin/quotas/{entity_name} - #================================== - get: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: get_quota - summary: Get quota informaton for an entity. - description: Get quota informaton for an entity. - parameters: - - $ref: '#/parameters/entity_name' - responses: - 200: - description: quota informaton for the entity is returned in the body of the response. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - schema: - $ref: '#/definitions/quota_details' - 403: - $ref: '#/responses/forbidden' - 422: - $ref: '#/responses/unprocessable_entity' - 503: - $ref: '#/responses/service_unavailable' - - x-sdk-operations: - request-examples: - curl: - - name: "Example of getting information about a quota using Curl." - example: - - type: "code" - source: "__CURL_GET_QUOTAS_EXAMPLE__" - go: - - name: "Example of getting information about a quota using Go." - example: - - type: "code" - source: "__GOLANG_GET_QUOTAS_EXAMPLE__" - java: - - name: "Example of getting information about a quota using Java." - example: - - type: "code" - source: "__JAVA_GET_QUOTAS_EXAMPLE__" - python: - - name: "Example of getting information about a quota using Python." - example: - - type: "code" - source: "__PYTHON_GET_QUOTAS_EXAMPLE__" - node: - - name: "Example of getting information about a quota using Node." - example: - - type: "code" - source: "__NODE_GET_QUOTAS_EXAMPLE__" - #================================== - # GET /admin/quotas - #================================== - /admin/quotas: - get: - security: - - APIKeyAuth: [] - - TokenAuth: [] - - BasicAuth: [] - operationId: list_quotas - summary: List each entity's quotas information. - description: List each entity's quotas information. - responses: - 200: - description: Returns a list of entity's quotas information. - headers: - X-Global-Transaction-Id: - type: string - description: > - The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. - In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - Strict-Transport-Security: - type: string - default: max-age=31536000; includeSubDomains - description: > - Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - Cache-Control: - type: string - default: no-cache, no-store - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - And the cache should not store anything about the client request or server response. - Pragma: - type: string - default: no-cache - description: > - Forces caches to submit the request to the origin server for validation before releasing a cached copy. - Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - schema: - $ref: '#/definitions/entity_quotas_list' - 403: - $ref: '#/responses/forbidden' - 503: - $ref: '#/responses/service_unavailable' - - x-sdk-operations: - request-examples: - curl: - - name: "Example of listing quotas using Curl." - example: - - type: "code" - source: "__CURL_LIST_QUOTAS_EXAMPLE__" - go: - - name: "Example of listing quotas using Go." - example: - - type: "code" - source: "__GOLANG_LIST_QUOTAS_EXAMPLE__" - java: - - name: "Example of listing quotas using Java." - example: - - type: "code" - source: "__JAVA_LIST_QUOTAS_EXAMPLE__" - python: - - name: "Example of listing quotas using Python." - example: - - type: "code" - source: "__PYTHON_LIST_QUOTAS_EXAMPLE__" - node: - - name: "Example of listing quotas using Node." - example: - - type: "code" - source: "__NODE_LIST_QUOTAS_EXAMPLE__" - -definitions: - empty: - type: object - description: Expected empty response could be {}. - - error: - type: object - properties: - error_code: - type: integer - description: The 3-digits http status code plus 2-digits kafka error code. - message: - type: string - description: The error message. - incident_id: - type: string - description: The incident ID of the error. - - topic_create_request: - type: object - properties: - name: - type: string - description: The name of topic to be created. - partitions: - type: integer - format: int64 - description: The number of partitions. - partition_count: - type: integer - format: int64 - description: The number of partitions, this field takes precedence over 'partitions'. Default value is 1 if not specified. - default: 1 - minimum: 1 - maximum: 1000 - configs: - type: array - description: The config properties to be set for the new topic. - items: - $ref: '#/definitions/config_create' - - quota_create_request: - type: object - properties: - producer_byte_rate: - type: integer - format: int64 - description: The producer byte rate quota value. - example: - 1024 - consumer_byte_rate: - type: integer - format: int64 - description: The consumer byte rate quota value. - example: - 1024 - - quota_update_request: - type: object - properties: - producer_byte_rate: - type: integer - format: int64 - description: The producer byte rate quota value. - example: - 2048 - consumer_byte_rate: - type: integer - format: int64 - description: The consumer byte rate quota value. - example: - 2048 - - config_create: - type: object - properties: - name: - type: string - description: The name of the config property. - value: - type: string - description: The value for a config property. - - config_update: - type: object - properties: - name: - type: string - description: The name of the config property. - value: - type: string - description: The value for a config property. - reset_to_default: - type: boolean - description: When true, the value of the config property is reset to its default value. - - topic_update_request: - type: object - properties: - new_total_partition_count: - type: integer - format: int32 - description: The new partition number to be increased. - configs: - type: array - description: > - The config properties to be updated for the topic. - Valid config keys are 'cleanup.policy', 'retention.ms', 'retention.bytes', 'segment.bytes', 'segment.ms', 'segment.index.bytes'. - items: - $ref: '#/definitions/config_update' - - topic_list: - description: A list of 'topic_detail' is returned. - type: array - items: - $ref: '#/definitions/topic_detail' - - topic_detail: - type: object - properties: - name: - type: string - description: The name of the topic. - partitions: - type: integer - description: The number of partitions. - replicationFactor: - type: integer - description: The number of replication factor. - retentionMs: - type: integer - description: The value of config property 'retention.ms'. - cleanupPolicy: - type: string - description: The value of config property 'cleanup.policy'. - configs: - $ref: '#/definitions/topic_configs' - replicaAssignments: - type: array - description: The replia assignment of the topic. - items: - $ref: '#/definitions/replica_assignment' - - entity_quotas_list: - description: A list of 'entity_quota_detail' is returned. - type: object - properties: - data: - type: array - items: - $ref: '#/definitions/entity_quota_detail' - example: - - entity_name: default - producer_byte_rate: 1024 - consumer_byte_rate: 1024 - - entity_name: iam-ServiceId-38288dac-1f80-46dd-b135-a56153296bcd - producer_byte_rate: 1024 - - entity_name: iam-ServiceId-38288dac-1f80-46dd-b135-e56153296fgh - consumer_byte_rate: 2048 - - entity_name: iam-ServiceId-38288dac-1f80-46dd-b135-f56153296bfa - producer_byte_rate: 2048 - consumer_byte_rate: 1024 - - entity_quota_detail: - type: object - required: - - entity_name - properties: - entity_name: - type: string - description: The name of the entity. - producer_byte_rate: - type: integer - format: int64 - description: The producer byte rate quota value. - consumer_byte_rate: - type: integer - format: int64 - description: The consumer byte rate quota value. - - quota_details: - type: object - properties: - producer_byte_rate: - type: integer - format: int64 - description: The producer byte rate quota value. - example: - 1024 - consumer_byte_rate: - type: integer - format: int64 - description: The consumer byte rate quota value. - example: - 1024 - - topic_configs: - type: object - properties: - cleanup.policy: - type: string - description: The value of config property 'cleanup.policy'. - min.insync.replicas: - type: string - description: The value of config property 'min.insync.replicas' - retention.bytes: - type: string - description: The value of config property 'retention.bytes'. - retention.ms: - type: string - description: The value of config property 'retention.ms' - segment.bytes: - type: string - description: The value of config property 'segment.bytes'. - segment.index.bytes: - type: string - description: The value of config property 'segment.index.bytes'. - segment.ms: - type: string - description: The value of config property 'segment.ms'. - - replica_assignment: - type: object - properties: - id: - type: integer - description: The ID of the partition. - brokers: - type: object - properties: - replicas: - type: array - items: - type: integer - description: The IDs of replicas of the partition. - - topic_selection_pattern: - type: string - description: Mirroring topic selection pattern. - - mirroring_topic_selection: - type: object - description: Mirroring topic selection payload. - properties: - includes: - type: array - items: - $ref: '#/definitions/topic_selection_pattern' - - active_topic: - type: string - description: Active mirroring topic. - - mirroring_active_topics: - type: object - description: Topics that are being actively mirrored. - properties: - active_topics: - type: array - items: - $ref: '#/definitions/active_topic' - -# Descriptions of common parameters -parameters: - topic_filter: - name: topic_filter - in: query - required: false - type: string - description: > - A filter to be applied to the topic names. A simple filter can be specified as - a string with asterisk (`*`) wildcards representing 0 or more characters, e.g. - `topic-name*` will filter all topic names that begin with the string `topic-name` - followed by any character sequence. A more complex filter pattern can be used - by surrounding a regular expression in forward slash (`/`) delimiters, e.g. - `/topic-name.* /`. - - per_page: - name: per_page - in: query - required: false - type: integer - description: The number of topic names to be returns. - - page: - name: page - in: query - required: false - type: integer - description: > - The page number to be returned. The number 1 represents the first page. The default value is 1. - - topic_create: - name: topic_create - in: body - required: true - description: The new topic to be created. - schema: - $ref: '#/definitions/topic_create_request' - - topic_name: - name: topic_name - in: path - type: string - required: true - description: The topic name for the topic to be listed. - - topic_update: - name: topic_update - in: body - required: true - description: The new partition number or the configurations to be updated for the topic. - schema: - $ref: '#/definitions/topic_update_request' - - entity_name: - name: entity_name - in: path - type: string - required: true - description: The entity name of the quota can be `default` or an IAM Service ID that starts with an `iam-ServiceId` prefix. - - quota_create: - name: quota_create - in: body - required: true - description: The new quota to be created. - schema: - $ref: '#/definitions/quota_create_request' - - quota_update: - name: quota_update - in: body - required: true - description: Existing quota to be updated. - schema: - $ref: '#/definitions/quota_update_request' - - mirroring_topic_selection_replacement: - name: mirroring_topic_selection_replacement - in: body - required: true - description: Topic selection patterns for mirroring. - schema: - $ref: '#/definitions/mirroring_topic_selection' - -# Descriptions of common responses -responses: - service_unavailable: - description: Service was unavailable. - schema: - $ref: '#/definitions/error' - - not_found: - description: The requested resource was not found. - schema: - $ref: '#/definitions/error' - - unauthorized: - description: Authentication information was missing or bad. - schema: - $ref: '#/definitions/error' - - forbidden: - description: Not authorized to perform the operation. - schema: - $ref: '#/definitions/error' - - bad_request: - description: The request body was invalid JSON. - schema: - $ref: '#/definitions/error' - - unprocessable_entity: - description: The server was not able to process the request body. - schema: - $ref: '#/definitions/error' - - unsupported_media_type: - description: Unsupported Content-Type provided. - schema: - $ref: '#/definitions/error' \ No newline at end of file diff --git a/adminrest.yaml b/adminrest.yaml index d506226..f30fb10 100644 --- a/adminrest.yaml +++ b/adminrest.yaml @@ -44,8 +44,8 @@ paths: # Topic related paths #====================================================================================# /admin/topics: - post: - tags: + post: + tags: - CreateTopic operationId: CreateTopic summary: Create a new topic. @@ -57,7 +57,7 @@ paths: application/json: schema: $ref: '#/components/schemas/topic_create_request' - responses: + responses: "202": description: The request was accepted. headers: @@ -70,7 +70,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "400": @@ -107,27 +107,27 @@ paths: request-examples: curl: - name: "Example create topic using Curl." - example: + example: - type: "code" source: "__CURL_CREATE_TOPIC_EXAMPLE__" go: - name: "Example create topic using Go." - example: + example: - type: "code" - source: "__GOLANG_CREATE_TOPIC_EXAMPLE__" + source: "__GOLANG_CREATE_TOPIC_EXAMPLE__" java: - name: "Example create topic using Java." - example: + example: - type: "code" - source: "__JAVA_CREATE_TOPIC_EXAMPLE__" + source: "__JAVA_CREATE_TOPIC_EXAMPLE__" python: - name: "Example create topic using Python." - example: + example: - type: "code" - source: "__PYTHON_CREATE_TOPIC_EXAMPLE__" + source: "__PYTHON_CREATE_TOPIC_EXAMPLE__" node: - name: "Example create topic using Node." - example: + example: - type: "code" source: "__NODE_CREATE_TOPIC_EXAMPLE__" get: @@ -137,7 +137,7 @@ paths: parameters: - name: topic_filter in: query - schema: + schema: type: string required: false description: > @@ -150,13 +150,13 @@ paths: - name: per_page in: query required: false - schema: + schema: type: integer description: The number of topic names to be returned. - name: page in: query required: false - schema: + schema: type: integer description: The page number to be returned. The number 1 represents the first page. The default value is 1. responses: @@ -176,7 +176,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' X-Total-Count: @@ -201,29 +201,29 @@ paths: request-examples: curl: - name: "Example lists topics using Curl." - example: + example: - type: "code" source: "__CURL_LIST_TOPIC_EXAMPLE__" go: - name: "Example lists topics using Go." - example: + example: - type: "code" - source: "__GOLANG_LIST_TOPIC_EXAMPLE__" + source: "__GOLANG_LIST_TOPIC_EXAMPLE__" java: - name: "Example lists topics using Java." - example: + example: - type: "code" - source: "__JAVA_LIST_TOPIC_EXAMPLE__" + source: "__JAVA_LIST_TOPIC_EXAMPLE__" python: - name: "Example lists topics using Python." - example: + example: - type: "code" - source: "__PYTHON_LIST_TOPIC_EXAMPLE__" + source: "__PYTHON_LIST_TOPIC_EXAMPLE__" node: - name: "Example lists topics using Node." - example: + example: - type: "code" - source: "__NODE_LIST_TOPIC_EXAMPLE__" + source: "__NODE_LIST_TOPIC_EXAMPLE__" /admin/topics/{topic_name}: get: @@ -232,9 +232,9 @@ paths: description: Get detailed information on a topic. parameters: - name: topic_name - in: path + in: path schema: - type: string + type: string required: true description: The topic name for the topic to be described. responses: @@ -254,7 +254,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -279,27 +279,27 @@ paths: request-examples: curl: - name: "Example get topic details using Curl." - example: + example: - type: "code" source: "__CURL_TOPIC_DETAILS_EXAMPLE__" go: - name: "Example get topic details using Go." - example: + example: - type: "code" - source: "__GOLANG_TOPIC_DETAILS_EXAMPLE__" + source: "__GOLANG_TOPIC_DETAILS_EXAMPLE__" java: - name: "Example get topic details using Java." - example: + example: - type: "code" - source: "__JAVA_TOPIC_DETAILS_EXAMPLE__" + source: "__JAVA_TOPIC_DETAILS_EXAMPLE__" python: - name: "Example get topic details using Python." - example: + example: - type: "code" - source: "__PYTHON_TOPIC_DETAILS_EXAMPLE__" + source: "__PYTHON_TOPIC_DETAILS_EXAMPLE__" node: - name: "Example get topic details using Node." - example: + example: - type: "code" source: "__NODE_TOPIC_DETAILS_EXAMPLE__" @@ -309,9 +309,9 @@ paths: description: Delete a topic. parameters: - name: topic_name - in: path + in: path schema: - type: string + type: string required: true description: The topic name for the topic to be deleted. responses: @@ -327,7 +327,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -358,39 +358,39 @@ paths: request-examples: curl: - name: "Example delete topic using Curl." - example: + example: - type: "code" source: "__CURL_DELETE_TOPIC_EXAMPLE__" go: - name: "Example delete topic using Go." - example: + example: - type: "code" - source: "__GOLANG_DELETE_TOPIC_EXAMPLE__" + source: "__GOLANG_DELETE_TOPIC_EXAMPLE__" java: - name: "Example delete topic using Java." - example: + example: - type: "code" - source: "__JAVA_DELETE_TOPIC_EXAMPLE__" + source: "__JAVA_DELETE_TOPIC_EXAMPLE__" python: - name: "Example delete topic using Python." - example: + example: - type: "code" - source: "__PYTHON_DELETE_TOPIC_EXAMPLE__" + source: "__PYTHON_DELETE_TOPIC_EXAMPLE__" node: - name: "Example delete topic using Node." - example: + example: - type: "code" - source: "__NODE_DELETE_TOPIC_EXAMPLE__" + source: "__NODE_DELETE_TOPIC_EXAMPLE__" patch: operationId: UpdateTopic summary: Increase the number of partitions and/or update one or more topic configuration parameters. - description: Increase the number of partitions and/or update one or more topic configuration parameters. + description: Increase the number of partitions and/or update one or more topic configuration parameters. parameters: - name: topic_name - in: path + in: path schema: - type: string + type: string required: true description: The topic name for the topic to be updated. requestBody: @@ -400,7 +400,7 @@ paths: application/json: schema: $ref: '#/components/schemas/topic_update_request' - responses: + responses: "202": description: The request was accepted. headers: @@ -413,7 +413,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "400": @@ -434,7 +434,7 @@ paths: application/json: schema: $ref: '#/components/schemas/error' - "404": + "404": description: The requested topic was not found. content: application/json: @@ -451,45 +451,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/error' x-sdk-operations: request-examples: curl: - name: "Example update topic using Curl." - example: + example: - type: "code" source: "__CURL_UPDATE_TOPIC_EXAMPLE__" go: - name: "Example update topic using Go." - example: + example: - type: "code" - source: "__GOLANG_UPDATE_TOPIC_EXAMPLE__" + source: "__GOLANG_UPDATE_TOPIC_EXAMPLE__" java: - name: "Example update topic using Java." - example: + example: - type: "code" - source: "__JAVA_UPDATE_TOPIC_EXAMPLE__" + source: "__JAVA_UPDATE_TOPIC_EXAMPLE__" python: - name: "Example update topic using Python." - example: + example: - type: "code" - source: "__PYTHON_UPDATE_TOPIC_EXAMPLE__" + source: "__PYTHON_UPDATE_TOPIC_EXAMPLE__" node: - name: "Example update topic using Node." - example: + example: - type: "code" - source: "__NODE_UPDATE_TOPIC_EXAMPLE__" + source: "__NODE_UPDATE_TOPIC_EXAMPLE__" /admin/topics/{topic_name}/records: - delete: + delete: operationId: DeleteTopicRecords summary: Delete records before the given offset on a topic. description: Delete records before the given offset on a topic. - parameters: + parameters: - name: topic_name - in: path + in: path schema: - type: string + type: string required: true description: The topic name of the records to be deleted. requestBody: @@ -512,7 +512,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "400": @@ -533,7 +533,7 @@ paths: application/json: schema: $ref: '#/components/schemas/error' - "404": + "404": description: The requested topic or partition or offset was not found. content: application/json: @@ -551,7 +551,7 @@ paths: application/json: schema: $ref: '#/components/schemas/error' - + #====================================================================================# # Quotas related paths #====================================================================================# @@ -562,9 +562,9 @@ paths: description: Create a new quota. parameters: - name: entity_name - in: path + in: path schema: - type: string + type: string required: true description: The entity name of the quotas can be `default` or an IAM Service ID that starts with an `iam-ServiceId` prefix. requestBody: @@ -587,7 +587,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "400": @@ -648,15 +648,15 @@ paths: - type: "code" source: "__NODE_CREATE_QUOTAS_EXAMPLE__" - patch: + patch: operationId: update_quota summary: Update a quota. description: Update an entity's quota. parameters: - name: entity_name - in: path + in: path schema: - type: string + type: string required: true description: The entity name of the quotas can be `default` or an IAM Service ID that starts with an `iam-ServiceId` prefix. requestBody: @@ -679,7 +679,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "400": @@ -746,15 +746,15 @@ paths: - type: "code" source: "__NODE_UPDATE_QUOTAS_EXAMPLE__" - delete: + delete: operationId: delete_quota summary: Delete a quota. description: Delete an entity's quota. parameters: - name: entity_name - in: path + in: path schema: - type: string + type: string required: true description: The entity name of the quotas can be `default` or an IAM Service ID that starts with an `iam-ServiceId` prefix. responses: @@ -770,7 +770,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -825,15 +825,15 @@ paths: - type: "code" source: "__NODE_DELETE_QUOTAS_EXAMPLE__" - get: + get: operationId: get_quota summary: Get quota information for an entity. description: Get quota information for an entity. parameters: - name: entity_name - in: path + in: path schema: - type: string + type: string required: true description: The entity name of the quotas can be `default` or an IAM Service ID that starts with an `iam-ServiceId` prefix. responses: @@ -853,7 +853,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -909,7 +909,7 @@ paths: source: "__NODE_GET_QUOTAS_EXAMPLE__" /admin/quotas: - get: + get: operationId: list_quotas summary: List each entity's quota information. description: List each entity's quota information. @@ -930,7 +930,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -978,7 +978,7 @@ paths: example: - type: "code" source: "__NODE_LIST_QUOTAS_EXAMPLE__" - + #================================# # Broker related paths #================================# @@ -1006,10 +1006,10 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' - "401": + "401": description: The client was not authenticated to perform this request. content: application/json: @@ -1021,17 +1021,17 @@ paths: application/json: schema: $ref: '#/components/schemas/error' - + /admin/brokers/{broker_id}: - get: + get: operationId: GetBroker summary: Get detailed information for a single broker. description: Get detailed information for a single broker. parameters: - name: broker_id - in: path + in: path schema: - type: integer + type: integer required: true description: The broker ID of the broker to be described. responses: @@ -1051,7 +1051,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -1072,7 +1072,7 @@ paths: application/json: schema: $ref: '#/components/schemas/error' - + /admin/brokers/{broker_id}/configs: get: operationId: GetBrokerConfig @@ -1080,9 +1080,9 @@ paths: description: Get all configuration parameters for a single broker. parameters: - name: broker_id - in: path + in: path schema: - type: integer + type: integer required: true description: The broker ID of the broker to be described. - name: config_filter @@ -1104,7 +1104,7 @@ paths: required: false description: > When true, all information about the config properties is returned including - the source of the configuration indicating its scope and whether it's dynamic. + the source of the configuration indicating its scope and whether it's dynamic. responses: "200": description: Returns the detailed configuration parameters of the broker. @@ -1122,7 +1122,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -1169,7 +1169,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -1184,12 +1184,12 @@ paths: application/json: schema: $ref: '#/components/schemas/error' - + #============================================= # Consumer groups related paths #============================================= /admin/consumergroups: - get: + get: operationId: ListConsumerGroups summary: Get a list of consumer group IDs. description: Get a list of consumer group IDs. @@ -1209,13 +1209,13 @@ paths: - name: per_page in: query required: false - schema: + schema: type: integer description: The number of consumer groups to be returned. - name: page in: query required: false - schema: + schema: type: integer description: The page number to be returned. The number 1 represents the first page. The default value is 1. responses: @@ -1235,7 +1235,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' X-Total-Count: @@ -1258,11 +1258,11 @@ paths: $ref: '#/components/schemas/error' /admin/consumergroups/{group_id}: - get: + get: operationId: GetConsumerGroup summary: Get detailed information on a consumer group. description: Get detailed information on a consumer group. - parameters: + parameters: - name: group_id in: path required: true @@ -1286,7 +1286,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -1310,17 +1310,17 @@ paths: delete: operationId: DeleteConsumerGroup summary: Delete a consumer group. - description: Delete a consumer group. - parameters: + description: Delete a consumer group. + parameters: - name: group_id in: path required: true schema: type: string - description: The group ID for the consumer group to be deleted. + description: The group ID for the consumer group to be deleted. responses: "202": - description: The request was accepted. + description: The request was accepted. headers: X-Global-Transaction-Id: schema: @@ -1331,7 +1331,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "401": @@ -1362,13 +1362,13 @@ paths: operationId: UpdateConsumerGroup summary: Update the offsets of a consumer group. description: Update the offsets of a consumer group using various modes, eg. latest, earliest, datetime,etc. - parameters: + parameters: - name: group_id in: path required: true schema: type: string - description: The group ID for the consumer group to be updated. + description: The group ID for the consumer group to be updated. requestBody: description: The offsets of the consumer group to be reset. required: true @@ -1379,8 +1379,8 @@ paths: responses: "200": description: > - The result of updating the offsets for the group. When 'execute' is true, - this is the actual state of the group. When 'execute' is false, it is the + The result of updating the offsets for the group. When 'execute' is true, + this is the actual state of the group. When 'execute' is false, it is the projected state as if the operation had been actually performed. content: application/json: @@ -1396,7 +1396,7 @@ paths: Cache-Control: schema: $ref: '#/components/schemas/header_cache_control' - Pragma: + Pragma: schema: $ref: '#/components/schemas/header_pragma' "400": @@ -1423,12 +1423,12 @@ paths: application/json: schema: $ref: '#/components/schemas/error' - + #================================================# # Mirroring related paths #================================================# /admin/mirroring/topic-selection: - get: + get: operationId: GetMirroringTopicSelection summary: Get current topic selection for mirroring. description: Get current topic selection for mirroring. @@ -1465,29 +1465,29 @@ paths: request-examples: curl: - name: "Example get mirroring topic selection using Curl." - example: + example: - type: "code" source: "__CURL_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" go: - name: "Example get mirroring topic selection using Go." - example: + example: - type: "code" - source: "__GOLANG_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" + source: "__GOLANG_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" java: - name: "Example get mirroring topic selection using Java." - example: + example: - type: "code" - source: "__JAVA_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" + source: "__JAVA_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" python: - name: "Example get mirroring topic selection using Python." - example: + example: - type: "code" - source: "__PYTHON_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" + source: "__PYTHON_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" node: - name: "Example get mirroring topic selection using Node." - example: + example: - type: "code" - source: "__NODE_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" + source: "__NODE_GET_MIRRORING_TOPIC_SELECTION_EXAMPLE__" post: operationId: ReplaceMirroringTopicSelection @@ -1545,32 +1545,32 @@ paths: request-examples: curl: - name: "Example replace mirroring topic selection using Curl." - example: + example: - type: "code" source: "__CURL_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" go: - name: "Example replace mirroring topic selection using Go." - example: + example: - type: "code" - source: "__GOLANG_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" + source: "__GOLANG_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" java: - name: "Example replace mirroring topic selection using Java." - example: + example: - type: "code" - source: "__JAVA_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" + source: "__JAVA_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" python: - name: "Example replace mirroring topic selection using Python." - example: + example: - type: "code" - source: "__PYTHON_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" + source: "__PYTHON_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" node: - name: "Example replace mirroring topic selection using Node." - example: + example: - type: "code" - source: "__NODE_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" - + source: "__NODE_REPLACE_MIRRORING_TOPIC_SELECTION_EXAMPLE__" + /admin/mirroring/active-topics: - get: + get: operationId: GetMirroringActiveTopics summary: Get topics that are being actively mirrored. description: Get topics that are being actively mirrored. @@ -1603,30 +1603,48 @@ paths: request-examples: curl: - name: "Example get mirroring active topics using Curl." - example: + example: - type: "code" source: "__CURL_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" go: - name: "Example get mirroring active topics using Go." - example: + example: - type: "code" - source: "__GOLANG_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" + source: "__GOLANG_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" java: - name: "Example get mirroring active topics using Java." - example: + example: - type: "code" - source: "__JAVA_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" + source: "__JAVA_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" python: - name: "Example get mirroring active topics using Python." - example: + example: - type: "code" source: "__PYTHON_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" node: - name: "Example get mirroring active topics using Node." - example: + example: - type: "code" source: "__NODE_GET_MIRRORING_ACTIVE_TOPICS_EXAMPLE__" - +#================================================# +# Status related paths +#================================================# + /admin/status: + get: + operationId: GetStatus + summary: Get the status of the instance. + description: Get the status of the instance. + responses: + "200": + description: Returns the status of the instance. + content: + application/json: + schema: + $ref: '#/components/schemas/instance_status' + headers: + X-Global-Transaction-Id: + schema: + $ref: '#/components/schemas/header_tx_id' components: securitySchemes: BearerAuth: @@ -1638,7 +1656,7 @@ components: type: http scheme: basic description: Deprecated. - APIKeyAuth: + APIKeyAuth: type: apiKey name: X-Auth-Token in: header @@ -1661,20 +1679,20 @@ components: incident_id: type: string description: The incident ID of the error. - + header_tx_id: type: string description: > The transaction ID of the request for debugging purpose. - If the header is set on the request, it will be honored. If not, it will be generated. + If the header is set on the request, it will be honored. If not, it will be generated. In the event of a non-200 error return code, the transaction ID is also returned in the JSON error response as 'incident_id'. - + header_transport_security: - type: string + type: string default: max-age=31536000; includeSubDomains - description: > + description: > Specifies a period of time during which the user agent should only access the server using secure HTTPS connections. - + header_cache_control: type: string default: no-cache, no-store @@ -1688,7 +1706,7 @@ components: description: > Forces caches to submit the request to the origin server for validation before releasing a cached copy. Same as 'Cache-Control: no-cache'. It is used for backwards compatibility with HTTP/1.0. - + header_total_count: type: integer description: The total number of resources. @@ -1701,14 +1719,14 @@ components: previous operations. An example header is Link: ; rel="next", ; rel="first", - ; rel="last" + ; rel="last" topic_create_request: type: object properties: name: type: string - description: The name of topic to be created. + description: The name of topic to be created. partitions: type: integer format: int64 @@ -1728,17 +1746,17 @@ components: properties: name: type: string - description: The name of the config property. + description: The name of the config property. value: type: string - description: The value for a config property. - + description: The value for a config property. + topic_list: description: A list of 'topic_detail' is returned. type: array items: $ref: '#/components/schemas/topic_detail' - + topic_detail: type: object properties: @@ -1747,10 +1765,10 @@ components: description: The name of the topic. partitions: type: integer - description: The number of partitions. + description: The number of partitions. replicationFactor: type: integer - description: The number of replication factor. + description: The number of replication factor. retentionMs: type: integer description: The value of config property 'retention.ms'. @@ -1776,7 +1794,7 @@ components: items: type: integer description: The IDs of replicas of the partition. - + topic_configs: type: object properties: @@ -1811,10 +1829,10 @@ components: properties: name: type: string - description: The name of the config property. + description: The name of the config property. value: type: string - description: The value of a config property. + description: The value of a config property. reset_to_default: type: boolean description: When true, the value of the config property is reset to its default value. @@ -1834,8 +1852,8 @@ components: before_offset: type: integer format: int64 - description: The offset number before which records to be deleted. - + description: The offset number before which records to be deleted. + quota_detail: type: object properties: @@ -1851,7 +1869,7 @@ components: description: The consumer byte rate quota value. example: 1024 - + quota_list: description: A list of 'quota_detail' is returned. type: object @@ -1871,7 +1889,7 @@ components: - entity_name: iam-ServiceId-38288dac-1f80-46dd-b135-f56153296bfa producer_byte_rate: 2048 consumer_byte_rate: 1024 - + entity_quota_detail: type: object required: @@ -1904,7 +1922,7 @@ components: type: integer description: > The port that the broker is listening on and which is configured in the 'advertised.listeners' broker - config property. + config property. rack: type: string description: > @@ -1926,12 +1944,12 @@ components: type: integer description: > The port that the broker is listening on and which is configured in the 'advertised.listeners' broker - config property. + config property. rack: type: string description: > The rack of the broker used in rack aware replication assignment for fault tolerance. It is configure - in the 'broker.rack' broker config property. + in the 'broker.rack' broker config property. configs: type: array items: @@ -1939,14 +1957,14 @@ components: properties: name: type: string - description: The name of the config property. + description: The name of the config property. value: type: string description: The value for a config property. is_sensitive: type: boolean description: When true, the value cannot be displayed and will be returned with a null value. - + cluster: type: object properties: @@ -1960,12 +1978,12 @@ components: description: List of brokers in the cluster. items: $ref: '#/components/schemas/broker_summary' - + group_list: type: array items: type: string - + group_detail: type: object properties: @@ -2011,7 +2029,7 @@ components: partition: type: integer description: The ID of the partition. - + topic_partition_offset: type: object description: The offsets of a topic partition. @@ -2030,26 +2048,26 @@ components: type: integer format: int64 description: End offset of the partition. - + group_reset_request: type: object properties: topic: type: string description: > - The name of the topic to be reset. + The name of the topic to be reset. If missing or blank, the operation applies to all topics read by the consumer group. mode: type: string description: > - Mode of shift operation. + Mode of shift operation. Valid values are 'earliest', 'latest', 'datetime'. value: type: string description: > Value for resetting offsets, based on 'mode=datetime', omit for 'earliest' and 'latest'. execute: - type: boolean + type: boolean description: Whether to execute the operation of resetting the offsets. group_reset_results: @@ -2059,7 +2077,7 @@ components: type: object description: The new offset for one partition of one topic after resetting consumer group's offset. properties: - topic: + topic: type: string partition: type: integer @@ -2075,7 +2093,7 @@ components: items: type: string description: Mirroring topic selection pattern. - + mirroring_active_topics: type: object description: Topics that are being actively mirrored. @@ -2084,4 +2102,18 @@ components: type: array items: type: string - description: Active mirroring topic. \ No newline at end of file + description: Active mirroring topic. + + instance_status: + type: object + description: Information about the status of the instance + properties: + status: + type: string + enum: [available, degraded, offline, unknown] + description: > + The status of the instance: + * `available` - the instance is functioning as expected + * `degraded` - the instance is in a degraded state, some operations may not complete successfully + * `offline` - the instance is offline, all operations attempted against the instance will fail + * `unknown` - the state of the instance is not known at this time diff --git a/build/.travis.settings.xml b/build/.travis.settings.xml index 0124db8..bb4f539 100644 --- a/build/.travis.settings.xml +++ b/build/.travis.settings.xml @@ -4,8 +4,8 @@ ossrh - ${OSSRH_USERNAME} - ${OSSRH_PASSWORD} + ${env.OSSRH_USERNAME} + ${env.OSSRH_PASSWORD} diff --git a/build/generateJavadocIndex.sh b/build/generateJavadocIndex.sh index dfb90a8..19b20f4 100755 --- a/build/generateJavadocIndex.sh +++ b/build/generateJavadocIndex.sh @@ -23,7 +23,7 @@ echo '

Javadoc by release:

diff --git a/build/publishJavadoc.sh b/build/publishJavadoc.sh index 8faf681..54ed321 100755 --- a/build/publishJavadoc.sh +++ b/build/publishJavadoc.sh @@ -7,7 +7,7 @@ # Publish javadocs only for a tagged-release. if [[ -n "${TRAVIS_TAG}" ]]; then - printf "\n>>>>> Publishing javadoc for release build: repo=%s branch=%s build_num=%s job_num=%s\n" ${TRAVIS_REPO_SLUG} ${TRAVIS_BRANCH} ${TRAVIS_BUILD_NUMBER} ${TRAVIS_JOB_NUMBER} + printf "\n>>>>> Publishing javadoc for release build: repo=%s release=%s build_num=%s job_num=%s\n" ${TRAVIS_REPO_SLUG} ${TRAVIS_TAG} ${TRAVIS_BUILD_NUMBER} ${TRAVIS_JOB_NUMBER} printf "\n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n" rm -fr ./gh-pages @@ -18,22 +18,22 @@ if [[ -n "${TRAVIS_TAG}" ]]; then pushd gh-pages # Create a new directory for this branch/tag and copy the javadocs there. - printf "\n>>>>> Copying javadocs to new directory: docs/%s\n" ${TRAVIS_BRANCH} - rm -rf docs/${TRAVIS_BRANCH} - mkdir -p docs/${TRAVIS_BRANCH} - cp -rf ../target/site/apidocs/* docs/${TRAVIS_BRANCH} + printf "\n>>>>> Copying javadocs to new directory: docs/%s\n" ${TRAVIS_TAG} + rm -rf docs/${TRAVIS_TAG} + mkdir -p docs/${TRAVIS_TAG} + cp -rf ../target/site/apidocs/* docs/${TRAVIS_TAG} printf "\n>>>>> Generating gh-pages index.html...\n" ../build/generateJavadocIndex.sh > index.html printf "\n>>>>> Committing new javadoc...\n" git add -f . - git commit -m "docs: latest javadoc for ${TRAVIS_BRANCH} (${TRAVIS_COMMIT})" + git commit -m "docs: latest javadoc for ${TRAVIS_TAG} (${TRAVIS_COMMIT})" git push -f origin gh-pages popd - printf "\n>>>>> Published javadoc for release build: repo=%s branch=%s build_num=%s job_num=%s\n" ${TRAVIS_REPO_SLUG} ${TRAVIS_BRANCH} ${TRAVIS_BUILD_NUMBER} ${TRAVIS_JOB_NUMBER} + printf "\n>>>>> Published javadoc for release build: repo=%s release=%s build_num=%s job_num=%s\n" ${TRAVIS_REPO_SLUG} ${TRAVIS_TAG} ${TRAVIS_BUILD_NUMBER} ${TRAVIS_JOB_NUMBER} else diff --git a/modules/adminrest/pom.xml b/modules/adminrest/pom.xml index 22612db..6b4545b 100644 --- a/modules/adminrest/pom.xml +++ b/modules/adminrest/pom.xml @@ -43,13 +43,8 @@ test - org.powermock - powermock-api-mockito2 - test - - - org.powermock - powermock-module-testng + org.slf4j + slf4j-jdk14 test diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/Adminrest.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/Adminrest.java index 631e833..2d0abd7 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/Adminrest.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/Adminrest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -12,7 +12,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.76.0-ad3e6f96-20230724-172814 + * IBM OpenAPI SDK Code Generator Version: 3.93.0-c40121e6-20240729-182103 */ package com.ibm.cloud.eventstreams_sdk.adminrest.v1; @@ -35,9 +35,11 @@ import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetMirroringActiveTopicsOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetMirroringTopicSelectionOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetQuotaOptions; +import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetStatusOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetTopicOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GroupDetail; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GroupResetResultsItem; +import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.InstanceStatus; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.ListBrokersOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.ListConsumerGroupsOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.ListQuotasOptions; @@ -809,4 +811,35 @@ public ServiceCall getMirroringActiveTopics() { return getMirroringActiveTopics(null); } + /** + * Get the status of the instance. + * + * Get the status of the instance. + * + * @param getStatusOptions the {@link GetStatusOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link InstanceStatus} + */ + public ServiceCall getStatus(GetStatusOptions getStatusOptions) { + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/admin/status")); + Map sdkHeaders = SdkCommon.getSdkHeaders("adminrest", "v1", "getStatus"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get the status of the instance. + * + * Get the status of the instance. + * + * @return a {@link ServiceCall} with a result of type {@link InstanceStatus} + */ + public ServiceCall getStatus() { + return getStatus(null); + } + } diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/AliveOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/AliveOptions.java index 0a4adea..46bb82e 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/AliveOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/AliveOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetail.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetail.java index bdb4817..915783e 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetail.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetail.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.List; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailConfigsItem.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailConfigsItem.java index aca81b1..50df27d 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailConfigsItem.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailConfigsItem.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerSummary.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerSummary.java index 824accb..2c541ce 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerSummary.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerSummary.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/Cluster.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/Cluster.java index dc9e22e..5ab3f3b 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/Cluster.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/Cluster.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.List; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateQuotaOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateQuotaOptions.java index 324a759..4797594 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateQuotaOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateQuotaOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateTopicOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateTopicOptions.java index 40f6ed3..c41e158 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateTopicOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateTopicOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.ArrayList; @@ -64,9 +65,9 @@ public CreateTopicOptions build() { } /** - * Adds an configs to configs. + * Adds a new element to configs. * - * @param configs the new configs + * @param configs the new element to be added * @return the CreateTopicOptions builder */ public Builder addConfigs(TopicCreateRequestConfigsItem configs) { diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteConsumerGroupOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteConsumerGroupOptions.java index 0c02f73..51af7d3 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteConsumerGroupOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteConsumerGroupOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteQuotaOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteQuotaOptions.java index 161939f..584c74a 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteQuotaOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteQuotaOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicOptions.java index 9806a3e..54e8600 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicRecordsOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicRecordsOptions.java index a8205e5..dfd81b2 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicRecordsOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicRecordsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.ArrayList; @@ -67,9 +68,9 @@ public DeleteTopicRecordsOptions build() { } /** - * Adds an recordsToDelete to recordsToDelete. + * Adds a new element to recordsToDelete. * - * @param recordsToDelete the new recordsToDelete + * @param recordsToDelete the new element to be added * @return the DeleteTopicRecordsOptions builder */ public Builder addRecordsToDelete(RecordDeleteRequestRecordsToDeleteItem recordsToDelete) { diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/EntityQuotaDetail.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/EntityQuotaDetail.java index 2ffd59a..e5d0f98 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/EntityQuotaDetail.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/EntityQuotaDetail.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerConfigOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerConfigOptions.java index 672ed95..4308ab6 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerConfigOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerConfigOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerOptions.java index 6e1205b..b86f8a2 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetClusterOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetClusterOptions.java index 20f14e8..d19bb11 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetClusterOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetClusterOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetConsumerGroupOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetConsumerGroupOptions.java index 87a720c..762dadb 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetConsumerGroupOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetConsumerGroupOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringActiveTopicsOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringActiveTopicsOptions.java index 418c191..45cdb04 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringActiveTopicsOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringActiveTopicsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringTopicSelectionOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringTopicSelectionOptions.java index e260a55..3e1d07a 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringTopicSelectionOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringTopicSelectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetQuotaOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetQuotaOptions.java index c80afe7..c7fb23c 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetQuotaOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetQuotaOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetStatusOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetStatusOptions.java new file mode 100644 index 0000000..bce9779 --- /dev/null +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetStatusOptions.java @@ -0,0 +1,29 @@ +/* + * (C) Copyright IBM Corp. 2024. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getStatus options. + */ +public class GetStatusOptions extends GenericModel { + + /** + * Construct a new instance of GetStatusOptions. + */ + public GetStatusOptions() { + } +} + diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetTopicOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetTopicOptions.java index 89d8b70..f8b8d70 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetTopicOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetTopicOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupDetail.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupDetail.java index d8f6be5..c68cea3 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupDetail.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupDetail.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.List; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupResetResultsItem.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupResetResultsItem.java index e971695..3934f3d 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupResetResultsItem.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupResetResultsItem.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/InstanceStatus.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/InstanceStatus.java new file mode 100644 index 0000000..8d9c045 --- /dev/null +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/InstanceStatus.java @@ -0,0 +1,58 @@ +/* + * (C) Copyright IBM Corp. 2024. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Information about the status of the instance. + */ +public class InstanceStatus extends GenericModel { + + /** + * The status of the instance: * `available` - the instance is functioning as expected * `degraded` - the instance is + * in a degraded state, some operations may not complete successfully * `offline` - the instance is offline, all + * operations attempted against the instance will fail * `unknown` - the state of the instance is not known at this + * time. + */ + public interface Status { + /** available. */ + String AVAILABLE = "available"; + /** degraded. */ + String DEGRADED = "degraded"; + /** offline. */ + String OFFLINE = "offline"; + /** unknown. */ + String UNKNOWN = "unknown"; + } + + protected String status; + + protected InstanceStatus() { } + + /** + * Gets the status. + * + * The status of the instance: * `available` - the instance is functioning as expected * `degraded` - the instance is + * in a degraded state, some operations may not complete successfully * `offline` - the instance is offline, all + * operations attempted against the instance will fail * `unknown` - the state of the instance is not known at this + * time. + * + * @return the status + */ + public String getStatus() { + return status; + } +} + diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListBrokersOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListBrokersOptions.java index 7f28315..7f2c755 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListBrokersOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListBrokersOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListConsumerGroupsOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListConsumerGroupsOptions.java index 209dcb0..87ab050 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListConsumerGroupsOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListConsumerGroupsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListQuotasOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListQuotasOptions.java index 954e3be..f8d18a4 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListQuotasOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListQuotasOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListTopicsOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListTopicsOptions.java index 194ca64..69e72a5 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListTopicsOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListTopicsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/Member.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/Member.java index 2b5e289..3f66b56 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/Member.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/Member.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.List; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberAssignmentsItem.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberAssignmentsItem.java index 12a86b5..c7f79e1 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberAssignmentsItem.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberAssignmentsItem.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringActiveTopics.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringActiveTopics.java index 86148d9..eb7f08c 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringActiveTopics.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringActiveTopics.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.List; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringTopicSelection.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringTopicSelection.java index 0af0e94..e8d6d41 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringTopicSelection.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringTopicSelection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.ArrayList; @@ -55,9 +56,9 @@ public MirroringTopicSelection build() { } /** - * Adds an includes to includes. + * Adds a new element to includes. * - * @param includes the new includes + * @param includes the new element to be added * @return the MirroringTopicSelection builder */ public Builder addIncludes(String includes) { diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaDetail.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaDetail.java index da6fee7..ed087da 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaDetail.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaDetail.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaList.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaList.java index 0c15188..df0cf5e 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaList.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaList.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.List; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/RecordDeleteRequestRecordsToDeleteItem.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/RecordDeleteRequestRecordsToDeleteItem.java index da2104a..20ba102 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/RecordDeleteRequestRecordsToDeleteItem.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/RecordDeleteRequestRecordsToDeleteItem.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ReplaceMirroringTopicSelectionOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ReplaceMirroringTopicSelectionOptions.java index 4952f52..c3b3d0c 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ReplaceMirroringTopicSelectionOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ReplaceMirroringTopicSelectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.ArrayList; @@ -55,9 +56,9 @@ public ReplaceMirroringTopicSelectionOptions build() { } /** - * Adds an includes to includes. + * Adds a new element to includes. * - * @param includes the new includes + * @param includes the new element to be added * @return the ReplaceMirroringTopicSelectionOptions builder */ public Builder addIncludes(String includes) { diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicConfigs.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicConfigs.java index 913454d..d4ed280 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicConfigs.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicConfigs.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicCreateRequestConfigsItem.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicCreateRequestConfigsItem.java index e41d06e..fa0209f 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicCreateRequestConfigsItem.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicCreateRequestConfigsItem.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetail.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetail.java index bb7088a..ac13ae6 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetail.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetail.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.List; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItem.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItem.java index f3b2c4a..e5e6e8b 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItem.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItem.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemBrokers.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemBrokers.java index d087ad3..2bda9d7 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemBrokers.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemBrokers.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.List; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicPartitionOffset.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicPartitionOffset.java index a048bf0..9e31f38 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicPartitionOffset.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicPartitionOffset.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicUpdateRequestConfigsItem.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicUpdateRequestConfigsItem.java index e621e2b..01fe4c4 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicUpdateRequestConfigsItem.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicUpdateRequestConfigsItem.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateConsumerGroupOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateConsumerGroupOptions.java index 2756f6b..1421fe1 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateConsumerGroupOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateConsumerGroupOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -163,7 +164,7 @@ public String groupId() { /** * Gets the topic. * - * The name of the topic to be reset. If missing or blank, the operation applies to all topics read by the consumer + * The name of the topic to be reset. If missing or blank, the operation applies to all topics read by the consumer * group. * * @return the topic @@ -175,7 +176,7 @@ public String topic() { /** * Gets the mode. * - * Mode of shift operation. Valid values are 'earliest', 'latest', 'datetime'. + * Mode of shift operation. Valid values are 'earliest', 'latest', 'datetime'. * * @return the mode */ diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateQuotaOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateQuotaOptions.java index 217ae55..bdffcbe 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateQuotaOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateQuotaOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateTopicOptions.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateTopicOptions.java index b362eec..cf7e305 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateTopicOptions.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateTopicOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; import java.util.ArrayList; @@ -70,9 +71,9 @@ public UpdateTopicOptions build() { } /** - * Adds an configs to configs. + * Adds a new element to configs. * - * @param configs the new configs + * @param configs the new element to be added * @return the UpdateTopicOptions builder */ public Builder addConfigs(TopicUpdateRequestConfigsItem configs) { diff --git a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/package-info.java b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/package-info.java index aaf421b..6918379 100644 --- a/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/package-info.java +++ b/modules/adminrest/src/main/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/package-info.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + /** * IBM Event Streams Admin REST API v1. */ diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/AdminrestTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/AdminrestTest.java index 48b27bb..7ed3054 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/AdminrestTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/AdminrestTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.Adminrest; @@ -32,9 +33,11 @@ import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetMirroringActiveTopicsOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetMirroringTopicSelectionOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetQuotaOptions; +import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetStatusOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetTopicOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GroupDetail; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GroupResetResultsItem; +import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.InstanceStatus; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.ListBrokersOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.ListConsumerGroupsOptions; import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.ListQuotasOptions; @@ -1222,6 +1225,48 @@ public void testGetMirroringActiveTopicsWRetries() throws Throwable { testGetMirroringActiveTopicsWOptions(); } + // Test the getStatus operation with a valid options model parameter + @Test + public void testGetStatusWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"status\": \"available\"}"; + String getStatusPath = "/admin/status"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetStatusOptions model + GetStatusOptions getStatusOptionsModel = new GetStatusOptions(); + + // Invoke getStatus() with a valid options model and verify the result + Response response = adminrestService.getStatus(getStatusOptionsModel).execute(); + assertNotNull(response); + InstanceStatus responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getStatusPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the getStatus operation with and without retries enabled + @Test + public void testGetStatusWRetries() throws Throwable { + adminrestService.enableRetries(4, 30); + testGetStatusWOptions(); + + adminrestService.disableRetries(); + testGetStatusWOptions(); + } + // Perform setup needed before each test method @BeforeMethod public void beforeEachTest() { diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/AliveOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/AliveOptionsTest.java index dd087b4..f1cdcd8 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/AliveOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/AliveOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailConfigsItemTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailConfigsItemTest.java index 90b1754..ce6a062 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailConfigsItemTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailConfigsItemTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailTest.java index 4838d86..5cf3a60 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerDetailTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerSummaryTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerSummaryTest.java index 998011e..3cdbb76 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerSummaryTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/BrokerSummaryTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ClusterTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ClusterTest.java index 03b8336..2bfeb72 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ClusterTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ClusterTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateQuotaOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateQuotaOptionsTest.java index af4609f..df09d3d 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateQuotaOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateQuotaOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateTopicOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateTopicOptionsTest.java index 576c763..c3f0db8 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateTopicOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/CreateTopicOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteConsumerGroupOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteConsumerGroupOptionsTest.java index 9d7e022..848626e 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteConsumerGroupOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteConsumerGroupOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteQuotaOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteQuotaOptionsTest.java index e800f2b..e47820b 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteQuotaOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteQuotaOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicOptionsTest.java index d07227f..b48045f 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicRecordsOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicRecordsOptionsTest.java index 3d9b6da..40a9256 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicRecordsOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/DeleteTopicRecordsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/EntityQuotaDetailTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/EntityQuotaDetailTest.java index abc21a6..7c02b19 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/EntityQuotaDetailTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/EntityQuotaDetailTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerConfigOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerConfigOptionsTest.java index 07d69eb..0cd487a 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerConfigOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerConfigOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerOptionsTest.java index 4475957..8c615f0 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetBrokerOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetClusterOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetClusterOptionsTest.java index c2d4459..08be15c 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetClusterOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetClusterOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetConsumerGroupOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetConsumerGroupOptionsTest.java index e6e7adb..8ee89e7 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetConsumerGroupOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetConsumerGroupOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringActiveTopicsOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringActiveTopicsOptionsTest.java index da5be03..5e6facc 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringActiveTopicsOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringActiveTopicsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringTopicSelectionOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringTopicSelectionOptionsTest.java index 9eabf7f..41c7552 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringTopicSelectionOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetMirroringTopicSelectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetQuotaOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetQuotaOptionsTest.java index 65c90db..40a9647 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetQuotaOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetQuotaOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetStatusOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetStatusOptionsTest.java new file mode 100644 index 0000000..2b06f4f --- /dev/null +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetStatusOptionsTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2024. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; + +import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.GetStatusOptions; +import com.ibm.cloud.eventstreams_sdk.adminrest.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetStatusOptions model. + */ +public class GetStatusOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetStatusOptions() throws Throwable { + GetStatusOptions getStatusOptionsModel = new GetStatusOptions(); + assertNotNull(getStatusOptionsModel); + } +} \ No newline at end of file diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetTopicOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetTopicOptionsTest.java index e070b4c..7e5cdb3 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetTopicOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GetTopicOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupDetailTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupDetailTest.java index f8d2822..ed15b2e 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupDetailTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupDetailTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupResetResultsItemTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupResetResultsItemTest.java index a5ed66c..57f6ad6 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupResetResultsItemTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/GroupResetResultsItemTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/InstanceStatusTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/InstanceStatusTest.java new file mode 100644 index 0000000..53a4fbd --- /dev/null +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/InstanceStatusTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2024. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.eventstreams_sdk.adminrest.v1.model; + +import com.ibm.cloud.eventstreams_sdk.adminrest.v1.model.InstanceStatus; +import com.ibm.cloud.eventstreams_sdk.adminrest.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the InstanceStatus model. + */ +public class InstanceStatusTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testInstanceStatus() throws Throwable { + InstanceStatus instanceStatusModel = new InstanceStatus(); + assertNull(instanceStatusModel.getStatus()); + } +} \ No newline at end of file diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListBrokersOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListBrokersOptionsTest.java index 0748126..5983bf1 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListBrokersOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListBrokersOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListConsumerGroupsOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListConsumerGroupsOptionsTest.java index a5067b9..1855644 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListConsumerGroupsOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListConsumerGroupsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListQuotasOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListQuotasOptionsTest.java index e2bce41..33ef126 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListQuotasOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListQuotasOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListTopicsOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListTopicsOptionsTest.java index 7dbe9db..a66071b 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListTopicsOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ListTopicsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberAssignmentsItemTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberAssignmentsItemTest.java index 63bb30a..ffb88bb 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberAssignmentsItemTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberAssignmentsItemTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberTest.java index 171b244..80c81a6 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MemberTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringActiveTopicsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringActiveTopicsTest.java index b4d0cd5..bbef6a1 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringActiveTopicsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringActiveTopicsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringTopicSelectionTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringTopicSelectionTest.java index 753f656..f3b9e08 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringTopicSelectionTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/MirroringTopicSelectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaDetailTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaDetailTest.java index 0786fcd..235fc34 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaDetailTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaDetailTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaListTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaListTest.java index 3df242a..e1f1c1b 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaListTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/QuotaListTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/RecordDeleteRequestRecordsToDeleteItemTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/RecordDeleteRequestRecordsToDeleteItemTest.java index 2bb7268..b952dcd 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/RecordDeleteRequestRecordsToDeleteItemTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/RecordDeleteRequestRecordsToDeleteItemTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ReplaceMirroringTopicSelectionOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ReplaceMirroringTopicSelectionOptionsTest.java index a9d10d8..8f53022 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ReplaceMirroringTopicSelectionOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/ReplaceMirroringTopicSelectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicConfigsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicConfigsTest.java index 003124c..bcfe0be 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicConfigsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicConfigsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicCreateRequestConfigsItemTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicCreateRequestConfigsItemTest.java index 258fce3..131ed27 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicCreateRequestConfigsItemTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicCreateRequestConfigsItemTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemBrokersTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemBrokersTest.java index 4fa68e3..a7d6e30 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemBrokersTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemBrokersTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemTest.java index 0af067b..4620cbd 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailReplicaAssignmentsItemTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailTest.java index e584d05..e8eda74 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicDetailTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicPartitionOffsetTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicPartitionOffsetTest.java index a903360..699bbc5 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicPartitionOffsetTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicPartitionOffsetTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicUpdateRequestConfigsItemTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicUpdateRequestConfigsItemTest.java index 41ef77f..168a838 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicUpdateRequestConfigsItemTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/TopicUpdateRequestConfigsItemTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateConsumerGroupOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateConsumerGroupOptionsTest.java index b43ce62..3ba0e43 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateConsumerGroupOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateConsumerGroupOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateQuotaOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateQuotaOptionsTest.java index f4c083d..902ea18 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateQuotaOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateQuotaOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateTopicOptionsTest.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateTopicOptionsTest.java index 52f99d9..9bfef3c 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateTopicOptionsTest.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/model/UpdateTopicOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/utils/TestUtilities.java b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/utils/TestUtilities.java index 31273ae..9159b99 100644 --- a/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/utils/TestUtilities.java +++ b/modules/adminrest/src/test/java/com/ibm/cloud/eventstreams_sdk/adminrest/v1/utils/TestUtilities.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,8 +10,10 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.adminrest.v1.utils; +import java.util.Base64; import java.util.Map; import java.util.Set; import java.util.List; @@ -115,8 +117,8 @@ public static List creatMockListFileWithMetadata() { return list; } - public static byte[] createMockByteArray(String bytes) { - return bytes.getBytes(); + public static byte[] createMockByteArray(String encodedString) throws Exception { + return Base64.getDecoder().decode(encodedString); } public static Date createMockDate(String date) throws Exception { diff --git a/modules/common/pom.xml b/modules/common/pom.xml index 961ab71..b9a1119 100644 --- a/modules/common/pom.xml +++ b/modules/common/pom.xml @@ -4,14 +4,17 @@ 4.0.0 + eventstreams-sdk com.ibm.cloud 1.3.1 ../.. + common + Event Streams SDK Common Library jar @@ -26,13 +29,8 @@ test - org.powermock - powermock-api-mockito2 - test - - - org.powermock - powermock-module-testng + org.slf4j + slf4j-jdk14 test diff --git a/modules/coverage-reports/bin/pom.xml b/modules/coverage-reports/bin/pom.xml deleted file mode 100644 index efdbd5a..0000000 --- a/modules/coverage-reports/bin/pom.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - eventstreams-sdk - com.ibm.cloud - 99-SNAPSHOT - ../.. - - 4.0.0 - - adminrest-coverage-reports - - Eventstreams SDK Coverage Reports - - - true - true - - - - - adminrest-common - ${project.groupId} - ${project.version} - - - - - - - - - - org.jacoco - jacoco-maven-plugin - - - default-report - prepare-package - - report - - - - report-aggregate - verify - - report-aggregate - - - - - - - diff --git a/modules/coverage-reports/pom.xml b/modules/coverage-reports/pom.xml deleted file mode 100644 index 8c8ba98..0000000 --- a/modules/coverage-reports/pom.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - eventstreams_sdk - com.ibm.cloud - 99-SNAPSHOT - ../.. - - 4.0.0 - - - eventstreams_sdk-coverage-reports - - - Event Streams SDK Coverage Reports - - - - true - true - - - - - - - eventstreams_sdk-common - ${project.groupId} - ${project.version} - - - - - - - - - - org.jacoco - jacoco-maven-plugin - - - default-report - prepare-package - - report - - - - report-aggregate - verify - - report-aggregate - - - - - - - diff --git a/modules/examples/pom.xml b/modules/examples/pom.xml index f7f7216..2cfec3c 100644 --- a/modules/examples/pom.xml +++ b/modules/examples/pom.xml @@ -47,7 +47,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.5.0 + 3.5.1 false diff --git a/modules/schemaregistry/pom.xml b/modules/schemaregistry/pom.xml index 5c318df..c6a0ed3 100644 --- a/modules/schemaregistry/pom.xml +++ b/modules/schemaregistry/pom.xml @@ -43,13 +43,8 @@ test - org.powermock - powermock-api-mockito2 - test - - - org.powermock - powermock-module-testng + org.slf4j + slf4j-jdk14 test diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/Schemaregistry.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/Schemaregistry.java index 44a5669..f3161a9 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/Schemaregistry.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/Schemaregistry.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -12,7 +12,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.76.0-ad3e6f96-20230724-172814 + * IBM OpenAPI SDK Code Generator Version: 3.93.0-c40121e6-20240729-182103 */ package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1; @@ -54,7 +54,7 @@ /** * IBM Event Streams schema registry management. * - * API Version: 1.3.1 + * API Version: 1.4.1 */ public class Schemaregistry extends BaseService { diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/AvroSchema.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/AvroSchema.java index d55be80..7c58fb2 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/AvroSchema.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/AvroSchema.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import java.util.Map; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaOptions.java index ceea9c0..ca049a2 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import java.util.Map; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaRuleOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaRuleOptions.java index 3f0a089..0f9d71f 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaRuleOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaRuleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateVersionOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateVersionOptions.java index bd536ea..f62becc 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateVersionOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateVersionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import java.util.Map; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaOptions.java index e59e5aa..3be74e8 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaRuleOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaRuleOptions.java index 8134c95..e190ce1 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaRuleOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaRuleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteVersionOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteVersionOptions.java index 11e5f70..ebba2f8 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteVersionOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteVersionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetGlobalRuleOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetGlobalRuleOptions.java index 97ca1f5..0335a94 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetGlobalRuleOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetGlobalRuleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetLatestSchemaOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetLatestSchemaOptions.java index dbf365d..84d57bd 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetLatestSchemaOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetLatestSchemaOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetSchemaRuleOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetSchemaRuleOptions.java index 52ffcf9..911d459 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetSchemaRuleOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetSchemaRuleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetVersionOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetVersionOptions.java index 8aaa1bf..4c25dd6 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetVersionOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetVersionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListSchemasOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListSchemasOptions.java index 32380e3..842191e 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListSchemasOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListSchemasOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListVersionsOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListVersionsOptions.java index f0640d3..c232383 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListVersionsOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListVersionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/Rule.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/Rule.java index 898a473..379f145 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/Rule.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/Rule.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SchemaMetadata.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SchemaMetadata.java index 4931b27..1f7f2a4 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SchemaMetadata.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SchemaMetadata.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaStateOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaStateOptions.java index 62609b8..33ffc7a 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaStateOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaStateOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaVersionStateOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaVersionStateOptions.java index 1300661..e144be6 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaVersionStateOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaVersionStateOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateGlobalRuleOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateGlobalRuleOptions.java index f7c9b43..6f2d724 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateGlobalRuleOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateGlobalRuleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaOptions.java index b5abcf6..36b0560 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import java.util.Map; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaRuleOptions.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaRuleOptions.java index 8907e9e..468e763 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaRuleOptions.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaRuleOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/package-info.java b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/package-info.java index 10390e1..1c3a9c1 100644 --- a/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/package-info.java +++ b/modules/schemaregistry/src/main/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/package-info.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + /** * IBM Event Streams Schema Registry v1. */ diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/SchemaregistryTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/SchemaregistryTest.java index 6880f46..c2e4756 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/SchemaregistryTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/SchemaregistryTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1; import com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.Schemaregistry; diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/AvroSchemaTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/AvroSchemaTest.java index ff9e2d2..fdfe87e 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/AvroSchemaTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/AvroSchemaTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaOptionsTest.java index f8a622b..72120fc 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaRuleOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaRuleOptionsTest.java index a91a5e6..350b9d1 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaRuleOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateSchemaRuleOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateVersionOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateVersionOptionsTest.java index a553dab..240398e 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateVersionOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/CreateVersionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaOptionsTest.java index 1693031..abf36da 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaRuleOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaRuleOptionsTest.java index b06d745..ebaaafa 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaRuleOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteSchemaRuleOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteVersionOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteVersionOptionsTest.java index 6037c36..ccfaed5 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteVersionOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/DeleteVersionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetGlobalRuleOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetGlobalRuleOptionsTest.java index ce12a9c..cb17a68 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetGlobalRuleOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetGlobalRuleOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetLatestSchemaOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetLatestSchemaOptionsTest.java index 8947aab..4e9a224 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetLatestSchemaOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetLatestSchemaOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetSchemaRuleOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetSchemaRuleOptionsTest.java index bd465b9..c56079d 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetSchemaRuleOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetSchemaRuleOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetVersionOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetVersionOptionsTest.java index 9f19363..5a593ce 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetVersionOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/GetVersionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListSchemasOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListSchemasOptionsTest.java index cd5e542..b272e44 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListSchemasOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListSchemasOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListVersionsOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListVersionsOptionsTest.java index db2925b..0521d26 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListVersionsOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/ListVersionsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/RuleTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/RuleTest.java index 997b2e3..ae166cd 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/RuleTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/RuleTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SchemaMetadataTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SchemaMetadataTest.java index dd617ac..3b49aea 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SchemaMetadataTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SchemaMetadataTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaStateOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaStateOptionsTest.java index 0e1303f..b62715b 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaStateOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaStateOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaVersionStateOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaVersionStateOptionsTest.java index aca3613..9429a31 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaVersionStateOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/SetSchemaVersionStateOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateGlobalRuleOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateGlobalRuleOptionsTest.java index b1376ad..4e6b12f 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateGlobalRuleOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateGlobalRuleOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaOptionsTest.java index 1c6d148..851329c 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaRuleOptionsTest.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaRuleOptionsTest.java index 9965c89..bd73d80 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaRuleOptionsTest.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/model/UpdateSchemaRuleOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/utils/TestUtilities.java b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/utils/TestUtilities.java index 64277d5..7a5b974 100644 --- a/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/utils/TestUtilities.java +++ b/modules/schemaregistry/src/test/java/com/ibm/cloud/eventstreams_sdk/schemaregistry/v1/utils/TestUtilities.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2023. + * (C) Copyright IBM Corp. 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,8 +10,10 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.eventstreams_sdk.schemaregistry.v1.utils; +import java.util.Base64; import java.util.Map; import java.util.Set; import java.util.List; @@ -115,8 +117,8 @@ public static List creatMockListFileWithMetadata() { return list; } - public static byte[] createMockByteArray(String bytes) { - return bytes.getBytes(); + public static byte[] createMockByteArray(String encodedString) throws Exception { + return Base64.getDecoder().decode(encodedString); } public static Date createMockDate(String date) throws Exception { diff --git a/pom.xml b/pom.xml index 30326f4..2e7494e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,507 +1,562 @@ - - 4.0.0 - - eventstreams-sdk - Event Streams Java SDK - Java Client Library to access the IBM Cloud Event Streams SDK - https://github.com/IBM/__URL_NAME__ - - com.ibm.cloud - 1.3.1 - pom - - - - - jfrog - artifactory - https://na.artifactory.swg-devops.com/artifactory/mhub-maven-local - - - - - - 9.18.4 - - __URL_NAME__ - - 7.8.0 - 4.11.0 - 3.1.2 - 0.8.10 - 3.1.1 - 1.6.13 - 3.1.0 - 3.3.0 - 3.5.0 - 3.3.0 - 3.5.0 - 3.11.0 - 4.0.0-M8 - 3.3.0 - 3.4.5 - 3.1.2 - 3.2.0 - 2.0.9 - 2.0.7 - - - - - - modules/common - - - modules/adminrest - - modules/schemaregistry - - modules/oauth-client - - - modules/examples - - - - - Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - IBM Cloud - - + + 4.0.0 + + + eventstreams-sdk + + + Event Streams Java SDK + + + Java Client Library to access the IBM Cloud Event Streams SDK + + + https://github.com/IBM/__URL_NAME__ + + com.ibm.cloud + 1.3.1 + pom + + + UTF-8 + + + 9.20.1 + + + __URL_NAME__ + + 7.8.0 + 4.12.0 + 3.1.2 + 0.8.12 + 3.1.3 + 1.6.13 + 3.1.0 + 3.3.0 + 3.5.1 + 3.3.0 + 3.6.0 + 4.0.0-M9 + 3.3.0 + 10.12.3 + 3.4.5 + 3.1.2 + 3.2.0 + 2.0.16 + + 3.4.1 + 11 + 3.5.0 + + 3.11.0 + 1.8 + 1.8 + + + + 4.13.2 + + + ibm-cloud-sdks + __URL_NAME__ + https://github.com/IBM/__URL_NAME__ + + + + + modules/common + + + modules/adminrest + + modules/schemaregistry + + + + modules/examples + + + + + Apache License, Version 2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + IBM Cloud + + + scm:git:https://github.com/IBM/__URL_NAME__ scm:git:https://github.com/IBM/__URL_NAME__ https://github.com/IBM/__URL_NAME__/tree/master + Github https://github.com/IBM/__URL_NAME__/issues + Travis-CI https://travis.ibm.com/IBM/__URL_NAME__/ - - - - na-artifactory-ibmcloud-sdks - https://na.artifactory.swg-devops.com:443/artifactory/wcp-ibmcloud-sdks-team-maven-local/ - - - - central - https://repo.maven.apache.org/maven2/ - - - - - - - - com.ibm.cloud - sdk-core - ${sdk-core-version} - - - - - adminrest-common - ${project.groupId} - ${project.version} - - - adminrest-common - ${project.groupId} - ${project.version} - test-jar - tests - test - - - - - org.testng - testng - ${testng-version} - test - - - com.squareup.okhttp3 - okhttp - ${okhttp3-version} - - - com.squareup.okhttp3 - mockwebserver - ${okhttp3-version} - test - - - org.powermock - powermock-api-mockito2 - ${powermock-version} - test - - - org.powermock - powermock-module-testng - ${powermock-version} - test - - - - org.slf4j - slf4j-jdk14 - ${slf4j-version} - - - - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus-staging-plugin-version} - - - org.apache.maven.plugins - maven-gpg-plugin - ${maven-gpg-plugin-version} - - - org.apache.maven.plugins - maven-deploy-plugin - ${maven-deploy-plugin-version} - - - org.apache.maven.plugins - maven-source-plugin - ${maven-source-plugin-version} - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin-version} - - true - - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${maven-compiler-plugin-version} - - 11 - 11 - - - - org.apache.maven.plugins - maven-site-plugin - ${maven-site-plugin-version} - - - org.apache.maven.plugins - maven-checkstyle-plugin - ${maven-checkstyle-plugin-version} - - - verify-style - test - - check - - - - - true - checkstyle.xml - true - - - - org.jacoco - jacoco-maven-plugin - ${jacoco-plugin-version} - - - prepare-agent - - prepare-agent - - - - report - test - - report - - - - - - ${project.build.directory} - - - - - org.apache.maven.plugins - maven-failsafe-plugin - ${maven-failsafe-plugin-version} - - - - integration-test - verify - - - - - ${skipITs} - - - - org.codehaus.mojo - buildnumber-maven-plugin - ${maven-buildnumber-plugin-version} - - - validate - - create - - - - - true - 8 - {0,date,yyyyMMdd-HHmmss} - true - true - false - false - - - - org.apache.maven.plugins - maven-jar-plugin - ${maven-jar-plugin-version} - - - - ${maven.build.timestamp} - - - - Implementation - - ${project.name} - IBM Corporation - ${project.version} - ${buildNumber} - ${scmBranch} - - - - - - - - org.apache.maven.plugins - maven-shade-plugin - ${maven-shade-plugin-version} - - - package - - shade - - - - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - true - public - ${project.name}, version ${project.version} -
IBM Corporation
-
- - - aggregate - - aggregate - - package - - -
- - org.jacoco - jacoco-maven-plugin - - - org.apache.maven.plugins - maven-checkstyle-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - ${surefire-version} + + + + na-artifactory-ibmcloud-sdks + https://na.artifactory.swg-devops.com:443/artifactory/wcp-ibmcloud-sdks-team-maven-local/ + + + + + + + + + + com.ibm.cloud + sdk-core + ${sdk-core-version} + + + + + + adminrest-common + ${project.groupId} + ${project.version} + + + + adminrest-common + ${project.groupId} + ${project.version} + test-jar + tests + test + + + + + org.testng + testng + ${testng-version} + test + + + junit + junit + ${junit-version} + test + + + com.squareup.okhttp3 + okhttp + ${okhttp3-version} + + + com.squareup.okhttp3 + mockwebserver + ${okhttp3-version} + test + + + org.slf4j + slf4j-api + ${slf4j-version} + + + org.slf4j + slf4j-jdk14 + ${slf4j-version} + + + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-version} + + + enforce-versions + + enforce + - ${skip.unit.tests} + + + ${min-maven-version} + Apache Maven ${min-maven-version}+ is required to build this project. + + + ${min-jdk-version} + Java ${min-jdk-version}+ is required to build this project. + + - - - org.apache.maven.plugins - maven-failsafe-plugin - - - org.apache.maven.plugins - maven-jar-plugin - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - - org.codehaus.mojo - buildnumber-maven-plugin - - - + + + + + org.apache.maven.plugins + maven-deploy-plugin + ${maven-deploy-plugin-version} + + + org.sonatype.plugins + nexus-staging-maven-plugin + ${nexus-staging-plugin-version} + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven-gpg-plugin-version} + + + org.apache.maven.plugins + maven-source-plugin + ${maven-source-plugin-version} + + + attach-sources + package + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin-version} + + true + + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin-version} + + ${java-source-version} + ${java-target-version} + + + + org.apache.maven.plugins + maven-site-plugin + ${maven-site-plugin-version} + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven-checkstyle-plugin-version} + + + verify-style + test + + check + + + + + true + checkstyle.xml + true + + + + com.puppycrawl.tools + checkstyle + ${checkstyle-version} + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco-plugin-version} + + + prepare-agent + + prepare-agent + + + + report + test + + report + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${maven-failsafe-plugin-version} + + + + integration-test + verify + + + + + ${skipITs} + + + + org.codehaus.mojo + buildnumber-maven-plugin + ${maven-buildnumber-plugin-version} + + + validate + + create + + + + + true + 8 + yyyyMMdd-HHmmss + true + true + false + false + + + + org.apache.maven.plugins + maven-jar-plugin + ${maven-jar-plugin-version} + + + + ${maven.build.timestamp} + + + + Implementation + + ${project.name} + IBM Corporation + ${project.version} + ${buildNumber} + ${scmBranch} + + + + + + + + org.apache.maven.plugins + maven-shade-plugin + ${maven-shade-plugin-version} + + + package + + shade + + + + +
+ + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + + + org.apache.maven.plugins + maven-javadoc-plugin + + public + ${project.name}, version ${project.version} +
IBM Corporation
+ 8 + false +
+ + + aggregate + + aggregate + + package + + +
+ + org.jacoco + jacoco-maven-plugin + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire-version} + + ${skip.unit.tests} + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + org.apache.maven.plugins + maven-jar-plugin + + + org.apache.maven.plugins + maven-source-plugin + + + org.codehaus.mojo + buildnumber-maven-plugin + +
+
+ + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin-version} + + + org.apache.maven.plugins + maven-project-info-reports-plugin + ${maven-reports-plugin-version} + + + + + + + + + + IBM Cloud DevX SDK Development + devxsdk@us.ibm.com + https://www.ibm.com/ + + + + + + + central + + + + + + + + + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + - + - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin-version} - - - org.apache.maven.plugins - maven-project-info-reports-plugin - ${maven-reports-plugin-version} - - - - + + org.sonatype.plugins + nexus-staging-maven-plugin + true + + ossrh + https://oss.sonatype.org/ + true + true + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + --batch + --pinentry-mode + loopback + + + - - - - - IBM Cloud DevX SDK Development - devxsdk@us.ibm.com - https://www.ibm.com/ - - - - - - - - central - - - - - - - - - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - ossrh - https://oss.sonatype.org/ - true - true - - - - org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - - - --batch - --yes - --no-tty - - - - - - - ${GPG_KEYNAME} - ${GPG_PASSPHRASE} - - - - + + + + ${env.GPG_KEYNAME} + ${env.GPG_PASSPHRASE} + + +
diff --git a/schemaregistry.yaml b/schemaregistry.yaml index 157bb94..fd3c5db 100644 --- a/schemaregistry.yaml +++ b/schemaregistry.yaml @@ -13,7 +13,7 @@ openapi: 3.0.0 info: title: IBM Event Streams Schema Registry description: IBM Event Streams schema registry management - version: 1.3.1 + version: 1.4.1 x-alternate-name: schemaregistry x-codegen-config: improvedNameFormattingV2: true diff --git a/scripts/templates/coverage-report-pom.xml b/scripts/templates/coverage-report-pom.xml deleted file mode 100644 index 2b7d4cb..0000000 --- a/scripts/templates/coverage-report-pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - my-services - com.ibm.cloud - 99-SNAPSHOT - ../.. - - 4.0.0 - - - my-services-coverage-reports - - - My Services Coverage Reports - - - - true - true - - - - - $COVERAGE_REPORT_MODULES - - - - - - org.jacoco - jacoco-maven-plugin - - - default-report - prepare-package - - report - - - - report-aggregate - verify - - report-aggregate - - - - - - - diff --git a/scripts/templates/examples-pom.xml b/scripts/templates/examples-pom.xml deleted file mode 100644 index fdfb279..0000000 --- a/scripts/templates/examples-pom.xml +++ /dev/null @@ -1,63 +0,0 @@ - - 4.0.0 - - - my-services - com.ibm.cloud - 99-SNAPSHOT - ../.. - - - my-services-examples - jar - Code Examples - - - true - - - - - $EXAMPLES_MODULES - - org.slf4j - slf4j-api - - - org.slf4j - slf4j-jdk14 - - - - - - - org.apache.maven.plugins - maven-shade-plugin - - - - org.apache.maven.plugins - maven-jar-plugin - - - - com.ibm.cloud.my_services.example_service.v1.ExampleServiceExamples - - - - - - - - - - IBM Cloud DevX SDK Development - devxsdk@us.ibm.com - https://www.ibm.com/ - - - diff --git a/scripts/templates/module-pom.xml b/scripts/templates/module-pom.xml deleted file mode 100644 index a39b0ba..0000000 --- a/scripts/templates/module-pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - 4.0.0 - - - my-services - com.ibm.cloud - 99-SNAPSHOT - ../.. - - - $ARTIFACT_ID - jar - $NAME - - - - com.ibm.cloud - sdk-core - - - ${project.groupId} - my-services-common - - - ${project.groupId} - my-services-common - test-jar - tests - test - - - org.testng - testng - test - - - com.squareup.okhttp3 - mockwebserver - test - - - org.slf4j - slf4j-jdk14 - test - - - - - - IBM Cloud DevX SDK Development - devxsdk@us.ibm.com - https://www.ibm.com/ - - - diff --git a/scripts/templates/parent-pom.xml b/scripts/templates/parent-pom.xml deleted file mode 100644 index 883b8c6..0000000 --- a/scripts/templates/parent-pom.xml +++ /dev/null @@ -1,556 +0,0 @@ - - 4.0.0 - - - my-services - - - IBM Cloud My Services Java SDK - - - Java Client Library to access the IBM Cloud My Services - - - https://github.ibm.com/CloudEngineering/java-sdk-template - - com.ibm.cloud - 99-SNAPSHOT - pom - - - UTF-8 - - - 9.18.6 - - - my-services-java-sdk - - 7.8.0 - 4.11.0 - 3.1.2 - 0.8.10 - 3.1.1 - 1.6.13 - 3.1.0 - 3.3.0 - 3.5.1 - 3.3.0 - 3.6.0 - 4.0.0-M9 - 3.3.0 - 10.12.3 - 3.4.5 - 3.1.2 - 3.2.0 - 2.0.9 - - 3.4.1 - 11 - 3.5.0 - - 3.11.0 - 1.8 - 1.8 - - - - 4.13.2 - - - - $MODULES - - - - - Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - IBM Cloud - - - - - scm:git:https://github.ibm.com/CloudEngineering/java-sdk-template - scm:git:https://github.ibm.com/CloudEngineering/java-sdk-template - https://github.ibm.com/CloudEngineering/java-sdk-template/tree/main - - - - - Github - https://github.ibm.com/CloudEngineering/java-sdk-template/issues - - - - - Travis-CI - https://travis.ibm.com/CloudEngineering/java-sdk-template/ - - - - - - na-artifactory-ibmcloud-sdks - https://na.artifactory.swg-devops.com:443/artifactory/wcp-ibmcloud-sdks-team-maven-local/ - - - - - - - - - - com.ibm.cloud - sdk-core - ${sdk-core-version} - - - - - - my-services-common - ${project.groupId} - ${project.version} - - - - my-services-common - ${project.groupId} - ${project.version} - test-jar - tests - test - - - - - org.testng - testng - ${testng-version} - test - - - junit - junit - ${junit-version} - test - - - com.squareup.okhttp3 - okhttp - ${okhttp3-version} - - - com.squareup.okhttp3 - mockwebserver - ${okhttp3-version} - test - - - org.slf4j - slf4j-api - ${slf4j-version} - - - org.slf4j - slf4j-jdk14 - ${slf4j-version} - - - - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - ${maven-enforcer-version} - - - enforce-versions - - enforce - - - - - ${min-maven-version} - Apache Maven ${min-maven-version}+ is required to build this project. - - - ${min-jdk-version} - Java ${min-jdk-version}+ is required to build this project. - - - - - - - - org.apache.maven.plugins - maven-deploy-plugin - ${maven-deploy-plugin-version} - - - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus-staging-plugin-version} - - - org.apache.maven.plugins - maven-gpg-plugin - ${maven-gpg-plugin-version} - - - org.apache.maven.plugins - maven-source-plugin - ${maven-source-plugin-version} - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin-version} - - true - 8 - false - - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${maven-compiler-plugin-version} - - ${java-source-version} - ${java-target-version} - - - - org.apache.maven.plugins - maven-site-plugin - ${maven-site-plugin-version} - - - org.apache.maven.plugins - maven-checkstyle-plugin - ${maven-checkstyle-plugin-version} - - - verify-style - test - - check - - - - - true - checkstyle.xml - true - - - - com.puppycrawl.tools - checkstyle - ${checkstyle-version} - - - - - org.jacoco - jacoco-maven-plugin - ${jacoco-plugin-version} - - - prepare-agent - - prepare-agent - - - - report - test - - report - - - - - - ${project.build.directory} - - - - - org.apache.maven.plugins - maven-failsafe-plugin - ${maven-failsafe-plugin-version} - - - - integration-test - verify - - - - - ${skipITs} - - - - org.codehaus.mojo - buildnumber-maven-plugin - ${maven-buildnumber-plugin-version} - - - validate - - create - - - - - true - 8 - yyyyMMdd-HHmmss - true - true - false - false - - - - org.apache.maven.plugins - maven-jar-plugin - ${maven-jar-plugin-version} - - - - ${maven.build.timestamp} - - - - Implementation - - ${project.name} - IBM Corporation - ${project.version} - ${buildNumber} - ${scmBranch} - - - - - - - - org.apache.maven.plugins - maven-shade-plugin - ${maven-shade-plugin-version} - - - package - - shade - - - - - - - - - - org.apache.maven.plugins - maven-deploy-plugin - - true - - - - org.apache.maven.plugins - maven-enforcer-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - - - org.apache.maven.plugins - maven-javadoc-plugin - - public - ${project.name}, version ${project.version} - - - - aggregate - - aggregate - - package - - - - - org.jacoco - jacoco-maven-plugin - - - org.apache.maven.plugins - maven-checkstyle-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - ${surefire-version} - - ${skip.unit.tests} - - - - org.apache.maven.plugins - maven-failsafe-plugin - - - org.apache.maven.plugins - maven-jar-plugin - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - - org.codehaus.mojo - buildnumber-maven-plugin - - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin-version} - - - org.apache.maven.plugins - maven-project-info-reports-plugin - ${maven-reports-plugin-version} - - - - - - - - - - IBM Cloud DevX SDK Development - devxsdk@us.ibm.com - https://www.ibm.com/ - - - - - - - central - - - - - - - - - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - ossrh - https://oss.sonatype.org/ - true - true - - - - org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - - - --batch - --pinentry-mode - loopback - - - - - - - - ${env.GPG_KEYNAME} - ${env.GPG_PASSPHRASE} - - - - diff --git a/service-pom.xml b/service-pom.xml deleted file mode 100644 index 7bb9923..0000000 --- a/service-pom.xml +++ /dev/null @@ -1,62 +0,0 @@ - - 4.0.0 - - - - eventstreams_sdk - com.ibm.cloud - 99-SNAPSHOT - ../.. - - - - MODULE-ARTIFACTID - - - MODULE-DESCRIPTION - jar - - - - com.ibm.cloud - sdk-core - - - - eventstreams_sdk-common - ${project.groupId} - - - eventstreams_sdk-common - ${project.groupId} - test-jar - tests - test - - - org.testng - testng - test - - - com.squareup.okhttp3 - mockwebserver - test - - - org.slf4j - slf4j-jdk14 - test - - - - - - IBM Cloud DevX SDK Development - devxsdk@us.ibm.com - https://www.ibm.com/ - - - -