Skip to content

Commit

Permalink
feat: [CDS-92490]: service override Gitx support (#494)
Browse files Browse the repository at this point in the history
* feat:[CDS-92490]: service override gitx support

* feat:[CDS-92940]: additon of account id
  • Loading branch information
sourabh-awashti authored Mar 4, 2024
1 parent d85b685 commit 6322f79
Show file tree
Hide file tree
Showing 8 changed files with 428 additions and 1 deletion.
1 change: 1 addition & 0 deletions harness/nextgen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ Class | Method | HTTP request | Description
*ServiceOverridesApi* | [**DeleteServiceOverrideV2**](docs/ServiceOverridesApi.md#deleteserviceoverridev2) | **Delete** /serviceOverrides/{identifier} | Delete a Service Override entity
*ServiceOverridesApi* | [**GetServiceOverridesV2**](docs/ServiceOverridesApi.md#getserviceoverridesv2) | **Get** /serviceOverrides/get-with-yaml/{identifier} | Gets Service Overrides by Identifier
*ServiceOverridesApi* | [**UpdateServiceOverrideV2**](docs/ServiceOverridesApi.md#updateserviceoverridev2) | **Put** /serviceOverrides | Update an ServiceOverride Entity
*ServiceOverridesApi* | [**ImportServiceOverrides**](docs/ServiceOverridesApi.md#importserviceoverrides) | **Post** /serviceOverrides/import | import Service Overrides from remote
*SloApi* | [**DeleteSLODataNg**](docs/SloApi.md#deleteslodatang) | **Delete** /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/identifier/{identifier} | delete slo data
*SloApi* | [**GetServiceLevelObjectiveNg**](docs/SloApi.md#getservicelevelobjectiveng) | **Get** /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/identifier/{identifier} | get service level objective data
*SloApi* | [**SaveSLODataNg**](docs/SloApi.md#saveslodatang) | **Post** /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2 | saves slo data
Expand Down
295 changes: 295 additions & 0 deletions harness/nextgen/api_service_overrides.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions harness/nextgen/docs/ResponseServiceOverrideImportResponseDto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ResponseServiceOverrideImportResponseDto

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Status** | **string** | | [optional] [default to null]
**Data** | [***ServiceOverrideImportResponseDto**](ServiceOverrideImportResponseDTO.md) | | [optional] [default to null]
**MetaData** | [***interface{}**](interface{}.md) | | [optional] [default to null]
**CorrelationId** | **string** | | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

14 changes: 14 additions & 0 deletions harness/nextgen/docs/ServiceOverrideImportRequestDto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ServiceOverrideImportRequestDto

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**OrgIdentifier** | **string** | | [optional] [default to null]
**ProjectIdentifier** | **string** | | [optional] [default to null]
**EnvironmentRef** | **string** | | [default to null]
**ServiceRef** | **string** | | [optional] [default to null]
**InfraIdentifier** | **string** | | [optional] [default to null]
**Type_** | **string** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

41 changes: 40 additions & 1 deletion harness/nextgen/docs/ServiceOverridesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Method | HTTP request | Description
[**CreateServiceOverrideV2**](ServiceOverridesApi.md#CreateServiceOverrideV2) | **Post** /serviceOverrides | Create an ServiceOverride Entity
[**DeleteServiceOverrideV2**](ServiceOverridesApi.md#DeleteServiceOverrideV2) | **Delete** /serviceOverrides/{identifier} | Delete a Service Override entity
[**GetServiceOverridesV2**](ServiceOverridesApi.md#GetServiceOverridesV2) | **Get** /serviceOverrides/get-with-yaml/{identifier} | Gets Service Overrides by Identifier
[**UpdateServiceOverrideV2**](ServiceOverridesApi.md#UpdateServiceOverrideV2) | **Put** /serviceOverrides | Update an ServiceOverride Entity
[**UpdateServiceOverrideV2**](ServiceOverridesApi.md#UpdateServiceOverrideV2) | **Put** /serviceOverrides | Update an ServiceOverride Entity[**ImportServiceOverrides**](ServiceOverridesApi.md#ImportServiceOverrides) | **Post** /serviceOverrides/import | import Service Overrides from remote
# **CreateServiceOverrideV2**
> ResponseServiceOverridesResponseDtov2 CreateServiceOverrideV2(ctx, accountIdentifier, optional)
Create an ServiceOverride Entity
Expand Down Expand Up @@ -149,3 +149,42 @@ No authorization required
- **Accept**: application/json, application/yaml

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **ImportServiceOverrides**
> ResponseServiceOverrideImportResponseDto ImportServiceOverrides(ctx, optional)
import Service Overrides from remote

### Required Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**optional** | ***ServiceOverridesApiImportServiceOverridesOpts** | optional parameters | nil if no parameters

### Optional Parameters
Optional parameters are passed through a pointer to a ServiceOverridesApiImportServiceOverridesOpts struct
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**optional.Interface of ServiceOverrideImportRequestDto**](ServiceOverrideImportRequestDto.md)| |
**accountIdentifier** | **optional.**| |
**connectorRef** | **optional.**| |
**repoName** | **optional.**| |
**branch** | **optional.**| |
**filePath** | **optional.**| |
**isForceImport** | **optional.**| | [default to false]
**isHarnessCodeRepo** | **optional.**| |

### Return type

[**ResponseServiceOverrideImportResponseDto**](ResponseServiceOverrideImportResponseDTO.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
- Harness NextGen Software Delivery Platform API Reference
*
- This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of
the breaking change with respect to the generated code stub # Authentication <!-- ReDoc-Inject:
<security-definitions> -->
*
* API version: 3.0
* Contact: contact@harness.io
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package nextgen

type ResponseServiceOverrideImportResponseDto struct {
Status string `json:"status,omitempty"`
Data *ServiceOverrideImportResponseDto `json:"data,omitempty"`
MetaData *interface{} `json:"metaData,omitempty"`
CorrelationId string `json:"correlationId,omitempty"`
}
23 changes: 23 additions & 0 deletions harness/nextgen/model_service_override_import_request_dto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
- Harness NextGen Software Delivery Platform API Reference
*
- This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of
the breaking change with respect to the generated code stub # Authentication <!-- ReDoc-Inject:
<security-definitions> -->
*
* API version: 3.0
* Contact: contact@harness.io
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package nextgen

type ServiceOverrideImportRequestDto struct {
OrgIdentifier string `json:"orgIdentifier,omitempty"`
ProjectIdentifier string `json:"projectIdentifier,omitempty"`
EnvironmentRef string `json:"environmentRef"`
ServiceRef string `json:"serviceRef,omitempty"`
InfraIdentifier string `json:"infraIdentifier,omitempty"`
Type_ string `json:"type"`
}
22 changes: 22 additions & 0 deletions harness/nextgen/model_service_override_import_response_dto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
- Harness NextGen Software Delivery Platform API Reference
*
- This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of
the breaking change with respect to the generated code stub # Authentication <!-- ReDoc-Inject:
<security-definitions> -->
*
* API version: 3.0
* Contact: contact@harness.io
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package nextgen

type ServiceOverrideImportResponseDto struct {
Identifier string `json:"identifier,omitempty"`
EnvironmentRef string `json:"environmentRef"`
ServiceRef string `json:"serviceRef,omitempty"`
InfraIdentifier string `json:"infraIdentifier,omitempty"`
Type_ string `json:"type"`
}

0 comments on commit 6322f79

Please sign in to comment.