Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove v2 and cc, as those endpoints will be deprecated when the pyth… #3

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/workflows/build_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,6 @@ jobs:
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.beta.yaml -g python -o . --global-property skipFormModel=false --config sdk-resources/beta-config.yaml --enable-post-process-file
node sdk-resources/postscript.js ./sailpoint/beta

- name: Build V2 SDK
id: buildV2
if: steps.buildBeta.outcome == 'success'
run: |
rm -rf ./sailpoint/v2
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g python -o . --global-property skipFormModel=false --config sdk-resources/v2-config.yaml --enable-post-process-file

- name: Build CC SDK
id: buildCC
if: steps.buildV2.outcome == 'success'
run: |
rm -rf ./sailpoint/cc
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.cc.yaml -g python -o . --global-property skipFormModel=false --config sdk-resources/cc-config.yaml --enable-post-process-file


- name: After SDK Build
if: steps.buildCC.outcome == 'success'
run: |
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/bump_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ jobs:
- name: Update config files with new version
id: updateVersion
run: |
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/cc-config.yaml
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/v2-config.yaml
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/beta-config.yaml
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/v3-config.yaml

Expand Down Expand Up @@ -98,21 +96,6 @@ jobs:
rm -rf ./sailpoint/beta
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.beta.yaml -g python -o . --global-property skipFormModel=false --config sdk-resources/beta-config.yaml --enable-post-process-file
node sdk-resources/postscript.js ./sailpoint/beta

- name: Build V2 SDK
id: buildV2
if: steps.buildBeta.outcome == 'success'
run: |
rm -rf ./sailpoint/v2
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g python -o . --global-property skipFormModel=false --config sdk-resources/v2-config.yaml --enable-post-process-file

- name: Build CC SDK
id: buildCC
if: steps.buildV2.outcome == 'success'
run: |
rm -rf ./sailpoint/cc
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.cc.yaml -g python -o . --global-property skipFormModel=false --config sdk-resources/cc-config.yaml --enable-post-process-file


- name: After SDK Build
id: buildSDK
Expand Down
2,450 changes: 2,356 additions & 94 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sailpoint/beta/docs/ProvisioningConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Specification of a Service Desk integration provisioning configuration.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**universal_manager** | **bool** | Specifies whether this configuration is used to manage provisioning requests for all sources from the org. If true, no managedResourceRefs are allowed. | [optional] [readonly]
**universal_manager** | **bool** | Specifies whether this configuration is used to manage provisioning requests for all sources from the org. If true, no managedResourceRefs are allowed. | [optional] [readonly] [default to False]
**managed_resource_refs** | [**List[ProvisioningConfigManagedResourceRefsInner]**](ProvisioningConfigManagedResourceRefsInner.md) | References to sources for the Service Desk integration template. May only be specified if universalManager is false. | [optional]
**plan_initializer_script** | [**ProvisioningConfigPlanInitializerScript**](ProvisioningConfigPlanInitializerScript.md) | | [optional]
**no_provisioning_requests** | **bool** | Name of an attribute that when true disables the saving of ProvisioningRequest objects whenever plans are sent through this integration. | [optional]
**no_provisioning_requests** | **bool** | Name of an attribute that when true disables the saving of ProvisioningRequest objects whenever plans are sent through this integration. | [optional] [default to False]
**provisioning_request_expiration** | **int** | When saving pending requests is enabled, this defines the number of hours the request is allowed to live before it is considered expired and no longer affects plan compilation. | [optional]

## Example
Expand Down
13 changes: 5 additions & 8 deletions sailpoint/beta/docs/ServiceDeskIntegrationDto.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | System-generated unique ID of the Object | [optional] [readonly]
**name** | **str** | Name of the Object |
**created** | **datetime** | Creation date of the Object | [optional] [readonly]
**modified** | **datetime** | Last modification date of the Object | [optional] [readonly]
**description** | **str** | Description of the Service Desk integration. |
**type** | **str** | Service Desk integration types - ServiceNowSDIM - ServiceNow | [default to 'ServiceNowSDIM']
**name** | **str** | Service Desk integration's name. The name must be unique. |
**description** | **str** | Service Desk integration's description. |
**type** | **str** | Service Desk integration types: - ServiceNowSDIM - ServiceNow | [default to 'ServiceNowSDIM']
**owner_ref** | [**OwnerDto**](OwnerDto.md) | | [optional]
**cluster_ref** | [**SourceClusterDto**](SourceClusterDto.md) | | [optional]
**cluster** | **str** | ID of the cluster for the Service Desk integration (replaced by clusterRef, retained for backward compatibility). | [optional]
**cluster** | **str** | Cluster ID for the Service Desk integration (replaced by clusterRef, retained for backward compatibility). | [optional]
**managed_sources** | **List[str]** | Source IDs for the Service Desk integration (replaced by provisioningConfig.managedSResourceRefs, but retained here for backward compatibility). | [optional]
**provisioning_config** | [**ProvisioningConfig**](ProvisioningConfig.md) | | [optional]
**attributes** | **Dict[str, object]** | Attributes of the Service Desk integration. Validation constraints enforced by the implementation. |
**attributes** | **Dict[str, object]** | Service Desk integration's attributes. Validation constraints enforced by the implementation. |
**before_provisioning_rule** | [**BeforeProvisioningRuleDto**](BeforeProvisioningRuleDto.md) | | [optional]

## Example
Expand Down
10 changes: 6 additions & 4 deletions sailpoint/beta/models/provisioning_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ProvisioningConfig(BaseModel):
Specification of a Service Desk integration provisioning configuration.
""" # noqa: E501
universal_manager: Optional[StrictBool] = Field(
default=None,
default=False,
description=
"Specifies whether this configuration is used to manage provisioning requests for all sources from the org. If true, no managedResourceRefs are allowed.",
alias="universalManager")
Expand All @@ -46,7 +46,7 @@ class ProvisioningConfig(BaseModel):
ProvisioningConfigPlanInitializerScript] = Field(
default=None, alias="planInitializerScript")
no_provisioning_requests: Optional[StrictBool] = Field(
default=None,
default=False,
description=
"Name of an attribute that when true disables the saving of ProvisioningRequest objects whenever plans are sent through this integration.",
alias="noProvisioningRequests")
Expand Down Expand Up @@ -119,7 +119,8 @@ def from_dict(cls, obj: Dict) -> Self:

_obj = cls.model_validate({
"universalManager":
obj.get("universalManager"),
obj.get("universalManager")
if obj.get("universalManager") is not None else False,
"managedResourceRefs": [
ProvisioningConfigManagedResourceRefsInner.from_dict(_item)
for _item in obj.get("managedResourceRefs")
Expand All @@ -129,7 +130,8 @@ def from_dict(cls, obj: Dict) -> Self:
obj.get("planInitializerScript"))
if obj.get("planInitializerScript") is not None else None,
"noProvisioningRequests":
obj.get("noProvisioningRequests"),
obj.get("noProvisioningRequests")
if obj.get("noProvisioningRequests") is not None else False,
"provisioningRequestExpiration":
obj.get("provisioningRequestExpiration")
})
Expand Down
40 changes: 11 additions & 29 deletions sailpoint/beta/models/service_desk_integration_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import re # noqa: F401
import json

from datetime import datetime
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel, StrictStr
from pydantic import Field
Expand All @@ -36,25 +35,21 @@ class ServiceDeskIntegrationDto(BaseModel):
"""

# noqa: E501
id: Optional[StrictStr] = Field(
default=None, description="System-generated unique ID of the Object")
name: StrictStr = Field(description="Name of the Object")
created: Optional[datetime] = Field(
default=None, description="Creation date of the Object")
modified: Optional[datetime] = Field(
default=None, description="Last modification date of the Object")
name: StrictStr = Field(
description="Service Desk integration's name. The name must be unique."
)
description: StrictStr = Field(
description="Description of the Service Desk integration.")
description="Service Desk integration's description.")
type: StrictStr = Field(
description=
"Service Desk integration types - ServiceNowSDIM - ServiceNow ")
"Service Desk integration types: - ServiceNowSDIM - ServiceNow ")
owner_ref: Optional[OwnerDto] = Field(default=None, alias="ownerRef")
cluster_ref: Optional[SourceClusterDto] = Field(default=None,
alias="clusterRef")
cluster: Optional[StrictStr] = Field(
default=None,
description=
"ID of the cluster for the Service Desk integration (replaced by clusterRef, retained for backward compatibility)."
"Cluster ID for the Service Desk integration (replaced by clusterRef, retained for backward compatibility)."
)
managed_sources: Optional[List[StrictStr]] = Field(
default=None,
Expand All @@ -65,14 +60,14 @@ class ServiceDeskIntegrationDto(BaseModel):
default=None, alias="provisioningConfig")
attributes: Dict[str, Any] = Field(
description=
"Attributes of the Service Desk integration. Validation constraints enforced by the implementation."
"Service Desk integration's attributes. Validation constraints enforced by the implementation."
)
before_provisioning_rule: Optional[BeforeProvisioningRuleDto] = Field(
default=None, alias="beforeProvisioningRule")
__properties: ClassVar[List[str]] = [
"id", "name", "created", "modified", "description", "type", "ownerRef",
"clusterRef", "cluster", "managedSources", "provisioningConfig",
"attributes", "beforeProvisioningRule"
"name", "description", "type", "ownerRef", "clusterRef", "cluster",
"managedSources", "provisioningConfig", "attributes",
"beforeProvisioningRule"
]

model_config = {"populate_by_name": True, "validate_assignment": True}
Expand Down Expand Up @@ -100,17 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
* `None` is only added to the output dict for nullable fields that
were set at model initialization. Other fields with value `None`
are ignored.
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
"""
_dict = self.model_dump(
by_alias=True,
exclude={
"id",
"created",
"modified",
},
exclude={},
exclude_none=True,
)
# override the default output from pydantic by calling `to_dict()` of owner_ref
Expand Down Expand Up @@ -139,14 +127,8 @@ def from_dict(cls, obj: Dict) -> Self:
return cls.model_validate(obj)

_obj = cls.model_validate({
"id":
obj.get("id"),
"name":
obj.get("name"),
"created":
obj.get("created"),
"modified":
obj.get("modified"),
"description":
obj.get("description"),
"type":
Expand Down
7 changes: 2 additions & 5 deletions sailpoint/beta/test/test_service_desk_integration_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ def make_instance(self, include_optional) -> ServiceDeskIntegrationDto:
model = ServiceDeskIntegrationDto()
if include_optional:
return ServiceDeskIntegrationDto(
id = 'id12345',
name = 'aName',
created = '2023-01-03T21:16:22.432Z',
modified = '2023-01-03T21:16:22.432Z',
name = 'Service Desk Integration Name',
description = 'A very nice Service Desk integration',
type = 'ServiceNowSDIM',
owner_ref = sailpoint.beta.models.owner_dto.OwnerDto(
Expand Down Expand Up @@ -68,7 +65,7 @@ def make_instance(self, include_optional) -> ServiceDeskIntegrationDto:
)
else:
return ServiceDeskIntegrationDto(
name = 'aName',
name = 'Service Desk Integration Name',
description = 'A very nice Service Desk integration',
type = 'ServiceNowSDIM',
attributes = {property=value, key=value},
Expand Down
1 change: 0 additions & 1 deletion sailpoint/v3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@
from sailpoint.v3.models.selector import Selector
from sailpoint.v3.models.selector_type import SelectorType
from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto
from sailpoint.v3.models.service_desk_integration_dto_all_of_owner_ref import ServiceDeskIntegrationDtoAllOfOwnerRef
from sailpoint.v3.models.service_desk_integration_template_dto import ServiceDeskIntegrationTemplateDto
from sailpoint.v3.models.service_desk_integration_template_type import ServiceDeskIntegrationTemplateType
from sailpoint.v3.models.service_desk_source import ServiceDeskSource
Expand Down
4 changes: 2 additions & 2 deletions sailpoint/v3/docs/ProvisioningConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Specification of a Service Desk integration provisioning configuration.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**universal_manager** | **bool** | Specifies whether this configuration is used to manage provisioning requests for all sources from the org. If true, no managedResourceRefs are allowed. | [optional] [readonly]
**universal_manager** | **bool** | Specifies whether this configuration is used to manage provisioning requests for all sources from the org. If true, no managedResourceRefs are allowed. | [optional] [readonly] [default to False]
**managed_resource_refs** | [**List[ServiceDeskSource]**](ServiceDeskSource.md) | References to sources for the Service Desk integration template. May only be specified if universalManager is false. | [optional]
**plan_initializer_script** | [**ProvisioningConfigPlanInitializerScript**](ProvisioningConfigPlanInitializerScript.md) | | [optional]
**no_provisioning_requests** | **bool** | Name of an attribute that when true disables the saving of ProvisioningRequest objects whenever plans are sent through this integration. | [optional]
**no_provisioning_requests** | **bool** | Name of an attribute that when true disables the saving of ProvisioningRequest objects whenever plans are sent through this integration. | [optional] [default to False]
**provisioning_request_expiration** | **int** | When saving pending requests is enabled, this defines the number of hours the request is allowed to live before it is considered expired and no longer affects plan compilation. | [optional]

## Example
Expand Down
15 changes: 6 additions & 9 deletions sailpoint/v3/docs/ServiceDeskIntegrationDto.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | System-generated unique ID of the Object | [optional] [readonly]
**name** | **str** | Name of the Object |
**created** | **datetime** | Creation date of the Object | [optional] [readonly]
**modified** | **datetime** | Last modification date of the Object | [optional] [readonly]
**description** | **str** | Description of the Service Desk integration |
**type** | **str** | Service Desk integration types - ServiceNowSDIM - ServiceNow | [default to 'ServiceNowSDIM']
**owner_ref** | [**ServiceDeskIntegrationDtoAllOfOwnerRef**](ServiceDeskIntegrationDtoAllOfOwnerRef.md) | | [optional]
**name** | **str** | Service Desk integration's name. The name must be unique. |
**description** | **str** | Service Desk integration's description. |
**type** | **str** | Service Desk integration types: - ServiceNowSDIM - ServiceNow | [default to 'ServiceNowSDIM']
**owner_ref** | [**OwnerDto**](OwnerDto.md) | | [optional]
**cluster_ref** | [**SourceClusterDto**](SourceClusterDto.md) | | [optional]
**cluster** | **str** | ID of the cluster for the Service Desk integration (replaced by clusterRef, retained for backward compatibility). | [optional]
**cluster** | **str** | Cluster ID for the Service Desk integration (replaced by clusterRef, retained for backward compatibility). | [optional]
**managed_sources** | **List[str]** | Source IDs for the Service Desk integration (replaced by provisioningConfig.managedSResourceRefs, but retained here for backward compatibility). | [optional]
**provisioning_config** | [**ProvisioningConfig**](ProvisioningConfig.md) | | [optional]
**attributes** | **Dict[str, object]** | Attributes of the Service Desk integration. Validation constraints enforced by the implementation. |
**attributes** | **Dict[str, object]** | Service Desk integration's attributes. Validation constraints enforced by the implementation. |
**before_provisioning_rule** | [**BeforeProvisioningRuleDto**](BeforeProvisioningRuleDto.md) | | [optional]

## Example
Expand Down
31 changes: 0 additions & 31 deletions sailpoint/v3/docs/ServiceDeskIntegrationDtoAllOfOwnerRef.md

This file was deleted.

1 change: 0 additions & 1 deletion sailpoint/v3/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@
from sailpoint.v3.models.selector import Selector
from sailpoint.v3.models.selector_type import SelectorType
from sailpoint.v3.models.service_desk_integration_dto import ServiceDeskIntegrationDto
from sailpoint.v3.models.service_desk_integration_dto_all_of_owner_ref import ServiceDeskIntegrationDtoAllOfOwnerRef
from sailpoint.v3.models.service_desk_integration_template_dto import ServiceDeskIntegrationTemplateDto
from sailpoint.v3.models.service_desk_integration_template_type import ServiceDeskIntegrationTemplateType
from sailpoint.v3.models.service_desk_source import ServiceDeskSource
Expand Down
Loading
Loading