Class: Rafflesia::Registry
- Inherits:
-
Object
- Object
- Rafflesia::Registry
- Defined in:
- lib/rafflesia/registry.rb
Instance Method Summary collapse
-
#artifactsCreate(artifact_id:, binding_id:, filename:, resource_group_id:, content_base_64: nil, source_uri: nil, request_options: {}) ⇒ Rafflesia::EnvelopePartnerArtifact
POST /v1/registry/artifacts.
-
#artifactsList(request_options: {}) ⇒ Rafflesia::EnvelopeArtifactListData
GET /v1/registry/artifacts.
-
#catalogViewGet(request_options: {}) ⇒ Rafflesia::EnvelopeCatalogViewData
GET /v1/registry/catalog-view.
-
#initialize(client) ⇒ Registry
constructor
A new instance of Registry.
-
#joinApprovalsCreate(evidence_id:, reason:, request_options: {}) ⇒ Rafflesia::EnvelopeJoinApproval
POST /v1/registry/join-approvals.
-
#joinApprovalsGet(approval_id:, request_options: {}) ⇒ Rafflesia::EnvelopeJoinApproval
GET /v1/registry/join-approvals/approval_id.
-
#joinApprovalsList(request_options: {}) ⇒ Rafflesia::EnvelopeJoinApprovalListData
GET /v1/registry/join-approvals.
-
#joinEvidenceCreate(from:, measurement_artifact_id:, measurement_digest:, measurements:, observed_at:, ontology_digest:, ontology_module_release_id:, relationship_id:, resource_group_id:, to:, tool:, tool_version:, key_variant: nil, request_options: {}) ⇒ Rafflesia::EnvelopeJoinEvidence
POST /v1/registry/join-evidence.
-
#joinEvidenceList(request_options: {}) ⇒ Rafflesia::EnvelopeJoinEvidenceListData
GET /v1/registry/join-evidence.
-
#joinProfilesCreate(from_database:, from_release:, relationship_id:, resource_group_id:, to_database:, to_release:, key_variant: nil, request_options: {}) ⇒ Rafflesia::EnvelopeJoinEvidence
POST /v1/registry/join-profiles.
-
#mountsList(request_options: {}) ⇒ Rafflesia::EnvelopeMountListData
GET /v1/registry/mounts.
-
#mountsStatusUpdate(mount_id:, status:, request_options: {}) ⇒ Rafflesia::EnvelopeMountUpsertData
PATCH /v1/registry/mounts/mount_id.
-
#mountsUpsert(mount_id:, signature:, signing_key_id:, signing_public_key:, snapshot:, request_options: {}) ⇒ Rafflesia::EnvelopeMountUpsertData
PUT /v1/registry/mounts/mount_id.
-
#onboardingStatusesList(request_options: {}) ⇒ Rafflesia::EnvelopeOnboardingStatusListData
GET /v1/registry/onboarding-statuses.
-
#rebuildDrillsLatest(request_options: {}) ⇒ Rafflesia::EnvelopeRegistryRebuildDrillReceiptData
GET /v1/registry/rebuild-drills/latest.
-
#reconciliationReceiptsLatest(request_options: {}) ⇒ Rafflesia::EnvelopeRegistryReconciliationReceiptData
GET /v1/registry/reconciliation-receipts/latest.
-
#releaseGet(selector: nil, kind: nil, request_options: {}) ⇒ Rafflesia::EnvelopeRegistryReleaseDetailData
GET /v1/registry/release.
-
#releasesList(kind: nil, selector: nil, request_options: {}) ⇒ Rafflesia::EnvelopeRegistryReleaseListData
GET /v1/registry/releases.
-
#runtimeReconciliationsCreate(observations:, resource_group_id:, request_options: {}) ⇒ Rafflesia::EnvelopeRuntimeReconciliationReceipt
POST /v1/registry/runtime-reconciliations.
-
#runtimeReconciliationsList(request_options: {}) ⇒ Rafflesia::EnvelopeRuntimeReconciliationListData
GET /v1/registry/runtime-reconciliations.
-
#signingKeysCreate(id:, public_key:, request_options: {}) ⇒ Rafflesia::EnvelopeTrustedSigningKey
POST /v1/registry/signing-keys.
-
#signingKeysList(request_options: {}) ⇒ Rafflesia::EnvelopeSigningKeyListData
GET /v1/registry/signing-keys.
-
#signingKeysStatusUpdate(key_id:, status:, request_options: {}) ⇒ Rafflesia::EnvelopeTrustedSigningKey
PATCH /v1/registry/signing-keys/key_id.
-
#snapshotGet(request_options: {}) ⇒ Rafflesia::EnvelopeRegistrySnapshotData
GET /v1/registry/snapshot.
Constructor Details
#initialize(client) ⇒ Registry
Returns a new instance of Registry.
9 10 11 |
# File 'lib/rafflesia/registry.rb', line 9 def initialize(client) @client = client end |
Instance Method Details
#artifactsCreate(artifact_id:, binding_id:, filename:, resource_group_id:, content_base_64: nil, source_uri: nil, request_options: {}) ⇒ Rafflesia::EnvelopePartnerArtifact
POST /v1/registry/artifacts
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rafflesia/registry.rb', line 37 def artifactsCreate( artifact_id:, binding_id:, filename:, resource_group_id:, content_base_64: nil, source_uri: nil, request_options: {} ) body = { 'artifact_id' => artifact_id, 'binding_id' => binding_id, 'content_base64' => content_base_64, 'filename' => filename, 'resource_group_id' => resource_group_id, 'source_uri' => source_uri }.compact response = @client.request( method: :post, path: '/v1/registry/artifacts', auth: true, body: body, request_options: ) result = Rafflesia::EnvelopePartnerArtifact.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#artifactsList(request_options: {}) ⇒ Rafflesia::EnvelopeArtifactListData
GET /v1/registry/artifacts
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rafflesia/registry.rb', line 16 def artifactsList(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/artifacts', auth: true, request_options: ) result = Rafflesia::EnvelopeArtifactListData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#catalogViewGet(request_options: {}) ⇒ Rafflesia::EnvelopeCatalogViewData
GET /v1/registry/catalog-view
69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/rafflesia/registry.rb', line 69 def catalogViewGet(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/catalog-view', auth: true, request_options: ) result = Rafflesia::EnvelopeCatalogViewData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#joinApprovalsCreate(evidence_id:, reason:, request_options: {}) ⇒ Rafflesia::EnvelopeJoinApproval
POST /v1/registry/join-approvals
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/rafflesia/registry.rb', line 101 def joinApprovalsCreate( evidence_id:, reason:, request_options: {} ) body = { 'evidence_id' => evidence_id, 'reason' => reason } response = @client.request( method: :post, path: '/v1/registry/join-approvals', auth: true, body: body, request_options: ) result = Rafflesia::EnvelopeJoinApproval.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#joinApprovalsGet(approval_id:, request_options: {}) ⇒ Rafflesia::EnvelopeJoinApproval
GET /v1/registry/join-approvals/approval_id
126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/rafflesia/registry.rb', line 126 def joinApprovalsGet( approval_id:, request_options: {} ) response = @client.request( method: :get, path: "/v1/registry/join-approvals/#{Rafflesia::Util.encode_path(approval_id)}", auth: true, request_options: ) result = Rafflesia::EnvelopeJoinApproval.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#joinApprovalsList(request_options: {}) ⇒ Rafflesia::EnvelopeJoinApprovalListData
GET /v1/registry/join-approvals
84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/rafflesia/registry.rb', line 84 def joinApprovalsList(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/join-approvals', auth: true, request_options: ) result = Rafflesia::EnvelopeJoinApprovalListData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#joinEvidenceCreate(from:, measurement_artifact_id:, measurement_digest:, measurements:, observed_at:, ontology_digest:, ontology_module_release_id:, relationship_id:, resource_group_id:, to:, tool:, tool_version:, key_variant: nil, request_options: {}) ⇒ Rafflesia::EnvelopeJoinEvidence
POST /v1/registry/join-evidence
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/rafflesia/registry.rb', line 172 def joinEvidenceCreate( from:, measurement_artifact_id:, measurement_digest:, measurements:, observed_at:, ontology_digest:, ontology_module_release_id:, relationship_id:, resource_group_id:, to:, tool:, tool_version:, key_variant: nil, request_options: {} ) body = { 'from' => from, 'key_variant' => key_variant, 'measurement_artifact_id' => measurement_artifact_id, 'measurement_digest' => measurement_digest, 'measurements' => measurements, 'observed_at' => observed_at, 'ontology_digest' => ontology_digest, 'ontology_module_release_id' => ontology_module_release_id, 'relationship_id' => relationship_id, 'resource_group_id' => resource_group_id, 'to' => to, 'tool' => tool, 'tool_version' => tool_version }.compact response = @client.request( method: :post, path: '/v1/registry/join-evidence', auth: true, body: body, request_options: ) result = Rafflesia::EnvelopeJoinEvidence.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#joinEvidenceList(request_options: {}) ⇒ Rafflesia::EnvelopeJoinEvidenceListData
GET /v1/registry/join-evidence
144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/rafflesia/registry.rb', line 144 def joinEvidenceList(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/join-evidence', auth: true, request_options: ) result = Rafflesia::EnvelopeJoinEvidenceListData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#joinProfilesCreate(from_database:, from_release:, relationship_id:, resource_group_id:, to_database:, to_release:, key_variant: nil, request_options: {}) ⇒ Rafflesia::EnvelopeJoinEvidence
POST /v1/registry/join-profiles
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
# File 'lib/rafflesia/registry.rb', line 225 def joinProfilesCreate( from_database:, from_release:, relationship_id:, resource_group_id:, to_database:, to_release:, key_variant: nil, request_options: {} ) body = { 'from_database' => from_database, 'from_release' => from_release, 'key_variant' => key_variant, 'relationship_id' => relationship_id, 'resource_group_id' => resource_group_id, 'to_database' => to_database, 'to_release' => to_release }.compact response = @client.request( method: :post, path: '/v1/registry/join-profiles', auth: true, body: body, request_options: ) result = Rafflesia::EnvelopeJoinEvidence.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#mountsList(request_options: {}) ⇒ Rafflesia::EnvelopeMountListData
GET /v1/registry/mounts
259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/rafflesia/registry.rb', line 259 def mountsList(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/mounts', auth: true, request_options: ) result = Rafflesia::EnvelopeMountListData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#mountsStatusUpdate(mount_id:, status:, request_options: {}) ⇒ Rafflesia::EnvelopeMountUpsertData
PATCH /v1/registry/mounts/mount_id
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/rafflesia/registry.rb', line 310 def mountsStatusUpdate( mount_id:, status:, request_options: {} ) body = { 'status' => status } response = @client.request( method: :patch, path: "/v1/registry/mounts/#{Rafflesia::Util.encode_path(mount_id)}", auth: true, body: body, request_options: ) result = Rafflesia::EnvelopeMountUpsertData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#mountsUpsert(mount_id:, signature:, signing_key_id:, signing_public_key:, snapshot:, request_options: {}) ⇒ Rafflesia::EnvelopeMountUpsertData
PUT /v1/registry/mounts/mount_id
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 |
# File 'lib/rafflesia/registry.rb', line 279 def mountsUpsert( mount_id:, signature:, signing_key_id:, signing_public_key:, snapshot:, request_options: {} ) body = { 'signature' => signature, 'signing_key_id' => signing_key_id, 'signing_public_key' => signing_public_key, 'snapshot' => snapshot } response = @client.request( method: :put, path: "/v1/registry/mounts/#{Rafflesia::Util.encode_path(mount_id)}", auth: true, body: body, request_options: ) result = Rafflesia::EnvelopeMountUpsertData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#onboardingStatusesList(request_options: {}) ⇒ Rafflesia::EnvelopeOnboardingStatusListData
GET /v1/registry/onboarding-statuses
333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/rafflesia/registry.rb', line 333 def onboardingStatusesList(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/onboarding-statuses', auth: true, request_options: ) result = Rafflesia::EnvelopeOnboardingStatusListData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#rebuildDrillsLatest(request_options: {}) ⇒ Rafflesia::EnvelopeRegistryRebuildDrillReceiptData
GET /v1/registry/rebuild-drills/latest
348 349 350 351 352 353 354 355 356 357 358 |
# File 'lib/rafflesia/registry.rb', line 348 def rebuildDrillsLatest(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/rebuild-drills/latest', auth: true, request_options: ) result = Rafflesia::EnvelopeRegistryRebuildDrillReceiptData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#reconciliationReceiptsLatest(request_options: {}) ⇒ Rafflesia::EnvelopeRegistryReconciliationReceiptData
GET /v1/registry/reconciliation-receipts/latest
363 364 365 366 367 368 369 370 371 372 373 |
# File 'lib/rafflesia/registry.rb', line 363 def reconciliationReceiptsLatest(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/reconciliation-receipts/latest', auth: true, request_options: ) result = Rafflesia::EnvelopeRegistryReconciliationReceiptData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#releaseGet(selector: nil, kind: nil, request_options: {}) ⇒ Rafflesia::EnvelopeRegistryReleaseDetailData
GET /v1/registry/release
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 |
# File 'lib/rafflesia/registry.rb', line 380 def releaseGet( selector: nil, kind: nil, request_options: {} ) params = { 'selector' => selector, 'kind' => kind }.compact response = @client.request( method: :get, path: '/v1/registry/release', auth: true, params: params, request_options: ) result = Rafflesia::EnvelopeRegistryReleaseDetailData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#releasesList(kind: nil, selector: nil, request_options: {}) ⇒ Rafflesia::EnvelopeRegistryReleaseListData
GET /v1/registry/releases
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 |
# File 'lib/rafflesia/registry.rb', line 406 def releasesList( kind: nil, selector: nil, request_options: {} ) params = { 'kind' => kind, 'selector' => selector }.compact response = @client.request( method: :get, path: '/v1/registry/releases', auth: true, params: params, request_options: ) result = Rafflesia::EnvelopeRegistryReleaseListData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#runtimeReconciliationsCreate(observations:, resource_group_id:, request_options: {}) ⇒ Rafflesia::EnvelopeRuntimeReconciliationReceipt
POST /v1/registry/runtime-reconciliations
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 |
# File 'lib/rafflesia/registry.rb', line 447 def runtimeReconciliationsCreate( observations:, resource_group_id:, request_options: {} ) body = { 'observations' => observations, 'resource_group_id' => resource_group_id } response = @client.request( method: :post, path: '/v1/registry/runtime-reconciliations', auth: true, body: body, request_options: ) result = Rafflesia::EnvelopeRuntimeReconciliationReceipt.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#runtimeReconciliationsList(request_options: {}) ⇒ Rafflesia::EnvelopeRuntimeReconciliationListData
GET /v1/registry/runtime-reconciliations
430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/rafflesia/registry.rb', line 430 def runtimeReconciliationsList(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/runtime-reconciliations', auth: true, request_options: ) result = Rafflesia::EnvelopeRuntimeReconciliationListData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#signingKeysCreate(id:, public_key:, request_options: {}) ⇒ Rafflesia::EnvelopeTrustedSigningKey
POST /v1/registry/signing-keys
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 |
# File 'lib/rafflesia/registry.rb', line 488 def signingKeysCreate( id:, public_key:, request_options: {} ) body = { 'id' => id, 'public_key' => public_key } response = @client.request( method: :post, path: '/v1/registry/signing-keys', auth: true, body: body, request_options: ) result = Rafflesia::EnvelopeTrustedSigningKey.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#signingKeysList(request_options: {}) ⇒ Rafflesia::EnvelopeSigningKeyListData
GET /v1/registry/signing-keys
471 472 473 474 475 476 477 478 479 480 481 |
# File 'lib/rafflesia/registry.rb', line 471 def signingKeysList(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/signing-keys', auth: true, request_options: ) result = Rafflesia::EnvelopeSigningKeyListData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#signingKeysStatusUpdate(key_id:, status:, request_options: {}) ⇒ Rafflesia::EnvelopeTrustedSigningKey
PATCH /v1/registry/signing-keys/key_id
514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 |
# File 'lib/rafflesia/registry.rb', line 514 def signingKeysStatusUpdate( key_id:, status:, request_options: {} ) body = { 'status' => status } response = @client.request( method: :patch, path: "/v1/registry/signing-keys/#{Rafflesia::Util.encode_path(key_id)}", auth: true, body: body, request_options: ) result = Rafflesia::EnvelopeTrustedSigningKey.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |
#snapshotGet(request_options: {}) ⇒ Rafflesia::EnvelopeRegistrySnapshotData
GET /v1/registry/snapshot
537 538 539 540 541 542 543 544 545 546 547 |
# File 'lib/rafflesia/registry.rb', line 537 def snapshotGet(request_options: {}) response = @client.request( method: :get, path: '/v1/registry/snapshot', auth: true, request_options: ) result = Rafflesia::EnvelopeRegistrySnapshotData.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |