Skip to content

Latest commit

 

History

History
607 lines (423 loc) · 32.8 KB

ApplicationFoldersAPIsDAAS.md

File metadata and controls

607 lines (423 loc) · 32.8 KB

\ApplicationFoldersAPIsDAAS

All URIs are relative to http://localhost

Method HTTP request Description
ApplicationFoldersCheckApplicationFolderPathExists Head /ApplicationFolders/{path} Check for the existence of an application folder by path.
ApplicationFoldersCreateApplicationFolder Post /ApplicationFolders Create an application folder
ApplicationFoldersDeleteApplicationFolder Delete /ApplicationFolders/{pathOrId} Delete an application folder.
ApplicationFoldersGetApplicationFolder Get /ApplicationFolders/{pathOrId} Get details about a single application folder.
ApplicationFoldersGetApplicationFolderApplications Get /ApplicationFolders/{pathOrId}/Applications Get the applications in an application folder.
ApplicationFoldersGetApplicationFolders Get /ApplicationFolders Get application folders.
ApplicationFoldersUpdateApplicationFolder Patch /ApplicationFolders/{pathOrId} Update an application folder.

ApplicationFoldersCheckApplicationFolderPathExists

ApplicationFoldersCheckApplicationFolderPathExists(ctx, path).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Execute()

Check for the existence of an application folder by path.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/citrix/citrix-daas-rest-go/citrixorchestration"
)

func main() {
    citrixCustomerId := "CitrixOnPremises" // string | Citrix Customer ID. Default is 'CitrixOnPremises'
    citrixInstanceId := "citrixInstanceId_example" // string | Citrix Instance (Site) ID.
    path := "path_example" // string | Path of the application folder.
    userAgent := "Mozilla/5.0" // string | User Agent type of the request. (optional)
    authorization := "authorization_example" // string | Citrix authorization header: CWSAuth Bearer={token} (optional)
    citrixTransactionId := "citrixTransactionId_example" // string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. (optional)
    accept := "application/json" // string | Must accept application/json. (optional)
    citrixLocale := "en-US" // string | Locale of the request. (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    r, err := apiClient.ApplicationFoldersAPIsDAAS.ApplicationFoldersCheckApplicationFolderPathExists(context.Background(), path).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApplicationFoldersAPIsDAAS.ApplicationFoldersCheckApplicationFolderPathExists``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
path string Path of the application folder.

Other Parameters

Other parameters are passed through a pointer to a apiApplicationFoldersCheckApplicationFolderPathExistsRequest struct via the builder pattern

Name Type Description Notes
citrixCustomerId string Citrix Customer ID. Default is 'CitrixOnPremises'
citrixInstanceId string Citrix Instance (Site) ID.

userAgent | string | User Agent type of the request. | authorization | string | Citrix authorization header: CWSAuth Bearer={token} | citrixTransactionId | string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. | accept | string | Must accept application/json. | citrixLocale | string | Locale of the request. |

Return type

(empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApplicationFoldersCreateApplicationFolder

ApplicationFolderResponseModel ApplicationFoldersCreateApplicationFolder(ctx).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).CreateApplicationFolderRequestModel(createApplicationFolderRequestModel).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Async(async).Execute()

Create an application folder

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/citrix/citrix-daas-rest-go/citrixorchestration"
)

func main() {
    citrixCustomerId := "CitrixOnPremises" // string | Citrix Customer ID. Default is 'CitrixOnPremises'
    citrixInstanceId := "citrixInstanceId_example" // string | Citrix Instance (Site) ID.
    createApplicationFolderRequestModel := *openapiclient.NewCreateApplicationFolderRequestModel() // CreateApplicationFolderRequestModel | Details of the application folder to create.
    userAgent := "Mozilla/5.0" // string | User Agent type of the request. (optional)
    authorization := "authorization_example" // string | Citrix authorization header: CWSAuth Bearer={token} (optional)
    citrixTransactionId := "citrixTransactionId_example" // string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. (optional)
    accept := "application/json" // string | Must accept application/json. (optional)
    citrixLocale := "en-US" // string | Locale of the request. (optional)
    async := true // bool | If `true`, the application folder will be created as a background task. The task will have JobType \"JobType.CreateApplicationFolder\". When the task is complete it will redirect to \"GetApplicationFolder(string)\" The job Parameters will contain properties:  * _Name_ - Name of the folder being created. * _Path_ - Path to the folder being created. (optional) (default to false)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApplicationFoldersAPIsDAAS.ApplicationFoldersCreateApplicationFolder(context.Background()).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).CreateApplicationFolderRequestModel(createApplicationFolderRequestModel).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Async(async).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApplicationFoldersAPIsDAAS.ApplicationFoldersCreateApplicationFolder``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApplicationFoldersCreateApplicationFolder`: ApplicationFolderResponseModel
    fmt.Fprintf(os.Stdout, "Response from `ApplicationFoldersAPIsDAAS.ApplicationFoldersCreateApplicationFolder`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiApplicationFoldersCreateApplicationFolderRequest struct via the builder pattern

Name Type Description Notes
citrixCustomerId string Citrix Customer ID. Default is 'CitrixOnPremises'
citrixInstanceId string Citrix Instance (Site) ID.
createApplicationFolderRequestModel CreateApplicationFolderRequestModel Details of the application folder to create.
userAgent string User Agent type of the request.
authorization string Citrix authorization header: CWSAuth Bearer={token}
citrixTransactionId string Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned.
accept string Must accept application/json.
citrixLocale string Locale of the request.
async bool If `true`, the application folder will be created as a background task. The task will have JobType "JobType.CreateApplicationFolder". When the task is complete it will redirect to "GetApplicationFolder(string)" The job Parameters will contain properties: * Name - Name of the folder being created. * Path - Path to the folder being created. [default to false]

Return type

ApplicationFolderResponseModel

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApplicationFoldersDeleteApplicationFolder

ApplicationFoldersDeleteApplicationFolder(ctx, pathOrId).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Async(async).Execute()

Delete an application folder.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/citrix/citrix-daas-rest-go/citrixorchestration"
)

func main() {
    citrixCustomerId := "CitrixOnPremises" // string | Citrix Customer ID. Default is 'CitrixOnPremises'
    citrixInstanceId := "citrixInstanceId_example" // string | Citrix Instance (Site) ID.
    pathOrId := "pathOrId_example" // string | Name or ID of the application folder to delete.
    userAgent := "Mozilla/5.0" // string | User Agent type of the request. (optional)
    authorization := "authorization_example" // string | Citrix authorization header: CWSAuth Bearer={token} (optional)
    citrixTransactionId := "citrixTransactionId_example" // string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. (optional)
    accept := "application/json" // string | Must accept application/json. (optional)
    citrixLocale := "en-US" // string | Locale of the request. (optional)
    async := true // bool | If `true`, the application folder (and associated objects) will be deleted as a background task. The task will have JobType DeleteApplicationFolder. When the task is complete it will redirect to GetApplicationFolders. The job's Parameters will contain properties:  * _Id_ - ID of the application folder being deleted, * _Path_ - Path of the application folder being deleted. (optional) (default to false)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    r, err := apiClient.ApplicationFoldersAPIsDAAS.ApplicationFoldersDeleteApplicationFolder(context.Background(), pathOrId).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Async(async).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApplicationFoldersAPIsDAAS.ApplicationFoldersDeleteApplicationFolder``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
pathOrId string Name or ID of the application folder to delete.

Other Parameters

Other parameters are passed through a pointer to a apiApplicationFoldersDeleteApplicationFolderRequest struct via the builder pattern

Name Type Description Notes
citrixCustomerId string Citrix Customer ID. Default is 'CitrixOnPremises'
citrixInstanceId string Citrix Instance (Site) ID.

userAgent | string | User Agent type of the request. | authorization | string | Citrix authorization header: CWSAuth Bearer={token} | citrixTransactionId | string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. | accept | string | Must accept application/json. | citrixLocale | string | Locale of the request. | async | bool | If `true`, the application folder (and associated objects) will be deleted as a background task. The task will have JobType DeleteApplicationFolder. When the task is complete it will redirect to GetApplicationFolders. The job's Parameters will contain properties: * Id - ID of the application folder being deleted, * Path - Path of the application folder being deleted. | [default to false]

Return type

(empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApplicationFoldersGetApplicationFolder

ApplicationFolderResponseModel ApplicationFoldersGetApplicationFolder(ctx, pathOrId).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Execute()

Get details about a single application folder.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/citrix/citrix-daas-rest-go/citrixorchestration"
)

func main() {
    citrixCustomerId := "CitrixOnPremises" // string | Citrix Customer ID. Default is 'CitrixOnPremises'
    citrixInstanceId := "citrixInstanceId_example" // string | Citrix Instance (Site) ID.
    pathOrId := "pathOrId_example" // string | Path (URL-encoded) or ID of the application folder.
    userAgent := "Mozilla/5.0" // string | User Agent type of the request. (optional)
    authorization := "authorization_example" // string | Citrix authorization header: CWSAuth Bearer={token} (optional)
    citrixTransactionId := "citrixTransactionId_example" // string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. (optional)
    accept := "application/json" // string | Must accept application/json. (optional)
    citrixLocale := "en-US" // string | Locale of the request. (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApplicationFoldersAPIsDAAS.ApplicationFoldersGetApplicationFolder(context.Background(), pathOrId).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApplicationFoldersAPIsDAAS.ApplicationFoldersGetApplicationFolder``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApplicationFoldersGetApplicationFolder`: ApplicationFolderResponseModel
    fmt.Fprintf(os.Stdout, "Response from `ApplicationFoldersAPIsDAAS.ApplicationFoldersGetApplicationFolder`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
pathOrId string Path (URL-encoded) or ID of the application folder.

Other Parameters

Other parameters are passed through a pointer to a apiApplicationFoldersGetApplicationFolderRequest struct via the builder pattern

Name Type Description Notes
citrixCustomerId string Citrix Customer ID. Default is 'CitrixOnPremises'
citrixInstanceId string Citrix Instance (Site) ID.

userAgent | string | User Agent type of the request. | authorization | string | Citrix authorization header: CWSAuth Bearer={token} | citrixTransactionId | string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. | accept | string | Must accept application/json. | citrixLocale | string | Locale of the request. |

Return type

ApplicationFolderResponseModel

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApplicationFoldersGetApplicationFolderApplications

ApplicationResponseModelCollection ApplicationFoldersGetApplicationFolderApplications(ctx, pathOrId).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Limit(limit).ContinuationToken(continuationToken).Fields(fields).Async(async).Execute()

Get the applications in an application folder.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/citrix/citrix-daas-rest-go/citrixorchestration"
)

func main() {
    citrixCustomerId := "CitrixOnPremises" // string | Citrix Customer ID. Default is 'CitrixOnPremises'
    citrixInstanceId := "citrixInstanceId_example" // string | Citrix Instance (Site) ID.
    pathOrId := "pathOrId_example" // string | Path (URL-encoded) or ID of the application folder.
    userAgent := "Mozilla/5.0" // string | User Agent type of the request. (optional)
    authorization := "authorization_example" // string | Citrix authorization header: CWSAuth Bearer={token} (optional)
    citrixTransactionId := "citrixTransactionId_example" // string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. (optional)
    accept := "application/json" // string | Must accept application/json. (optional)
    citrixLocale := "en-US" // string | Locale of the request. (optional)
    limit := int32(56) // int32 | The max number of applications returned by this query. If not specified, the server might use a default limit of 250 items. If the specified value is larger than 1000, the server might reject the call. The default and maximum values depend on server settings. (optional)
    continuationToken := "continuationToken_example" // string | If a query cannot be completed, the response will have a ContinuationToken set. To obtain more results from the query, pass the continuation token back into the query to get the next batch of results. (optional)
    fields := "Id,Uid,ApplicationFolder" // string | Optional filter, removing unspecified properties that otherwise would have been sent by the server. (optional)
    async := true // bool | If `true`, Fetch applications under application folder will be a background task. The task will have JobType GetApplicationFolderApplications (optional) (default to false)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApplicationFoldersAPIsDAAS.ApplicationFoldersGetApplicationFolderApplications(context.Background(), pathOrId).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Limit(limit).ContinuationToken(continuationToken).Fields(fields).Async(async).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApplicationFoldersAPIsDAAS.ApplicationFoldersGetApplicationFolderApplications``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApplicationFoldersGetApplicationFolderApplications`: ApplicationResponseModelCollection
    fmt.Fprintf(os.Stdout, "Response from `ApplicationFoldersAPIsDAAS.ApplicationFoldersGetApplicationFolderApplications`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
pathOrId string Path (URL-encoded) or ID of the application folder.

Other Parameters

Other parameters are passed through a pointer to a apiApplicationFoldersGetApplicationFolderApplicationsRequest struct via the builder pattern

Name Type Description Notes
citrixCustomerId string Citrix Customer ID. Default is 'CitrixOnPremises'
citrixInstanceId string Citrix Instance (Site) ID.

userAgent | string | User Agent type of the request. | authorization | string | Citrix authorization header: CWSAuth Bearer={token} | citrixTransactionId | string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. | accept | string | Must accept application/json. | citrixLocale | string | Locale of the request. | limit | int32 | The max number of applications returned by this query. If not specified, the server might use a default limit of 250 items. If the specified value is larger than 1000, the server might reject the call. The default and maximum values depend on server settings. | continuationToken | string | If a query cannot be completed, the response will have a ContinuationToken set. To obtain more results from the query, pass the continuation token back into the query to get the next batch of results. | fields | string | Optional filter, removing unspecified properties that otherwise would have been sent by the server. | async | bool | If `true`, Fetch applications under application folder will be a background task. The task will have JobType GetApplicationFolderApplications | [default to false]

Return type

ApplicationResponseModelCollection

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApplicationFoldersGetApplicationFolders

ApplicationFolderResponseModelCollection ApplicationFoldersGetApplicationFolders(ctx).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Async(async).Execute()

Get application folders.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/citrix/citrix-daas-rest-go/citrixorchestration"
)

func main() {
    citrixCustomerId := "CitrixOnPremises" // string | Citrix Customer ID. Default is 'CitrixOnPremises'
    citrixInstanceId := "citrixInstanceId_example" // string | Citrix Instance (Site) ID.
    userAgent := "Mozilla/5.0" // string | User Agent type of the request. (optional)
    authorization := "authorization_example" // string | Citrix authorization header: CWSAuth Bearer={token} (optional)
    citrixTransactionId := "citrixTransactionId_example" // string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. (optional)
    accept := "application/json" // string | Must accept application/json. (optional)
    citrixLocale := "en-US" // string | Locale of the request. (optional)
    async := true // bool | If `true`, the application folders will be fetched as a background task. The task will have JobType GetApplicationFolders. (optional) (default to false)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApplicationFoldersAPIsDAAS.ApplicationFoldersGetApplicationFolders(context.Background()).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Async(async).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApplicationFoldersAPIsDAAS.ApplicationFoldersGetApplicationFolders``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApplicationFoldersGetApplicationFolders`: ApplicationFolderResponseModelCollection
    fmt.Fprintf(os.Stdout, "Response from `ApplicationFoldersAPIsDAAS.ApplicationFoldersGetApplicationFolders`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiApplicationFoldersGetApplicationFoldersRequest struct via the builder pattern

Name Type Description Notes
citrixCustomerId string Citrix Customer ID. Default is 'CitrixOnPremises'
citrixInstanceId string Citrix Instance (Site) ID.
userAgent string User Agent type of the request.
authorization string Citrix authorization header: CWSAuth Bearer={token}
citrixTransactionId string Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned.
accept string Must accept application/json.
citrixLocale string Locale of the request.
async bool If `true`, the application folders will be fetched as a background task. The task will have JobType GetApplicationFolders. [default to false]

Return type

ApplicationFolderResponseModelCollection

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApplicationFoldersUpdateApplicationFolder

ApplicationFolderResponseModel ApplicationFoldersUpdateApplicationFolder(ctx, pathOrId).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).EditApplicationFolderRequestModel(editApplicationFolderRequestModel).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Async(async).Execute()

Update an application folder.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/citrix/citrix-daas-rest-go/citrixorchestration"
)

func main() {
    citrixCustomerId := "CitrixOnPremises" // string | Citrix Customer ID. Default is 'CitrixOnPremises'
    citrixInstanceId := "citrixInstanceId_example" // string | Citrix Instance (Site) ID.
    pathOrId := "pathOrId_example" // string | Path or ID of the application path to update.
    editApplicationFolderRequestModel := *openapiclient.NewEditApplicationFolderRequestModel() // EditApplicationFolderRequestModel | Details of the application folder to update.
    userAgent := "Mozilla/5.0" // string | User Agent type of the request. (optional)
    authorization := "authorization_example" // string | Citrix authorization header: CWSAuth Bearer={token} (optional)
    citrixTransactionId := "citrixTransactionId_example" // string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. (optional)
    accept := "application/json" // string | Must accept application/json. (optional)
    citrixLocale := "en-US" // string | Locale of the request. (optional)
    async := true // bool | If `true`, the application folder will be updated as a background task. The task will have JobType UpdateApplicationFolder. When the task is complete it will redirect to GetApplicationFolder. The job's Parameters will contain properties:  * _Id_ - ID of the application folder being updated. * _Path_ - Path of the application folder being updated. (optional) (default to false)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ApplicationFoldersAPIsDAAS.ApplicationFoldersUpdateApplicationFolder(context.Background(), pathOrId).CitrixCustomerId(citrixCustomerId).CitrixInstanceId(citrixInstanceId).EditApplicationFolderRequestModel(editApplicationFolderRequestModel).UserAgent(userAgent).Authorization(authorization).CitrixTransactionId(citrixTransactionId).Accept(accept).CitrixLocale(citrixLocale).Async(async).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ApplicationFoldersAPIsDAAS.ApplicationFoldersUpdateApplicationFolder``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApplicationFoldersUpdateApplicationFolder`: ApplicationFolderResponseModel
    fmt.Fprintf(os.Stdout, "Response from `ApplicationFoldersAPIsDAAS.ApplicationFoldersUpdateApplicationFolder`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
pathOrId string Path or ID of the application path to update.

Other Parameters

Other parameters are passed through a pointer to a apiApplicationFoldersUpdateApplicationFolderRequest struct via the builder pattern

Name Type Description Notes
citrixCustomerId string Citrix Customer ID. Default is 'CitrixOnPremises'
citrixInstanceId string Citrix Instance (Site) ID.

editApplicationFolderRequestModel | EditApplicationFolderRequestModel | Details of the application folder to update. | userAgent | string | User Agent type of the request. | authorization | string | Citrix authorization header: CWSAuth Bearer={token} | citrixTransactionId | string | Transaction ID that will be used to track this request. If not provided, a new GUID will be generated and returned. | accept | string | Must accept application/json. | citrixLocale | string | Locale of the request. | async | bool | If `true`, the application folder will be updated as a background task. The task will have JobType UpdateApplicationFolder. When the task is complete it will redirect to GetApplicationFolder. The job's Parameters will contain properties: * Id - ID of the application folder being updated. * Path - Path of the application folder being updated. | [default to false]

Return type

ApplicationFolderResponseModel

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]