All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
SettingsObjPolicyPropertiesGet | Get /settings/obj/policyProperties | Get Policy Properties object |
SettingsObjPolicyPropertiesPut | Put /settings/obj/policyProperties | Update Policy Properties object |
V1PolicyPropertiesGet | Get /v1/policy-properties | Get Policy Properties object |
V1PolicyPropertiesPut | Put /v1/policy-properties | Update Policy Properties object |
PolicyProperties SettingsObjPolicyPropertiesGet(ctx).Execute()
Get Policy Properties object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PoliciesPreviewApi.SettingsObjPolicyPropertiesGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PoliciesPreviewApi.SettingsObjPolicyPropertiesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SettingsObjPolicyPropertiesGet`: PolicyProperties
fmt.Fprintf(os.Stdout, "Response from `PoliciesPreviewApi.SettingsObjPolicyPropertiesGet`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSettingsObjPolicyPropertiesGetRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PolicyProperties SettingsObjPolicyPropertiesPut(ctx).PolicyProperties(policyProperties).Execute()
Update Policy Properties object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
policyProperties := *openapiclient.NewPolicyProperties() // PolicyProperties | Policy Properties object to update
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PoliciesPreviewApi.SettingsObjPolicyPropertiesPut(context.Background()).PolicyProperties(policyProperties).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PoliciesPreviewApi.SettingsObjPolicyPropertiesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SettingsObjPolicyPropertiesPut`: PolicyProperties
fmt.Fprintf(os.Stdout, "Response from `PoliciesPreviewApi.SettingsObjPolicyPropertiesPut`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSettingsObjPolicyPropertiesPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
policyProperties | PolicyProperties | Policy Properties object to update |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PolicyPropertiesV1 V1PolicyPropertiesGet(ctx).Execute()
Get Policy Properties object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PoliciesPreviewApi.V1PolicyPropertiesGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PoliciesPreviewApi.V1PolicyPropertiesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1PolicyPropertiesGet`: PolicyPropertiesV1
fmt.Fprintf(os.Stdout, "Response from `PoliciesPreviewApi.V1PolicyPropertiesGet`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV1PolicyPropertiesGetRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PolicyPropertiesV1 V1PolicyPropertiesPut(ctx).PolicyPropertiesV1(policyPropertiesV1).Execute()
Update Policy Properties object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
policyPropertiesV1 := *openapiclient.NewPolicyPropertiesV1() // PolicyPropertiesV1 | Policy Properties object to update
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PoliciesPreviewApi.V1PolicyPropertiesPut(context.Background()).PolicyPropertiesV1(policyPropertiesV1).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PoliciesPreviewApi.V1PolicyPropertiesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1PolicyPropertiesPut`: PolicyPropertiesV1
fmt.Fprintf(os.Stdout, "Response from `PoliciesPreviewApi.V1PolicyPropertiesPut`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiV1PolicyPropertiesPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
policyPropertiesV1 | PolicyPropertiesV1 | Policy Properties object to update |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]