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

Add new fields to CredentialType schema, and minor bug fix. #339

Merged
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
4 changes: 4 additions & 0 deletions credentials/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ docs/CredentialIssuerProfile.md
docs/CredentialIssuerProfileApplicationInstance.md
docs/CredentialIssuersApi.md
docs/CredentialType.md
docs/CredentialTypeManagement.md
docs/CredentialTypeMetaData.md
docs/CredentialTypeMetaDataFieldsInner.md
docs/CredentialTypeMultiple.md
Expand All @@ -56,6 +57,7 @@ docs/EnumCredentialIssuanceRuleAutomationMethod.md
docs/EnumCredentialIssuanceRuleNotificationMethod.md
docs/EnumCredentialIssuanceRuleStagedChangeAction.md
docs/EnumCredentialIssuanceRuleStatus.md
docs/EnumCredentialTypeManagementMode.md
docs/EnumCredentialTypeMetaDataFieldsFileSupport.md
docs/EnumCredentialTypeMetaDataFieldsType.md
docs/LinksHATEOAS.md
Expand Down Expand Up @@ -110,6 +112,7 @@ model_credential_issuance_rule_usage_inner_user.go
model_credential_issuer_profile.go
model_credential_issuer_profile_application_instance.go
model_credential_type.go
model_credential_type_management.go
model_credential_type_meta_data.go
model_credential_type_meta_data_fields_inner.go
model_credential_type_multiple.go
Expand All @@ -123,6 +126,7 @@ model_enum_credential_issuance_rule_automation_method.go
model_enum_credential_issuance_rule_notification_method.go
model_enum_credential_issuance_rule_staged_change_action.go
model_enum_credential_issuance_rule_status.go
model_enum_credential_type_management_mode.go
model_enum_credential_type_meta_data_fields_file_support.go
model_enum_credential_type_meta_data_fields_type.go
model_links_hateoas.go
Expand Down
2 changes: 1 addition & 1 deletion credentials/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.2
0.6.3
4 changes: 3 additions & 1 deletion credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The PingOne Platform API covering the PingOne Credentials service
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2023-06-29
- Package version: 0.6.2
- Package version: 0.6.3
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -145,6 +145,7 @@ Class | Method | HTTP request | Description
- [CredentialIssuerProfile](docs/CredentialIssuerProfile.md)
- [CredentialIssuerProfileApplicationInstance](docs/CredentialIssuerProfileApplicationInstance.md)
- [CredentialType](docs/CredentialType.md)
- [CredentialTypeManagement](docs/CredentialTypeManagement.md)
- [CredentialTypeMetaData](docs/CredentialTypeMetaData.md)
- [CredentialTypeMetaDataFieldsInner](docs/CredentialTypeMetaDataFieldsInner.md)
- [CredentialTypeMultiple](docs/CredentialTypeMultiple.md)
Expand All @@ -158,6 +159,7 @@ Class | Method | HTTP request | Description
- [EnumCredentialIssuanceRuleNotificationMethod](docs/EnumCredentialIssuanceRuleNotificationMethod.md)
- [EnumCredentialIssuanceRuleStagedChangeAction](docs/EnumCredentialIssuanceRuleStagedChangeAction.md)
- [EnumCredentialIssuanceRuleStatus](docs/EnumCredentialIssuanceRuleStatus.md)
- [EnumCredentialTypeManagementMode](docs/EnumCredentialTypeManagementMode.md)
- [EnumCredentialTypeMetaDataFieldsFileSupport](docs/EnumCredentialTypeMetaDataFieldsFileSupport.md)
- [EnumCredentialTypeMetaDataFieldsType](docs/EnumCredentialTypeMetaDataFieldsType.md)
- [LinksHATEOAS](docs/LinksHATEOAS.md)
Expand Down
34 changes: 32 additions & 2 deletions credentials/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2539,6 +2539,13 @@ components:
description: The URI of the resource.
format: uri
type: string
EnumCredentialTypeManagementMode:
description: Specifies the mechanism used to manage the lifecycle of the credential
type.
enum:
- AUTOMATED
- MANAGED
type: string
EnumCredentialTypeMetaDataFieldsFileSupport:
description: |
Specifies the type of data in the defined field within a credential type:
Expand Down Expand Up @@ -2675,6 +2682,7 @@ components:
title: title
type: null
value: value
required: true
- default: default
attribute: attribute
id: id
Expand All @@ -2683,6 +2691,7 @@ components:
title: title
type: null
value: value
required: true
textColor: textColor
version: 1
properties:
Expand Down Expand Up @@ -2745,6 +2754,7 @@ components:
title: title
type: null
value: value
required: true
- default: default
attribute: attribute
id: id
Expand All @@ -2753,6 +2763,7 @@ components:
title: title
type: null
value: value
required: true
textColor: textColor
version: 1
_links:
Expand All @@ -2771,9 +2782,11 @@ components:
createdAt: 2000-01-23T04:56:07.000+00:00
onDelete:
revokeIssuedCredentials: true
deletedAt: deletedAt
deletedAt: 2000-01-23T04:56:07.000+00:00
environment:
id: id
management:
mode: null
cardDesignTemplate: cardDesignTemplate
id: id
updatedAt: 2000-01-23T04:56:07.000+00:00
Expand All @@ -2800,6 +2813,8 @@ components:
deletedAt:
description: A string that specifies the date and time the credential type
was deleted. Note - a deletion of a credential type is a "soft delete".
format: date-time
readOnly: true
type: string
environment:
$ref: '#/components/schemas/ObjectEnvironment'
Expand All @@ -2811,8 +2826,11 @@ components:
issuer:
$ref: '#/components/schemas/ObjectIssuer'
issuerName:
description: "v issuer name associated with the card, can differ from title."
description: "A string that specifies the issuer name associated with the\
\ card, can differ from title."
type: string
management:
$ref: '#/components/schemas/CredentialType_management'
metadata:
$ref: '#/components/schemas/CredentialTypeMetaData'
multiple:
Expand Down Expand Up @@ -3817,6 +3835,7 @@ components:
title: title
type: null
value: value
required: true
properties:
attribute:
description: A string that specifies the name of the PingOne Directory attribute
Expand All @@ -3835,6 +3854,10 @@ components:
description: A boolean value that specifies whether the field should be
visible to viewers of the credential.
type: boolean
required:
description: A boolean value that specifies whether the field is required
for the credential.
type: boolean
title:
description: A string that specifies the descriptive text when showing the
field.
Expand All @@ -3851,6 +3874,13 @@ components:
- title
- type
type: object
CredentialType_management:
example:
mode: null
properties:
mode:
$ref: '#/components/schemas/EnumCredentialTypeManagementMode'
type: object
CredentialType_multiple:
description: An object containing directives that enable the issuance of multiple
credentials to a user based on a directory attribute.
Expand Down
2 changes: 1 addition & 1 deletion credentials/configuration.go

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

36 changes: 31 additions & 5 deletions credentials/docs/CredentialType.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ Name | Type | Description | Notes
**CardType** | Pointer to **string** | A string that specifies the descriptor of the credential type. Can be non-identity types such as proof of employment or proof of insurance. | [optional]
**CreatedAt** | Pointer to **time.Time** | A string that specifies the date and time the credential type was created. | [optional] [readonly]
**Description** | Pointer to **string** | A string that specifies the description of the credential type. | [optional]
**DeletedAt** | Pointer to **string** | A string that specifies the date and time the credential type was deleted. Note - a deletion of a credential type is a \"soft delete\". | [optional]
**DeletedAt** | Pointer to **time.Time** | A string that specifies the date and time the credential type was deleted. Note - a deletion of a credential type is a \"soft delete\". | [optional] [readonly]
**Environment** | Pointer to [**ObjectEnvironment**](ObjectEnvironment.md) | | [optional]
**Id** | Pointer to **string** | A string that specifies the identifier (UUID) associated with the credential type. | [optional] [readonly]
**Issuer** | Pointer to [**ObjectIssuer**](ObjectIssuer.md) | | [optional]
**IssuerName** | Pointer to **string** | v issuer name associated with the card, can differ from title. | [optional]
**IssuerName** | Pointer to **string** | A string that specifies the issuer name associated with the card, can differ from title. | [optional]
**Management** | Pointer to [**CredentialTypeManagement**](CredentialTypeManagement.md) | | [optional]
**Metadata** | [**CredentialTypeMetaData**](CredentialTypeMetaData.md) | |
**Multiple** | Pointer to [**CredentialTypeMultiple**](CredentialTypeMultiple.md) | | [optional]
**OnDelete** | Pointer to [**CredentialTypeOnDelete**](CredentialTypeOnDelete.md) | | [optional]
Expand Down Expand Up @@ -161,20 +162,20 @@ HasDescription returns a boolean if a field has been set.

### GetDeletedAt

`func (o *CredentialType) GetDeletedAt() string`
`func (o *CredentialType) GetDeletedAt() time.Time`

GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise.

### GetDeletedAtOk

`func (o *CredentialType) GetDeletedAtOk() (*string, bool)`
`func (o *CredentialType) GetDeletedAtOk() (*time.Time, bool)`

GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDeletedAt

`func (o *CredentialType) SetDeletedAt(v string)`
`func (o *CredentialType) SetDeletedAt(v time.Time)`

SetDeletedAt sets DeletedAt field to given value.

Expand Down Expand Up @@ -284,6 +285,31 @@ SetIssuerName sets IssuerName field to given value.

HasIssuerName returns a boolean if a field has been set.

### GetManagement

`func (o *CredentialType) GetManagement() CredentialTypeManagement`

GetManagement returns the Management field if non-nil, zero value otherwise.

### GetManagementOk

`func (o *CredentialType) GetManagementOk() (*CredentialTypeManagement, bool)`

GetManagementOk returns a tuple with the Management field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetManagement

`func (o *CredentialType) SetManagement(v CredentialTypeManagement)`

SetManagement sets Management field to given value.

### HasManagement

`func (o *CredentialType) HasManagement() bool`

HasManagement returns a boolean if a field has been set.

### GetMetadata

`func (o *CredentialType) GetMetadata() CredentialTypeMetaData`
Expand Down
56 changes: 56 additions & 0 deletions credentials/docs/CredentialTypeManagement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# CredentialTypeManagement

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Mode** | Pointer to [**EnumCredentialTypeManagementMode**](EnumCredentialTypeManagementMode.md) | | [optional]

## Methods

### NewCredentialTypeManagement

`func NewCredentialTypeManagement() *CredentialTypeManagement`

NewCredentialTypeManagement instantiates a new CredentialTypeManagement object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewCredentialTypeManagementWithDefaults

`func NewCredentialTypeManagementWithDefaults() *CredentialTypeManagement`

NewCredentialTypeManagementWithDefaults instantiates a new CredentialTypeManagement object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetMode

`func (o *CredentialTypeManagement) GetMode() EnumCredentialTypeManagementMode`

GetMode returns the Mode field if non-nil, zero value otherwise.

### GetModeOk

`func (o *CredentialTypeManagement) GetModeOk() (*EnumCredentialTypeManagementMode, bool)`

GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetMode

`func (o *CredentialTypeManagement) SetMode(v EnumCredentialTypeManagementMode)`

SetMode sets Mode field to given value.

### HasMode

`func (o *CredentialTypeManagement) HasMode() bool`

HasMode returns a boolean if a field has been set.


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


26 changes: 26 additions & 0 deletions credentials/docs/CredentialTypeMetaDataFieldsInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**Id** | **string** | A string that specifies the identifier of the field. |
**FileSupport** | Pointer to [**EnumCredentialTypeMetaDataFieldsFileSupport**](EnumCredentialTypeMetaDataFieldsFileSupport.md) | | [optional]
**IsVisible** | **bool** | A boolean value that specifies whether the field should be visible to viewers of the credential. |
**Required** | Pointer to **bool** | A boolean value that specifies whether the field is required for the credential. | [optional]
**Title** | **string** | A string that specifies the descriptive text when showing the field. |
**Type** | [**EnumCredentialTypeMetaDataFieldsType**](EnumCredentialTypeMetaDataFieldsType.md) | |
**Value** | Pointer to **string** | A string that specifies the text to appear on the credential for a type of Alphanumeric Text. | [optional]
Expand Down Expand Up @@ -147,6 +148,31 @@ and a boolean to check if the value has been set.
SetIsVisible sets IsVisible field to given value.


### GetRequired

`func (o *CredentialTypeMetaDataFieldsInner) GetRequired() bool`

GetRequired returns the Required field if non-nil, zero value otherwise.

### GetRequiredOk

`func (o *CredentialTypeMetaDataFieldsInner) GetRequiredOk() (*bool, bool)`

GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetRequired

`func (o *CredentialTypeMetaDataFieldsInner) SetRequired(v bool)`

SetRequired sets Required field to given value.

### HasRequired

`func (o *CredentialTypeMetaDataFieldsInner) HasRequired() bool`

HasRequired returns a boolean if a field has been set.

### GetTitle

`func (o *CredentialTypeMetaDataFieldsInner) GetTitle() string`
Expand Down
Loading
Loading