aws-sdk-braket 1.2.0 → 1.7.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 +42 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-braket.rb +3 -2
- data/lib/aws-sdk-braket/client.rb +108 -12
- data/lib/aws-sdk-braket/client_api.rb +94 -27
- data/lib/aws-sdk-braket/errors.rb +1 -1
- data/lib/aws-sdk-braket/resource.rb +1 -1
- data/lib/aws-sdk-braket/types.rb +125 -13
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7465c303784afe13a4ba52c3dfee1cbcd298d377ac4f6d7c5a3e618f9fccafef
|
4
|
+
data.tar.gz: ea6324c8793cc4906894785023554956350d6d0fc98174700c8d0ff10a83e9b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c971aaf035e5a1b1dddf3cfe47a75080c8b6bb3ae9820f8f11ab301c9ac3b4e9627a7adfa64e2b0f7ba0efdcdea43898cd74ae1a32c8fc8fa44eb05b86a3d90b
|
7
|
+
data.tar.gz: 80735e7c1f0e39eb5eb5575974059d1235f0b141ab24599cc260b5fe5016cf7b68fd6db8de15f9ea8144864ac9d0eda1861be58d612419706793f768f8932e68
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
Unreleased Changes
|
2
|
+
------------------
|
3
|
+
|
4
|
+
1.7.0 (2021-03-10)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.6.0 (2021-02-02)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.5.0 (2020-10-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release supports tagging for Amazon Braket quantum-task resources. It also supports tag-based access control for quantum-task APIs.
|
18
|
+
|
19
|
+
1.4.0 (2020-09-30)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
24
|
+
1.3.0 (2020-09-15)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
28
|
+
|
29
|
+
1.2.0 (2020-08-25)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
33
|
+
|
34
|
+
1.1.0 (2020-08-14)
|
35
|
+
------------------
|
36
|
+
|
37
|
+
* Feature - Fixing bug in our SDK model where device status and device type had been flipped.
|
38
|
+
|
39
|
+
1.0.0 (2020-08-13)
|
40
|
+
------------------
|
41
|
+
|
42
|
+
* Feature - Initial release of `aws-sdk-braket`.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.7.0
|
data/lib/aws-sdk-braket.rb
CHANGED
@@ -3,10 +3,11 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-braket/customizations'
|
|
47
48
|
# @!group service
|
48
49
|
module Aws::Braket
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.7.0'
|
51
52
|
|
52
53
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -352,7 +352,7 @@ module Aws::Braket
|
|
352
352
|
#
|
353
353
|
# @example Response structure
|
354
354
|
#
|
355
|
-
# resp.cancellation_status #=> String, one of "
|
355
|
+
# resp.cancellation_status #=> String, one of "CANCELLING", "CANCELLED"
|
356
356
|
# resp.quantum_task_arn #=> String
|
357
357
|
#
|
358
358
|
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask AWS API Documentation
|
@@ -399,6 +399,9 @@ module Aws::Braket
|
|
399
399
|
# @option params [required, Integer] :shots
|
400
400
|
# The number of shots to use for the task.
|
401
401
|
#
|
402
|
+
# @option params [Hash<String,String>] :tags
|
403
|
+
# Tags to be added to the quantum task you're creating.
|
404
|
+
#
|
402
405
|
# @return [Types::CreateQuantumTaskResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
403
406
|
#
|
404
407
|
# * {Types::CreateQuantumTaskResponse#quantum_task_arn #quantum_task_arn} => String
|
@@ -409,10 +412,13 @@ module Aws::Braket
|
|
409
412
|
# action: "JsonValue", # required
|
410
413
|
# client_token: "String64", # required
|
411
414
|
# device_arn: "DeviceArn", # required
|
412
|
-
# device_parameters: "
|
413
|
-
# output_s3_bucket: "
|
414
|
-
# output_s3_key_prefix: "
|
415
|
+
# device_parameters: "CreateQuantumTaskRequestDeviceParametersString",
|
416
|
+
# output_s3_bucket: "CreateQuantumTaskRequestOutputS3BucketString", # required
|
417
|
+
# output_s3_key_prefix: "CreateQuantumTaskRequestOutputS3KeyPrefixString", # required
|
415
418
|
# shots: 1, # required
|
419
|
+
# tags: {
|
420
|
+
# "String" => "String",
|
421
|
+
# },
|
416
422
|
# })
|
417
423
|
#
|
418
424
|
# @example Response structure
|
@@ -453,7 +459,7 @@ module Aws::Braket
|
|
453
459
|
# resp.device_arn #=> String
|
454
460
|
# resp.device_capabilities #=> String
|
455
461
|
# resp.device_name #=> String
|
456
|
-
# resp.device_status #=> String, one of "
|
462
|
+
# resp.device_status #=> String, one of "ONLINE", "OFFLINE"
|
457
463
|
# resp.device_type #=> String, one of "QPU", "SIMULATOR"
|
458
464
|
# resp.provider_name #=> String
|
459
465
|
#
|
@@ -483,6 +489,7 @@ module Aws::Braket
|
|
483
489
|
# * {Types::GetQuantumTaskResponse#quantum_task_arn #quantum_task_arn} => String
|
484
490
|
# * {Types::GetQuantumTaskResponse#shots #shots} => Integer
|
485
491
|
# * {Types::GetQuantumTaskResponse#status #status} => String
|
492
|
+
# * {Types::GetQuantumTaskResponse#tags #tags} => Hash<String,String>
|
486
493
|
#
|
487
494
|
# @example Request syntax with placeholder values
|
488
495
|
#
|
@@ -501,7 +508,9 @@ module Aws::Braket
|
|
501
508
|
# resp.output_s3_directory #=> String
|
502
509
|
# resp.quantum_task_arn #=> String
|
503
510
|
# resp.shots #=> Integer
|
504
|
-
# resp.status #=> String, one of "
|
511
|
+
# resp.status #=> String, one of "CREATED", "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
|
512
|
+
# resp.tags #=> Hash
|
513
|
+
# resp.tags["String"] #=> String
|
505
514
|
#
|
506
515
|
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask AWS API Documentation
|
507
516
|
#
|
@@ -512,6 +521,35 @@ module Aws::Braket
|
|
512
521
|
req.send_request(options)
|
513
522
|
end
|
514
523
|
|
524
|
+
# Shows the tags associated with this resource.
|
525
|
+
#
|
526
|
+
# @option params [required, String] :resource_arn
|
527
|
+
# Specify the `resourceArn` for the resource whose tags to display.
|
528
|
+
#
|
529
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
530
|
+
#
|
531
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
|
532
|
+
#
|
533
|
+
# @example Request syntax with placeholder values
|
534
|
+
#
|
535
|
+
# resp = client.list_tags_for_resource({
|
536
|
+
# resource_arn: "String", # required
|
537
|
+
# })
|
538
|
+
#
|
539
|
+
# @example Response structure
|
540
|
+
#
|
541
|
+
# resp.tags #=> Hash
|
542
|
+
# resp.tags["String"] #=> String
|
543
|
+
#
|
544
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource AWS API Documentation
|
545
|
+
#
|
546
|
+
# @overload list_tags_for_resource(params = {})
|
547
|
+
# @param [Hash] params ({})
|
548
|
+
def list_tags_for_resource(params = {}, options = {})
|
549
|
+
req = build_request(:list_tags_for_resource, params)
|
550
|
+
req.send_request(options)
|
551
|
+
end
|
552
|
+
|
515
553
|
# Searches for devices using the specified filters.
|
516
554
|
#
|
517
555
|
# @option params [required, Array<Types::SearchDevicesFilter>] :filters
|
@@ -537,7 +575,7 @@ module Aws::Braket
|
|
537
575
|
# resp = client.search_devices({
|
538
576
|
# filters: [ # required
|
539
577
|
# {
|
540
|
-
# name: "
|
578
|
+
# name: "SearchDevicesFilterNameString", # required
|
541
579
|
# values: ["String256"], # required
|
542
580
|
# },
|
543
581
|
# ],
|
@@ -550,7 +588,7 @@ module Aws::Braket
|
|
550
588
|
# resp.devices #=> Array
|
551
589
|
# resp.devices[0].device_arn #=> String
|
552
590
|
# resp.devices[0].device_name #=> String
|
553
|
-
# resp.devices[0].device_status #=> String, one of "
|
591
|
+
# resp.devices[0].device_status #=> String, one of "ONLINE", "OFFLINE"
|
554
592
|
# resp.devices[0].device_type #=> String, one of "QPU", "SIMULATOR"
|
555
593
|
# resp.devices[0].provider_name #=> String
|
556
594
|
# resp.next_token #=> String
|
@@ -590,7 +628,7 @@ module Aws::Braket
|
|
590
628
|
# filters: [ # required
|
591
629
|
# {
|
592
630
|
# name: "String64", # required
|
593
|
-
# operator: "
|
631
|
+
# operator: "LT", # required, accepts LT, LTE, EQUAL, GT, GTE, BETWEEN
|
594
632
|
# values: ["String256"], # required
|
595
633
|
# },
|
596
634
|
# ],
|
@@ -609,7 +647,9 @@ module Aws::Braket
|
|
609
647
|
# resp.quantum_tasks[0].output_s3_directory #=> String
|
610
648
|
# resp.quantum_tasks[0].quantum_task_arn #=> String
|
611
649
|
# resp.quantum_tasks[0].shots #=> Integer
|
612
|
-
# resp.quantum_tasks[0].status #=> String, one of "
|
650
|
+
# resp.quantum_tasks[0].status #=> String, one of "CREATED", "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
|
651
|
+
# resp.quantum_tasks[0].tags #=> Hash
|
652
|
+
# resp.quantum_tasks[0].tags["String"] #=> String
|
613
653
|
#
|
614
654
|
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks AWS API Documentation
|
615
655
|
#
|
@@ -620,6 +660,62 @@ module Aws::Braket
|
|
620
660
|
req.send_request(options)
|
621
661
|
end
|
622
662
|
|
663
|
+
# Add a tag to the specified resource.
|
664
|
+
#
|
665
|
+
# @option params [required, String] :resource_arn
|
666
|
+
# Specify the `resourceArn` of the resource to which a tag will be
|
667
|
+
# added.
|
668
|
+
#
|
669
|
+
# @option params [required, Hash<String,String>] :tags
|
670
|
+
# Specify the tags to add to the resource.
|
671
|
+
#
|
672
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
673
|
+
#
|
674
|
+
# @example Request syntax with placeholder values
|
675
|
+
#
|
676
|
+
# resp = client.tag_resource({
|
677
|
+
# resource_arn: "String", # required
|
678
|
+
# tags: { # required
|
679
|
+
# "String" => "String",
|
680
|
+
# },
|
681
|
+
# })
|
682
|
+
#
|
683
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource AWS API Documentation
|
684
|
+
#
|
685
|
+
# @overload tag_resource(params = {})
|
686
|
+
# @param [Hash] params ({})
|
687
|
+
def tag_resource(params = {}, options = {})
|
688
|
+
req = build_request(:tag_resource, params)
|
689
|
+
req.send_request(options)
|
690
|
+
end
|
691
|
+
|
692
|
+
# Remove tags from a resource.
|
693
|
+
#
|
694
|
+
# @option params [required, String] :resource_arn
|
695
|
+
# Specify the `resourceArn` for the resource from which to remove the
|
696
|
+
# tags.
|
697
|
+
#
|
698
|
+
# @option params [required, Array<String>] :tag_keys
|
699
|
+
# pecify the keys for the tags to remove from the resource.
|
700
|
+
#
|
701
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
702
|
+
#
|
703
|
+
# @example Request syntax with placeholder values
|
704
|
+
#
|
705
|
+
# resp = client.untag_resource({
|
706
|
+
# resource_arn: "String", # required
|
707
|
+
# tag_keys: ["String"], # required
|
708
|
+
# })
|
709
|
+
#
|
710
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource AWS API Documentation
|
711
|
+
#
|
712
|
+
# @overload untag_resource(params = {})
|
713
|
+
# @param [Hash] params ({})
|
714
|
+
def untag_resource(params = {}, options = {})
|
715
|
+
req = build_request(:untag_resource, params)
|
716
|
+
req.send_request(options)
|
717
|
+
end
|
718
|
+
|
623
719
|
# @!endgroup
|
624
720
|
|
625
721
|
# @param params ({})
|
@@ -633,7 +729,7 @@ module Aws::Braket
|
|
633
729
|
params: params,
|
634
730
|
config: config)
|
635
731
|
context[:gem_name] = 'aws-sdk-braket'
|
636
|
-
context[:gem_version] = '1.
|
732
|
+
context[:gem_version] = '1.7.0'
|
637
733
|
Seahorse::Client::Request.new(handlers, context)
|
638
734
|
end
|
639
735
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -19,10 +19,10 @@ module Aws::Braket
|
|
19
19
|
CancellationStatus = Shapes::StringShape.new(name: 'CancellationStatus')
|
20
20
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
21
21
|
CreateQuantumTaskRequest = Shapes::StructureShape.new(name: 'CreateQuantumTaskRequest')
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
CreateQuantumTaskRequestDeviceParametersString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestDeviceParametersString')
|
23
|
+
CreateQuantumTaskRequestOutputS3BucketString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestOutputS3BucketString')
|
24
|
+
CreateQuantumTaskRequestOutputS3KeyPrefixString = Shapes::StringShape.new(name: 'CreateQuantumTaskRequestOutputS3KeyPrefixString')
|
25
|
+
CreateQuantumTaskRequestShotsLong = Shapes::IntegerShape.new(name: 'CreateQuantumTaskRequestShotsLong')
|
26
26
|
CreateQuantumTaskResponse = Shapes::StructureShape.new(name: 'CreateQuantumTaskResponse')
|
27
27
|
DeviceArn = Shapes::StringShape.new(name: 'DeviceArn')
|
28
28
|
DeviceOfflineException = Shapes::StructureShape.new(name: 'DeviceOfflineException')
|
@@ -36,6 +36,8 @@ module Aws::Braket
|
|
36
36
|
GetQuantumTaskResponse = Shapes::StructureShape.new(name: 'GetQuantumTaskResponse')
|
37
37
|
InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
|
38
38
|
JsonValue = Shapes::StringShape.new(name: 'JsonValue')
|
39
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
40
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
39
41
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
40
42
|
QuantumTaskArn = Shapes::StringShape.new(name: 'QuantumTaskArn')
|
41
43
|
QuantumTaskStatus = Shapes::StringShape.new(name: 'QuantumTaskStatus')
|
@@ -43,25 +45,31 @@ module Aws::Braket
|
|
43
45
|
QuantumTaskSummaryList = Shapes::ListShape.new(name: 'QuantumTaskSummaryList')
|
44
46
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
45
47
|
SearchDevicesFilter = Shapes::StructureShape.new(name: 'SearchDevicesFilter')
|
46
|
-
|
47
|
-
|
48
|
+
SearchDevicesFilterNameString = Shapes::StringShape.new(name: 'SearchDevicesFilterNameString')
|
49
|
+
SearchDevicesFilterValuesList = Shapes::ListShape.new(name: 'SearchDevicesFilterValuesList')
|
48
50
|
SearchDevicesRequest = Shapes::StructureShape.new(name: 'SearchDevicesRequest')
|
49
|
-
|
50
|
-
|
51
|
+
SearchDevicesRequestFiltersList = Shapes::ListShape.new(name: 'SearchDevicesRequestFiltersList')
|
52
|
+
SearchDevicesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchDevicesRequestMaxResultsInteger')
|
51
53
|
SearchDevicesResponse = Shapes::StructureShape.new(name: 'SearchDevicesResponse')
|
52
54
|
SearchQuantumTasksFilter = Shapes::StructureShape.new(name: 'SearchQuantumTasksFilter')
|
53
55
|
SearchQuantumTasksFilterOperator = Shapes::StringShape.new(name: 'SearchQuantumTasksFilterOperator')
|
54
|
-
|
56
|
+
SearchQuantumTasksFilterValuesList = Shapes::ListShape.new(name: 'SearchQuantumTasksFilterValuesList')
|
55
57
|
SearchQuantumTasksRequest = Shapes::StructureShape.new(name: 'SearchQuantumTasksRequest')
|
56
|
-
|
57
|
-
|
58
|
+
SearchQuantumTasksRequestFiltersList = Shapes::ListShape.new(name: 'SearchQuantumTasksRequestFiltersList')
|
59
|
+
SearchQuantumTasksRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchQuantumTasksRequestMaxResultsInteger')
|
58
60
|
SearchQuantumTasksResponse = Shapes::StructureShape.new(name: 'SearchQuantumTasksResponse')
|
59
61
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
60
62
|
String = Shapes::StringShape.new(name: 'String')
|
61
63
|
String256 = Shapes::StringShape.new(name: 'String256')
|
62
64
|
String64 = Shapes::StringShape.new(name: 'String64')
|
63
65
|
SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
|
66
|
+
TagKeys = Shapes::ListShape.new(name: 'TagKeys')
|
67
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
68
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
69
|
+
TagsMap = Shapes::MapShape.new(name: 'TagsMap')
|
64
70
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
71
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
72
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
65
73
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
66
74
|
|
67
75
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
@@ -81,10 +89,11 @@ module Aws::Braket
|
|
81
89
|
CreateQuantumTaskRequest.add_member(:action, Shapes::ShapeRef.new(shape: JsonValue, required: true, location_name: "action", metadata: {"jsonvalue"=>true}))
|
82
90
|
CreateQuantumTaskRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String64, required: true, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
83
91
|
CreateQuantumTaskRequest.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
|
84
|
-
CreateQuantumTaskRequest.add_member(:device_parameters, Shapes::ShapeRef.new(shape:
|
85
|
-
CreateQuantumTaskRequest.add_member(:output_s3_bucket, Shapes::ShapeRef.new(shape:
|
86
|
-
CreateQuantumTaskRequest.add_member(:output_s3_key_prefix, Shapes::ShapeRef.new(shape:
|
87
|
-
CreateQuantumTaskRequest.add_member(:shots, Shapes::ShapeRef.new(shape:
|
92
|
+
CreateQuantumTaskRequest.add_member(:device_parameters, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestDeviceParametersString, location_name: "deviceParameters", metadata: {"jsonvalue"=>true}))
|
93
|
+
CreateQuantumTaskRequest.add_member(:output_s3_bucket, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestOutputS3BucketString, required: true, location_name: "outputS3Bucket"))
|
94
|
+
CreateQuantumTaskRequest.add_member(:output_s3_key_prefix, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestOutputS3KeyPrefixString, required: true, location_name: "outputS3KeyPrefix"))
|
95
|
+
CreateQuantumTaskRequest.add_member(:shots, Shapes::ShapeRef.new(shape: CreateQuantumTaskRequestShotsLong, required: true, location_name: "shots"))
|
96
|
+
CreateQuantumTaskRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
88
97
|
CreateQuantumTaskRequest.struct_class = Types::CreateQuantumTaskRequest
|
89
98
|
|
90
99
|
CreateQuantumTaskResponse.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location_name: "quantumTaskArn"))
|
@@ -126,11 +135,18 @@ module Aws::Braket
|
|
126
135
|
GetQuantumTaskResponse.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location_name: "quantumTaskArn"))
|
127
136
|
GetQuantumTaskResponse.add_member(:shots, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "shots"))
|
128
137
|
GetQuantumTaskResponse.add_member(:status, Shapes::ShapeRef.new(shape: QuantumTaskStatus, required: true, location_name: "status"))
|
138
|
+
GetQuantumTaskResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
129
139
|
GetQuantumTaskResponse.struct_class = Types::GetQuantumTaskResponse
|
130
140
|
|
131
141
|
InternalServiceException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
132
142
|
InternalServiceException.struct_class = Types::InternalServiceException
|
133
143
|
|
144
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
145
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
146
|
+
|
147
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
148
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
149
|
+
|
134
150
|
QuantumTaskSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "createdAt"))
|
135
151
|
QuantumTaskSummary.add_member(:device_arn, Shapes::ShapeRef.new(shape: DeviceArn, required: true, location_name: "deviceArn"))
|
136
152
|
QuantumTaskSummary.add_member(:ended_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "endedAt"))
|
@@ -139,6 +155,7 @@ module Aws::Braket
|
|
139
155
|
QuantumTaskSummary.add_member(:quantum_task_arn, Shapes::ShapeRef.new(shape: QuantumTaskArn, required: true, location_name: "quantumTaskArn"))
|
140
156
|
QuantumTaskSummary.add_member(:shots, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "shots"))
|
141
157
|
QuantumTaskSummary.add_member(:status, Shapes::ShapeRef.new(shape: QuantumTaskStatus, required: true, location_name: "status"))
|
158
|
+
QuantumTaskSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
142
159
|
QuantumTaskSummary.struct_class = Types::QuantumTaskSummary
|
143
160
|
|
144
161
|
QuantumTaskSummaryList.member = Shapes::ShapeRef.new(shape: QuantumTaskSummary)
|
@@ -146,18 +163,18 @@ module Aws::Braket
|
|
146
163
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
147
164
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
148
165
|
|
149
|
-
SearchDevicesFilter.add_member(:name, Shapes::ShapeRef.new(shape:
|
150
|
-
SearchDevicesFilter.add_member(:values, Shapes::ShapeRef.new(shape:
|
166
|
+
SearchDevicesFilter.add_member(:name, Shapes::ShapeRef.new(shape: SearchDevicesFilterNameString, required: true, location_name: "name"))
|
167
|
+
SearchDevicesFilter.add_member(:values, Shapes::ShapeRef.new(shape: SearchDevicesFilterValuesList, required: true, location_name: "values"))
|
151
168
|
SearchDevicesFilter.struct_class = Types::SearchDevicesFilter
|
152
169
|
|
153
|
-
|
170
|
+
SearchDevicesFilterValuesList.member = Shapes::ShapeRef.new(shape: String256)
|
154
171
|
|
155
|
-
SearchDevicesRequest.add_member(:filters, Shapes::ShapeRef.new(shape:
|
156
|
-
SearchDevicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape:
|
172
|
+
SearchDevicesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SearchDevicesRequestFiltersList, required: true, location_name: "filters"))
|
173
|
+
SearchDevicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchDevicesRequestMaxResultsInteger, location_name: "maxResults"))
|
157
174
|
SearchDevicesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
158
175
|
SearchDevicesRequest.struct_class = Types::SearchDevicesRequest
|
159
176
|
|
160
|
-
|
177
|
+
SearchDevicesRequestFiltersList.member = Shapes::ShapeRef.new(shape: SearchDevicesFilter)
|
161
178
|
|
162
179
|
SearchDevicesResponse.add_member(:devices, Shapes::ShapeRef.new(shape: DeviceSummaryList, required: true, location_name: "devices"))
|
163
180
|
SearchDevicesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
@@ -165,17 +182,17 @@ module Aws::Braket
|
|
165
182
|
|
166
183
|
SearchQuantumTasksFilter.add_member(:name, Shapes::ShapeRef.new(shape: String64, required: true, location_name: "name"))
|
167
184
|
SearchQuantumTasksFilter.add_member(:operator, Shapes::ShapeRef.new(shape: SearchQuantumTasksFilterOperator, required: true, location_name: "operator"))
|
168
|
-
SearchQuantumTasksFilter.add_member(:values, Shapes::ShapeRef.new(shape:
|
185
|
+
SearchQuantumTasksFilter.add_member(:values, Shapes::ShapeRef.new(shape: SearchQuantumTasksFilterValuesList, required: true, location_name: "values"))
|
169
186
|
SearchQuantumTasksFilter.struct_class = Types::SearchQuantumTasksFilter
|
170
187
|
|
171
|
-
|
188
|
+
SearchQuantumTasksFilterValuesList.member = Shapes::ShapeRef.new(shape: String256)
|
172
189
|
|
173
|
-
SearchQuantumTasksRequest.add_member(:filters, Shapes::ShapeRef.new(shape:
|
174
|
-
SearchQuantumTasksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape:
|
190
|
+
SearchQuantumTasksRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SearchQuantumTasksRequestFiltersList, required: true, location_name: "filters"))
|
191
|
+
SearchQuantumTasksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchQuantumTasksRequestMaxResultsInteger, location_name: "maxResults"))
|
175
192
|
SearchQuantumTasksRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
176
193
|
SearchQuantumTasksRequest.struct_class = Types::SearchQuantumTasksRequest
|
177
194
|
|
178
|
-
|
195
|
+
SearchQuantumTasksRequestFiltersList.member = Shapes::ShapeRef.new(shape: SearchQuantumTasksFilter)
|
179
196
|
|
180
197
|
SearchQuantumTasksResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
181
198
|
SearchQuantumTasksResponse.add_member(:quantum_tasks, Shapes::ShapeRef.new(shape: QuantumTaskSummaryList, required: true, location_name: "quantumTasks"))
|
@@ -184,9 +201,26 @@ module Aws::Braket
|
|
184
201
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
185
202
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
186
203
|
|
204
|
+
TagKeys.member = Shapes::ShapeRef.new(shape: String)
|
205
|
+
|
206
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
207
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, required: true, location_name: "tags"))
|
208
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
209
|
+
|
210
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
211
|
+
|
212
|
+
TagsMap.key = Shapes::ShapeRef.new(shape: String)
|
213
|
+
TagsMap.value = Shapes::ShapeRef.new(shape: String)
|
214
|
+
|
187
215
|
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
188
216
|
ThrottlingException.struct_class = Types::ThrottlingException
|
189
217
|
|
218
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
219
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
|
220
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
221
|
+
|
222
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
223
|
+
|
190
224
|
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
191
225
|
ValidationException.struct_class = Types::ValidationException
|
192
226
|
|
@@ -262,6 +296,17 @@ module Aws::Braket
|
|
262
296
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
263
297
|
end)
|
264
298
|
|
299
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
300
|
+
o.name = "ListTagsForResource"
|
301
|
+
o.http_method = "GET"
|
302
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
303
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
304
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
305
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
306
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
307
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
308
|
+
end)
|
309
|
+
|
265
310
|
api.add_operation(:search_devices, Seahorse::Model::Operation.new.tap do |o|
|
266
311
|
o.name = "SearchDevices"
|
267
312
|
o.http_method = "POST"
|
@@ -297,6 +342,28 @@ module Aws::Braket
|
|
297
342
|
}
|
298
343
|
)
|
299
344
|
end)
|
345
|
+
|
346
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
347
|
+
o.name = "TagResource"
|
348
|
+
o.http_method = "POST"
|
349
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
350
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
351
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
352
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
353
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
354
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
355
|
+
end)
|
356
|
+
|
357
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
358
|
+
o.name = "UntagResource"
|
359
|
+
o.http_method = "DELETE"
|
360
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
361
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
362
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
363
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
364
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
365
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
366
|
+
end)
|
300
367
|
end
|
301
368
|
|
302
369
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
data/lib/aws-sdk-braket/types.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -88,10 +88,13 @@ module Aws::Braket
|
|
88
88
|
# action: "JsonValue", # required
|
89
89
|
# client_token: "String64", # required
|
90
90
|
# device_arn: "DeviceArn", # required
|
91
|
-
# device_parameters: "
|
92
|
-
# output_s3_bucket: "
|
93
|
-
# output_s3_key_prefix: "
|
91
|
+
# device_parameters: "CreateQuantumTaskRequestDeviceParametersString",
|
92
|
+
# output_s3_bucket: "CreateQuantumTaskRequestOutputS3BucketString", # required
|
93
|
+
# output_s3_key_prefix: "CreateQuantumTaskRequestOutputS3KeyPrefixString", # required
|
94
94
|
# shots: 1, # required
|
95
|
+
# tags: {
|
96
|
+
# "String" => "String",
|
97
|
+
# },
|
95
98
|
# }
|
96
99
|
#
|
97
100
|
# @!attribute [rw] action
|
@@ -126,6 +129,10 @@ module Aws::Braket
|
|
126
129
|
# The number of shots to use for the task.
|
127
130
|
# @return [Integer]
|
128
131
|
#
|
132
|
+
# @!attribute [rw] tags
|
133
|
+
# Tags to be added to the quantum task you're creating.
|
134
|
+
# @return [Hash<String,String>]
|
135
|
+
#
|
129
136
|
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTaskRequest AWS API Documentation
|
130
137
|
#
|
131
138
|
class CreateQuantumTaskRequest < Struct.new(
|
@@ -135,7 +142,8 @@ module Aws::Braket
|
|
135
142
|
:device_parameters,
|
136
143
|
:output_s3_bucket,
|
137
144
|
:output_s3_key_prefix,
|
138
|
-
:shots
|
145
|
+
:shots,
|
146
|
+
:tags)
|
139
147
|
SENSITIVE = []
|
140
148
|
include Aws::Structure
|
141
149
|
end
|
@@ -314,6 +322,10 @@ module Aws::Braket
|
|
314
322
|
# The status of the task.
|
315
323
|
# @return [String]
|
316
324
|
#
|
325
|
+
# @!attribute [rw] tags
|
326
|
+
# The tags that belong to this task.
|
327
|
+
# @return [Hash<String,String>]
|
328
|
+
#
|
317
329
|
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTaskResponse AWS API Documentation
|
318
330
|
#
|
319
331
|
class GetQuantumTaskResponse < Struct.new(
|
@@ -326,13 +338,14 @@ module Aws::Braket
|
|
326
338
|
:output_s3_directory,
|
327
339
|
:quantum_task_arn,
|
328
340
|
:shots,
|
329
|
-
:status
|
341
|
+
:status,
|
342
|
+
:tags)
|
330
343
|
SENSITIVE = []
|
331
344
|
include Aws::Structure
|
332
345
|
end
|
333
346
|
|
334
347
|
# The request processing has failed because of an unknown error,
|
335
|
-
# exception or failure.
|
348
|
+
# exception, or failure.
|
336
349
|
#
|
337
350
|
# @!attribute [rw] message
|
338
351
|
# @return [String]
|
@@ -345,6 +358,37 @@ module Aws::Braket
|
|
345
358
|
include Aws::Structure
|
346
359
|
end
|
347
360
|
|
361
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
362
|
+
# data as a hash:
|
363
|
+
#
|
364
|
+
# {
|
365
|
+
# resource_arn: "String", # required
|
366
|
+
# }
|
367
|
+
#
|
368
|
+
# @!attribute [rw] resource_arn
|
369
|
+
# Specify the `resourceArn` for the resource whose tags to display.
|
370
|
+
# @return [String]
|
371
|
+
#
|
372
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResourceRequest AWS API Documentation
|
373
|
+
#
|
374
|
+
class ListTagsForResourceRequest < Struct.new(
|
375
|
+
:resource_arn)
|
376
|
+
SENSITIVE = []
|
377
|
+
include Aws::Structure
|
378
|
+
end
|
379
|
+
|
380
|
+
# @!attribute [rw] tags
|
381
|
+
# Displays the key, value pairs of tags associated with this resource.
|
382
|
+
# @return [Hash<String,String>]
|
383
|
+
#
|
384
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResourceResponse AWS API Documentation
|
385
|
+
#
|
386
|
+
class ListTagsForResourceResponse < Struct.new(
|
387
|
+
:tags)
|
388
|
+
SENSITIVE = []
|
389
|
+
include Aws::Structure
|
390
|
+
end
|
391
|
+
|
348
392
|
# Includes information about a quantum task.
|
349
393
|
#
|
350
394
|
# @!attribute [rw] created_at
|
@@ -379,6 +423,11 @@ module Aws::Braket
|
|
379
423
|
# The status of the task.
|
380
424
|
# @return [String]
|
381
425
|
#
|
426
|
+
# @!attribute [rw] tags
|
427
|
+
# Displays the key, value pairs of tags associated with this quantum
|
428
|
+
# task.
|
429
|
+
# @return [Hash<String,String>]
|
430
|
+
#
|
382
431
|
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/QuantumTaskSummary AWS API Documentation
|
383
432
|
#
|
384
433
|
class QuantumTaskSummary < Struct.new(
|
@@ -389,7 +438,8 @@ module Aws::Braket
|
|
389
438
|
:output_s3_directory,
|
390
439
|
:quantum_task_arn,
|
391
440
|
:shots,
|
392
|
-
:status
|
441
|
+
:status,
|
442
|
+
:tags)
|
393
443
|
SENSITIVE = []
|
394
444
|
include Aws::Structure
|
395
445
|
end
|
@@ -413,7 +463,7 @@ module Aws::Braket
|
|
413
463
|
# data as a hash:
|
414
464
|
#
|
415
465
|
# {
|
416
|
-
# name: "
|
466
|
+
# name: "SearchDevicesFilterNameString", # required
|
417
467
|
# values: ["String256"], # required
|
418
468
|
# }
|
419
469
|
#
|
@@ -440,7 +490,7 @@ module Aws::Braket
|
|
440
490
|
# {
|
441
491
|
# filters: [ # required
|
442
492
|
# {
|
443
|
-
# name: "
|
493
|
+
# name: "SearchDevicesFilterNameString", # required
|
444
494
|
# values: ["String256"], # required
|
445
495
|
# },
|
446
496
|
# ],
|
@@ -499,7 +549,7 @@ module Aws::Braket
|
|
499
549
|
#
|
500
550
|
# {
|
501
551
|
# name: "String64", # required
|
502
|
-
# operator: "
|
552
|
+
# operator: "LT", # required, accepts LT, LTE, EQUAL, GT, GTE, BETWEEN
|
503
553
|
# values: ["String256"], # required
|
504
554
|
# }
|
505
555
|
#
|
@@ -532,7 +582,7 @@ module Aws::Braket
|
|
532
582
|
# filters: [ # required
|
533
583
|
# {
|
534
584
|
# name: "String64", # required
|
535
|
-
# operator: "
|
585
|
+
# operator: "LT", # required, accepts LT, LTE, EQUAL, GT, GTE, BETWEEN
|
536
586
|
# values: ["String256"], # required
|
537
587
|
# },
|
538
588
|
# ],
|
@@ -584,7 +634,7 @@ module Aws::Braket
|
|
584
634
|
include Aws::Structure
|
585
635
|
end
|
586
636
|
|
587
|
-
# The request failed because a service quota is
|
637
|
+
# The request failed because a service quota is exceeded.
|
588
638
|
#
|
589
639
|
# @!attribute [rw] message
|
590
640
|
# @return [String]
|
@@ -597,6 +647,38 @@ module Aws::Braket
|
|
597
647
|
include Aws::Structure
|
598
648
|
end
|
599
649
|
|
650
|
+
# @note When making an API call, you may pass TagResourceRequest
|
651
|
+
# data as a hash:
|
652
|
+
#
|
653
|
+
# {
|
654
|
+
# resource_arn: "String", # required
|
655
|
+
# tags: { # required
|
656
|
+
# "String" => "String",
|
657
|
+
# },
|
658
|
+
# }
|
659
|
+
#
|
660
|
+
# @!attribute [rw] resource_arn
|
661
|
+
# Specify the `resourceArn` of the resource to which a tag will be
|
662
|
+
# added.
|
663
|
+
# @return [String]
|
664
|
+
#
|
665
|
+
# @!attribute [rw] tags
|
666
|
+
# Specify the tags to add to the resource.
|
667
|
+
# @return [Hash<String,String>]
|
668
|
+
#
|
669
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResourceRequest AWS API Documentation
|
670
|
+
#
|
671
|
+
class TagResourceRequest < Struct.new(
|
672
|
+
:resource_arn,
|
673
|
+
:tags)
|
674
|
+
SENSITIVE = []
|
675
|
+
include Aws::Structure
|
676
|
+
end
|
677
|
+
|
678
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResourceResponse AWS API Documentation
|
679
|
+
#
|
680
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
681
|
+
|
600
682
|
# The throttling rate limit is met.
|
601
683
|
#
|
602
684
|
# @!attribute [rw] message
|
@@ -610,6 +692,36 @@ module Aws::Braket
|
|
610
692
|
include Aws::Structure
|
611
693
|
end
|
612
694
|
|
695
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
696
|
+
# data as a hash:
|
697
|
+
#
|
698
|
+
# {
|
699
|
+
# resource_arn: "String", # required
|
700
|
+
# tag_keys: ["String"], # required
|
701
|
+
# }
|
702
|
+
#
|
703
|
+
# @!attribute [rw] resource_arn
|
704
|
+
# Specify the `resourceArn` for the resource from which to remove the
|
705
|
+
# tags.
|
706
|
+
# @return [String]
|
707
|
+
#
|
708
|
+
# @!attribute [rw] tag_keys
|
709
|
+
# pecify the keys for the tags to remove from the resource.
|
710
|
+
# @return [Array<String>]
|
711
|
+
#
|
712
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResourceRequest AWS API Documentation
|
713
|
+
#
|
714
|
+
class UntagResourceRequest < Struct.new(
|
715
|
+
:resource_arn,
|
716
|
+
:tag_keys)
|
717
|
+
SENSITIVE = []
|
718
|
+
include Aws::Structure
|
719
|
+
end
|
720
|
+
|
721
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResourceResponse AWS API Documentation
|
722
|
+
#
|
723
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
724
|
+
|
613
725
|
# The input fails to satisfy the constraints specified by an AWS
|
614
726
|
# service.
|
615
727
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-braket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.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:
|
11
|
+
date: 2021-03-10 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.112.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.112.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,11 +47,14 @@ dependencies:
|
|
47
47
|
description: Official AWS Ruby gem for Braket. This gem is part of the AWS SDK for
|
48
48
|
Ruby.
|
49
49
|
email:
|
50
|
-
-
|
50
|
+
- aws-dr-rubygems@amazon.com
|
51
51
|
executables: []
|
52
52
|
extensions: []
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
|
+
- CHANGELOG.md
|
56
|
+
- LICENSE.txt
|
57
|
+
- VERSION
|
55
58
|
- lib/aws-sdk-braket.rb
|
56
59
|
- lib/aws-sdk-braket/client.rb
|
57
60
|
- lib/aws-sdk-braket/client_api.rb
|