Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs-snippets-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"sls": {
"dependencies": {
"com.palantir.foundry.api:api-gateway": {
"minVersion": "1.1566.0",
"minVersion": "1.1581.0",
"maxVersion": "1.x.x",
"optional": false
}
Expand Down
4 changes: 2 additions & 2 deletions docs-snippets-npm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export const PYTHON_PLATFORM_SNIPPETS: SdkSnippets<typeof PLATFORM_API_DOCS_SPEC
],
"v2.createGroup": [
{
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# Dict[AttributeName, AttributeValues] | A map of the Group's attributes. Attributes prefixed with \"multipass:\" are reserved for internal use by Foundry and are subject to change.\nattributes = {\n \"multipass:givenName\": [\"John\"],\n \"multipass:familyName\": [\"Smith\"],\n \"multipass:email:primary\": [\"jsmith@example.com\"],\n \"multipass:realm\": [\"eab0a251-ca1a-4a84-a482-200edfb8026f\"],\n \"multipass:organization-rid\": [\n \"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa\"\n ],\n \"department\": [\"Finance\"],\n \"jobTitle\": [\"Accountant\"],\n}\n# GroupName | The name of the Group.\nname = \"Data Source Admins\"\n# List[OrganizationRid] | The RIDs of the Organizations whose members can see this group. At least one Organization RID must be listed.\norganizations = [\"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa\"]\n# Optional[str] | A description of the Group.\ndescription = \"Create and modify data sources in the platform\"\n\n\ntry:\n api_response = client.admin.Group.create(\n attributes=attributes, name=name, organizations=organizations, description=description\n )\n print(\"The create response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling Group.create: %s\\n\" % e)"
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# Dict[AttributeName, AttributeValues] | A map of the Group's attributes. Attributes prefixed with \"multipass:\" are reserved for internal use by Foundry and are subject to change.\nattributes = {\n \"multipass:realm\": [\"eab0a251-ca1a-4a84-a482-200edfb8026f\"],\n \"multipass:organization-rid\": [\n \"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa\"\n ],\n}\n# GroupName | The name of the Group.\nname = \"Data Source Admins\"\n# List[OrganizationRid] | The RIDs of the Organizations whose members can see this group. At least one Organization RID must be listed.\norganizations = [\"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa\"]\n# Optional[str] | A description of the Group.\ndescription = \"Create and modify data sources in the platform\"\n\n\ntry:\n api_response = client.admin.Group.create(\n attributes=attributes, name=name, organizations=organizations, description=description\n )\n print(\"The create response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling Group.create: %s\\n\" % e)"
}
],
"v2.deleteGroup": [
Expand Down Expand Up @@ -320,7 +320,7 @@ export const PYTHON_PLATFORM_SNIPPETS: SdkSnippets<typeof PLATFORM_API_DOCS_SPEC
],
"v2.replaceGroup": [
{
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# GroupId\ngroup_id = None\n# Dict[AttributeName, AttributeValues] | A map of the Group's attributes. Attributes prefixed with \"multipass:\" are reserved for internal use by Foundry and are subject to change.\nattributes = {\n \"multipass:givenName\": [\"John\"],\n \"multipass:familyName\": [\"Smith\"],\n \"multipass:email:primary\": [\"jsmith@example.com\"],\n \"multipass:realm\": [\"eab0a251-ca1a-4a84-a482-200edfb8026f\"],\n \"multipass:organization-rid\": [\n \"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa\"\n ],\n \"department\": [\"Finance\"],\n \"jobTitle\": [\"Accountant\"],\n}\n# GroupName | The name of the Group.\nname = \"Data Source Admins\"\n# List[OrganizationRid] | The RIDs of the Organizations whose members can see this group. At least one Organization RID must be listed.\norganizations = [\"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa\"]\n# Optional[str] | A description of the Group.\ndescription = \"Create and modify data sources in the platform\"\n\n\ntry:\n api_response = client.admin.Group.replace(\n group_id,\n attributes=attributes,\n name=name,\n organizations=organizations,\n description=description,\n )\n print(\"The replace response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling Group.replace: %s\\n\" % e)"
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# GroupId\ngroup_id = None\n# Dict[AttributeName, AttributeValues] | A map of the Group's attributes. Attributes prefixed with \"multipass:\" are reserved for internal use by Foundry and are subject to change.\nattributes = {\n \"multipass:realm\": [\"eab0a251-ca1a-4a84-a482-200edfb8026f\"],\n \"multipass:organization-rid\": [\n \"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa\"\n ],\n}\n# GroupName | The name of the Group.\nname = \"Data Source Admins\"\n# List[OrganizationRid] | The RIDs of the Organizations whose members can see this group. At least one Organization RID must be listed.\norganizations = [\"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa\"]\n# Optional[str] | A description of the Group.\ndescription = \"Create and modify data sources in the platform\"\n\n\ntry:\n api_response = client.admin.Group.replace(\n group_id,\n attributes=attributes,\n name=name,\n organizations=organizations,\n description=description,\n )\n print(\"The replace response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling Group.replace: %s\\n\" % e)"
}
],
"v2.searchGroups": [
Expand Down
10 changes: 0 additions & 10 deletions docs/v2/Admin/Group.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,10 @@ client = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname="example.pa

# Dict[AttributeName, AttributeValues] | A map of the Group's attributes. Attributes prefixed with "multipass:" are reserved for internal use by Foundry and are subject to change.
attributes = {
"multipass:givenName": ["John"],
"multipass:familyName": ["Smith"],
"multipass:email:primary": ["jsmith@example.com"],
"multipass:realm": ["eab0a251-ca1a-4a84-a482-200edfb8026f"],
"multipass:organization-rid": [
"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa"
],
"department": ["Finance"],
"jobTitle": ["Accountant"],
}
# GroupName | The name of the Group.
name = "Data Source Admins"
Expand Down Expand Up @@ -354,15 +349,10 @@ client = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname="example.pa
group_id = None
# Dict[AttributeName, AttributeValues] | A map of the Group's attributes. Attributes prefixed with "multipass:" are reserved for internal use by Foundry and are subject to change.
attributes = {
"multipass:givenName": ["John"],
"multipass:familyName": ["Smith"],
"multipass:email:primary": ["jsmith@example.com"],
"multipass:realm": ["eab0a251-ca1a-4a84-a482-200edfb8026f"],
"multipass:organization-rid": [
"ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa"
],
"department": ["Finance"],
"jobTitle": ["Accountant"],
}
# GroupName | The name of the Group.
name = "Data Source Admins"
Expand Down
2 changes: 1 addition & 1 deletion foundry_sdk/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# using the autorelease bot
__version__ = "0.0.0"

__openapi_document_version__ = "1.1566.0"
__openapi_document_version__ = "1.1581.0"