Skip to content

Commit e9f6bab

Browse files
Add support for Braket program sets.
1 parent 99e38a0 commit e9f6bab

File tree

60 files changed

+2205
-1275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2205
-1275
lines changed

generator/ServiceModels/braket/braket-2019-09-01.api.json

Lines changed: 194 additions & 161 deletions
Large diffs are not rendered by default.

generator/ServiceModels/braket/braket-2019-09-01.docs.json

Lines changed: 211 additions & 209 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"version": "1.0",
3-
"examples": {
4-
}
3+
"examples": {}
54
}

generator/ServiceModels/braket/braket-2019-09-01.normal.json

Lines changed: 471 additions & 406 deletions
Large diffs are not rendered by default.

sdk/code-analysis/ServiceAnalysis/Braket/Generated/PropertyValueRules.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<property-value-rules>
33
<property-value-rule>
44
<property>Amazon.Braket.Model.CancelJobRequest.JobArn</property>
5-
<pattern>^arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*$</pattern>
5+
<pattern>arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*</pattern>
66
</property-value-rule>
77
<property-value-rule>
88
<property>Amazon.Braket.Model.CancelJobResponse.JobArn</property>
9-
<pattern>^arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*$</pattern>
9+
<pattern>arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*</pattern>
1010
</property-value-rule>
1111
<property-value-rule>
1212
<property>Amazon.Braket.Model.CancelQuantumTaskRequest.ClientToken</property>
@@ -32,15 +32,15 @@
3232
<property>Amazon.Braket.Model.CreateJobRequest.JobName</property>
3333
<min>1</min>
3434
<max>50</max>
35-
<pattern>^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,50}$</pattern>
35+
<pattern>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,50}</pattern>
3636
</property-value-rule>
3737
<property-value-rule>
3838
<property>Amazon.Braket.Model.CreateJobRequest.RoleArn</property>
39-
<pattern>^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$</pattern>
39+
<pattern>arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+</pattern>
4040
</property-value-rule>
4141
<property-value-rule>
4242
<property>Amazon.Braket.Model.CreateJobResponse.JobArn</property>
43-
<pattern>^arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*$</pattern>
43+
<pattern>arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*</pattern>
4444
</property-value-rule>
4545
<property-value-rule>
4646
<property>Amazon.Braket.Model.CreateQuantumTaskRequest.ClientToken</property>
@@ -93,7 +93,7 @@
9393
</property-value-rule>
9494
<property-value-rule>
9595
<property>Amazon.Braket.Model.GetJobRequest.JobArn</property>
96-
<pattern>^arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*$</pattern>
96+
<pattern>arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*</pattern>
9797
</property-value-rule>
9898
<property-value-rule>
9999
<property>Amazon.Braket.Model.GetJobResponse.FailureReason</property>
@@ -102,17 +102,17 @@
102102
</property-value-rule>
103103
<property-value-rule>
104104
<property>Amazon.Braket.Model.GetJobResponse.JobArn</property>
105-
<pattern>^arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*$</pattern>
105+
<pattern>arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*</pattern>
106106
</property-value-rule>
107107
<property-value-rule>
108108
<property>Amazon.Braket.Model.GetJobResponse.JobName</property>
109109
<min>1</min>
110110
<max>50</max>
111-
<pattern>^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,50}$</pattern>
111+
<pattern>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,50}</pattern>
112112
</property-value-rule>
113113
<property-value-rule>
114114
<property>Amazon.Braket.Model.GetJobResponse.RoleArn</property>
115-
<pattern>^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$</pattern>
115+
<pattern>arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+</pattern>
116116
</property-value-rule>
117117
<property-value-rule>
118118
<property>Amazon.Braket.Model.GetQuantumTaskRequest.QuantumTaskArn</property>
@@ -126,7 +126,7 @@
126126
</property-value-rule>
127127
<property-value-rule>
128128
<property>Amazon.Braket.Model.GetQuantumTaskResponse.JobArn</property>
129-
<pattern>^arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*$</pattern>
129+
<pattern>arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*</pattern>
130130
</property-value-rule>
131131
<property-value-rule>
132132
<property>Amazon.Braket.Model.GetQuantumTaskResponse.QuantumTaskArn</property>
@@ -150,7 +150,7 @@
150150
</property-value-rule>
151151
<property-value-rule>
152152
<property>Amazon.Braket.Model.Association.Arn</property>
153-
<pattern>^arn:aws[a-z\-]*:braket:[a-z0-9\-]*:[0-9]{12}:.*$</pattern>
153+
<pattern>arn:aws[a-z\-]*:braket:[a-z0-9\-]*:[0-9]{12}:.*</pattern>
154154
</property-value-rule>
155155
<property-value-rule>
156156
<property>Amazon.Braket.Model.ContainerImage.Uri</property>
@@ -172,7 +172,7 @@
172172
<property>Amazon.Braket.Model.InputFileConfig.ChannelName</property>
173173
<min>1</min>
174174
<max>64</max>
175-
<pattern>^[A-Za-z0-9\.\-_]+$</pattern>
175+
<pattern>[A-Za-z0-9\.\-_]+</pattern>
176176
</property-value-rule>
177177
<property-value-rule>
178178
<property>Amazon.Braket.Model.InputFileConfig.ContentType</property>
@@ -196,7 +196,7 @@
196196
<property>Amazon.Braket.Model.JobCheckpointConfig.S3Uri</property>
197197
<min>0</min>
198198
<max>1024</max>
199-
<pattern>^(https|s3)://([^/]+)/?(.*)$</pattern>
199+
<pattern>(https|s3)://([^/]+)/?(.*)</pattern>
200200
</property-value-rule>
201201
<property-value-rule>
202202
<property>Amazon.Braket.Model.JobEventDetails.Message</property>
@@ -212,7 +212,7 @@
212212
<property>Amazon.Braket.Model.JobOutputDataConfig.S3Path</property>
213213
<min>0</min>
214214
<max>1024</max>
215-
<pattern>^(https|s3)://([^/]+)/?(.*)$</pattern>
215+
<pattern>(https|s3)://([^/]+)/?(.*)</pattern>
216216
</property-value-rule>
217217
<property-value-rule>
218218
<property>Amazon.Braket.Model.JobStoppingCondition.MaxRuntimeInSeconds</property>
@@ -226,7 +226,7 @@
226226
</property-value-rule>
227227
<property-value-rule>
228228
<property>Amazon.Braket.Model.JobSummary.JobArn</property>
229-
<pattern>^arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*$</pattern>
229+
<pattern>arn:aws[a-z\-]*:braket:[a-z0-9\-]+:[0-9]{12}:job/.*</pattern>
230230
</property-value-rule>
231231
<property-value-rule>
232232
<property>Amazon.Braket.Model.QuantumTaskSummary.DeviceArn</property>
@@ -242,13 +242,13 @@
242242
<property>Amazon.Braket.Model.S3DataSource.S3Uri</property>
243243
<min>0</min>
244244
<max>1024</max>
245-
<pattern>^(https|s3)://([^/]+)/?(.*)$</pattern>
245+
<pattern>(https|s3)://([^/]+)/?(.*)</pattern>
246246
</property-value-rule>
247247
<property-value-rule>
248248
<property>Amazon.Braket.Model.ScriptModeConfig.S3Uri</property>
249249
<min>0</min>
250250
<max>1024</max>
251-
<pattern>^(https|s3)://([^/]+)/?(.*)$</pattern>
251+
<pattern>(https|s3)://([^/]+)/?(.*)</pattern>
252252
</property-value-rule>
253253
<property-value-rule>
254254
<property>Amazon.Braket.Model.SearchDevicesFilter.Name</property>

sdk/src/Services/Braket/Generated/Model/AccessDeniedException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
namespace Amazon.Braket.Model
3131
{
3232
/// <summary>
33-
/// You do not have sufficient access to perform this action.
33+
/// You do not have sufficient permissions to perform this action.
3434
/// </summary>
3535
#if !NETSTANDARD
3636
[Serializable]
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.Braket.Model
31+
{
32+
/// <summary>
33+
/// Contains metadata about the quantum task action, including the action type and program
34+
/// statistics.
35+
/// </summary>
36+
public partial class ActionMetadata
37+
{
38+
private string _actionType;
39+
private long? _executableCount;
40+
private long? _programCount;
41+
42+
/// <summary>
43+
/// Gets and sets the property ActionType.
44+
/// <para>
45+
/// The type of action associated with the quantum task.
46+
/// </para>
47+
/// </summary>
48+
[AWSProperty(Required=true)]
49+
public string ActionType
50+
{
51+
get { return this._actionType; }
52+
set { this._actionType = value; }
53+
}
54+
55+
// Check to see if ActionType property is set
56+
internal bool IsSetActionType()
57+
{
58+
return this._actionType != null;
59+
}
60+
61+
/// <summary>
62+
/// Gets and sets the property ExecutableCount.
63+
/// <para>
64+
/// The number of executables in a program set. This is only available for a Program Set.
65+
/// </para>
66+
/// </summary>
67+
public long? ExecutableCount
68+
{
69+
get { return this._executableCount; }
70+
set { this._executableCount = value; }
71+
}
72+
73+
// Check to see if ExecutableCount property is set
74+
internal bool IsSetExecutableCount()
75+
{
76+
return this._executableCount.HasValue;
77+
}
78+
79+
/// <summary>
80+
/// Gets and sets the property ProgramCount.
81+
/// <para>
82+
/// The number of programs in a program set. This is only available for a Program Set.
83+
/// </para>
84+
/// </summary>
85+
public long? ProgramCount
86+
{
87+
get { return this._programCount; }
88+
set { this._programCount = value; }
89+
}
90+
91+
// Check to see if ProgramCount property is set
92+
internal bool IsSetProgramCount()
93+
{
94+
return this._programCount.HasValue;
95+
}
96+
97+
}
98+
}

sdk/src/Services/Braket/Generated/Model/AlgorithmSpecification.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
namespace Amazon.Braket.Model
3131
{
3232
/// <summary>
33-
/// Defines the Amazon Braket job to be created. Specifies the container image the job
34-
/// uses and the paths to the Python scripts used for entry and training.
33+
/// Defines the Amazon Braket hybrid job to be created. Specifies the container image
34+
/// the job uses and the paths to the Python scripts used for entry and training.
3535
/// </summary>
3636
public partial class AlgorithmSpecification
3737
{
@@ -41,7 +41,7 @@ public partial class AlgorithmSpecification
4141
/// <summary>
4242
/// Gets and sets the property ContainerImage.
4343
/// <para>
44-
/// The container image used to create an Amazon Braket job.
44+
/// The container image used to create an Amazon Braket hybrid job.
4545
/// </para>
4646
/// </summary>
4747
public ContainerImage ContainerImage

sdk/src/Services/Braket/Generated/Model/CancelJobRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Amazon.Braket.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the CancelJob operation.
34-
/// Cancels an Amazon Braket job.
34+
/// Cancels an Amazon Braket hybrid job.
3535
/// </summary>
3636
public partial class CancelJobRequest : AmazonBraketRequest
3737
{
@@ -40,7 +40,7 @@ public partial class CancelJobRequest : AmazonBraketRequest
4040
/// <summary>
4141
/// Gets and sets the property JobArn.
4242
/// <para>
43-
/// The ARN of the Amazon Braket job to cancel.
43+
/// The ARN of the Amazon Braket hybrid job to cancel.
4444
/// </para>
4545
/// </summary>
4646
[AWSProperty(Required=true)]

sdk/src/Services/Braket/Generated/Model/CancelJobResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public partial class CancelJobResponse : AmazonWebServiceResponse
4040
/// <summary>
4141
/// Gets and sets the property CancellationStatus.
4242
/// <para>
43-
/// The status of the job cancellation request.
43+
/// The status of the hybrid job.
4444
/// </para>
4545
/// </summary>
4646
[AWSProperty(Required=true)]

0 commit comments

Comments
 (0)