update go docs and examples

This commit is contained in:
darrell-thobe-sp
2025-05-13 13:16:33 -04:00
parent d89039d220
commit 9e03821762
255 changed files with 3678 additions and 3678 deletions

View File

@@ -168,7 +168,7 @@ import (
func main() {
sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id
data := []byte(`{
provisioningpolicydto := []byte(`{
"name" : "example provisioning policy for inactive identities",
"description" : "this provisioning policy creates access based on an identity going inactive",
"fields" : [ {
@@ -211,7 +211,7 @@ func main() {
var provisioningPolicyDto beta.ProvisioningPolicyDto
if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil {
if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil {
fmt.Println("Error:", err)
return
}
@@ -277,7 +277,7 @@ import (
)
func main() {
data := []byte(`{
source := []byte(`{
"cluster" : {
"name" : "Corporate Cluster",
"id" : "2c9180866166b5b0016167c32ef31a66",
@@ -364,7 +364,7 @@ func main() {
var source beta.Source
if err := json.Unmarshal(data, &source); err != nil {
if err := json.Unmarshal(source, &source); err != nil {
fmt.Println("Error:", err)
return
}
@@ -434,7 +434,7 @@ import (
func main() {
sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID.
data := []byte(`{
schema := []byte(`{
"features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ],
"nativeObjectType" : "User",
"configuration" : {
@@ -471,7 +471,7 @@ func main() {
var schema beta.Schema
if err := json.Unmarshal(data, &schema); err != nil {
if err := json.Unmarshal(schema, &schema); err != nil {
fmt.Println("Error:", err)
return
}
@@ -2189,14 +2189,14 @@ import (
func main() {
sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source
data := []byte(`{
resourceobjectsrequest := []byte(`{
"maxCount" : 100,
"objectType" : "group"
}`) // ResourceObjectsRequest |
var resourceObjectsRequest beta.ResourceObjectsRequest
if err := json.Unmarshal(data, &resourceObjectsRequest); err != nil {
if err := json.Unmarshal(resourceobjectsrequest, &resourceObjectsRequest); err != nil {
fmt.Println("Error:", err)
return
}
@@ -2333,7 +2333,7 @@ import (
func main() {
sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id
data := []byte(`{
correlationconfig := []byte(`{
"attributeAssignments" : [ {
"filterString" : "first_name == \"John\"",
"ignoreCase" : false,
@@ -2357,7 +2357,7 @@ func main() {
var correlationConfig beta.CorrelationConfig
if err := json.Unmarshal(data, &correlationConfig); err != nil {
if err := json.Unmarshal(correlationconfig, &correlationConfig); err != nil {
fmt.Println("Error:", err)
return
}
@@ -2429,7 +2429,7 @@ import (
func main() {
sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id
data := []byte(`{
nativechangedetectionconfig := []byte(`{
"selectedEntitlements" : [ "memberOf", "memberOfSharedMailbox" ],
"operations" : [ "ACCOUNT_UPDATED", "ACCOUNT_DELETED" ],
"selectedNonEntitlementAttributes" : [ "lastName", "phoneNumber", "objectType", "servicePrincipalName" ],
@@ -2440,7 +2440,7 @@ func main() {
var nativeChangeDetectionConfig beta.NativeChangeDetectionConfig
if err := json.Unmarshal(data, &nativeChangeDetectionConfig); err != nil {
if err := json.Unmarshal(nativechangedetectionconfig, &nativeChangeDetectionConfig); err != nil {
fmt.Println("Error:", err)
return
}
@@ -2515,7 +2515,7 @@ import (
func main() {
sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID.
usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs.
data := []byte(`{
provisioningpolicydto := []byte(`{
"name" : "example provisioning policy for inactive identities",
"description" : "this provisioning policy creates access based on an identity going inactive",
"fields" : [ {
@@ -2558,7 +2558,7 @@ func main() {
var provisioningPolicyDto beta.ProvisioningPolicyDto
if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil {
if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil {
fmt.Println("Error:", err)
return
}
@@ -2642,7 +2642,7 @@ import (
func main() {
id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID.
data := []byte(`{
source := []byte(`{
"cluster" : {
"name" : "Corporate Cluster",
"id" : "2c9180866166b5b0016167c32ef31a66",
@@ -2728,7 +2728,7 @@ func main() {
var source beta.Source
if err := json.Unmarshal(data, &source); err != nil {
if err := json.Unmarshal(source, &source); err != nil {
fmt.Println("Error:", err)
return
}
@@ -2800,7 +2800,7 @@ import (
func main() {
id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id
data := []byte(`{
attrsyncsourceconfig := []byte(`{
"attributes" : [ {
"name" : "email",
"displayName" : "Email",
@@ -2821,7 +2821,7 @@ func main() {
var attrSyncSourceConfig beta.AttrSyncSourceConfig
if err := json.Unmarshal(data, &attrSyncSourceConfig); err != nil {
if err := json.Unmarshal(attrsyncsourceconfig, &attrSyncSourceConfig); err != nil {
fmt.Println("Error:", err)
return
}
@@ -2899,7 +2899,7 @@ import (
func main() {
sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID.
schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema ID. # string | The Schema ID.
data := []byte(`{
schema := []byte(`{
"features" : [ "PROVISIONING", "NO_PERMISSIONS_PROVISIONING", "GROUPS_HAVE_MEMBERS" ],
"nativeObjectType" : "User",
"configuration" : {
@@ -2936,7 +2936,7 @@ func main() {
var schema beta.Schema
if err := json.Unmarshal(data, &schema); err != nil {
if err := json.Unmarshal(schema, &schema); err != nil {
fmt.Println("Error:", err)
return
}
@@ -3207,11 +3207,11 @@ import (
func main() {
sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id.
provisioningPolicyDto := fmt.Sprintf(``) // []ProvisioningPolicyDto |
provisioningpolicydto := []byte(``) // []ProvisioningPolicyDto |
var provisioningPolicyDto beta.ProvisioningPolicyDto
if err := json.Unmarshal(data, &provisioningPolicyDto); err != nil {
var provisioningPolicyDto beta.[]ProvisioningPolicyDto
if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil {
fmt.Println("Error:", err)
return
}
@@ -3286,11 +3286,11 @@ import (
func main() {
sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id.
usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs.
jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema.
jsonpatchoperation := []byte(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema.
var jsonPatchOperation beta.JsonPatchOperation
if err := json.Unmarshal(data, &jsonPatchOperation); err != nil {
var jsonPatchOperation beta.[]JsonPatchOperation
if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil {
fmt.Println("Error:", err)
return
}
@@ -3376,11 +3376,11 @@ import (
func main() {
id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID.
jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC).
jsonpatchoperation := []byte(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC).
var jsonPatchOperation beta.JsonPatchOperation
if err := json.Unmarshal(data, &jsonPatchOperation); err != nil {
var jsonPatchOperation beta.[]JsonPatchOperation
if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil {
fmt.Println("Error:", err)
return
}
@@ -3456,7 +3456,7 @@ import (
func main() {
sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id
data := []byte(`{
sourceentitlementrequestconfig := []byte(`{
"accessRequestConfig" : {
"denialCommentRequired" : false,
"approvalSchemes" : [ {
@@ -3472,7 +3472,7 @@ func main() {
var sourceEntitlementRequestConfig beta.SourceEntitlementRequestConfig
if err := json.Unmarshal(data, &sourceEntitlementRequestConfig); err != nil {
if err := json.Unmarshal(sourceentitlementrequestconfig, &sourceEntitlementRequestConfig); err != nil {
fmt.Println("Error:", err)
return
}
@@ -3574,11 +3574,11 @@ import (
func main() {
sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id.
schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id.
jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/displayAttribute, value={new-display-attribute=null}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema.
jsonpatchoperation := []byte(`[{op=replace, path=/displayAttribute, value={new-display-attribute=null}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema.
var jsonPatchOperation beta.JsonPatchOperation
if err := json.Unmarshal(data, &jsonPatchOperation); err != nil {
var jsonPatchOperation beta.[]JsonPatchOperation
if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil {
fmt.Println("Error:", err)
return
}