|
39 | 39 | "DirectUploadSource",
|
40 | 40 | "SlackSource",
|
41 | 41 | "JiraSource",
|
| 42 | + "SharePointSources", |
42 | 43 | },
|
43 | 44 | )
|
44 | 45 |
|
@@ -400,4 +401,110 @@ class JiraQueries(proto.Message):
|
400 | 401 | )
|
401 | 402 |
|
402 | 403 |
|
| 404 | +class SharePointSources(proto.Message): |
| 405 | + r"""The SharePointSources to pass to ImportRagFiles. |
| 406 | +
|
| 407 | + Attributes: |
| 408 | + share_point_sources (MutableSequence[google.cloud.aiplatform_v1beta1.types.SharePointSources.SharePointSource]): |
| 409 | + The SharePoint sources. |
| 410 | + """ |
| 411 | + |
| 412 | + class SharePointSource(proto.Message): |
| 413 | + r"""An individual SharePointSource. |
| 414 | +
|
| 415 | + This message has `oneof`_ fields (mutually exclusive fields). |
| 416 | + For each oneof, at most one member field can be set at the same time. |
| 417 | + Setting any member of the oneof automatically clears all other |
| 418 | + members. |
| 419 | +
|
| 420 | + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields |
| 421 | +
|
| 422 | + Attributes: |
| 423 | + sharepoint_folder_path (str): |
| 424 | + The path of the SharePoint folder to download |
| 425 | + from. |
| 426 | +
|
| 427 | + This field is a member of `oneof`_ ``folder_source``. |
| 428 | + sharepoint_folder_id (str): |
| 429 | + The ID of the SharePoint folder to download |
| 430 | + from. |
| 431 | +
|
| 432 | + This field is a member of `oneof`_ ``folder_source``. |
| 433 | + drive_name (str): |
| 434 | + The name of the drive to download from. |
| 435 | +
|
| 436 | + This field is a member of `oneof`_ ``drive_source``. |
| 437 | + drive_id (str): |
| 438 | + The ID of the drive to download from. |
| 439 | +
|
| 440 | + This field is a member of `oneof`_ ``drive_source``. |
| 441 | + client_id (str): |
| 442 | + The Application ID for the app registered in |
| 443 | + Microsoft Azure Portal. The application must |
| 444 | + also be configured with MS Graph permissions |
| 445 | + "Files.ReadAll", "Sites.ReadAll" and |
| 446 | + BrowserSiteLists.Read.All. |
| 447 | + client_secret (google.cloud.aiplatform_v1beta1.types.ApiAuth.ApiKeyConfig): |
| 448 | + The application secret for the app registered |
| 449 | + in Azure. |
| 450 | + tenant_id (str): |
| 451 | + Unique identifier of the Azure Active |
| 452 | + Directory Instance. |
| 453 | + sharepoint_site_name (str): |
| 454 | + The name of the SharePoint site to download |
| 455 | + from. This can be the site name or the site id. |
| 456 | + file_id (str): |
| 457 | + Output only. The SharePoint file id. Output |
| 458 | + only. |
| 459 | + """ |
| 460 | + |
| 461 | + sharepoint_folder_path: str = proto.Field( |
| 462 | + proto.STRING, |
| 463 | + number=5, |
| 464 | + oneof="folder_source", |
| 465 | + ) |
| 466 | + sharepoint_folder_id: str = proto.Field( |
| 467 | + proto.STRING, |
| 468 | + number=6, |
| 469 | + oneof="folder_source", |
| 470 | + ) |
| 471 | + drive_name: str = proto.Field( |
| 472 | + proto.STRING, |
| 473 | + number=7, |
| 474 | + oneof="drive_source", |
| 475 | + ) |
| 476 | + drive_id: str = proto.Field( |
| 477 | + proto.STRING, |
| 478 | + number=8, |
| 479 | + oneof="drive_source", |
| 480 | + ) |
| 481 | + client_id: str = proto.Field( |
| 482 | + proto.STRING, |
| 483 | + number=1, |
| 484 | + ) |
| 485 | + client_secret: api_auth.ApiAuth.ApiKeyConfig = proto.Field( |
| 486 | + proto.MESSAGE, |
| 487 | + number=2, |
| 488 | + message=api_auth.ApiAuth.ApiKeyConfig, |
| 489 | + ) |
| 490 | + tenant_id: str = proto.Field( |
| 491 | + proto.STRING, |
| 492 | + number=3, |
| 493 | + ) |
| 494 | + sharepoint_site_name: str = proto.Field( |
| 495 | + proto.STRING, |
| 496 | + number=4, |
| 497 | + ) |
| 498 | + file_id: str = proto.Field( |
| 499 | + proto.STRING, |
| 500 | + number=9, |
| 501 | + ) |
| 502 | + |
| 503 | + share_point_sources: MutableSequence[SharePointSource] = proto.RepeatedField( |
| 504 | + proto.MESSAGE, |
| 505 | + number=1, |
| 506 | + message=SharePointSource, |
| 507 | + ) |
| 508 | + |
| 509 | + |
403 | 510 | __all__ = tuple(sorted(__protobuf__.manifest))
|
0 commit comments