temporalio 1.11.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.lock +33 -11
- data/Cargo.toml +1 -0
- data/README.md +168 -11
- data/ext/Cargo.toml +3 -3
- data/lib/temporalio/api/cloud/account/v1/message.rb +2 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +43 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
- data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
- data/lib/temporalio/api/cloud/namespace/v1/message.rb +8 -1
- data/lib/temporalio/api/cloud/nexus/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/project/v1/message.rb +28 -0
- data/lib/temporalio/api/cloud/region/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/sink/v1/message.rb +2 -1
- data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
- data/lib/temporalio/api/enums/v1/namespace.rb +2 -1
- data/lib/temporalio/api/operatorservice/v1/request_response.rb +9 -1
- data/lib/temporalio/api/operatorservice/v1/service.rb +1 -1
- data/lib/temporalio/api/payload_visitor.rb +66 -0
- data/lib/temporalio/api/taskqueue/v1/message.rb +3 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +2 -1
- data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
- data/lib/temporalio/client/connection/cloud_service.rb +285 -0
- data/lib/temporalio/client/connection/operator_service.rb +45 -0
- data/lib/temporalio/client/schedule.rb +56 -8
- data/lib/temporalio/contrib/aws/s3_driver/aws_sdk_s3_storage_driver_client.rb +0 -2
- data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver.rb +3 -5
- data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver_client.rb +0 -2
- data/lib/temporalio/contrib/aws/s3_driver.rb +0 -2
- data/lib/temporalio/converters/data_converter.rb +52 -1
- data/lib/temporalio/converters/external_storage.rb +6 -12
- data/lib/temporalio/converters/external_storage_concurrency.rb +4 -2
- data/lib/temporalio/converters/storage_driver.rb +3 -4
- data/lib/temporalio/converters/storage_driver_activity_info.rb +0 -2
- data/lib/temporalio/converters/storage_driver_claim.rb +0 -2
- data/lib/temporalio/converters/storage_driver_limiter.rb +16 -0
- data/lib/temporalio/converters/storage_driver_retrieve_context.rb +7 -6
- data/lib/temporalio/converters/storage_driver_select_context.rb +11 -5
- data/lib/temporalio/converters/storage_driver_store_context.rb +11 -7
- data/lib/temporalio/converters/storage_driver_workflow_info.rb +0 -2
- data/lib/temporalio/error.rb +10 -3
- data/lib/temporalio/internal/bridge/worker.rb +1 -0
- data/lib/temporalio/internal/client/described_schedule_action.rb +41 -0
- data/lib/temporalio/internal/client/implementation.rb +92 -48
- data/lib/temporalio/internal/external_storage_references.rb +5 -4
- data/lib/temporalio/internal/external_storage_runner.rb +177 -0
- data/lib/temporalio/internal/storage_operation_metrics.rb +76 -0
- data/lib/temporalio/internal/worker/activity_worker.rb +60 -24
- data/lib/temporalio/internal/worker/workflow_worker.rb +211 -15
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/workflow_replayer.rb +5 -3
- data/lib/temporalio/worker.rb +4 -2
- data/rbi/temporalio/api/cloud/account/v1/message.rbi +84 -2
- data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +5006 -1157
- data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +171 -0
- data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +71 -16
- data/rbi/temporalio/api/cloud/identity/v1/message.rbi +789 -23
- data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +765 -15
- data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +19 -2
- data/rbi/temporalio/api/cloud/project/v1/message.rbi +334 -0
- data/rbi/temporalio/api/cloud/region/v1/message.rbi +1 -0
- data/rbi/temporalio/api/cloud/sink/v1/message.rbi +147 -0
- data/rbi/temporalio/api/common/v1/message.rbi +6 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +2 -0
- data/rbi/temporalio/api/enums/v1/namespace.rbi +20 -0
- data/rbi/temporalio/api/history/v1/message.rbi +40 -18
- data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +480 -0
- data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +32 -0
- data/rbi/temporalio/api/payload_visitor.rbi +33 -0
- data/rbi/temporalio/api/schedule/v1/message.rbi +12 -6
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +179 -13
- data/rbi/temporalio/api/worker/v1/message.rbi +6 -6
- data/rbi/temporalio/api/workflow/v1/message.rbi +12 -6
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +140 -41
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +3 -0
- data/rbi/temporalio/client/connection/cloud_service.rbi +57 -0
- data/rbi/temporalio/client/connection/operator_service.rbi +9 -0
- data/rbi/temporalio/converters/data_converter.rbi +43 -2
- data/rbi/temporalio/converters/external_storage.rbi +2 -7
- data/rbi/temporalio/converters/storage_driver_limiter.rbi +4 -0
- data/rbi/temporalio/converters/storage_driver_retrieve_context.rbi +1 -1
- data/rbi/temporalio/converters/storage_driver_select_context.rbi +6 -2
- data/rbi/temporalio/converters/storage_driver_store_context.rbi +6 -2
- data/rbi/temporalio/error.rbi +3 -1
- data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +6 -0
- data/rbi/temporalio/internal/bridge/worker.rbi +4 -2
- data/rbi/temporalio/internal/client/described_schedule_action.rbi +22 -0
- data/rbi/temporalio/internal/client/implementation.rbi +30 -0
- data/rbi/temporalio/internal/external_storage_runner.rbi +36 -0
- data/rbi/temporalio/internal/storage_operation_metrics.rbi +27 -0
- data/rbi/temporalio/internal/worker/activity_worker.rbi +24 -4
- data/rbi/temporalio/internal/worker/workflow_worker.rbi +61 -1
- data/rbi/temporalio/workflow.rbi +0 -12
- data/sig/temporalio/api/cloud/account/v1/message.rbs +30 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +2122 -601
- data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +29 -4
- data/sig/temporalio/api/cloud/identity/v1/message.rbs +342 -1
- data/sig/temporalio/api/cloud/namespace/v1/message.rbs +341 -2
- data/sig/temporalio/api/cloud/nexus/v1/message.rbs +9 -0
- data/sig/temporalio/api/cloud/project/v1/message.rbs +164 -0
- data/sig/temporalio/api/cloud/region/v1/message.rbs +5 -3
- data/sig/temporalio/api/cloud/sink/v1/message.rbs +66 -0
- data/sig/temporalio/api/common/v1/message.rbs +6 -0
- data/sig/temporalio/api/enums/v1/event_type.rbs +1 -0
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +9 -3
- data/sig/temporalio/api/enums/v1/namespace.rbs +30 -2
- data/sig/temporalio/api/enums/v1/time_skipping.rbs +1 -0
- data/sig/temporalio/api/history/v1/message.rbs +8 -0
- data/sig/temporalio/api/operatorservice/v1/request_response.rbs +188 -0
- data/sig/temporalio/api/payload_visitor.rbs +11 -0
- data/sig/temporalio/api/schedule/v1/message.rbs +2 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +66 -5
- data/sig/temporalio/api/worker/v1/message.rbs +2 -2
- data/sig/temporalio/api/workflow/v1/message.rbs +2 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +53 -9
- data/sig/temporalio/client/connection/cloud_service.rbs +76 -0
- data/sig/temporalio/client/connection/operator_service.rbs +12 -0
- data/sig/temporalio/client/schedule.rbs +24 -3
- data/sig/temporalio/contrib/aws/s3_driver/s3_storage_driver.rbs +2 -1
- data/sig/temporalio/contrib/open_telemetry.rbs +4 -4
- data/sig/temporalio/converters/data_converter.rbs +19 -1
- data/sig/temporalio/converters/external_storage.rbs +1 -3
- data/sig/temporalio/converters/storage_driver_limiter.rbs +5 -0
- data/sig/temporalio/converters/storage_driver_retrieve_context.rbs +1 -1
- data/sig/temporalio/converters/storage_driver_select_context.rbs +3 -1
- data/sig/temporalio/converters/storage_driver_store_context.rbs +3 -1
- data/sig/temporalio/error.rbs +4 -1
- data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +4 -0
- data/sig/temporalio/internal/bridge/worker.rbs +2 -0
- data/sig/temporalio/internal/client/described_schedule_action.rbs +18 -0
- data/sig/temporalio/internal/client/implementation.rbs +22 -0
- data/sig/temporalio/internal/external_storage_runner.rbs +32 -0
- data/sig/temporalio/internal/storage_operation_metrics.rbs +25 -0
- data/sig/temporalio/internal/worker/activity_worker.rbs +11 -2
- data/sig/temporalio/internal/worker/workflow_worker.rbs +32 -1
- metadata +13 -2
- data/sig/open_telemetry.rbs +0 -47
|
@@ -621,6 +621,89 @@ module Temporalio
|
|
|
621
621
|
("task_queue_fairness_enabled" name, bool value) -> void
|
|
622
622
|
end
|
|
623
623
|
|
|
624
|
+
# temporal:versioning:min_version=v0.23.0
|
|
625
|
+
class EncryptionValidationSpec < ::Google::Protobuf::AbstractMessage
|
|
626
|
+
module EncryptionValidationMode
|
|
627
|
+
|
|
628
|
+
ENCRYPTION_VALIDATION_MODE_UNSPECIFIED: 0
|
|
629
|
+
|
|
630
|
+
# Disables encryption validation.
|
|
631
|
+
ENCRYPTION_VALIDATION_MODE_DISABLED: 1
|
|
632
|
+
|
|
633
|
+
# Allows requests with unencrypted payloads, but emits warning metrics when validation fails.
|
|
634
|
+
ENCRYPTION_VALIDATION_MODE_WARN: 2
|
|
635
|
+
|
|
636
|
+
# Rejects requests with unencrypted payloads when validation fails.
|
|
637
|
+
ENCRYPTION_VALIDATION_MODE_DENY: 3
|
|
638
|
+
|
|
639
|
+
def self.lookup: (::Integer number) -> ::Symbol
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
def self.resolve: (::Symbol name) -> ::Integer
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
type names = :ENCRYPTION_VALIDATION_MODE_UNSPECIFIED | :ENCRYPTION_VALIDATION_MODE_DISABLED | :ENCRYPTION_VALIDATION_MODE_WARN | :ENCRYPTION_VALIDATION_MODE_DENY
|
|
646
|
+
|
|
647
|
+
type strings = "ENCRYPTION_VALIDATION_MODE_UNSPECIFIED" | "ENCRYPTION_VALIDATION_MODE_DISABLED" | "ENCRYPTION_VALIDATION_MODE_WARN" | "ENCRYPTION_VALIDATION_MODE_DENY"
|
|
648
|
+
|
|
649
|
+
type numbers = 0 | 1 | 2 | 3
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
# The payload encryption validation mode for this namespace.
|
|
653
|
+
attr_reader mode(): ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::names | ::Integer
|
|
654
|
+
attr_writer mode(): ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::names | ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::strings | ::Integer | ::Float
|
|
655
|
+
attr_reader mode_const(): ::Integer
|
|
656
|
+
def clear_mode: () -> void
|
|
657
|
+
|
|
658
|
+
# (Optional) The payload metadata key used to identify encrypted payloads.
|
|
659
|
+
# Default value is "encoding" if omitted.
|
|
660
|
+
attr_reader metadata_key(): ::String
|
|
661
|
+
attr_writer metadata_key(): ::String | ::Symbol
|
|
662
|
+
def clear_metadata_key: () -> void
|
|
663
|
+
|
|
664
|
+
# (Optional) The payload metadata values used to identify encrypted payloads.
|
|
665
|
+
# Default value is ["binary/encrypted"] if omitted.
|
|
666
|
+
attr_accessor metadata_values(): ::Google::Protobuf::RepeatedField
|
|
667
|
+
def clear_metadata_values: () -> void
|
|
668
|
+
|
|
669
|
+
# Whether workflow headers should be inspected for encryption validation.
|
|
670
|
+
attr_accessor inspect_header(): bool
|
|
671
|
+
def clear_inspect_header: () -> void
|
|
672
|
+
|
|
673
|
+
# Whether to inspect the message and stack_trace fields for Failure messages.
|
|
674
|
+
attr_accessor inspect_failure(): bool
|
|
675
|
+
def clear_inspect_failure: () -> void
|
|
676
|
+
|
|
677
|
+
type init_map = {
|
|
678
|
+
mode: (::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::names | ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::strings | ::Integer | ::Float)?,
|
|
679
|
+
"mode" => (::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::names | ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::strings | ::Integer | ::Float)?,
|
|
680
|
+
metadata_key: (::String | ::Symbol)?,
|
|
681
|
+
"metadata_key" => (::String | ::Symbol)?,
|
|
682
|
+
metadata_values: ::Array[::String | ::Symbol]?,
|
|
683
|
+
"metadata_values" => ::Array[::String | ::Symbol]?,
|
|
684
|
+
inspect_header: bool?,
|
|
685
|
+
"inspect_header" => bool?,
|
|
686
|
+
inspect_failure: bool?,
|
|
687
|
+
"inspect_failure" => bool?,
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
def initialize: (?init_map initial_value) -> void
|
|
691
|
+
|
|
692
|
+
def []:
|
|
693
|
+
("mode" name) -> (::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::names | ::Integer)
|
|
694
|
+
| ("metadata_key" name) -> ::String
|
|
695
|
+
| ("metadata_values" name) -> (::Google::Protobuf::RepeatedField)
|
|
696
|
+
| ("inspect_header" name) -> bool
|
|
697
|
+
| ("inspect_failure" name) -> bool
|
|
698
|
+
|
|
699
|
+
def []=:
|
|
700
|
+
("mode" name, (::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::names | ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::EncryptionValidationMode::strings | ::Integer | ::Float) value) -> void
|
|
701
|
+
| ("metadata_key" name, (::String | ::Symbol) value) -> void
|
|
702
|
+
| ("metadata_values" name, (::Google::Protobuf::RepeatedField) value) -> void
|
|
703
|
+
| ("inspect_header" name, bool value) -> void
|
|
704
|
+
| ("inspect_failure" name, bool value) -> void
|
|
705
|
+
end
|
|
706
|
+
|
|
624
707
|
class NamespaceSpec < ::Google::Protobuf::AbstractMessage
|
|
625
708
|
module SearchAttributeType
|
|
626
709
|
|
|
@@ -765,6 +848,21 @@ module Temporalio
|
|
|
765
848
|
def has_fairness?: () -> bool
|
|
766
849
|
def clear_fairness: () -> void
|
|
767
850
|
|
|
851
|
+
# The payload encryption validation configuration for the namespace.
|
|
852
|
+
# If unspecified, payload encryption validation will be disabled.
|
|
853
|
+
# temporal:versioning:min_version=v0.23.0
|
|
854
|
+
attr_accessor encryption_validation(): ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec?
|
|
855
|
+
def has_encryption_validation?: () -> bool
|
|
856
|
+
def clear_encryption_validation: () -> void
|
|
857
|
+
|
|
858
|
+
# The description is a human-readable description of the namespace purpose.
|
|
859
|
+
# Must be at most 255 printable ASCII characters plus whitespace.
|
|
860
|
+
# Optional, default is empty.
|
|
861
|
+
# temporal:versioning:min_version=v0.21.0
|
|
862
|
+
attr_reader description(): ::String
|
|
863
|
+
attr_writer description(): ::String | ::Symbol
|
|
864
|
+
def clear_description: () -> void
|
|
865
|
+
|
|
768
866
|
type init_map = {
|
|
769
867
|
name: (::String | ::Symbol)?,
|
|
770
868
|
"name" => (::String | ::Symbol)?,
|
|
@@ -794,6 +892,10 @@ module Temporalio
|
|
|
794
892
|
"replicas" => ::Array[::Temporalio::Api::Cloud::Namespace::V1::ReplicaSpec]?,
|
|
795
893
|
fairness: (::Temporalio::Api::Cloud::Namespace::V1::FairnessSpec | ::Temporalio::Api::Cloud::Namespace::V1::FairnessSpec::init_map)?,
|
|
796
894
|
"fairness" => (::Temporalio::Api::Cloud::Namespace::V1::FairnessSpec | ::Temporalio::Api::Cloud::Namespace::V1::FairnessSpec::init_map)?,
|
|
895
|
+
encryption_validation: (::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec | ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::init_map)?,
|
|
896
|
+
"encryption_validation" => (::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec | ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec::init_map)?,
|
|
897
|
+
description: (::String | ::Symbol)?,
|
|
898
|
+
"description" => (::String | ::Symbol)?,
|
|
797
899
|
}
|
|
798
900
|
|
|
799
901
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -813,6 +915,8 @@ module Temporalio
|
|
|
813
915
|
| ("capacity_spec" name) -> ::Temporalio::Api::Cloud::Namespace::V1::CapacitySpec?
|
|
814
916
|
| ("replicas" name) -> ::Google::Protobuf::RepeatedField
|
|
815
917
|
| ("fairness" name) -> ::Temporalio::Api::Cloud::Namespace::V1::FairnessSpec?
|
|
918
|
+
| ("encryption_validation" name) -> ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec?
|
|
919
|
+
| ("description" name) -> ::String
|
|
816
920
|
|
|
817
921
|
def []=:
|
|
818
922
|
("name" name, (::String | ::Symbol) value) -> void
|
|
@@ -829,6 +933,8 @@ module Temporalio
|
|
|
829
933
|
| ("capacity_spec" name, ::Temporalio::Api::Cloud::Namespace::V1::CapacitySpec? value) -> void
|
|
830
934
|
| ("replicas" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
831
935
|
| ("fairness" name, ::Temporalio::Api::Cloud::Namespace::V1::FairnessSpec? value) -> void
|
|
936
|
+
| ("encryption_validation" name, ::Temporalio::Api::Cloud::Namespace::V1::EncryptionValidationSpec? value) -> void
|
|
937
|
+
| ("description" name, (::String | ::Symbol) value) -> void
|
|
832
938
|
end
|
|
833
939
|
|
|
834
940
|
class Endpoints < ::Google::Protobuf::AbstractMessage
|
|
@@ -1049,6 +1155,11 @@ module Temporalio
|
|
|
1049
1155
|
attr_accessor replicas(): ::Google::Protobuf::RepeatedField
|
|
1050
1156
|
def clear_replicas: () -> void
|
|
1051
1157
|
|
|
1158
|
+
# The id of the project this namespace belongs to.
|
|
1159
|
+
attr_reader project_id(): ::String
|
|
1160
|
+
attr_writer project_id(): ::String | ::Symbol
|
|
1161
|
+
def clear_project_id: () -> void
|
|
1162
|
+
|
|
1052
1163
|
type init_map = {
|
|
1053
1164
|
namespace: (::String | ::Symbol)?,
|
|
1054
1165
|
"namespace" => (::String | ::Symbol)?,
|
|
@@ -1084,6 +1195,8 @@ module Temporalio
|
|
|
1084
1195
|
"capacity" => (::Temporalio::Api::Cloud::Namespace::V1::Capacity | ::Temporalio::Api::Cloud::Namespace::V1::Capacity::init_map)?,
|
|
1085
1196
|
replicas: ::Array[::Temporalio::Api::Cloud::Namespace::V1::Replica]?,
|
|
1086
1197
|
"replicas" => ::Array[::Temporalio::Api::Cloud::Namespace::V1::Replica]?,
|
|
1198
|
+
project_id: (::String | ::Symbol)?,
|
|
1199
|
+
"project_id" => (::String | ::Symbol)?,
|
|
1087
1200
|
}
|
|
1088
1201
|
|
|
1089
1202
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -1106,6 +1219,7 @@ module Temporalio
|
|
|
1106
1219
|
| ("tags" name) -> (::Google::Protobuf::Map[::String, ::String])
|
|
1107
1220
|
| ("capacity" name) -> ::Temporalio::Api::Cloud::Namespace::V1::Capacity?
|
|
1108
1221
|
| ("replicas" name) -> ::Google::Protobuf::RepeatedField
|
|
1222
|
+
| ("project_id" name) -> ::String
|
|
1109
1223
|
|
|
1110
1224
|
def []=:
|
|
1111
1225
|
("namespace" name, (::String | ::Symbol) value) -> void
|
|
@@ -1125,6 +1239,194 @@ module Temporalio
|
|
|
1125
1239
|
| ("tags" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void
|
|
1126
1240
|
| ("capacity" name, ::Temporalio::Api::Cloud::Namespace::V1::Capacity? value) -> void
|
|
1127
1241
|
| ("replicas" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
1242
|
+
| ("project_id" name, (::String | ::Symbol) value) -> void
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
# The caller rate limit resource.
|
|
1246
|
+
# A caller rate limit sets a request per second limit for a caller making requests to a target namespace.
|
|
1247
|
+
# The 'target namespace' is the namespace being protected.
|
|
1248
|
+
class CallerRateLimit < ::Google::Protobuf::AbstractMessage
|
|
1249
|
+
|
|
1250
|
+
# The id of the caller rate limit. This is generated by the server and is immutable.
|
|
1251
|
+
attr_reader id(): ::String
|
|
1252
|
+
attr_writer id(): ::String | ::Symbol
|
|
1253
|
+
def clear_id: () -> void
|
|
1254
|
+
|
|
1255
|
+
# The current version of the caller rate limit specification.
|
|
1256
|
+
# The next update or delete operations must include this version.
|
|
1257
|
+
attr_reader resource_version(): ::String
|
|
1258
|
+
attr_writer resource_version(): ::String | ::Symbol
|
|
1259
|
+
def clear_resource_version: () -> void
|
|
1260
|
+
|
|
1261
|
+
# The caller rate limit specification.
|
|
1262
|
+
attr_accessor spec(): ::Temporalio::Api::Cloud::Namespace::V1::CallerRateLimitSpec?
|
|
1263
|
+
def has_spec?: () -> bool
|
|
1264
|
+
def clear_spec: () -> void
|
|
1265
|
+
|
|
1266
|
+
# The current state of the caller rate limit.
|
|
1267
|
+
attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer
|
|
1268
|
+
attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float
|
|
1269
|
+
attr_reader state_const(): ::Integer
|
|
1270
|
+
def clear_state: () -> void
|
|
1271
|
+
|
|
1272
|
+
# The id of any ongoing operation that is creating, updating, or deleting the caller rate limit.
|
|
1273
|
+
attr_reader async_operation_id(): ::String
|
|
1274
|
+
attr_writer async_operation_id(): ::String | ::Symbol
|
|
1275
|
+
def clear_async_operation_id: () -> void
|
|
1276
|
+
|
|
1277
|
+
# The date and time when the caller rate limit was created.
|
|
1278
|
+
attr_reader created_time(): ::Google::Protobuf::Timestamp?
|
|
1279
|
+
attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
1280
|
+
def has_created_time?: () -> bool
|
|
1281
|
+
def clear_created_time: () -> void
|
|
1282
|
+
|
|
1283
|
+
# The date and time when the caller rate limit was last modified.
|
|
1284
|
+
attr_reader last_modified_time(): ::Google::Protobuf::Timestamp?
|
|
1285
|
+
attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
1286
|
+
def has_last_modified_time?: () -> bool
|
|
1287
|
+
def clear_last_modified_time: () -> void
|
|
1288
|
+
|
|
1289
|
+
# The target namespace. This is immutable.
|
|
1290
|
+
attr_reader namespace(): ::String
|
|
1291
|
+
attr_writer namespace(): ::String | ::Symbol
|
|
1292
|
+
def clear_namespace: () -> void
|
|
1293
|
+
|
|
1294
|
+
type init_map = {
|
|
1295
|
+
id: (::String | ::Symbol)?,
|
|
1296
|
+
"id" => (::String | ::Symbol)?,
|
|
1297
|
+
resource_version: (::String | ::Symbol)?,
|
|
1298
|
+
"resource_version" => (::String | ::Symbol)?,
|
|
1299
|
+
spec: (::Temporalio::Api::Cloud::Namespace::V1::CallerRateLimitSpec | ::Temporalio::Api::Cloud::Namespace::V1::CallerRateLimitSpec::init_map)?,
|
|
1300
|
+
"spec" => (::Temporalio::Api::Cloud::Namespace::V1::CallerRateLimitSpec | ::Temporalio::Api::Cloud::Namespace::V1::CallerRateLimitSpec::init_map)?,
|
|
1301
|
+
state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?,
|
|
1302
|
+
"state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?,
|
|
1303
|
+
async_operation_id: (::String | ::Symbol)?,
|
|
1304
|
+
"async_operation_id" => (::String | ::Symbol)?,
|
|
1305
|
+
created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1306
|
+
"created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1307
|
+
last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1308
|
+
"last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1309
|
+
namespace: (::String | ::Symbol)?,
|
|
1310
|
+
"namespace" => (::String | ::Symbol)?,
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
def initialize: (?init_map initial_value) -> void
|
|
1314
|
+
|
|
1315
|
+
def []:
|
|
1316
|
+
("id" name) -> ::String
|
|
1317
|
+
| ("resource_version" name) -> ::String
|
|
1318
|
+
| ("spec" name) -> ::Temporalio::Api::Cloud::Namespace::V1::CallerRateLimitSpec?
|
|
1319
|
+
| ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer)
|
|
1320
|
+
| ("async_operation_id" name) -> ::String
|
|
1321
|
+
| ("created_time" name) -> ::Google::Protobuf::Timestamp?
|
|
1322
|
+
| ("last_modified_time" name) -> ::Google::Protobuf::Timestamp?
|
|
1323
|
+
| ("namespace" name) -> ::String
|
|
1324
|
+
|
|
1325
|
+
def []=:
|
|
1326
|
+
("id" name, (::String | ::Symbol) value) -> void
|
|
1327
|
+
| ("resource_version" name, (::String | ::Symbol) value) -> void
|
|
1328
|
+
| ("spec" name, ::Temporalio::Api::Cloud::Namespace::V1::CallerRateLimitSpec? value) -> void
|
|
1329
|
+
| ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void
|
|
1330
|
+
| ("async_operation_id" name, (::String | ::Symbol) value) -> void
|
|
1331
|
+
| ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
1332
|
+
| ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
1333
|
+
| ("namespace" name, (::String | ::Symbol) value) -> void
|
|
1334
|
+
end
|
|
1335
|
+
|
|
1336
|
+
# The specification for a caller rate limit.
|
|
1337
|
+
class CallerRateLimitSpec < ::Google::Protobuf::AbstractMessage
|
|
1338
|
+
|
|
1339
|
+
# The default rate limit for namespace callers that do not match a specific rule.
|
|
1340
|
+
# The target namespace can have at most one namespace default limit.
|
|
1341
|
+
# A default rate limit is not required, and unmatched namespaces will not have a caller rate limit.
|
|
1342
|
+
attr_accessor namespace_default(): ::Temporalio::Api::Cloud::Namespace::V1::NamespaceDefaultCallerRateLimit?
|
|
1343
|
+
def has_namespace_default?: () -> bool
|
|
1344
|
+
def clear_namespace_default: () -> void
|
|
1345
|
+
|
|
1346
|
+
# A rate limit rule that matches a specific caller namespace.
|
|
1347
|
+
# The target namespace can have at most one matching rule for each caller namespace.
|
|
1348
|
+
attr_accessor namespace_limit(): ::Temporalio::Api::Cloud::Namespace::V1::NamespaceCallerRateLimit?
|
|
1349
|
+
def has_namespace_limit?: () -> bool
|
|
1350
|
+
def clear_namespace_limit: () -> void
|
|
1351
|
+
|
|
1352
|
+
# The rule for this caller rate limit.
|
|
1353
|
+
# Exactly one rule must be set. The rule type is immutable.
|
|
1354
|
+
attr_reader rule(): (::Temporalio::Api::Cloud::Namespace::V1::NamespaceDefaultCallerRateLimit | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceCallerRateLimit)?
|
|
1355
|
+
def has_rule?: () -> bool
|
|
1356
|
+
def clear_rule: () -> void
|
|
1357
|
+
|
|
1358
|
+
type init_map = {
|
|
1359
|
+
namespace_default: (::Temporalio::Api::Cloud::Namespace::V1::NamespaceDefaultCallerRateLimit | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceDefaultCallerRateLimit::init_map)?,
|
|
1360
|
+
"namespace_default" => (::Temporalio::Api::Cloud::Namespace::V1::NamespaceDefaultCallerRateLimit | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceDefaultCallerRateLimit::init_map)?,
|
|
1361
|
+
namespace_limit: (::Temporalio::Api::Cloud::Namespace::V1::NamespaceCallerRateLimit | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceCallerRateLimit::init_map)?,
|
|
1362
|
+
"namespace_limit" => (::Temporalio::Api::Cloud::Namespace::V1::NamespaceCallerRateLimit | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceCallerRateLimit::init_map)?,
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
def initialize: (?init_map initial_value) -> void
|
|
1366
|
+
|
|
1367
|
+
def []:
|
|
1368
|
+
("namespace_default" name) -> ::Temporalio::Api::Cloud::Namespace::V1::NamespaceDefaultCallerRateLimit?
|
|
1369
|
+
| ("namespace_limit" name) -> ::Temporalio::Api::Cloud::Namespace::V1::NamespaceCallerRateLimit?
|
|
1370
|
+
|
|
1371
|
+
def []=:
|
|
1372
|
+
("namespace_default" name, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceDefaultCallerRateLimit? value) -> void
|
|
1373
|
+
| ("namespace_limit" name, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceCallerRateLimit? value) -> void
|
|
1374
|
+
end
|
|
1375
|
+
|
|
1376
|
+
# The limit for a specific calling namespace.
|
|
1377
|
+
class NamespaceCallerRateLimit < ::Google::Protobuf::AbstractMessage
|
|
1378
|
+
|
|
1379
|
+
# The calling namespace to match exactly.
|
|
1380
|
+
# Required. Immutable.
|
|
1381
|
+
attr_reader namespace_id(): ::String
|
|
1382
|
+
attr_writer namespace_id(): ::String | ::Symbol
|
|
1383
|
+
def clear_namespace_id: () -> void
|
|
1384
|
+
|
|
1385
|
+
# The number of requests per second that are allowed.
|
|
1386
|
+
# Must be non-negative and finite. A value of 0 denies all traffic from this caller.
|
|
1387
|
+
attr_reader rps(): ::Float
|
|
1388
|
+
attr_writer rps(): ::Float | ::Integer
|
|
1389
|
+
def clear_rps: () -> void
|
|
1390
|
+
|
|
1391
|
+
type init_map = {
|
|
1392
|
+
namespace_id: (::String | ::Symbol)?,
|
|
1393
|
+
"namespace_id" => (::String | ::Symbol)?,
|
|
1394
|
+
rps: (::Float | ::Integer)?,
|
|
1395
|
+
"rps" => (::Float | ::Integer)?,
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
def initialize: (?init_map initial_value) -> void
|
|
1399
|
+
|
|
1400
|
+
def []:
|
|
1401
|
+
("namespace_id" name) -> ::String
|
|
1402
|
+
| ("rps" name) -> ::Float
|
|
1403
|
+
|
|
1404
|
+
def []=:
|
|
1405
|
+
("namespace_id" name, (::String | ::Symbol) value) -> void
|
|
1406
|
+
| ("rps" name, (::Float | ::Integer) value) -> void
|
|
1407
|
+
end
|
|
1408
|
+
|
|
1409
|
+
# The default limit for calling namespaces.
|
|
1410
|
+
class NamespaceDefaultCallerRateLimit < ::Google::Protobuf::AbstractMessage
|
|
1411
|
+
|
|
1412
|
+
# The number of requests per second that are allowed.
|
|
1413
|
+
# Must be non-negative and finite. A value of 0 denies all traffic.
|
|
1414
|
+
attr_reader rps(): ::Float
|
|
1415
|
+
attr_writer rps(): ::Float | ::Integer
|
|
1416
|
+
def clear_rps: () -> void
|
|
1417
|
+
|
|
1418
|
+
type init_map = {
|
|
1419
|
+
rps: (::Float | ::Integer)?,
|
|
1420
|
+
"rps" => (::Float | ::Integer)?,
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
def initialize: (?init_map initial_value) -> void
|
|
1424
|
+
|
|
1425
|
+
def []:
|
|
1426
|
+
("rps" name) -> ::Float
|
|
1427
|
+
|
|
1428
|
+
def []=:
|
|
1429
|
+
("rps" name, (::Float | ::Integer) value) -> void
|
|
1128
1430
|
end
|
|
1129
1431
|
|
|
1130
1432
|
class NamespaceRegionStatus < ::Google::Protobuf::AbstractMessage
|
|
@@ -1201,6 +1503,25 @@ module Temporalio
|
|
|
1201
1503
|
end
|
|
1202
1504
|
|
|
1203
1505
|
class ExportSinkSpec < ::Google::Protobuf::AbstractMessage
|
|
1506
|
+
class SinkFilter < ::Google::Protobuf::AbstractMessage
|
|
1507
|
+
|
|
1508
|
+
# Whether to disable export of standalone activity events.
|
|
1509
|
+
attr_accessor disable_standalone_activity_export(): bool
|
|
1510
|
+
def clear_disable_standalone_activity_export: () -> void
|
|
1511
|
+
|
|
1512
|
+
type init_map = {
|
|
1513
|
+
disable_standalone_activity_export: bool?,
|
|
1514
|
+
"disable_standalone_activity_export" => bool?,
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
def initialize: (?init_map initial_value) -> void
|
|
1518
|
+
|
|
1519
|
+
def []:
|
|
1520
|
+
("disable_standalone_activity_export" name) -> bool
|
|
1521
|
+
|
|
1522
|
+
def []=:
|
|
1523
|
+
("disable_standalone_activity_export" name, bool value) -> void
|
|
1524
|
+
end
|
|
1204
1525
|
|
|
1205
1526
|
# The unique name of the export sink, it can't be changed once set.
|
|
1206
1527
|
attr_reader name(): ::String
|
|
@@ -1216,12 +1537,23 @@ module Temporalio
|
|
|
1216
1537
|
def has_s3?: () -> bool
|
|
1217
1538
|
def clear_s3: () -> void
|
|
1218
1539
|
|
|
1219
|
-
# This is a feature under development. We will allow GCS sink support for GCP Namespaces.
|
|
1220
1540
|
# The GCS configuration details when destination_type is GCS.
|
|
1221
1541
|
attr_accessor gcs(): ::Temporalio::Api::Cloud::Sink::V1::GCSSpec?
|
|
1222
1542
|
def has_gcs?: () -> bool
|
|
1223
1543
|
def clear_gcs: () -> void
|
|
1224
1544
|
|
|
1545
|
+
# The Azure Blob configuration details when destination_type is Azure Blob.
|
|
1546
|
+
# temporal:versioning:min_version=v0.19.1
|
|
1547
|
+
attr_accessor azure_blob(): ::Temporalio::Api::Cloud::Sink::V1::AzureBlobSpec?
|
|
1548
|
+
def has_azure_blob?: () -> bool
|
|
1549
|
+
def clear_azure_blob: () -> void
|
|
1550
|
+
|
|
1551
|
+
# The filter configuration for controlling which events are exported.
|
|
1552
|
+
# temporal:versioning:min_version=v0.25.0
|
|
1553
|
+
attr_accessor filter(): ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::SinkFilter?
|
|
1554
|
+
def has_filter?: () -> bool
|
|
1555
|
+
def clear_filter: () -> void
|
|
1556
|
+
|
|
1225
1557
|
type init_map = {
|
|
1226
1558
|
name: (::String | ::Symbol)?,
|
|
1227
1559
|
"name" => (::String | ::Symbol)?,
|
|
@@ -1231,6 +1563,10 @@ module Temporalio
|
|
|
1231
1563
|
"s3" => (::Temporalio::Api::Cloud::Sink::V1::S3Spec | ::Temporalio::Api::Cloud::Sink::V1::S3Spec::init_map)?,
|
|
1232
1564
|
gcs: (::Temporalio::Api::Cloud::Sink::V1::GCSSpec | ::Temporalio::Api::Cloud::Sink::V1::GCSSpec::init_map)?,
|
|
1233
1565
|
"gcs" => (::Temporalio::Api::Cloud::Sink::V1::GCSSpec | ::Temporalio::Api::Cloud::Sink::V1::GCSSpec::init_map)?,
|
|
1566
|
+
azure_blob: (::Temporalio::Api::Cloud::Sink::V1::AzureBlobSpec | ::Temporalio::Api::Cloud::Sink::V1::AzureBlobSpec::init_map)?,
|
|
1567
|
+
"azure_blob" => (::Temporalio::Api::Cloud::Sink::V1::AzureBlobSpec | ::Temporalio::Api::Cloud::Sink::V1::AzureBlobSpec::init_map)?,
|
|
1568
|
+
filter: (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::SinkFilter | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::SinkFilter::init_map)?,
|
|
1569
|
+
"filter" => (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::SinkFilter | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::SinkFilter::init_map)?,
|
|
1234
1570
|
}
|
|
1235
1571
|
|
|
1236
1572
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -1240,12 +1576,16 @@ module Temporalio
|
|
|
1240
1576
|
| ("enabled" name) -> bool
|
|
1241
1577
|
| ("s3" name) -> ::Temporalio::Api::Cloud::Sink::V1::S3Spec?
|
|
1242
1578
|
| ("gcs" name) -> ::Temporalio::Api::Cloud::Sink::V1::GCSSpec?
|
|
1579
|
+
| ("azure_blob" name) -> ::Temporalio::Api::Cloud::Sink::V1::AzureBlobSpec?
|
|
1580
|
+
| ("filter" name) -> ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::SinkFilter?
|
|
1243
1581
|
|
|
1244
1582
|
def []=:
|
|
1245
1583
|
("name" name, (::String | ::Symbol) value) -> void
|
|
1246
1584
|
| ("enabled" name, bool value) -> void
|
|
1247
1585
|
| ("s3" name, ::Temporalio::Api::Cloud::Sink::V1::S3Spec? value) -> void
|
|
1248
1586
|
| ("gcs" name, ::Temporalio::Api::Cloud::Sink::V1::GCSSpec? value) -> void
|
|
1587
|
+
| ("azure_blob" name, ::Temporalio::Api::Cloud::Sink::V1::AzureBlobSpec? value) -> void
|
|
1588
|
+
| ("filter" name, ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::SinkFilter? value) -> void
|
|
1249
1589
|
end
|
|
1250
1590
|
|
|
1251
1591
|
class ExportSink < ::Google::Protobuf::AbstractMessage
|
|
@@ -1505,7 +1845,6 @@ module Temporalio
|
|
|
1505
1845
|
def clear_namespace: () -> void
|
|
1506
1846
|
|
|
1507
1847
|
# Whether the namespace's APS limit was set by Temporal Support.
|
|
1508
|
-
# When true, adjusting the namespace's capacity will reset this limit.
|
|
1509
1848
|
attr_accessor has_legacy_limits(): bool
|
|
1510
1849
|
def clear_has_legacy_limits: () -> void
|
|
1511
1850
|
|
|
@@ -217,6 +217,11 @@ module Temporalio
|
|
|
217
217
|
def has_last_modified_time?: () -> bool
|
|
218
218
|
def clear_last_modified_time: () -> void
|
|
219
219
|
|
|
220
|
+
# The id of the project this endpoint belongs to.
|
|
221
|
+
attr_reader project_id(): ::String
|
|
222
|
+
attr_writer project_id(): ::String | ::Symbol
|
|
223
|
+
def clear_project_id: () -> void
|
|
224
|
+
|
|
220
225
|
type init_map = {
|
|
221
226
|
id: (::String | ::Symbol)?,
|
|
222
227
|
"id" => (::String | ::Symbol)?,
|
|
@@ -232,6 +237,8 @@ module Temporalio
|
|
|
232
237
|
"created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
233
238
|
last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
234
239
|
"last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
240
|
+
project_id: (::String | ::Symbol)?,
|
|
241
|
+
"project_id" => (::String | ::Symbol)?,
|
|
235
242
|
}
|
|
236
243
|
|
|
237
244
|
def initialize: (?init_map initial_value) -> void
|
|
@@ -244,6 +251,7 @@ module Temporalio
|
|
|
244
251
|
| ("async_operation_id" name) -> ::String
|
|
245
252
|
| ("created_time" name) -> ::Google::Protobuf::Timestamp?
|
|
246
253
|
| ("last_modified_time" name) -> ::Google::Protobuf::Timestamp?
|
|
254
|
+
| ("project_id" name) -> ::String
|
|
247
255
|
|
|
248
256
|
def []=:
|
|
249
257
|
("id" name, (::String | ::Symbol) value) -> void
|
|
@@ -253,6 +261,7 @@ module Temporalio
|
|
|
253
261
|
| ("async_operation_id" name, (::String | ::Symbol) value) -> void
|
|
254
262
|
| ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
255
263
|
| ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
264
|
+
| ("project_id" name, (::String | ::Symbol) value) -> void
|
|
256
265
|
end
|
|
257
266
|
end
|
|
258
267
|
end
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# This RBS interface is provided for convenience, on a best-effort basis.
|
|
3
|
+
# The library is the definitive source for the API contract; if the RBS file
|
|
4
|
+
# and the library's behavior differ, the library behavior is authoritative.
|
|
5
|
+
# We welcome fixes to change the RBS file to match.
|
|
6
|
+
# source: temporal/api/cloud/project/v1/message.proto
|
|
7
|
+
|
|
8
|
+
module Temporalio
|
|
9
|
+
module Api
|
|
10
|
+
module Cloud
|
|
11
|
+
module Project
|
|
12
|
+
module V1
|
|
13
|
+
class ProjectSpec < ::Google::Protobuf::AbstractMessage
|
|
14
|
+
|
|
15
|
+
# The display name of the project.
|
|
16
|
+
attr_reader display_name(): ::String
|
|
17
|
+
attr_writer display_name(): ::String | ::Symbol
|
|
18
|
+
def clear_display_name: () -> void
|
|
19
|
+
|
|
20
|
+
# A description of the project.
|
|
21
|
+
attr_reader description(): ::String
|
|
22
|
+
attr_writer description(): ::String | ::Symbol
|
|
23
|
+
def clear_description: () -> void
|
|
24
|
+
|
|
25
|
+
# The lifecycle configuration for the project.
|
|
26
|
+
attr_accessor lifecycle(): ::Temporalio::Api::Cloud::Project::V1::LifecycleSpec?
|
|
27
|
+
def has_lifecycle?: () -> bool
|
|
28
|
+
def clear_lifecycle: () -> void
|
|
29
|
+
|
|
30
|
+
type init_map = {
|
|
31
|
+
display_name: (::String | ::Symbol)?,
|
|
32
|
+
"display_name" => (::String | ::Symbol)?,
|
|
33
|
+
description: (::String | ::Symbol)?,
|
|
34
|
+
"description" => (::String | ::Symbol)?,
|
|
35
|
+
lifecycle: (::Temporalio::Api::Cloud::Project::V1::LifecycleSpec | ::Temporalio::Api::Cloud::Project::V1::LifecycleSpec::init_map)?,
|
|
36
|
+
"lifecycle" => (::Temporalio::Api::Cloud::Project::V1::LifecycleSpec | ::Temporalio::Api::Cloud::Project::V1::LifecycleSpec::init_map)?,
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
def initialize: (?init_map initial_value) -> void
|
|
40
|
+
|
|
41
|
+
def []:
|
|
42
|
+
("display_name" name) -> ::String
|
|
43
|
+
| ("description" name) -> ::String
|
|
44
|
+
| ("lifecycle" name) -> ::Temporalio::Api::Cloud::Project::V1::LifecycleSpec?
|
|
45
|
+
|
|
46
|
+
def []=:
|
|
47
|
+
("display_name" name, (::String | ::Symbol) value) -> void
|
|
48
|
+
| ("description" name, (::String | ::Symbol) value) -> void
|
|
49
|
+
| ("lifecycle" name, ::Temporalio::Api::Cloud::Project::V1::LifecycleSpec? value) -> void
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
class LifecycleSpec < ::Google::Protobuf::AbstractMessage
|
|
53
|
+
|
|
54
|
+
# If true, the project cannot be deleted.
|
|
55
|
+
attr_accessor enable_delete_protection(): bool
|
|
56
|
+
def clear_enable_delete_protection: () -> void
|
|
57
|
+
|
|
58
|
+
type init_map = {
|
|
59
|
+
enable_delete_protection: bool?,
|
|
60
|
+
"enable_delete_protection" => bool?,
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
def initialize: (?init_map initial_value) -> void
|
|
64
|
+
|
|
65
|
+
def []:
|
|
66
|
+
("enable_delete_protection" name) -> bool
|
|
67
|
+
|
|
68
|
+
def []=:
|
|
69
|
+
("enable_delete_protection" name, bool value) -> void
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
class Project < ::Google::Protobuf::AbstractMessage
|
|
73
|
+
|
|
74
|
+
# The id of the user
|
|
75
|
+
attr_reader id(): ::String
|
|
76
|
+
attr_writer id(): ::String | ::Symbol
|
|
77
|
+
def clear_id: () -> void
|
|
78
|
+
|
|
79
|
+
# The project specification
|
|
80
|
+
attr_accessor spec(): ::Temporalio::Api::Cloud::Project::V1::ProjectSpec?
|
|
81
|
+
def has_spec?: () -> bool
|
|
82
|
+
def clear_spec: () -> void
|
|
83
|
+
|
|
84
|
+
# The current version of the project specification
|
|
85
|
+
# The next update operation will have to include this version
|
|
86
|
+
attr_reader resource_version(): ::String
|
|
87
|
+
attr_writer resource_version(): ::String | ::Symbol
|
|
88
|
+
def clear_resource_version: () -> void
|
|
89
|
+
|
|
90
|
+
# The current state of the project.
|
|
91
|
+
# For any failed state, reach out to Temporal Cloud support for remediation.
|
|
92
|
+
attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer
|
|
93
|
+
attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float
|
|
94
|
+
attr_reader state_const(): ::Integer
|
|
95
|
+
def clear_state: () -> void
|
|
96
|
+
|
|
97
|
+
# The id of the async operation that is creating/updating/deleting the project, if any
|
|
98
|
+
attr_reader async_operation_id(): ::String
|
|
99
|
+
attr_writer async_operation_id(): ::String | ::Symbol
|
|
100
|
+
def clear_async_operation_id: () -> void
|
|
101
|
+
|
|
102
|
+
# The date and time when the project was created
|
|
103
|
+
attr_reader created_time(): ::Google::Protobuf::Timestamp?
|
|
104
|
+
attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
105
|
+
def has_created_time?: () -> bool
|
|
106
|
+
def clear_created_time: () -> void
|
|
107
|
+
|
|
108
|
+
# The date and time when the project was last modified
|
|
109
|
+
# Will not be set if the project has never been modified
|
|
110
|
+
attr_reader last_modified_time(): ::Google::Protobuf::Timestamp?
|
|
111
|
+
attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
112
|
+
def has_last_modified_time?: () -> bool
|
|
113
|
+
def clear_last_modified_time: () -> void
|
|
114
|
+
|
|
115
|
+
type init_map = {
|
|
116
|
+
id: (::String | ::Symbol)?,
|
|
117
|
+
"id" => (::String | ::Symbol)?,
|
|
118
|
+
spec: (::Temporalio::Api::Cloud::Project::V1::ProjectSpec | ::Temporalio::Api::Cloud::Project::V1::ProjectSpec::init_map)?,
|
|
119
|
+
"spec" => (::Temporalio::Api::Cloud::Project::V1::ProjectSpec | ::Temporalio::Api::Cloud::Project::V1::ProjectSpec::init_map)?,
|
|
120
|
+
resource_version: (::String | ::Symbol)?,
|
|
121
|
+
"resource_version" => (::String | ::Symbol)?,
|
|
122
|
+
state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?,
|
|
123
|
+
"state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?,
|
|
124
|
+
async_operation_id: (::String | ::Symbol)?,
|
|
125
|
+
"async_operation_id" => (::String | ::Symbol)?,
|
|
126
|
+
created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
127
|
+
"created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
128
|
+
last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
129
|
+
"last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
def initialize: (?init_map initial_value) -> void
|
|
133
|
+
|
|
134
|
+
def []:
|
|
135
|
+
("id" name) -> ::String
|
|
136
|
+
| ("spec" name) -> ::Temporalio::Api::Cloud::Project::V1::ProjectSpec?
|
|
137
|
+
| ("resource_version" name) -> ::String
|
|
138
|
+
| ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer)
|
|
139
|
+
| ("async_operation_id" name) -> ::String
|
|
140
|
+
| ("created_time" name) -> ::Google::Protobuf::Timestamp?
|
|
141
|
+
| ("last_modified_time" name) -> ::Google::Protobuf::Timestamp?
|
|
142
|
+
|
|
143
|
+
def []=:
|
|
144
|
+
("id" name, (::String | ::Symbol) value) -> void
|
|
145
|
+
| ("spec" name, ::Temporalio::Api::Cloud::Project::V1::ProjectSpec? value) -> void
|
|
146
|
+
| ("resource_version" name, (::String | ::Symbol) value) -> void
|
|
147
|
+
| ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void
|
|
148
|
+
| ("async_operation_id" name, (::String | ::Symbol) value) -> void
|
|
149
|
+
| ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
150
|
+
| ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
module Google
|
|
159
|
+
module Protobuf
|
|
160
|
+
class DescriptorPool
|
|
161
|
+
def lookup: (::String name) -> ::Google::Protobuf::Descriptor
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|