Skip to content

Commit 1a3b6eb

Browse files
Commit via running: make Sources/orgs
1 parent 683818a commit 1a3b6eb

2 files changed

Lines changed: 22 additions & 12 deletions

File tree

Sources/orgs/Client.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,10 @@ public struct Client: APIProtocol {
599599
/// If proposed records in the 'deployments' field have identical 'cluster', 'logical_environment',
600600
/// 'physical_environment', and 'deployment_name' values as existing records, the existing records will be updated.
601601
/// If no existing records match, new records will be created.
602+
/// Note: Artifacts are uniquely identified by the combination of their repository and digest fields. If two entries in the deployments
603+
/// array resolve to the same repository and have identical digest fields but differing name and version fields, the endpoint will use
604+
/// the artifact name and version from the record processed first, since a single artifact (identified by repository and digest) can
605+
/// only have one name and version.
602606
///
603607
/// - Remark: HTTP `POST /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}`.
604608
/// - Remark: Generated from `#/paths//orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/post(orgs/set-cluster-deployment-records)`.

Sources/orgs/Types.swift

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ public protocol APIProtocol: Sendable {
9191
/// If proposed records in the 'deployments' field have identical 'cluster', 'logical_environment',
9292
/// 'physical_environment', and 'deployment_name' values as existing records, the existing records will be updated.
9393
/// If no existing records match, new records will be created.
94+
/// Note: Artifacts are uniquely identified by the combination of their repository and digest fields. If two entries in the deployments
95+
/// array resolve to the same repository and have identical digest fields but differing name and version fields, the endpoint will use
96+
/// the artifact name and version from the record processed first, since a single artifact (identified by repository and digest) can
97+
/// only have one name and version.
9498
///
9599
/// - Remark: HTTP `POST /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}`.
96100
/// - Remark: Generated from `#/paths//orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/post(orgs/set-cluster-deployment-records)`.
@@ -1195,6 +1199,10 @@ extension APIProtocol {
11951199
/// If proposed records in the 'deployments' field have identical 'cluster', 'logical_environment',
11961200
/// 'physical_environment', and 'deployment_name' values as existing records, the existing records will be updated.
11971201
/// If no existing records match, new records will be created.
1202+
/// Note: Artifacts are uniquely identified by the combination of their repository and digest fields. If two entries in the deployments
1203+
/// array resolve to the same repository and have identical digest fields but differing name and version fields, the endpoint will use
1204+
/// the artifact name and version from the record processed first, since a single artifact (identified by repository and digest) can
1205+
/// only have one name and version.
11981206
///
11991207
/// - Remark: HTTP `POST /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}`.
12001208
/// - Remark: Generated from `#/paths//orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/post(orgs/set-cluster-deployment-records)`.
@@ -11850,6 +11858,10 @@ public enum Operations {
1185011858
/// If proposed records in the 'deployments' field have identical 'cluster', 'logical_environment',
1185111859
/// 'physical_environment', and 'deployment_name' values as existing records, the existing records will be updated.
1185211860
/// If no existing records match, new records will be created.
11861+
/// Note: Artifacts are uniquely identified by the combination of their repository and digest fields. If two entries in the deployments
11862+
/// array resolve to the same repository and have identical digest fields but differing name and version fields, the endpoint will use
11863+
/// the artifact name and version from the record processed first, since a single artifact (identified by repository and digest) can
11864+
/// only have one name and version.
1185311865
///
1185411866
/// - Remark: HTTP `POST /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}`.
1185511867
/// - Remark: Generated from `#/paths//orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/post(orgs/set-cluster-deployment-records)`.
@@ -11906,21 +11918,15 @@ public enum Operations {
1190611918
public var physicalEnvironment: Swift.String?
1190711919
/// - Remark: Generated from `#/paths/orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/POST/requestBody/json/DeploymentsPayload`.
1190811920
public struct DeploymentsPayloadPayload: Codable, Hashable, Sendable {
11909-
/// The name of the artifact. Note that if multiple deployments have identical 'digest' parameter values,
11910-
/// the name parameter must also be identical across all entries.
11911-
///
11921+
/// The name of the artifact.
1191211922
///
1191311923
/// - Remark: Generated from `#/paths/orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/POST/requestBody/json/DeploymentsPayload/name`.
1191411924
public var name: Swift.String
11915-
/// The hex encoded digest of the artifact. Note that if multiple deployments have identical 'digest' parameter values,
11916-
/// the name and version parameters must also be identical across all entries.
11917-
///
11925+
/// The hex encoded digest of the artifact.
1191811926
///
1191911927
/// - Remark: Generated from `#/paths/orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/POST/requestBody/json/DeploymentsPayload/digest`.
1192011928
public var digest: Swift.String
11921-
/// The artifact version. Note that if multiple deployments have identical 'digest' parameter values,
11922-
/// the version parameter must also be identical across all entries.
11923-
///
11929+
/// The artifact version.
1192411930
///
1192511931
/// - Remark: Generated from `#/paths/orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/POST/requestBody/json/DeploymentsPayload/version`.
1192611932
public var version: Swift.String?
@@ -11994,9 +12000,9 @@ public enum Operations {
1199412000
/// Creates a new `DeploymentsPayloadPayload`.
1199512001
///
1199612002
/// - Parameters:
11997-
/// - name: The name of the artifact. Note that if multiple deployments have identical 'digest' parameter values,
11998-
/// - digest: The hex encoded digest of the artifact. Note that if multiple deployments have identical 'digest' parameter values,
11999-
/// - version: The artifact version. Note that if multiple deployments have identical 'digest' parameter values,
12003+
/// - name: The name of the artifact.
12004+
/// - digest: The hex encoded digest of the artifact.
12005+
/// - version: The artifact version.
1200012006
/// - status: The deployment status of the artifact.
1200112007
/// - deploymentName: The unique identifier for the deployment represented by the new record. To accommodate differing
1200212008
/// - githubRepository: The name of the GitHub repository associated with the artifact. This should be used

0 commit comments

Comments
 (0)