Skip to content

Commit

Permalink
Add support for GPO
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshk-citrix authored and zhuolun-citrix committed Feb 23, 2024
1 parent bf12d42 commit 21183d2
Show file tree
Hide file tree
Showing 87 changed files with 76,277 additions and 21,817 deletions.
4 changes: 1 addition & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,4 @@
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

Copyright © 2023. Citrix Systems, Inc. All Rights Reserved.
END OF TERMS AND CONDITIONS
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Instantiate a client using `NewCitrixDaasClient`. The following variables are re

| | Cloud | On-Premises |
|--------------|------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|
| authUrl | Citrix Cloud authentication URL, i.e. `https://api-us.cloud.com/cctrustoauth2/{customerId}/tokens/clients` for US customers. | On-premises trust service URL, i.e. `https://{deliveryControllerHostname}/citrix/orchestration/api/techpreview/tokens` |
| authUrl | Citrix Cloud authentication URL, i.e. `https://api-us.cloud.com/cctrustoauth2/{customerId}/tokens/clients` for US customers. | On-Premises trust service URL, i.e. `https://{deliveryControllerHostname}/citrix/orchestration/api/techpreview/tokens` |
| hostname | Citrix Cloud DaaS service hostname, i.e. `{customerId}.xendesktop.net` | Delivery Controller Hostname / IP address |
| customerId | Cloud Customer Id | `CitrixOnPremises` |
| clientId | Citrix Cloud API Key clientId | Domain Admin Username |
Expand Down Expand Up @@ -80,4 +80,4 @@ This project is Licensed under the Apache License, Version 2.0 (the "License");

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

<sub>Copyright © 2023. Citrix Systems, Inc. All Rights Reserved.</sub>
<sub>Copyright © 2023. Citrix Systems, Inc.</sub>
31 changes: 31 additions & 0 deletions citrixorchestration/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ api_applications_apis.go
api_batch_apis.go
api_config_log_apis.go
api_delivery_groups_apis.go
api_gpo.go
api_health_check_apis.go
api_hypervisors_apis.go
api_icons_apis.go
Expand Down Expand Up @@ -293,6 +294,7 @@ docs/CollectionModelOfPowerShellHistoryResponseModel.md
docs/CollectionModelOfPowerTimeSchemeResponseModel.md
docs/CollectionModelOfPredefinedPermissionGroupResponseModel.md
docs/CollectionModelOfPredefinedPermissionResponseModel.md
docs/CollectionModelOfProvisionedVirtualMachineSearchResponseModel.md
docs/CollectionModelOfProvisioningSchemeMachineAccountResponseModel.md
docs/CollectionModelOfProvisioningSchemeResponseModel.md
docs/CollectionModelOfPvsCollectionResponseModel.md
Expand Down Expand Up @@ -479,6 +481,7 @@ docs/FtaRequestModel.md
docs/FtaResponseModel.md
docs/FtaResponseModelCollection.md
docs/FunctionalLevel.md
docs/GpoDAAS.md
docs/HealthCheckAPIsDAAS.md
docs/HomeZoneMode.md
docs/HypervisorAWSConnectionDetailRequestModel.md
Expand Down Expand Up @@ -752,6 +755,19 @@ docs/ProjectedMachinesPerDayResponseModel.md
docs/ProjectedMachinesTimeSlotResponseModel.md
docs/ProtocolType.md
docs/ProvSchemeWarningType.md
docs/ProvisionedVirtualMachineCustomVmDataResponseModel.md
docs/ProvisionedVirtualMachineDetailsResponseModel.md
docs/ProvisionedVirtualMachineDetailsWarningReponseModel.md
docs/ProvisionedVirtualMachineDetailsWarningType.md
docs/ProvisionedVirtualMachineSearchFilterGroupRequestModel.md
docs/ProvisionedVirtualMachineSearchFilterGroupType.md
docs/ProvisionedVirtualMachineSearchFilterGroupsType.md
docs/ProvisionedVirtualMachineSearchFilterRequestModel.md
docs/ProvisionedVirtualMachineSearchProperty.md
docs/ProvisionedVirtualMachineSearchRequestModel.md
docs/ProvisionedVirtualMachineSearchResponseModel.md
docs/ProvisionedVirtualMachineSearchResponseModelCollection.md
docs/ProvisionedVirtualMachineSortCriteriaRequestModel.md
docs/ProvisioningProgressResponseModel.md
docs/ProvisioningSchemeMachineAccountResponseModel.md
docs/ProvisioningSchemeMachineAccountResponseModelCollection.md
Expand Down Expand Up @@ -1200,6 +1216,7 @@ model_collection_model_of_power_shell_history_response_model.go
model_collection_model_of_power_time_scheme_response_model.go
model_collection_model_of_predefined_permission_group_response_model.go
model_collection_model_of_predefined_permission_response_model.go
model_collection_model_of_provisioned_virtual_machine_search_response_model.go
model_collection_model_of_provisioning_scheme_machine_account_response_model.go
model_collection_model_of_provisioning_scheme_response_model.go
model_collection_model_of_pvs_collection_response_model.go
Expand Down Expand Up @@ -1650,6 +1667,19 @@ model_projected_machines_per_day_response_model.go
model_projected_machines_time_slot_response_model.go
model_protocol_type.go
model_prov_scheme_warning_type.go
model_provisioned_virtual_machine_custom_vm_data_response_model.go
model_provisioned_virtual_machine_details_response_model.go
model_provisioned_virtual_machine_details_warning_reponse_model.go
model_provisioned_virtual_machine_details_warning_type.go
model_provisioned_virtual_machine_search_filter_group_request_model.go
model_provisioned_virtual_machine_search_filter_group_type.go
model_provisioned_virtual_machine_search_filter_groups_type.go
model_provisioned_virtual_machine_search_filter_request_model.go
model_provisioned_virtual_machine_search_property.go
model_provisioned_virtual_machine_search_request_model.go
model_provisioned_virtual_machine_search_response_model.go
model_provisioned_virtual_machine_search_response_model_collection.go
model_provisioned_virtual_machine_sort_criteria_request_model.go
model_provisioning_progress_response_model.go
model_provisioning_scheme_machine_account_response_model.go
model_provisioning_scheme_machine_account_response_model_collection.go
Expand Down Expand Up @@ -1855,6 +1885,7 @@ test/api_applications_apis_test.go
test/api_batch_apis_test.go
test/api_config_log_apis_test.go
test/api_delivery_groups_apis_test.go
test/api_gpo_test.go
test/api_health_check_apis_test.go
test/api_hypervisors_apis_test.go
test/api_icons_apis_test.go
Expand Down
51 changes: 51 additions & 0 deletions citrixorchestration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,43 @@ Class | Method | HTTP request | Description
*DeliveryGroupsAPIsDAAS* | [**DeliveryGroupsStartDeliveryGroupRebootCycle**](docs/DeliveryGroupsAPIsDAAS.md#deliverygroupsstartdeliverygrouprebootcycle) | **Post** /DeliveryGroups/{nameOrId}/$StartRebootCycle | Start a reboot cycle for machines in a delivery group.
*DeliveryGroupsAPIsDAAS* | [**DeliveryGroupsTestDeliveryGroup**](docs/DeliveryGroupsAPIsDAAS.md#deliverygroupstestdeliverygroup) | **Post** /DeliveryGroups/{nameOrId}/$test | Run tests on a delivery group and create a test report.
*DeliveryGroupsAPIsDAAS* | [**DeliveryGroupsTestDeliveryGroupExists**](docs/DeliveryGroupsAPIsDAAS.md#deliverygroupstestdeliverygroupexists) | **Post** /DeliveryGroups/$checkName | Test the existence of a delivery group by name.
*GpoDAAS* | [**GpoComparePolicies**](docs/GpoDAAS.md#gpocomparepolicies) | **Post** /gpo/comparePolicies | Compare policies. The policies can be from different policy sets.
*GpoDAAS* | [**GpoCopyGpoPolicies**](docs/GpoDAAS.md#gpocopygpopolicies) | **Post** /gpo/policies/$copy | Copy some policies of a policy set to other policy sets.
*GpoDAAS* | [**GpoCopyGpoPolicySet**](docs/GpoDAAS.md#gpocopygpopolicyset) | **Post** /gpo/policySets/{policySetGuid} | Create a new GPO policy set by copying an existing policy set. The policies and settings in each policy are copied to the new policy set. Optionally, the filters in the policies may be copied. Regardless of the type of the source policy set, the resulting policy set is always of type DeliveryGroupPolicies.
*GpoDAAS* | [**GpoCreateGpoFilter**](docs/GpoDAAS.md#gpocreategpofilter) | **Post** /gpo/filters | Create a filter in a policy. Filters cannot be created in a policy in a policy set of type SiteTemplates or CustomTemplates.
*GpoDAAS* | [**GpoCreateGpoPolicy**](docs/GpoDAAS.md#gpocreategpopolicy) | **Post** /gpo/policies | Create a new policy. Policies cannot be created in the policy set of type SiteTemplates.
*GpoDAAS* | [**GpoCreateGpoPolicySet**](docs/GpoDAAS.md#gpocreategpopolicyset) | **Post** /gpo/policySets | Create a new GPO policy set. Only a policy set of type DeliveryGroupPolicies can be created.
*GpoDAAS* | [**GpoCreateGpoSetting**](docs/GpoDAAS.md#gpocreategposetting) | **Post** /gpo/settings | Create a setting in a policy. Settings cannot be created in the policy set of type SiteTemplates.
*GpoDAAS* | [**GpoDeleteGpoFilter**](docs/GpoDAAS.md#gpodeletegpofilter) | **Delete** /gpo/filters/{filterGuid} | Delete an existing filter.
*GpoDAAS* | [**GpoDeleteGpoPolicy**](docs/GpoDAAS.md#gpodeletegpopolicy) | **Delete** /gpo/policies/{policyGuid} | Delete an existing GPO policy. A policy in the policy set of type SiteTemplates cannot be deleted. The Unfiltered policy in the policy set of type SitePolicies cannot be deleted.
*GpoDAAS* | [**GpoDeleteGpoPolicySet**](docs/GpoDAAS.md#gpodeletegpopolicyset) | **Delete** /gpo/policySets/{policySetGuid} | Delete an existing GPO policy set. Only policy sets of type DeliveryGroupPolicies can be deleted. Policies in the policy set are deleted if a policy set is deleted.
*GpoDAAS* | [**GpoDeleteGpoSetting**](docs/GpoDAAS.md#gpodeletegposetting) | **Delete** /gpo/settings/{settingGuid} | Delete a setting. Settings in the policy set of type SiteTemplates cannot be deleted.
*GpoDAAS* | [**GpoDisableGpoPolicies**](docs/GpoDAAS.md#gpodisablegpopolicies) | **Post** /gpo/policies/$disable | Disable some policies of a policy set.
*GpoDAAS* | [**GpoEnableGpoPolicies**](docs/GpoDAAS.md#gpoenablegpopolicies) | **Post** /gpo/policies/$enable | Enable some policies of a policy set.
*GpoDAAS* | [**GpoGetFilterDefinitions**](docs/GpoDAAS.md#gpogetfilterdefinitions) | **Get** /gpo/filterDefinitions | Get all filter definitions.
*GpoDAAS* | [**GpoGetSettingDefinitions**](docs/GpoDAAS.md#gpogetsettingdefinitions) | **Get** /gpo/settingDefinitions | Get setting definitions. If isLean is set to true, only basic session information is returned. EnumType, VdaVersions, VersionDetails, and Explanation are not retrieved. If limit is set to -1 or a number larger than the number of settings available, all entries are retrieved. If limit is set to a positive integer smaller than the number of settings available, the specified number of settings are retrieved.
*GpoDAAS* | [**GpoGetSettingFullDetail**](docs/GpoDAAS.md#gpogetsettingfulldetail) | **Get** /gpo/settingFullDetail | Get full detail of a setting definition.
*GpoDAAS* | [**GpoMoveGpoPolicies**](docs/GpoDAAS.md#gpomovegpopolicies) | **Post** /gpo/policies/$move | Move some policies of a policy set to another policy set.
*GpoDAAS* | [**GpoRankGpoPolicies**](docs/GpoDAAS.md#gporankgpopolicies) | **Post** /gpo/policyPriorities | Specify new priority order for all existing policies in a policy set. All the policies in the policy set must be specified, even if the priorities of only some of the policies are changed.
*GpoDAAS* | [**GpoReadGpoFilter**](docs/GpoDAAS.md#gporeadgpofilter) | **Get** /gpo/filters/{filterGuid} | Read a specific filter.
*GpoDAAS* | [**GpoReadGpoFilters**](docs/GpoDAAS.md#gporeadgpofilters) | **Get** /gpo/filters | Read filters defined in a policy. A policy in a policy set of type SiteTemplates or CustomTemplates does not have filters.
*GpoDAAS* | [**GpoReadGpoPolicies**](docs/GpoDAAS.md#gporeadgpopolicies) | **Get** /gpo/policies | Read all policies defined in a policy set. Policy templates don&#39;t have filters.
*GpoDAAS* | [**GpoReadGpoPolicy**](docs/GpoDAAS.md#gporeadgpopolicy) | **Get** /gpo/policies/{policyGuid} | Read a policy. A policy template doesn&#39;t have filters.
*GpoDAAS* | [**GpoReadGpoPolicySet**](docs/GpoDAAS.md#gporeadgpopolicyset) | **Get** /gpo/policySets/{policySetGuid} | Read a GPO policy set.
*GpoDAAS* | [**GpoReadGpoPolicySets**](docs/GpoDAAS.md#gporeadgpopolicysets) | **Get** /gpo/policySets | Get all GPO policy sets in the site.
*GpoDAAS* | [**GpoReadGpoSetting**](docs/GpoDAAS.md#gporeadgposetting) | **Get** /gpo/settings/{settingGuid} | Read a specific setting.
*GpoDAAS* | [**GpoReadGpoSettings**](docs/GpoDAAS.md#gporeadgposettings) | **Get** /gpo/settings | Read settings defined in a policy.
*GpoDAAS* | [**GpoRemoveGpoPolicies**](docs/GpoDAAS.md#gporemovegpopolicies) | **Post** /gpo/policies/$remove | Remove some policies of a policy set.
*GpoDAAS* | [**GpoRunSimulation**](docs/GpoDAAS.md#gporunsimulation) | **Post** /gpo/simulation | Simulate policy application.
*GpoDAAS* | [**GpoSearchFilters**](docs/GpoDAAS.md#gposearchfilters) | **Post** /gpo/filters/$search | Perform an advanced search for GPO filters.
*GpoDAAS* | [**GpoSearchPolicies**](docs/GpoDAAS.md#gposearchpolicies) | **Post** /gpo/policies/$search | Perform an advanced search for GPO policies.
*GpoDAAS* | [**GpoSearchPolicySets**](docs/GpoDAAS.md#gposearchpolicysets) | **Post** /gpo/policySets/$search | Perform an advanced search for GPO policy sets.
*GpoDAAS* | [**GpoSearchSettings**](docs/GpoDAAS.md#gposearchsettings) | **Post** /gpo/settings/$search | Perform an advanced search for GPO settings.
*GpoDAAS* | [**GpoUpdateGpoFilter**](docs/GpoDAAS.md#gpoupdategpofilter) | **Patch** /gpo/filters/{filterGuid} | Update an existing filter.
*GpoDAAS* | [**GpoUpdateGpoPolicy**](docs/GpoDAAS.md#gpoupdategpopolicy) | **Patch** /gpo/policies/{policyGuid} | Update a policy. Only the policy body is updated.
*GpoDAAS* | [**GpoUpdateGpoPolicySet**](docs/GpoDAAS.md#gpoupdategpopolicyset) | **Patch** /gpo/policySets/{policySetGuid} | Update an existing GPO policy set.
*GpoDAAS* | [**GpoUpdateGpoSetting**](docs/GpoDAAS.md#gpoupdategposetting) | **Patch** /gpo/settings/{settingGuid} | Update a setting. Settings in the policy set of type SiteTemplates cannot be updated.
*GpoDAAS* | [**GpoUpdatePolicySetBlob**](docs/GpoDAAS.md#gpoupdatepolicysetblob) | **Put** /gpo/policySets/{policySetGuid} | Force serialization of policy set. The data of a policy set is serialized into a byte stream before it is sent to VDAs. The serialization is done automatically in the background at 5 minute intervals. A change made to the data in a policy set may not be in the serialized data for up to 5 minutes. This call tells the background thread to serialize the data immediately. No serialization is done if there have been no changes to the policy set data since the last time the data was serialized.
*HealthCheckAPIsDAAS* | [**HealthCheckHealthCheck**](docs/HealthCheckAPIsDAAS.md#healthcheckhealthcheck) | **Get** /HealthCheck | The health check endpoint.
*HypervisorsAPIsDAAS* | [**HypervisorsCheckHypervisorExists**](docs/HypervisorsAPIsDAAS.md#hypervisorscheckhypervisorexists) | **Head** /hypervisors/{name} | Check for the existence of a hypervisor by name.
*HypervisorsAPIsDAAS* | [**HypervisorsCheckHypervisorResourcePoolExists**](docs/HypervisorsAPIsDAAS.md#hypervisorscheckhypervisorresourcepoolexists) | **Head** /hypervisors/{nameOrId}/resourcePools/{name} | Check for the existence of a resource pool by name.
Expand Down Expand Up @@ -697,6 +734,7 @@ Class | Method | HTTP request | Description
- [CollectionModelOfPowerTimeSchemeResponseModel](docs/CollectionModelOfPowerTimeSchemeResponseModel.md)
- [CollectionModelOfPredefinedPermissionGroupResponseModel](docs/CollectionModelOfPredefinedPermissionGroupResponseModel.md)
- [CollectionModelOfPredefinedPermissionResponseModel](docs/CollectionModelOfPredefinedPermissionResponseModel.md)
- [CollectionModelOfProvisionedVirtualMachineSearchResponseModel](docs/CollectionModelOfProvisionedVirtualMachineSearchResponseModel.md)
- [CollectionModelOfProvisioningSchemeMachineAccountResponseModel](docs/CollectionModelOfProvisioningSchemeMachineAccountResponseModel.md)
- [CollectionModelOfProvisioningSchemeResponseModel](docs/CollectionModelOfProvisioningSchemeResponseModel.md)
- [CollectionModelOfPvsCollectionResponseModel](docs/CollectionModelOfPvsCollectionResponseModel.md)
Expand Down Expand Up @@ -1147,6 +1185,19 @@ Class | Method | HTTP request | Description
- [ProjectedMachinesTimeSlotResponseModel](docs/ProjectedMachinesTimeSlotResponseModel.md)
- [ProtocolType](docs/ProtocolType.md)
- [ProvSchemeWarningType](docs/ProvSchemeWarningType.md)
- [ProvisionedVirtualMachineCustomVmDataResponseModel](docs/ProvisionedVirtualMachineCustomVmDataResponseModel.md)
- [ProvisionedVirtualMachineDetailsResponseModel](docs/ProvisionedVirtualMachineDetailsResponseModel.md)
- [ProvisionedVirtualMachineDetailsWarningReponseModel](docs/ProvisionedVirtualMachineDetailsWarningReponseModel.md)
- [ProvisionedVirtualMachineDetailsWarningType](docs/ProvisionedVirtualMachineDetailsWarningType.md)
- [ProvisionedVirtualMachineSearchFilterGroupRequestModel](docs/ProvisionedVirtualMachineSearchFilterGroupRequestModel.md)
- [ProvisionedVirtualMachineSearchFilterGroupType](docs/ProvisionedVirtualMachineSearchFilterGroupType.md)
- [ProvisionedVirtualMachineSearchFilterGroupsType](docs/ProvisionedVirtualMachineSearchFilterGroupsType.md)
- [ProvisionedVirtualMachineSearchFilterRequestModel](docs/ProvisionedVirtualMachineSearchFilterRequestModel.md)
- [ProvisionedVirtualMachineSearchProperty](docs/ProvisionedVirtualMachineSearchProperty.md)
- [ProvisionedVirtualMachineSearchRequestModel](docs/ProvisionedVirtualMachineSearchRequestModel.md)
- [ProvisionedVirtualMachineSearchResponseModel](docs/ProvisionedVirtualMachineSearchResponseModel.md)
- [ProvisionedVirtualMachineSearchResponseModelCollection](docs/ProvisionedVirtualMachineSearchResponseModelCollection.md)
- [ProvisionedVirtualMachineSortCriteriaRequestModel](docs/ProvisionedVirtualMachineSortCriteriaRequestModel.md)
- [ProvisioningProgressResponseModel](docs/ProvisioningProgressResponseModel.md)
- [ProvisioningSchemeMachineAccountResponseModel](docs/ProvisioningSchemeMachineAccountResponseModel.md)
- [ProvisioningSchemeMachineAccountResponseModelCollection](docs/ProvisioningSchemeMachineAccountResponseModelCollection.md)
Expand Down
Loading

0 comments on commit 21183d2

Please sign in to comment.