aws-sdk-qapps 1.7.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-qapps/client.rb +231 -3
- data/lib/aws-sdk-qapps/client_api.rb +112 -0
- data/lib/aws-sdk-qapps/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-qapps/endpoints.rb +2 -262
- data/lib/aws-sdk-qapps/plugins/endpoints.rb +1 -54
- data/lib/aws-sdk-qapps/types.rb +144 -1
- data/lib/aws-sdk-qapps.rb +1 -1
- data/sig/client.rbs +43 -0
- data/sig/types.rbs +44 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32f77159ef5eb4be728e31619b1a75aa1f073bcf1186a9a8bcf70ec97f59e8d7
|
4
|
+
data.tar.gz: 7303c77852c0b4e0d7522cacfcc9283d930477552ff82938b7badc66ce92fe80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d3b045a893c8c6bfe8cebdc7cb2426a5989caacebd594cd53e8d96c799e285b6ce2c395e908b9ff8e6dc6e78835c107744c682c26132b48cab31383c23ff85a
|
7
|
+
data.tar.gz: e7b6875a63184038ee8b3d914902d16a2befe00823fb9eddd154d08b304c0cb3b25badc9654553f8a90046c1b274c0b866203e129b6784130f32587ef6a6af11
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.9.0 (2024-11-06)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Introduces category apis in AmazonQApps. Web experience users use Categories to tag and filter library items.
|
8
|
+
|
9
|
+
1.8.0 (2024-10-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.7.0 (2024-09-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.9.0
|
data/lib/aws-sdk-qapps/client.rb
CHANGED
@@ -523,6 +523,164 @@ module Aws::QApps
|
|
523
523
|
req.send_request(options)
|
524
524
|
end
|
525
525
|
|
526
|
+
# Creates Categories for the Amazon Q Business application environment
|
527
|
+
# instance. Web experience users use Categories to tag and filter
|
528
|
+
# library items. For more information, see [Custom labels for Amazon Q
|
529
|
+
# Apps][1].
|
530
|
+
#
|
531
|
+
#
|
532
|
+
#
|
533
|
+
# [1]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/qapps-custom-labels.html
|
534
|
+
#
|
535
|
+
# @option params [required, String] :instance_id
|
536
|
+
# The unique identifier of the Amazon Q Business application environment
|
537
|
+
# instance.
|
538
|
+
#
|
539
|
+
# @option params [required, Array<Types::BatchCreateCategoryInputCategory>] :categories
|
540
|
+
# The list of category objects to be created
|
541
|
+
#
|
542
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
543
|
+
#
|
544
|
+
#
|
545
|
+
# @example Example: Creates the categories for the library
|
546
|
+
#
|
547
|
+
# resp = client.batch_create_category({
|
548
|
+
# categories: [
|
549
|
+
# {
|
550
|
+
# id: "549abfe0-f5c4-45a2-bb9b-c05987a49c6d",
|
551
|
+
# title: "HR",
|
552
|
+
# },
|
553
|
+
# {
|
554
|
+
# id: "18cbebaa-196a-4aa5-a840-88d548e07f8f",
|
555
|
+
# title: "Marketing",
|
556
|
+
# },
|
557
|
+
# ],
|
558
|
+
# instance_id: "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
|
559
|
+
# })
|
560
|
+
#
|
561
|
+
# @example Request syntax with placeholder values
|
562
|
+
#
|
563
|
+
# resp = client.batch_create_category({
|
564
|
+
# instance_id: "InstanceId", # required
|
565
|
+
# categories: [ # required
|
566
|
+
# {
|
567
|
+
# id: "UUID",
|
568
|
+
# title: "BatchCreateCategoryInputCategoryTitleString", # required
|
569
|
+
# color: "BatchCreateCategoryInputCategoryColorString",
|
570
|
+
# },
|
571
|
+
# ],
|
572
|
+
# })
|
573
|
+
#
|
574
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/BatchCreateCategory AWS API Documentation
|
575
|
+
#
|
576
|
+
# @overload batch_create_category(params = {})
|
577
|
+
# @param [Hash] params ({})
|
578
|
+
def batch_create_category(params = {}, options = {})
|
579
|
+
req = build_request(:batch_create_category, params)
|
580
|
+
req.send_request(options)
|
581
|
+
end
|
582
|
+
|
583
|
+
# Deletes Categories for the Amazon Q Business application environment
|
584
|
+
# instance. Web experience users use Categories to tag and filter
|
585
|
+
# library items. For more information, see [Custom labels for Amazon Q
|
586
|
+
# Apps][1].
|
587
|
+
#
|
588
|
+
#
|
589
|
+
#
|
590
|
+
# [1]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/qapps-custom-labels.html
|
591
|
+
#
|
592
|
+
# @option params [required, String] :instance_id
|
593
|
+
# The unique identifier of the Amazon Q Business application environment
|
594
|
+
# instance.
|
595
|
+
#
|
596
|
+
# @option params [required, Array<String>] :categories
|
597
|
+
# The list of IDs of the categories to be deleted.
|
598
|
+
#
|
599
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
600
|
+
#
|
601
|
+
#
|
602
|
+
# @example Example: Deletes the categories in the library
|
603
|
+
#
|
604
|
+
# resp = client.batch_delete_category({
|
605
|
+
# categories: [
|
606
|
+
# "9c871ed4-1c41-4065-aefe-321cd4b61cf8",
|
607
|
+
# ],
|
608
|
+
# instance_id: "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
|
609
|
+
# })
|
610
|
+
#
|
611
|
+
# @example Request syntax with placeholder values
|
612
|
+
#
|
613
|
+
# resp = client.batch_delete_category({
|
614
|
+
# instance_id: "InstanceId", # required
|
615
|
+
# categories: ["UUID"], # required
|
616
|
+
# })
|
617
|
+
#
|
618
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/BatchDeleteCategory AWS API Documentation
|
619
|
+
#
|
620
|
+
# @overload batch_delete_category(params = {})
|
621
|
+
# @param [Hash] params ({})
|
622
|
+
def batch_delete_category(params = {}, options = {})
|
623
|
+
req = build_request(:batch_delete_category, params)
|
624
|
+
req.send_request(options)
|
625
|
+
end
|
626
|
+
|
627
|
+
# Updates Categories for the Amazon Q Business application environment
|
628
|
+
# instance. Web experience users use Categories to tag and filter
|
629
|
+
# library items. For more information, see [Custom labels for Amazon Q
|
630
|
+
# Apps][1].
|
631
|
+
#
|
632
|
+
#
|
633
|
+
#
|
634
|
+
# [1]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/qapps-custom-labels.html
|
635
|
+
#
|
636
|
+
# @option params [required, String] :instance_id
|
637
|
+
# The unique identifier of the Amazon Q Business application environment
|
638
|
+
# instance.
|
639
|
+
#
|
640
|
+
# @option params [required, Array<Types::CategoryInput>] :categories
|
641
|
+
# The list of categories to be updated with their new values.
|
642
|
+
#
|
643
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
644
|
+
#
|
645
|
+
#
|
646
|
+
# @example Example: Updates the categories in the library
|
647
|
+
#
|
648
|
+
# resp = client.batch_update_category({
|
649
|
+
# categories: [
|
650
|
+
# {
|
651
|
+
# id: "549abfe0-f5c4-45a2-bb9b-c05987a49c6d",
|
652
|
+
# title: "HR Management",
|
653
|
+
# },
|
654
|
+
# {
|
655
|
+
# id: "18cbebaa-196a-4aa5-a840-88d548e07f8f",
|
656
|
+
# title: "Sales",
|
657
|
+
# },
|
658
|
+
# ],
|
659
|
+
# instance_id: "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
|
660
|
+
# })
|
661
|
+
#
|
662
|
+
# @example Request syntax with placeholder values
|
663
|
+
#
|
664
|
+
# resp = client.batch_update_category({
|
665
|
+
# instance_id: "InstanceId", # required
|
666
|
+
# categories: [ # required
|
667
|
+
# {
|
668
|
+
# id: "UUID", # required
|
669
|
+
# title: "CategoryInputTitleString", # required
|
670
|
+
# color: "CategoryInputColorString",
|
671
|
+
# },
|
672
|
+
# ],
|
673
|
+
# })
|
674
|
+
#
|
675
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/BatchUpdateCategory AWS API Documentation
|
676
|
+
#
|
677
|
+
# @overload batch_update_category(params = {})
|
678
|
+
# @param [Hash] params ({})
|
679
|
+
def batch_update_category(params = {}, options = {})
|
680
|
+
req = build_request(:batch_update_category, params)
|
681
|
+
req.send_request(options)
|
682
|
+
end
|
683
|
+
|
526
684
|
# Creates a new library item for an Amazon Q App, allowing it to be
|
527
685
|
# discovered and used by other allowed users.
|
528
686
|
#
|
@@ -1063,6 +1221,8 @@ module Aws::QApps
|
|
1063
1221
|
# resp.categories #=> Array
|
1064
1222
|
# resp.categories[0].id #=> String
|
1065
1223
|
# resp.categories[0].title #=> String
|
1224
|
+
# resp.categories[0].color #=> String
|
1225
|
+
# resp.categories[0].app_count #=> Integer
|
1066
1226
|
# resp.status #=> String
|
1067
1227
|
# resp.created_at #=> Time
|
1068
1228
|
# resp.created_by #=> String
|
@@ -1297,11 +1457,11 @@ module Aws::QApps
|
|
1297
1457
|
# card_status: {
|
1298
1458
|
# "1e6caeac-b481-45ff-a082-8b9a4a0b72e8" => {
|
1299
1459
|
# current_state: "COMPLETED",
|
1300
|
-
# current_value: "
|
1460
|
+
# current_value: "Based on the responses, the most popular color is red, with 1 vote from the user \"user1\".",
|
1301
1461
|
# },
|
1302
1462
|
# "6fb5b404-3b7b-48a4-8a8b-56406922a606" => {
|
1303
1463
|
# current_state: "COMPLETED",
|
1304
|
-
# current_value: "
|
1464
|
+
# current_value: "",
|
1305
1465
|
# },
|
1306
1466
|
# },
|
1307
1467
|
# session_arn: "arn:aws:qapps:us-west-2:0123456789012:application/a929ecd6-5765-4ec7-bd3e-2ca90098b18e/qapp/65e7dce7-226a-47f9-b689-22850becef89/session/1fca878e-64c5-4dc4-b1d9-c93effed4e82",
|
@@ -1428,6 +1588,70 @@ module Aws::QApps
|
|
1428
1588
|
req.send_request(options)
|
1429
1589
|
end
|
1430
1590
|
|
1591
|
+
# Lists the categories of a Amazon Q Business application environment
|
1592
|
+
# instance. For more information, see [Custom labels for Amazon Q
|
1593
|
+
# Apps][1].
|
1594
|
+
#
|
1595
|
+
#
|
1596
|
+
#
|
1597
|
+
# [1]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/qapps-custom-labels.html
|
1598
|
+
#
|
1599
|
+
# @option params [required, String] :instance_id
|
1600
|
+
# The unique identifier of the Amazon Q Business application environment
|
1601
|
+
# instance.
|
1602
|
+
#
|
1603
|
+
# @return [Types::ListCategoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1604
|
+
#
|
1605
|
+
# * {Types::ListCategoriesOutput#categories #categories} => Array<Types::Category>
|
1606
|
+
#
|
1607
|
+
#
|
1608
|
+
# @example Example: List categories available for the library items in this instance
|
1609
|
+
#
|
1610
|
+
# resp = client.list_categories({
|
1611
|
+
# instance_id: "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f",
|
1612
|
+
# })
|
1613
|
+
#
|
1614
|
+
# resp.to_h outputs the following:
|
1615
|
+
# {
|
1616
|
+
# categories: [
|
1617
|
+
# {
|
1618
|
+
# app_count: 10,
|
1619
|
+
# color: "#FF6600",
|
1620
|
+
# id: "549abfe0-f5c4-45a2-bb9b-c05987a49c6d",
|
1621
|
+
# title: "HR",
|
1622
|
+
# },
|
1623
|
+
# {
|
1624
|
+
# app_count: 11,
|
1625
|
+
# color: "#FFFF00",
|
1626
|
+
# id: "18cbebaa-196a-4aa5-a840-88d548e07f8f",
|
1627
|
+
# title: "Marketing",
|
1628
|
+
# },
|
1629
|
+
# ],
|
1630
|
+
# }
|
1631
|
+
#
|
1632
|
+
# @example Request syntax with placeholder values
|
1633
|
+
#
|
1634
|
+
# resp = client.list_categories({
|
1635
|
+
# instance_id: "InstanceId", # required
|
1636
|
+
# })
|
1637
|
+
#
|
1638
|
+
# @example Response structure
|
1639
|
+
#
|
1640
|
+
# resp.categories #=> Array
|
1641
|
+
# resp.categories[0].id #=> String
|
1642
|
+
# resp.categories[0].title #=> String
|
1643
|
+
# resp.categories[0].color #=> String
|
1644
|
+
# resp.categories[0].app_count #=> Integer
|
1645
|
+
#
|
1646
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/ListCategories AWS API Documentation
|
1647
|
+
#
|
1648
|
+
# @overload list_categories(params = {})
|
1649
|
+
# @param [Hash] params ({})
|
1650
|
+
def list_categories(params = {}, options = {})
|
1651
|
+
req = build_request(:list_categories, params)
|
1652
|
+
req.send_request(options)
|
1653
|
+
end
|
1654
|
+
|
1431
1655
|
# Lists the library items for Amazon Q Apps that are published and
|
1432
1656
|
# available for users in your Amazon Web Services account.
|
1433
1657
|
#
|
@@ -1548,6 +1772,8 @@ module Aws::QApps
|
|
1548
1772
|
# resp.library_items[0].categories #=> Array
|
1549
1773
|
# resp.library_items[0].categories[0].id #=> String
|
1550
1774
|
# resp.library_items[0].categories[0].title #=> String
|
1775
|
+
# resp.library_items[0].categories[0].color #=> String
|
1776
|
+
# resp.library_items[0].categories[0].app_count #=> Integer
|
1551
1777
|
# resp.library_items[0].status #=> String
|
1552
1778
|
# resp.library_items[0].created_at #=> Time
|
1553
1779
|
# resp.library_items[0].created_by #=> String
|
@@ -2137,6 +2363,8 @@ module Aws::QApps
|
|
2137
2363
|
# resp.categories #=> Array
|
2138
2364
|
# resp.categories[0].id #=> String
|
2139
2365
|
# resp.categories[0].title #=> String
|
2366
|
+
# resp.categories[0].color #=> String
|
2367
|
+
# resp.categories[0].app_count #=> Integer
|
2140
2368
|
# resp.status #=> String
|
2141
2369
|
# resp.created_at #=> Time
|
2142
2370
|
# resp.created_by #=> String
|
@@ -2505,7 +2733,7 @@ module Aws::QApps
|
|
2505
2733
|
tracer: tracer
|
2506
2734
|
)
|
2507
2735
|
context[:gem_name] = 'aws-sdk-qapps'
|
2508
|
-
context[:gem_version] = '1.
|
2736
|
+
context[:gem_version] = '1.9.0'
|
2509
2737
|
Seahorse::Client::Request.new(handlers, context)
|
2510
2738
|
end
|
2511
2739
|
|
@@ -27,6 +27,13 @@ module Aws::QApps
|
|
27
27
|
AssociateQAppWithUserInput = Shapes::StructureShape.new(name: 'AssociateQAppWithUserInput')
|
28
28
|
AttributeFilter = Shapes::StructureShape.new(name: 'AttributeFilter')
|
29
29
|
AttributeFilters = Shapes::ListShape.new(name: 'AttributeFilters')
|
30
|
+
BatchCreateCategoryInput = Shapes::StructureShape.new(name: 'BatchCreateCategoryInput')
|
31
|
+
BatchCreateCategoryInputCategory = Shapes::StructureShape.new(name: 'BatchCreateCategoryInputCategory')
|
32
|
+
BatchCreateCategoryInputCategoryColorString = Shapes::StringShape.new(name: 'BatchCreateCategoryInputCategoryColorString')
|
33
|
+
BatchCreateCategoryInputCategoryList = Shapes::ListShape.new(name: 'BatchCreateCategoryInputCategoryList')
|
34
|
+
BatchCreateCategoryInputCategoryTitleString = Shapes::StringShape.new(name: 'BatchCreateCategoryInputCategoryTitleString')
|
35
|
+
BatchDeleteCategoryInput = Shapes::StructureShape.new(name: 'BatchDeleteCategoryInput')
|
36
|
+
BatchUpdateCategoryInput = Shapes::StructureShape.new(name: 'BatchUpdateCategoryInput')
|
30
37
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
31
38
|
Card = Shapes::UnionShape.new(name: 'Card')
|
32
39
|
CardInput = Shapes::UnionShape.new(name: 'CardInput')
|
@@ -39,9 +46,14 @@ module Aws::QApps
|
|
39
46
|
CardValue = Shapes::StructureShape.new(name: 'CardValue')
|
40
47
|
CardValueList = Shapes::ListShape.new(name: 'CardValueList')
|
41
48
|
CardValueValueString = Shapes::StringShape.new(name: 'CardValueValueString')
|
49
|
+
CategoriesList = Shapes::ListShape.new(name: 'CategoriesList')
|
42
50
|
Category = Shapes::StructureShape.new(name: 'Category')
|
43
51
|
CategoryIdList = Shapes::ListShape.new(name: 'CategoryIdList')
|
52
|
+
CategoryInput = Shapes::StructureShape.new(name: 'CategoryInput')
|
53
|
+
CategoryInputColorString = Shapes::StringShape.new(name: 'CategoryInputColorString')
|
54
|
+
CategoryInputTitleString = Shapes::StringShape.new(name: 'CategoryInputTitleString')
|
44
55
|
CategoryList = Shapes::ListShape.new(name: 'CategoryList')
|
56
|
+
CategoryListInput = Shapes::ListShape.new(name: 'CategoryListInput')
|
45
57
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
46
58
|
ContentTooLargeException = Shapes::StructureShape.new(name: 'ContentTooLargeException')
|
47
59
|
ConversationMessage = Shapes::StructureShape.new(name: 'ConversationMessage')
|
@@ -51,6 +63,7 @@ module Aws::QApps
|
|
51
63
|
CreateQAppInput = Shapes::StructureShape.new(name: 'CreateQAppInput')
|
52
64
|
CreateQAppOutput = Shapes::StructureShape.new(name: 'CreateQAppOutput')
|
53
65
|
Default = Shapes::StringShape.new(name: 'Default')
|
66
|
+
DeleteCategoryInputList = Shapes::ListShape.new(name: 'DeleteCategoryInputList')
|
54
67
|
DeleteLibraryItemInput = Shapes::StructureShape.new(name: 'DeleteLibraryItemInput')
|
55
68
|
DeleteQAppInput = Shapes::StructureShape.new(name: 'DeleteQAppInput')
|
56
69
|
DependencyList = Shapes::ListShape.new(name: 'DependencyList')
|
@@ -82,6 +95,8 @@ module Aws::QApps
|
|
82
95
|
LibraryItemList = Shapes::ListShape.new(name: 'LibraryItemList')
|
83
96
|
LibraryItemMember = Shapes::StructureShape.new(name: 'LibraryItemMember')
|
84
97
|
LibraryItemStatus = Shapes::StringShape.new(name: 'LibraryItemStatus')
|
98
|
+
ListCategoriesInput = Shapes::StructureShape.new(name: 'ListCategoriesInput')
|
99
|
+
ListCategoriesOutput = Shapes::StructureShape.new(name: 'ListCategoriesOutput')
|
85
100
|
ListLibraryItemsInput = Shapes::StructureShape.new(name: 'ListLibraryItemsInput')
|
86
101
|
ListLibraryItemsOutput = Shapes::StructureShape.new(name: 'ListLibraryItemsOutput')
|
87
102
|
ListQAppsInput = Shapes::StructureShape.new(name: 'ListQAppsInput')
|
@@ -177,6 +192,25 @@ module Aws::QApps
|
|
177
192
|
|
178
193
|
AttributeFilters.member = Shapes::ShapeRef.new(shape: AttributeFilter)
|
179
194
|
|
195
|
+
BatchCreateCategoryInput.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "header", location_name: "instance-id"))
|
196
|
+
BatchCreateCategoryInput.add_member(:categories, Shapes::ShapeRef.new(shape: BatchCreateCategoryInputCategoryList, required: true, location_name: "categories"))
|
197
|
+
BatchCreateCategoryInput.struct_class = Types::BatchCreateCategoryInput
|
198
|
+
|
199
|
+
BatchCreateCategoryInputCategory.add_member(:id, Shapes::ShapeRef.new(shape: UUID, location_name: "id"))
|
200
|
+
BatchCreateCategoryInputCategory.add_member(:title, Shapes::ShapeRef.new(shape: BatchCreateCategoryInputCategoryTitleString, required: true, location_name: "title"))
|
201
|
+
BatchCreateCategoryInputCategory.add_member(:color, Shapes::ShapeRef.new(shape: BatchCreateCategoryInputCategoryColorString, location_name: "color"))
|
202
|
+
BatchCreateCategoryInputCategory.struct_class = Types::BatchCreateCategoryInputCategory
|
203
|
+
|
204
|
+
BatchCreateCategoryInputCategoryList.member = Shapes::ShapeRef.new(shape: BatchCreateCategoryInputCategory)
|
205
|
+
|
206
|
+
BatchDeleteCategoryInput.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "header", location_name: "instance-id"))
|
207
|
+
BatchDeleteCategoryInput.add_member(:categories, Shapes::ShapeRef.new(shape: DeleteCategoryInputList, required: true, location_name: "categories"))
|
208
|
+
BatchDeleteCategoryInput.struct_class = Types::BatchDeleteCategoryInput
|
209
|
+
|
210
|
+
BatchUpdateCategoryInput.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "header", location_name: "instance-id"))
|
211
|
+
BatchUpdateCategoryInput.add_member(:categories, Shapes::ShapeRef.new(shape: CategoryListInput, required: true, location_name: "categories"))
|
212
|
+
BatchUpdateCategoryInput.struct_class = Types::BatchUpdateCategoryInput
|
213
|
+
|
180
214
|
Card.add_member(:text_input, Shapes::ShapeRef.new(shape: TextInputCard, location_name: "textInput"))
|
181
215
|
Card.add_member(:q_query, Shapes::ShapeRef.new(shape: QQueryCard, location_name: "qQuery"))
|
182
216
|
Card.add_member(:q_plugin, Shapes::ShapeRef.new(shape: QPluginCard, location_name: "qPlugin"))
|
@@ -218,14 +252,25 @@ module Aws::QApps
|
|
218
252
|
|
219
253
|
CardValueList.member = Shapes::ShapeRef.new(shape: CardValue)
|
220
254
|
|
255
|
+
CategoriesList.member = Shapes::ShapeRef.new(shape: Category)
|
256
|
+
|
221
257
|
Category.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "id"))
|
222
258
|
Category.add_member(:title, Shapes::ShapeRef.new(shape: String, required: true, location_name: "title"))
|
259
|
+
Category.add_member(:color, Shapes::ShapeRef.new(shape: String, location_name: "color"))
|
260
|
+
Category.add_member(:app_count, Shapes::ShapeRef.new(shape: Integer, location_name: "appCount"))
|
223
261
|
Category.struct_class = Types::Category
|
224
262
|
|
225
263
|
CategoryIdList.member = Shapes::ShapeRef.new(shape: UUID)
|
226
264
|
|
265
|
+
CategoryInput.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "id"))
|
266
|
+
CategoryInput.add_member(:title, Shapes::ShapeRef.new(shape: CategoryInputTitleString, required: true, location_name: "title"))
|
267
|
+
CategoryInput.add_member(:color, Shapes::ShapeRef.new(shape: CategoryInputColorString, location_name: "color"))
|
268
|
+
CategoryInput.struct_class = Types::CategoryInput
|
269
|
+
|
227
270
|
CategoryList.member = Shapes::ShapeRef.new(shape: Category)
|
228
271
|
|
272
|
+
CategoryListInput.member = Shapes::ShapeRef.new(shape: CategoryInput)
|
273
|
+
|
229
274
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
230
275
|
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
231
276
|
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
@@ -277,6 +322,8 @@ module Aws::QApps
|
|
277
322
|
CreateQAppOutput.add_member(:required_capabilities, Shapes::ShapeRef.new(shape: AppRequiredCapabilities, location_name: "requiredCapabilities"))
|
278
323
|
CreateQAppOutput.struct_class = Types::CreateQAppOutput
|
279
324
|
|
325
|
+
DeleteCategoryInputList.member = Shapes::ShapeRef.new(shape: UUID)
|
326
|
+
|
280
327
|
DeleteLibraryItemInput.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "header", location_name: "instance-id"))
|
281
328
|
DeleteLibraryItemInput.add_member(:library_item_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "libraryItemId"))
|
282
329
|
DeleteLibraryItemInput.struct_class = Types::DeleteLibraryItemInput
|
@@ -412,6 +459,12 @@ module Aws::QApps
|
|
412
459
|
LibraryItemMember.add_member(:is_verified, Shapes::ShapeRef.new(shape: Boolean, location_name: "isVerified"))
|
413
460
|
LibraryItemMember.struct_class = Types::LibraryItemMember
|
414
461
|
|
462
|
+
ListCategoriesInput.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "header", location_name: "instance-id"))
|
463
|
+
ListCategoriesInput.struct_class = Types::ListCategoriesInput
|
464
|
+
|
465
|
+
ListCategoriesOutput.add_member(:categories, Shapes::ShapeRef.new(shape: CategoriesList, location_name: "categories"))
|
466
|
+
ListCategoriesOutput.struct_class = Types::ListCategoriesOutput
|
467
|
+
|
415
468
|
ListLibraryItemsInput.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "header", location_name: "instance-id"))
|
416
469
|
ListLibraryItemsInput.add_member(:limit, Shapes::ShapeRef.new(shape: PageLimit, location: "querystring", location_name: "limit"))
|
417
470
|
ListLibraryItemsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
@@ -685,6 +738,51 @@ module Aws::QApps
|
|
685
738
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
686
739
|
end)
|
687
740
|
|
741
|
+
api.add_operation(:batch_create_category, Seahorse::Model::Operation.new.tap do |o|
|
742
|
+
o.name = "BatchCreateCategory"
|
743
|
+
o.http_method = "POST"
|
744
|
+
o.http_request_uri = "/catalog.createCategories"
|
745
|
+
o.input = Shapes::ShapeRef.new(shape: BatchCreateCategoryInput)
|
746
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
747
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
748
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
749
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
750
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
751
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
752
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
753
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
754
|
+
end)
|
755
|
+
|
756
|
+
api.add_operation(:batch_delete_category, Seahorse::Model::Operation.new.tap do |o|
|
757
|
+
o.name = "BatchDeleteCategory"
|
758
|
+
o.http_method = "POST"
|
759
|
+
o.http_request_uri = "/catalog.deleteCategories"
|
760
|
+
o.input = Shapes::ShapeRef.new(shape: BatchDeleteCategoryInput)
|
761
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
762
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
763
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
764
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
765
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
766
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
767
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
768
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
769
|
+
end)
|
770
|
+
|
771
|
+
api.add_operation(:batch_update_category, Seahorse::Model::Operation.new.tap do |o|
|
772
|
+
o.name = "BatchUpdateCategory"
|
773
|
+
o.http_method = "POST"
|
774
|
+
o.http_request_uri = "/catalog.updateCategories"
|
775
|
+
o.input = Shapes::ShapeRef.new(shape: BatchUpdateCategoryInput)
|
776
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
777
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
778
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
779
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
780
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
781
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
782
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
783
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
784
|
+
end)
|
785
|
+
|
688
786
|
api.add_operation(:create_library_item, Seahorse::Model::Operation.new.tap do |o|
|
689
787
|
o.name = "CreateLibraryItem"
|
690
788
|
o.http_method = "POST"
|
@@ -834,6 +932,20 @@ module Aws::QApps
|
|
834
932
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
835
933
|
end)
|
836
934
|
|
935
|
+
api.add_operation(:list_categories, Seahorse::Model::Operation.new.tap do |o|
|
936
|
+
o.name = "ListCategories"
|
937
|
+
o.http_method = "GET"
|
938
|
+
o.http_request_uri = "/catalog.listCategories"
|
939
|
+
o.input = Shapes::ShapeRef.new(shape: ListCategoriesInput)
|
940
|
+
o.output = Shapes::ShapeRef.new(shape: ListCategoriesOutput)
|
941
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
942
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
943
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
944
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
945
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
946
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
947
|
+
end)
|
948
|
+
|
837
949
|
api.add_operation(:list_library_items, Seahorse::Model::Operation.new.tap do |o|
|
838
950
|
o.name = "ListLibraryItems"
|
839
951
|
o.http_method = "GET"
|
@@ -52,15 +52,18 @@ module Aws::QApps
|
|
52
52
|
self[:region] = options[:region]
|
53
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
-
if self[:use_dual_stack].nil?
|
56
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
-
end
|
58
55
|
self[:use_fips] = options[:use_fips]
|
59
56
|
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
-
if self[:use_fips].nil?
|
61
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
-
end
|
63
57
|
self[:endpoint] = options[:endpoint]
|
64
58
|
end
|
59
|
+
|
60
|
+
def self.create(config, options={})
|
61
|
+
new({
|
62
|
+
region: config.region,
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
64
|
+
use_fips: config.use_fips_endpoint,
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
66
|
+
}.merge(options))
|
67
|
+
end
|
65
68
|
end
|
66
69
|
end
|
@@ -12,269 +12,9 @@ module Aws::QApps
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
-
class AssociateLibraryItemReview
|
16
|
-
def self.build(context)
|
17
|
-
Aws::QApps::EndpointParameters.new(
|
18
|
-
region: context.config.region,
|
19
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
20
|
-
use_fips: context.config.use_fips_endpoint,
|
21
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
22
|
-
)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
class AssociateQAppWithUser
|
27
|
-
def self.build(context)
|
28
|
-
Aws::QApps::EndpointParameters.new(
|
29
|
-
region: context.config.region,
|
30
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
31
|
-
use_fips: context.config.use_fips_endpoint,
|
32
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
33
|
-
)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
class CreateLibraryItem
|
38
|
-
def self.build(context)
|
39
|
-
Aws::QApps::EndpointParameters.new(
|
40
|
-
region: context.config.region,
|
41
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
42
|
-
use_fips: context.config.use_fips_endpoint,
|
43
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
44
|
-
)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
class CreateQApp
|
49
|
-
def self.build(context)
|
50
|
-
Aws::QApps::EndpointParameters.new(
|
51
|
-
region: context.config.region,
|
52
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
53
|
-
use_fips: context.config.use_fips_endpoint,
|
54
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
55
|
-
)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
class DeleteLibraryItem
|
60
|
-
def self.build(context)
|
61
|
-
Aws::QApps::EndpointParameters.new(
|
62
|
-
region: context.config.region,
|
63
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
-
use_fips: context.config.use_fips_endpoint,
|
65
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
66
|
-
)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
class DeleteQApp
|
71
|
-
def self.build(context)
|
72
|
-
Aws::QApps::EndpointParameters.new(
|
73
|
-
region: context.config.region,
|
74
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
75
|
-
use_fips: context.config.use_fips_endpoint,
|
76
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
77
|
-
)
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
class DisassociateLibraryItemReview
|
82
|
-
def self.build(context)
|
83
|
-
Aws::QApps::EndpointParameters.new(
|
84
|
-
region: context.config.region,
|
85
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
86
|
-
use_fips: context.config.use_fips_endpoint,
|
87
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
88
|
-
)
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
class DisassociateQAppFromUser
|
93
|
-
def self.build(context)
|
94
|
-
Aws::QApps::EndpointParameters.new(
|
95
|
-
region: context.config.region,
|
96
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
97
|
-
use_fips: context.config.use_fips_endpoint,
|
98
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
99
|
-
)
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
class GetLibraryItem
|
104
|
-
def self.build(context)
|
105
|
-
Aws::QApps::EndpointParameters.new(
|
106
|
-
region: context.config.region,
|
107
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
108
|
-
use_fips: context.config.use_fips_endpoint,
|
109
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
110
|
-
)
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
class GetQApp
|
115
|
-
def self.build(context)
|
116
|
-
Aws::QApps::EndpointParameters.new(
|
117
|
-
region: context.config.region,
|
118
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
119
|
-
use_fips: context.config.use_fips_endpoint,
|
120
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
121
|
-
)
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
class GetQAppSession
|
126
|
-
def self.build(context)
|
127
|
-
Aws::QApps::EndpointParameters.new(
|
128
|
-
region: context.config.region,
|
129
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
130
|
-
use_fips: context.config.use_fips_endpoint,
|
131
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
132
|
-
)
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
|
-
class ImportDocument
|
137
|
-
def self.build(context)
|
138
|
-
Aws::QApps::EndpointParameters.new(
|
139
|
-
region: context.config.region,
|
140
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
141
|
-
use_fips: context.config.use_fips_endpoint,
|
142
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
143
|
-
)
|
144
|
-
end
|
145
|
-
end
|
146
15
|
|
147
|
-
|
148
|
-
|
149
|
-
Aws::QApps::EndpointParameters.new(
|
150
|
-
region: context.config.region,
|
151
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
152
|
-
use_fips: context.config.use_fips_endpoint,
|
153
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
154
|
-
)
|
155
|
-
end
|
16
|
+
def self.parameters_for_operation(context)
|
17
|
+
Aws::QApps::EndpointParameters.create(context.config)
|
156
18
|
end
|
157
|
-
|
158
|
-
class ListQApps
|
159
|
-
def self.build(context)
|
160
|
-
Aws::QApps::EndpointParameters.new(
|
161
|
-
region: context.config.region,
|
162
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
163
|
-
use_fips: context.config.use_fips_endpoint,
|
164
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
165
|
-
)
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
|
-
class ListTagsForResource
|
170
|
-
def self.build(context)
|
171
|
-
Aws::QApps::EndpointParameters.new(
|
172
|
-
region: context.config.region,
|
173
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
174
|
-
use_fips: context.config.use_fips_endpoint,
|
175
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
176
|
-
)
|
177
|
-
end
|
178
|
-
end
|
179
|
-
|
180
|
-
class PredictQApp
|
181
|
-
def self.build(context)
|
182
|
-
Aws::QApps::EndpointParameters.new(
|
183
|
-
region: context.config.region,
|
184
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
185
|
-
use_fips: context.config.use_fips_endpoint,
|
186
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
187
|
-
)
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
class StartQAppSession
|
192
|
-
def self.build(context)
|
193
|
-
Aws::QApps::EndpointParameters.new(
|
194
|
-
region: context.config.region,
|
195
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
196
|
-
use_fips: context.config.use_fips_endpoint,
|
197
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
198
|
-
)
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
|
-
class StopQAppSession
|
203
|
-
def self.build(context)
|
204
|
-
Aws::QApps::EndpointParameters.new(
|
205
|
-
region: context.config.region,
|
206
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
207
|
-
use_fips: context.config.use_fips_endpoint,
|
208
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
209
|
-
)
|
210
|
-
end
|
211
|
-
end
|
212
|
-
|
213
|
-
class TagResource
|
214
|
-
def self.build(context)
|
215
|
-
Aws::QApps::EndpointParameters.new(
|
216
|
-
region: context.config.region,
|
217
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
|
-
use_fips: context.config.use_fips_endpoint,
|
219
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
220
|
-
)
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
|
-
class UntagResource
|
225
|
-
def self.build(context)
|
226
|
-
Aws::QApps::EndpointParameters.new(
|
227
|
-
region: context.config.region,
|
228
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
229
|
-
use_fips: context.config.use_fips_endpoint,
|
230
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
231
|
-
)
|
232
|
-
end
|
233
|
-
end
|
234
|
-
|
235
|
-
class UpdateLibraryItem
|
236
|
-
def self.build(context)
|
237
|
-
Aws::QApps::EndpointParameters.new(
|
238
|
-
region: context.config.region,
|
239
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
240
|
-
use_fips: context.config.use_fips_endpoint,
|
241
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
242
|
-
)
|
243
|
-
end
|
244
|
-
end
|
245
|
-
|
246
|
-
class UpdateLibraryItemMetadata
|
247
|
-
def self.build(context)
|
248
|
-
Aws::QApps::EndpointParameters.new(
|
249
|
-
region: context.config.region,
|
250
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
251
|
-
use_fips: context.config.use_fips_endpoint,
|
252
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
253
|
-
)
|
254
|
-
end
|
255
|
-
end
|
256
|
-
|
257
|
-
class UpdateQApp
|
258
|
-
def self.build(context)
|
259
|
-
Aws::QApps::EndpointParameters.new(
|
260
|
-
region: context.config.region,
|
261
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
262
|
-
use_fips: context.config.use_fips_endpoint,
|
263
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
264
|
-
)
|
265
|
-
end
|
266
|
-
end
|
267
|
-
|
268
|
-
class UpdateQAppSession
|
269
|
-
def self.build(context)
|
270
|
-
Aws::QApps::EndpointParameters.new(
|
271
|
-
region: context.config.region,
|
272
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
273
|
-
use_fips: context.config.use_fips_endpoint,
|
274
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
275
|
-
)
|
276
|
-
end
|
277
|
-
end
|
278
|
-
|
279
19
|
end
|
280
20
|
end
|
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
28
28
|
def call(context)
|
29
29
|
unless context[:discovered_endpoint]
|
30
|
-
params = parameters_for_operation(context)
|
30
|
+
params = Aws::QApps::Endpoints.parameters_for_operation(context)
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
32
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
@@ -67,59 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
67
67
|
context.http_request.headers[key] = value
|
68
68
|
end
|
69
69
|
end
|
70
|
-
|
71
|
-
def parameters_for_operation(context)
|
72
|
-
case context.operation_name
|
73
|
-
when :associate_library_item_review
|
74
|
-
Aws::QApps::Endpoints::AssociateLibraryItemReview.build(context)
|
75
|
-
when :associate_q_app_with_user
|
76
|
-
Aws::QApps::Endpoints::AssociateQAppWithUser.build(context)
|
77
|
-
when :create_library_item
|
78
|
-
Aws::QApps::Endpoints::CreateLibraryItem.build(context)
|
79
|
-
when :create_q_app
|
80
|
-
Aws::QApps::Endpoints::CreateQApp.build(context)
|
81
|
-
when :delete_library_item
|
82
|
-
Aws::QApps::Endpoints::DeleteLibraryItem.build(context)
|
83
|
-
when :delete_q_app
|
84
|
-
Aws::QApps::Endpoints::DeleteQApp.build(context)
|
85
|
-
when :disassociate_library_item_review
|
86
|
-
Aws::QApps::Endpoints::DisassociateLibraryItemReview.build(context)
|
87
|
-
when :disassociate_q_app_from_user
|
88
|
-
Aws::QApps::Endpoints::DisassociateQAppFromUser.build(context)
|
89
|
-
when :get_library_item
|
90
|
-
Aws::QApps::Endpoints::GetLibraryItem.build(context)
|
91
|
-
when :get_q_app
|
92
|
-
Aws::QApps::Endpoints::GetQApp.build(context)
|
93
|
-
when :get_q_app_session
|
94
|
-
Aws::QApps::Endpoints::GetQAppSession.build(context)
|
95
|
-
when :import_document
|
96
|
-
Aws::QApps::Endpoints::ImportDocument.build(context)
|
97
|
-
when :list_library_items
|
98
|
-
Aws::QApps::Endpoints::ListLibraryItems.build(context)
|
99
|
-
when :list_q_apps
|
100
|
-
Aws::QApps::Endpoints::ListQApps.build(context)
|
101
|
-
when :list_tags_for_resource
|
102
|
-
Aws::QApps::Endpoints::ListTagsForResource.build(context)
|
103
|
-
when :predict_q_app
|
104
|
-
Aws::QApps::Endpoints::PredictQApp.build(context)
|
105
|
-
when :start_q_app_session
|
106
|
-
Aws::QApps::Endpoints::StartQAppSession.build(context)
|
107
|
-
when :stop_q_app_session
|
108
|
-
Aws::QApps::Endpoints::StopQAppSession.build(context)
|
109
|
-
when :tag_resource
|
110
|
-
Aws::QApps::Endpoints::TagResource.build(context)
|
111
|
-
when :untag_resource
|
112
|
-
Aws::QApps::Endpoints::UntagResource.build(context)
|
113
|
-
when :update_library_item
|
114
|
-
Aws::QApps::Endpoints::UpdateLibraryItem.build(context)
|
115
|
-
when :update_library_item_metadata
|
116
|
-
Aws::QApps::Endpoints::UpdateLibraryItemMetadata.build(context)
|
117
|
-
when :update_q_app
|
118
|
-
Aws::QApps::Endpoints::UpdateQApp.build(context)
|
119
|
-
when :update_q_app_session
|
120
|
-
Aws::QApps::Endpoints::UpdateQAppSession.build(context)
|
121
|
-
end
|
122
|
-
end
|
123
70
|
end
|
124
71
|
|
125
72
|
def add_handlers(handlers, _config)
|
data/lib/aws-sdk-qapps/types.rb
CHANGED
@@ -208,6 +208,87 @@ module Aws::QApps
|
|
208
208
|
include Aws::Structure
|
209
209
|
end
|
210
210
|
|
211
|
+
# @!attribute [rw] instance_id
|
212
|
+
# The unique identifier of the Amazon Q Business application
|
213
|
+
# environment instance.
|
214
|
+
# @return [String]
|
215
|
+
#
|
216
|
+
# @!attribute [rw] categories
|
217
|
+
# The list of category objects to be created
|
218
|
+
# @return [Array<Types::BatchCreateCategoryInputCategory>]
|
219
|
+
#
|
220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/BatchCreateCategoryInput AWS API Documentation
|
221
|
+
#
|
222
|
+
class BatchCreateCategoryInput < Struct.new(
|
223
|
+
:instance_id,
|
224
|
+
:categories)
|
225
|
+
SENSITIVE = []
|
226
|
+
include Aws::Structure
|
227
|
+
end
|
228
|
+
|
229
|
+
# The category object to be created.
|
230
|
+
#
|
231
|
+
# @!attribute [rw] id
|
232
|
+
# The unique identifier to be associated with a category. If you
|
233
|
+
# don't include a value, the category is automatically assigned a
|
234
|
+
# unique identifier.
|
235
|
+
# @return [String]
|
236
|
+
#
|
237
|
+
# @!attribute [rw] title
|
238
|
+
# The name of the category.
|
239
|
+
# @return [String]
|
240
|
+
#
|
241
|
+
# @!attribute [rw] color
|
242
|
+
# The color to be associated with a category. The color must be a
|
243
|
+
# hexadecimal value of either 3 or 6 digits.
|
244
|
+
# @return [String]
|
245
|
+
#
|
246
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/BatchCreateCategoryInputCategory AWS API Documentation
|
247
|
+
#
|
248
|
+
class BatchCreateCategoryInputCategory < Struct.new(
|
249
|
+
:id,
|
250
|
+
:title,
|
251
|
+
:color)
|
252
|
+
SENSITIVE = []
|
253
|
+
include Aws::Structure
|
254
|
+
end
|
255
|
+
|
256
|
+
# @!attribute [rw] instance_id
|
257
|
+
# The unique identifier of the Amazon Q Business application
|
258
|
+
# environment instance.
|
259
|
+
# @return [String]
|
260
|
+
#
|
261
|
+
# @!attribute [rw] categories
|
262
|
+
# The list of IDs of the categories to be deleted.
|
263
|
+
# @return [Array<String>]
|
264
|
+
#
|
265
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/BatchDeleteCategoryInput AWS API Documentation
|
266
|
+
#
|
267
|
+
class BatchDeleteCategoryInput < Struct.new(
|
268
|
+
:instance_id,
|
269
|
+
:categories)
|
270
|
+
SENSITIVE = []
|
271
|
+
include Aws::Structure
|
272
|
+
end
|
273
|
+
|
274
|
+
# @!attribute [rw] instance_id
|
275
|
+
# The unique identifier of the Amazon Q Business application
|
276
|
+
# environment instance.
|
277
|
+
# @return [String]
|
278
|
+
#
|
279
|
+
# @!attribute [rw] categories
|
280
|
+
# The list of categories to be updated with their new values.
|
281
|
+
# @return [Array<Types::CategoryInput>]
|
282
|
+
#
|
283
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/BatchUpdateCategoryInput AWS API Documentation
|
284
|
+
#
|
285
|
+
class BatchUpdateCategoryInput < Struct.new(
|
286
|
+
:instance_id,
|
287
|
+
:categories)
|
288
|
+
SENSITIVE = []
|
289
|
+
include Aws::Structure
|
290
|
+
end
|
291
|
+
|
211
292
|
# A card representing a component or step in an Amazon Q App's flow.
|
212
293
|
#
|
213
294
|
# @note Card is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Card corresponding to the set member.
|
@@ -338,11 +419,47 @@ module Aws::QApps
|
|
338
419
|
# The title or name of the category.
|
339
420
|
# @return [String]
|
340
421
|
#
|
422
|
+
# @!attribute [rw] color
|
423
|
+
# The color of the category
|
424
|
+
# @return [String]
|
425
|
+
#
|
426
|
+
# @!attribute [rw] app_count
|
427
|
+
# The number of published Amazon Q Apps associated with a category
|
428
|
+
# @return [Integer]
|
429
|
+
#
|
341
430
|
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/Category AWS API Documentation
|
342
431
|
#
|
343
432
|
class Category < Struct.new(
|
344
433
|
:id,
|
345
|
-
:title
|
434
|
+
:title,
|
435
|
+
:color,
|
436
|
+
:app_count)
|
437
|
+
SENSITIVE = []
|
438
|
+
include Aws::Structure
|
439
|
+
end
|
440
|
+
|
441
|
+
# A label that web experience users associate with a library item. Web
|
442
|
+
# experience users use Categories to tag and filter library items.
|
443
|
+
#
|
444
|
+
# @!attribute [rw] id
|
445
|
+
# The unique identifier of the category.
|
446
|
+
# @return [String]
|
447
|
+
#
|
448
|
+
# @!attribute [rw] title
|
449
|
+
# The name of the category.
|
450
|
+
# @return [String]
|
451
|
+
#
|
452
|
+
# @!attribute [rw] color
|
453
|
+
# The color of the category, represented as a hexadecimal value of
|
454
|
+
# either 3 or 6 digits.
|
455
|
+
# @return [String]
|
456
|
+
#
|
457
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/CategoryInput AWS API Documentation
|
458
|
+
#
|
459
|
+
class CategoryInput < Struct.new(
|
460
|
+
:id,
|
461
|
+
:title,
|
462
|
+
:color)
|
346
463
|
SENSITIVE = []
|
347
464
|
include Aws::Structure
|
348
465
|
end
|
@@ -1202,6 +1319,32 @@ module Aws::QApps
|
|
1202
1319
|
include Aws::Structure
|
1203
1320
|
end
|
1204
1321
|
|
1322
|
+
# @!attribute [rw] instance_id
|
1323
|
+
# The unique identifier of the Amazon Q Business application
|
1324
|
+
# environment instance.
|
1325
|
+
# @return [String]
|
1326
|
+
#
|
1327
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/ListCategoriesInput AWS API Documentation
|
1328
|
+
#
|
1329
|
+
class ListCategoriesInput < Struct.new(
|
1330
|
+
:instance_id)
|
1331
|
+
SENSITIVE = []
|
1332
|
+
include Aws::Structure
|
1333
|
+
end
|
1334
|
+
|
1335
|
+
# @!attribute [rw] categories
|
1336
|
+
# The categories of a Amazon Q Business application environment
|
1337
|
+
# instance.
|
1338
|
+
# @return [Array<Types::Category>]
|
1339
|
+
#
|
1340
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/ListCategoriesOutput AWS API Documentation
|
1341
|
+
#
|
1342
|
+
class ListCategoriesOutput < Struct.new(
|
1343
|
+
:categories)
|
1344
|
+
SENSITIVE = []
|
1345
|
+
include Aws::Structure
|
1346
|
+
end
|
1347
|
+
|
1205
1348
|
# @!attribute [rw] instance_id
|
1206
1349
|
# The unique identifier of the Amazon Q Business application
|
1207
1350
|
# environment instance.
|
data/lib/aws-sdk-qapps.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -89,6 +89,39 @@ module Aws
|
|
89
89
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
90
90
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
91
91
|
|
92
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QApps/Client.html#batch_create_category-instance_method
|
93
|
+
def batch_create_category: (
|
94
|
+
instance_id: ::String,
|
95
|
+
categories: Array[
|
96
|
+
{
|
97
|
+
id: ::String?,
|
98
|
+
title: ::String,
|
99
|
+
color: ::String?
|
100
|
+
},
|
101
|
+
]
|
102
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
103
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
104
|
+
|
105
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QApps/Client.html#batch_delete_category-instance_method
|
106
|
+
def batch_delete_category: (
|
107
|
+
instance_id: ::String,
|
108
|
+
categories: Array[::String]
|
109
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
110
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
111
|
+
|
112
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QApps/Client.html#batch_update_category-instance_method
|
113
|
+
def batch_update_category: (
|
114
|
+
instance_id: ::String,
|
115
|
+
categories: Array[
|
116
|
+
{
|
117
|
+
id: ::String,
|
118
|
+
title: ::String,
|
119
|
+
color: ::String?
|
120
|
+
},
|
121
|
+
]
|
122
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
123
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
124
|
+
|
92
125
|
interface _CreateLibraryItemResponseSuccess
|
93
126
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateLibraryItemOutput]
|
94
127
|
def library_item_id: () -> ::String
|
@@ -346,6 +379,16 @@ module Aws
|
|
346
379
|
) -> _ImportDocumentResponseSuccess
|
347
380
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ImportDocumentResponseSuccess
|
348
381
|
|
382
|
+
interface _ListCategoriesResponseSuccess
|
383
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListCategoriesOutput]
|
384
|
+
def categories: () -> ::Array[Types::Category]
|
385
|
+
end
|
386
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QApps/Client.html#list_categories-instance_method
|
387
|
+
def list_categories: (
|
388
|
+
instance_id: ::String
|
389
|
+
) -> _ListCategoriesResponseSuccess
|
390
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCategoriesResponseSuccess
|
391
|
+
|
349
392
|
interface _ListLibraryItemsResponseSuccess
|
350
393
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListLibraryItemsOutput]
|
351
394
|
def library_items: () -> ::Array[Types::LibraryItemMember]
|
data/sig/types.rbs
CHANGED
@@ -52,6 +52,31 @@ module Aws::QApps
|
|
52
52
|
SENSITIVE: []
|
53
53
|
end
|
54
54
|
|
55
|
+
class BatchCreateCategoryInput
|
56
|
+
attr_accessor instance_id: ::String
|
57
|
+
attr_accessor categories: ::Array[Types::BatchCreateCategoryInputCategory]
|
58
|
+
SENSITIVE: []
|
59
|
+
end
|
60
|
+
|
61
|
+
class BatchCreateCategoryInputCategory
|
62
|
+
attr_accessor id: ::String
|
63
|
+
attr_accessor title: ::String
|
64
|
+
attr_accessor color: ::String
|
65
|
+
SENSITIVE: []
|
66
|
+
end
|
67
|
+
|
68
|
+
class BatchDeleteCategoryInput
|
69
|
+
attr_accessor instance_id: ::String
|
70
|
+
attr_accessor categories: ::Array[::String]
|
71
|
+
SENSITIVE: []
|
72
|
+
end
|
73
|
+
|
74
|
+
class BatchUpdateCategoryInput
|
75
|
+
attr_accessor instance_id: ::String
|
76
|
+
attr_accessor categories: ::Array[Types::CategoryInput]
|
77
|
+
SENSITIVE: []
|
78
|
+
end
|
79
|
+
|
55
80
|
class Card
|
56
81
|
attr_accessor text_input: Types::TextInputCard
|
57
82
|
attr_accessor q_query: Types::QQueryCard
|
@@ -107,6 +132,15 @@ module Aws::QApps
|
|
107
132
|
class Category
|
108
133
|
attr_accessor id: ::String
|
109
134
|
attr_accessor title: ::String
|
135
|
+
attr_accessor color: ::String
|
136
|
+
attr_accessor app_count: ::Integer
|
137
|
+
SENSITIVE: []
|
138
|
+
end
|
139
|
+
|
140
|
+
class CategoryInput
|
141
|
+
attr_accessor id: ::String
|
142
|
+
attr_accessor title: ::String
|
143
|
+
attr_accessor color: ::String
|
110
144
|
SENSITIVE: []
|
111
145
|
end
|
112
146
|
|
@@ -346,6 +380,16 @@ module Aws::QApps
|
|
346
380
|
SENSITIVE: []
|
347
381
|
end
|
348
382
|
|
383
|
+
class ListCategoriesInput
|
384
|
+
attr_accessor instance_id: ::String
|
385
|
+
SENSITIVE: []
|
386
|
+
end
|
387
|
+
|
388
|
+
class ListCategoriesOutput
|
389
|
+
attr_accessor categories: ::Array[Types::Category]
|
390
|
+
SENSITIVE: []
|
391
|
+
end
|
392
|
+
|
349
393
|
class ListLibraryItemsInput
|
350
394
|
attr_accessor instance_id: ::String
|
351
395
|
attr_accessor limit: ::Integer
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-qapps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.210.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.210.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|