Skip to content

Commit

Permalink
7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PureCloud Jenkins committed Apr 16, 2020
1 parent cf9f4b9 commit 24aa2df
Show file tree
Hide file tree
Showing 26 changed files with 265 additions and 131 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Platform API Client SDK - Go

A Go package to interface with the Genesys Cloud Platform API. View the documentation on the [pkg.go.dev](https://pkg.go.dev/github.com/MyPureCloud/platform-client-sdk-go/platformclientv2). Browse the source code on [Github](https://github.com/MyPureCloud/platform-client-sdk-go).

Latest version: 6.0.0 [![GitHub release](https://img.shields.io/github/release/mypurecloud/platform-client-sdk-go.svg)]()
Latest version: 7.0.0 [![GitHub release](https://img.shields.io/github/release/mypurecloud/platform-client-sdk-go.svg)]()

## Get SDK Package

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Platform API Client SDK - Go

A Go package to interface with the Genesys Cloud Platform API. View the documentation on the [pkg.go.dev](https://pkg.go.dev/github.com/MyPureCloud/platform-client-sdk-go/platformclientv2). Browse the source code on [Github](https://github.com/MyPureCloud/platform-client-sdk-go).

Latest version: 6.0.0 [![GitHub release](https://img.shields.io/github/release/mypurecloud/platform-client-sdk-go.svg)]()
Latest version: 7.0.0 [![GitHub release](https://img.shields.io/github/release/mypurecloud/platform-client-sdk-go.svg)]()

## Get SDK Package

Expand Down
8 changes: 4 additions & 4 deletions platformclientv2/adfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ type Adfs struct {
Certificate *string `json:"certificate,omitempty"`


// IssuerURI
IssuerURI *string `json:"issuerURI,omitempty"`


// SsoTargetURI
SsoTargetURI *string `json:"ssoTargetURI,omitempty"`


// IssuerURI
IssuerURI *string `json:"issuerURI,omitempty"`


// Disabled
Disabled *bool `json:"disabled,omitempty"`

Expand Down
8 changes: 4 additions & 4 deletions platformclientv2/analyticsevaluation.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ type Analyticsevaluation struct {
Deleted *bool `json:"deleted,omitempty"`


// OTotalScore
OTotalScore *int64 `json:"oTotalScore,omitempty"`


// OTotalCriticalScore
OTotalCriticalScore *int64 `json:"oTotalCriticalScore,omitempty"`


// OTotalScore
OTotalScore *int64 `json:"oTotalScore,omitempty"`

}

// String returns a JSON representation of the model
Expand Down
2 changes: 1 addition & 1 deletion platformclientv2/authorizationapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ func (a AuthorizationApi) GetAuthorizationDivisionspermittedPagedMe(permission s
//
// Returns which divisions the specified user has the given permission in.
//
//
// This route is deprecated, use authorization/divisionspermitted/paged/me instead.
func (a AuthorizationApi) GetAuthorizationDivisionspermittedPagedSubjectId(subjectId string, permission string, pageNumber int32, pageSize int32) (*Divspermittedentitylisting, *APIResponse, error) {
var httpMethod = "GET"
// create path and map variables
Expand Down
8 changes: 4 additions & 4 deletions platformclientv2/customerinteractioncenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ type Customerinteractioncenter struct {
Certificate *string `json:"certificate,omitempty"`


// IssuerURI
IssuerURI *string `json:"issuerURI,omitempty"`


// SsoTargetURI
SsoTargetURI *string `json:"ssoTargetURI,omitempty"`


// IssuerURI
IssuerURI *string `json:"issuerURI,omitempty"`


// Disabled
Disabled *bool `json:"disabled,omitempty"`

Expand Down
18 changes: 1 addition & 17 deletions platformclientv2/entitylisting.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,7 @@ import (
// Entitylisting
type Entitylisting struct {
// Entities
Entities *[]Datatableimportjob `json:"entities,omitempty"`


// PageSize
PageSize *int32 `json:"pageSize,omitempty"`


// PageNumber
PageNumber *int32 `json:"pageNumber,omitempty"`


// Total
Total *int64 `json:"total,omitempty"`


// PageCount
PageCount *int32 `json:"pageCount,omitempty"`
Entities *[]map[string]interface{} `json:"entities,omitempty"`

}

Expand Down
69 changes: 42 additions & 27 deletions platformclientv2/externalcontactsapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,20 @@ func NewExternalContactsApiWithConfig(config *Configuration) *ExternalContactsAp
// Delete an external contact
//
//
func (a ExternalContactsApi) DeleteExternalcontactsContact(contactId string) (*APIResponse, error) {
func (a ExternalContactsApi) DeleteExternalcontactsContact(contactId string) (*Empty, *APIResponse, error) {
var httpMethod = "DELETE"
// create path and map variables
path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}"
path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1)
defaultReturn := new(Empty)
if true == false {
return nil, errors.New("This message brought to you by the laws of physics being broken")
return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken")
}

// verify the required parameter 'contactId' is set
if &contactId == nil {
//
return nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->DeleteExternalcontactsContact")
return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->DeleteExternalcontactsContact")
}

headerParams := make(map[string]string)
Expand Down Expand Up @@ -86,40 +87,43 @@ func (a ExternalContactsApi) DeleteExternalcontactsContact(contactId string) (*A
if localVarHttpHeaderAccept != "" {
headerParams["Accept"] = localVarHttpHeaderAccept
}

var successPayload *Empty
response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes)
if err != nil {
// Nothing special to do here, but do avoid processing the response
} else if err == nil && response.Error != nil {
err = errors.New(response.ErrorMessage)
} else {
err = json.Unmarshal([]byte(response.RawBody), &successPayload)
}
return response, err
return successPayload, response, err
}

// DeleteExternalcontactsContactNote invokes DELETE /api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}
//
// Delete a note for an external contact
//
//
func (a ExternalContactsApi) DeleteExternalcontactsContactNote(contactId string, noteId string) (*APIResponse, error) {
func (a ExternalContactsApi) DeleteExternalcontactsContactNote(contactId string, noteId string) (*Empty, *APIResponse, error) {
var httpMethod = "DELETE"
// create path and map variables
path := a.Configuration.BasePath + "/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}"
path = strings.Replace(path, "{contactId}", fmt.Sprintf("%v", contactId), -1)
path = strings.Replace(path, "{noteId}", fmt.Sprintf("%v", noteId), -1)
defaultReturn := new(Empty)
if true == false {
return nil, errors.New("This message brought to you by the laws of physics being broken")
return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken")
}

// verify the required parameter 'contactId' is set
if &contactId == nil {
//
return nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->DeleteExternalcontactsContactNote")
return defaultReturn, nil, errors.New("Missing required parameter 'contactId' when calling ExternalContactsApi->DeleteExternalcontactsContactNote")
}
// verify the required parameter 'noteId' is set
if &noteId == nil {
//
return nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->DeleteExternalcontactsContactNote")
return defaultReturn, nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->DeleteExternalcontactsContactNote")
}

headerParams := make(map[string]string)
Expand Down Expand Up @@ -158,34 +162,37 @@ func (a ExternalContactsApi) DeleteExternalcontactsContactNote(contactId string,
if localVarHttpHeaderAccept != "" {
headerParams["Accept"] = localVarHttpHeaderAccept
}

var successPayload *Empty
response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes)
if err != nil {
// Nothing special to do here, but do avoid processing the response
} else if err == nil && response.Error != nil {
err = errors.New(response.ErrorMessage)
} else {
err = json.Unmarshal([]byte(response.RawBody), &successPayload)
}
return response, err
return successPayload, response, err
}

// DeleteExternalcontactsOrganization invokes DELETE /api/v2/externalcontacts/organizations/{externalOrganizationId}
//
// Delete an external organization
//
//
func (a ExternalContactsApi) DeleteExternalcontactsOrganization(externalOrganizationId string) (*APIResponse, error) {
func (a ExternalContactsApi) DeleteExternalcontactsOrganization(externalOrganizationId string) (*Empty, *APIResponse, error) {
var httpMethod = "DELETE"
// create path and map variables
path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}"
path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1)
defaultReturn := new(Empty)
if true == false {
return nil, errors.New("This message brought to you by the laws of physics being broken")
return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken")
}

// verify the required parameter 'externalOrganizationId' is set
if &externalOrganizationId == nil {
//
return nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->DeleteExternalcontactsOrganization")
return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->DeleteExternalcontactsOrganization")
}

headerParams := make(map[string]string)
Expand Down Expand Up @@ -224,40 +231,43 @@ func (a ExternalContactsApi) DeleteExternalcontactsOrganization(externalOrganiza
if localVarHttpHeaderAccept != "" {
headerParams["Accept"] = localVarHttpHeaderAccept
}

var successPayload *Empty
response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes)
if err != nil {
// Nothing special to do here, but do avoid processing the response
} else if err == nil && response.Error != nil {
err = errors.New(response.ErrorMessage)
} else {
err = json.Unmarshal([]byte(response.RawBody), &successPayload)
}
return response, err
return successPayload, response, err
}

// DeleteExternalcontactsOrganizationNote invokes DELETE /api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}
//
// Delete a note for an external organization
//
//
func (a ExternalContactsApi) DeleteExternalcontactsOrganizationNote(externalOrganizationId string, noteId string) (*APIResponse, error) {
func (a ExternalContactsApi) DeleteExternalcontactsOrganizationNote(externalOrganizationId string, noteId string) (*Empty, *APIResponse, error) {
var httpMethod = "DELETE"
// create path and map variables
path := a.Configuration.BasePath + "/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}"
path = strings.Replace(path, "{externalOrganizationId}", fmt.Sprintf("%v", externalOrganizationId), -1)
path = strings.Replace(path, "{noteId}", fmt.Sprintf("%v", noteId), -1)
defaultReturn := new(Empty)
if true == false {
return nil, errors.New("This message brought to you by the laws of physics being broken")
return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken")
}

// verify the required parameter 'externalOrganizationId' is set
if &externalOrganizationId == nil {
//
return nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->DeleteExternalcontactsOrganizationNote")
return defaultReturn, nil, errors.New("Missing required parameter 'externalOrganizationId' when calling ExternalContactsApi->DeleteExternalcontactsOrganizationNote")
}
// verify the required parameter 'noteId' is set
if &noteId == nil {
//
return nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->DeleteExternalcontactsOrganizationNote")
return defaultReturn, nil, errors.New("Missing required parameter 'noteId' when calling ExternalContactsApi->DeleteExternalcontactsOrganizationNote")
}

headerParams := make(map[string]string)
Expand Down Expand Up @@ -296,14 +306,16 @@ func (a ExternalContactsApi) DeleteExternalcontactsOrganizationNote(externalOrga
if localVarHttpHeaderAccept != "" {
headerParams["Accept"] = localVarHttpHeaderAccept
}

var successPayload *Empty
response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes)
if err != nil {
// Nothing special to do here, but do avoid processing the response
} else if err == nil && response.Error != nil {
err = errors.New(response.ErrorMessage)
} else {
err = json.Unmarshal([]byte(response.RawBody), &successPayload)
}
return response, err
return successPayload, response, err
}

// DeleteExternalcontactsOrganizationTrustor invokes DELETE /api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor
Expand Down Expand Up @@ -377,19 +389,20 @@ func (a ExternalContactsApi) DeleteExternalcontactsOrganizationTrustor(externalO
// Delete a relationship
//
//
func (a ExternalContactsApi) DeleteExternalcontactsRelationship(relationshipId string) (*APIResponse, error) {
func (a ExternalContactsApi) DeleteExternalcontactsRelationship(relationshipId string) (*Empty, *APIResponse, error) {
var httpMethod = "DELETE"
// create path and map variables
path := a.Configuration.BasePath + "/api/v2/externalcontacts/relationships/{relationshipId}"
path = strings.Replace(path, "{relationshipId}", fmt.Sprintf("%v", relationshipId), -1)
defaultReturn := new(Empty)
if true == false {
return nil, errors.New("This message brought to you by the laws of physics being broken")
return defaultReturn, nil, errors.New("This message brought to you by the laws of physics being broken")
}

// verify the required parameter 'relationshipId' is set
if &relationshipId == nil {
//
return nil, errors.New("Missing required parameter 'relationshipId' when calling ExternalContactsApi->DeleteExternalcontactsRelationship")
return defaultReturn, nil, errors.New("Missing required parameter 'relationshipId' when calling ExternalContactsApi->DeleteExternalcontactsRelationship")
}

headerParams := make(map[string]string)
Expand Down Expand Up @@ -428,14 +441,16 @@ func (a ExternalContactsApi) DeleteExternalcontactsRelationship(relationshipId s
if localVarHttpHeaderAccept != "" {
headerParams["Accept"] = localVarHttpHeaderAccept
}

var successPayload *Empty
response, err := a.Configuration.APIClient.CallAPI(path, httpMethod, postBody, headerParams, queryParams, formParams, postFileName, fileBytes)
if err != nil {
// Nothing special to do here, but do avoid processing the response
} else if err == nil && response.Error != nil {
err = errors.New(response.ErrorMessage)
} else {
err = json.Unmarshal([]byte(response.RawBody), &successPayload)
}
return response, err
return successPayload, response, err
}

// GetExternalcontactsContact invokes GET /api/v2/externalcontacts/contacts/{contactId}
Expand Down
8 changes: 4 additions & 4 deletions platformclientv2/gsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ type Gsuite struct {
Certificate *string `json:"certificate,omitempty"`


// IssuerURI
IssuerURI *string `json:"issuerURI,omitempty"`


// SsoTargetURI
SsoTargetURI *string `json:"ssoTargetURI,omitempty"`


// IssuerURI
IssuerURI *string `json:"issuerURI,omitempty"`


// Disabled
Disabled *bool `json:"disabled,omitempty"`

Expand Down
8 changes: 4 additions & 4 deletions platformclientv2/identitynow.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ type Identitynow struct {
Certificate *string `json:"certificate,omitempty"`


// IssuerURI
IssuerURI *string `json:"issuerURI,omitempty"`


// SsoTargetURI
SsoTargetURI *string `json:"ssoTargetURI,omitempty"`


// IssuerURI
IssuerURI *string `json:"issuerURI,omitempty"`


// Disabled
Disabled *bool `json:"disabled,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion platformclientv2/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Library struct {
DateCreated *time.Time `json:"dateCreated,omitempty"`


// ResponseType - The response type for the library. If set, only response's of this type may be added to this library.
// ResponseType - This value is deprecated. Responses representing message templates may be added to any library.
ResponseType *string `json:"responseType,omitempty"`


Expand Down
Loading

0 comments on commit 24aa2df

Please sign in to comment.