google-cloud-universal_ledger-v1 0.a → 0.1.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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +151 -8
- data/lib/google/cloud/universal_ledger/v1/rest.rb +37 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/client.rb +1163 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/credentials.rb +47 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/paths.rb +69 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest/client.rb +1067 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest/service_stub.rb +511 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest.rb +59 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger.rb +62 -0
- data/lib/google/cloud/universal_ledger/v1/version.rb +7 -2
- data/lib/google/cloud/universal_ledger/v1.rb +45 -0
- data/lib/google/cloud/universalledger/v1/accounts_pb.rb +23 -0
- data/lib/google/cloud/universalledger/v1/common_pb.rb +36 -0
- data/lib/google/cloud/universalledger/v1/query_pb.rb +39 -0
- data/lib/google/cloud/universalledger/v1/status_event_pb.rb +27 -0
- data/lib/google/cloud/universalledger/v1/transactions_pb.rb +52 -0
- data/lib/google/cloud/universalledger/v1/types_pb.rb +47 -0
- data/lib/google/cloud/universalledger/v1/universalledger_pb.rb +41 -0
- data/lib/google/cloud/universalledger/v1/universalledger_services_pb.rb +89 -0
- data/lib/google-cloud-universal_ledger-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/universalledger/v1/accounts.rb +75 -0
- data/proto_docs/google/cloud/universalledger/v1/common.rb +272 -0
- data/proto_docs/google/cloud/universalledger/v1/query.rb +314 -0
- data/proto_docs/google/cloud/universalledger/v1/status_event.rb +88 -0
- data/proto_docs/google/cloud/universalledger/v1/transactions.rb +716 -0
- data/proto_docs/google/cloud/universalledger/v1/types.rb +618 -0
- data/proto_docs/google/cloud/universalledger/v1/universalledger.rb +237 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +128 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- metadata +86 -9
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Api
|
|
22
|
+
# The launch stage as defined by [Google Cloud Platform
|
|
23
|
+
# Launch Stages](https://cloud.google.com/terms/launch-stages).
|
|
24
|
+
module LaunchStage
|
|
25
|
+
# Do not use this default value.
|
|
26
|
+
LAUNCH_STAGE_UNSPECIFIED = 0
|
|
27
|
+
|
|
28
|
+
# The feature is not yet implemented. Users can not use it.
|
|
29
|
+
UNIMPLEMENTED = 6
|
|
30
|
+
|
|
31
|
+
# Prelaunch features are hidden from users and are only visible internally.
|
|
32
|
+
PRELAUNCH = 7
|
|
33
|
+
|
|
34
|
+
# Early Access features are limited to a closed group of testers. To use
|
|
35
|
+
# these features, you must sign up in advance and sign a Trusted Tester
|
|
36
|
+
# agreement (which includes confidentiality provisions). These features may
|
|
37
|
+
# be unstable, changed in backward-incompatible ways, and are not
|
|
38
|
+
# guaranteed to be released.
|
|
39
|
+
EARLY_ACCESS = 1
|
|
40
|
+
|
|
41
|
+
# Alpha is a limited availability test for releases before they are cleared
|
|
42
|
+
# for widespread use. By Alpha, all significant design issues are resolved
|
|
43
|
+
# and we are in the process of verifying functionality. Alpha customers
|
|
44
|
+
# need to apply for access, agree to applicable terms, and have their
|
|
45
|
+
# projects allowlisted. Alpha releases don't have to be feature complete,
|
|
46
|
+
# no SLAs are provided, and there are no technical support obligations, but
|
|
47
|
+
# they will be far enough along that customers can actually use them in
|
|
48
|
+
# test environments or for limited-use tests -- just like they would in
|
|
49
|
+
# normal production cases.
|
|
50
|
+
ALPHA = 2
|
|
51
|
+
|
|
52
|
+
# Beta is the point at which we are ready to open a release for any
|
|
53
|
+
# customer to use. There are no SLA or technical support obligations in a
|
|
54
|
+
# Beta release. Products will be complete from a feature perspective, but
|
|
55
|
+
# may have some open outstanding issues. Beta releases are suitable for
|
|
56
|
+
# limited production use cases.
|
|
57
|
+
BETA = 3
|
|
58
|
+
|
|
59
|
+
# GA features are open to all developers and are considered stable and
|
|
60
|
+
# fully qualified for production use.
|
|
61
|
+
GA = 4
|
|
62
|
+
|
|
63
|
+
# Deprecated features are scheduled to be shut down and removed. For more
|
|
64
|
+
# information, see the "Deprecation Policy" section of our [Terms of
|
|
65
|
+
# Service](https://cloud.google.com/terms/)
|
|
66
|
+
# and the [Google Cloud Platform Subject to the Deprecation
|
|
67
|
+
# Policy](https://cloud.google.com/terms/deprecation) documentation.
|
|
68
|
+
DEPRECATED = 5
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Api
|
|
22
|
+
# A simple descriptor of a resource type.
|
|
23
|
+
#
|
|
24
|
+
# ResourceDescriptor annotates a resource message (either by means of a
|
|
25
|
+
# protobuf annotation or use in the service config), and associates the
|
|
26
|
+
# resource's schema, the resource type, and the pattern of the resource name.
|
|
27
|
+
#
|
|
28
|
+
# Example:
|
|
29
|
+
#
|
|
30
|
+
# message Topic {
|
|
31
|
+
# // Indicates this message defines a resource schema.
|
|
32
|
+
# // Declares the resource type in the format of {service}/{kind}.
|
|
33
|
+
# // For Kubernetes resources, the format is {api group}/{kind}.
|
|
34
|
+
# option (google.api.resource) = {
|
|
35
|
+
# type: "pubsub.googleapis.com/Topic"
|
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
|
37
|
+
# };
|
|
38
|
+
# }
|
|
39
|
+
#
|
|
40
|
+
# The ResourceDescriptor Yaml config will look like:
|
|
41
|
+
#
|
|
42
|
+
# resources:
|
|
43
|
+
# - type: "pubsub.googleapis.com/Topic"
|
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
|
45
|
+
#
|
|
46
|
+
# Sometimes, resources have multiple patterns, typically because they can
|
|
47
|
+
# live under multiple parents.
|
|
48
|
+
#
|
|
49
|
+
# Example:
|
|
50
|
+
#
|
|
51
|
+
# message LogEntry {
|
|
52
|
+
# option (google.api.resource) = {
|
|
53
|
+
# type: "logging.googleapis.com/LogEntry"
|
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
|
58
|
+
# };
|
|
59
|
+
# }
|
|
60
|
+
#
|
|
61
|
+
# The ResourceDescriptor Yaml config will look like:
|
|
62
|
+
#
|
|
63
|
+
# resources:
|
|
64
|
+
# - type: 'logging.googleapis.com/LogEntry'
|
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
|
69
|
+
# @!attribute [rw] type
|
|
70
|
+
# @return [::String]
|
|
71
|
+
# The resource type. It must be in the format of
|
|
72
|
+
# \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
|
|
73
|
+
# singular and must not include version numbers.
|
|
74
|
+
#
|
|
75
|
+
# Example: `storage.googleapis.com/Bucket`
|
|
76
|
+
#
|
|
77
|
+
# The value of the resource_type_kind must follow the regular expression
|
|
78
|
+
# /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
|
|
79
|
+
# should use PascalCase (UpperCamelCase). The maximum number of
|
|
80
|
+
# characters allowed for the `resource_type_kind` is 100.
|
|
81
|
+
# @!attribute [rw] pattern
|
|
82
|
+
# @return [::Array<::String>]
|
|
83
|
+
# Optional. The relative resource name pattern associated with this resource
|
|
84
|
+
# type. The DNS prefix of the full resource name shouldn't be specified here.
|
|
85
|
+
#
|
|
86
|
+
# The path pattern must follow the syntax, which aligns with HTTP binding
|
|
87
|
+
# syntax:
|
|
88
|
+
#
|
|
89
|
+
# Template = Segment { "/" Segment } ;
|
|
90
|
+
# Segment = LITERAL | Variable ;
|
|
91
|
+
# Variable = "{" LITERAL "}" ;
|
|
92
|
+
#
|
|
93
|
+
# Examples:
|
|
94
|
+
#
|
|
95
|
+
# - "projects/\\{project}/topics/\\{topic}"
|
|
96
|
+
# - "projects/\\{project}/knowledgeBases/\\{knowledge_base}"
|
|
97
|
+
#
|
|
98
|
+
# The components in braces correspond to the IDs for each resource in the
|
|
99
|
+
# hierarchy. It is expected that, if multiple patterns are provided,
|
|
100
|
+
# the same component name (e.g. "project") refers to IDs of the same
|
|
101
|
+
# type of resource.
|
|
102
|
+
# @!attribute [rw] name_field
|
|
103
|
+
# @return [::String]
|
|
104
|
+
# Optional. The field on the resource that designates the resource name
|
|
105
|
+
# field. If omitted, this is assumed to be "name".
|
|
106
|
+
# @!attribute [rw] history
|
|
107
|
+
# @return [::Google::Api::ResourceDescriptor::History]
|
|
108
|
+
# Optional. The historical or future-looking state of the resource pattern.
|
|
109
|
+
#
|
|
110
|
+
# Example:
|
|
111
|
+
#
|
|
112
|
+
# // The InspectTemplate message originally only supported resource
|
|
113
|
+
# // names with organization, and project was added later.
|
|
114
|
+
# message InspectTemplate {
|
|
115
|
+
# option (google.api.resource) = {
|
|
116
|
+
# type: "dlp.googleapis.com/InspectTemplate"
|
|
117
|
+
# pattern:
|
|
118
|
+
# "organizations/{organization}/inspectTemplates/{inspect_template}"
|
|
119
|
+
# pattern: "projects/{project}/inspectTemplates/{inspect_template}"
|
|
120
|
+
# history: ORIGINALLY_SINGLE_PATTERN
|
|
121
|
+
# };
|
|
122
|
+
# }
|
|
123
|
+
# @!attribute [rw] plural
|
|
124
|
+
# @return [::String]
|
|
125
|
+
# The plural name used in the resource name and permission names, such as
|
|
126
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
|
131
|
+
# match the `plural` value.
|
|
132
|
+
#
|
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
|
134
|
+
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
|
135
|
+
#
|
|
136
|
+
# Note: The plural form is required even for singleton resources. See
|
|
137
|
+
# https://aip.dev/156
|
|
138
|
+
# @!attribute [rw] singular
|
|
139
|
+
# @return [::String]
|
|
140
|
+
# The same concept of the `singular` field in k8s CRD spec
|
|
141
|
+
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
|
142
|
+
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
|
143
|
+
# @!attribute [rw] style
|
|
144
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
|
145
|
+
# Style flag(s) for this resource.
|
|
146
|
+
# These indicate that a resource is expected to conform to a given
|
|
147
|
+
# style. See the specific style flags for additional information.
|
|
148
|
+
class ResourceDescriptor
|
|
149
|
+
include ::Google::Protobuf::MessageExts
|
|
150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
151
|
+
|
|
152
|
+
# A description of the historical or future-looking state of the
|
|
153
|
+
# resource pattern.
|
|
154
|
+
module History
|
|
155
|
+
# The "unset" value.
|
|
156
|
+
HISTORY_UNSPECIFIED = 0
|
|
157
|
+
|
|
158
|
+
# The resource originally had one pattern and launched as such, and
|
|
159
|
+
# additional patterns were added later.
|
|
160
|
+
ORIGINALLY_SINGLE_PATTERN = 1
|
|
161
|
+
|
|
162
|
+
# The resource has one pattern, but the API owner expects to add more
|
|
163
|
+
# later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
|
|
164
|
+
# that from being necessary once there are multiple patterns.)
|
|
165
|
+
FUTURE_MULTI_PATTERN = 2
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# A flag representing a specific style that a resource claims to conform to.
|
|
169
|
+
module Style
|
|
170
|
+
# The unspecified value. Do not use.
|
|
171
|
+
STYLE_UNSPECIFIED = 0
|
|
172
|
+
|
|
173
|
+
# This resource is intended to be "declarative-friendly".
|
|
174
|
+
#
|
|
175
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
|
176
|
+
# setting this to true communicates to tools that this resource should
|
|
177
|
+
# adhere to declarative-friendly expectations.
|
|
178
|
+
#
|
|
179
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
|
180
|
+
# additional checks.
|
|
181
|
+
DECLARATIVE_FRIENDLY = 1
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Defines a proto annotation that describes a string field that refers to
|
|
186
|
+
# an API resource.
|
|
187
|
+
# @!attribute [rw] type
|
|
188
|
+
# @return [::String]
|
|
189
|
+
# The resource type that the annotated field references.
|
|
190
|
+
#
|
|
191
|
+
# Example:
|
|
192
|
+
#
|
|
193
|
+
# message Subscription {
|
|
194
|
+
# string topic = 2 [(google.api.resource_reference) = {
|
|
195
|
+
# type: "pubsub.googleapis.com/Topic"
|
|
196
|
+
# }];
|
|
197
|
+
# }
|
|
198
|
+
#
|
|
199
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
|
200
|
+
# APIs use the special value * in their resource reference.
|
|
201
|
+
#
|
|
202
|
+
# Example:
|
|
203
|
+
#
|
|
204
|
+
# message GetIamPolicyRequest {
|
|
205
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
|
206
|
+
# type: "*"
|
|
207
|
+
# }];
|
|
208
|
+
# }
|
|
209
|
+
# @!attribute [rw] child_type
|
|
210
|
+
# @return [::String]
|
|
211
|
+
# The resource type of a child collection that the annotated field
|
|
212
|
+
# references. This is useful for annotating the `parent` field that
|
|
213
|
+
# doesn't have a fixed resource type.
|
|
214
|
+
#
|
|
215
|
+
# Example:
|
|
216
|
+
#
|
|
217
|
+
# message ListLogEntriesRequest {
|
|
218
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
|
219
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
|
220
|
+
# };
|
|
221
|
+
# }
|
|
222
|
+
class ResourceReference
|
|
223
|
+
include ::Google::Protobuf::MessageExts
|
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module UniversalLedger
|
|
23
|
+
module V1
|
|
24
|
+
# The status of an account.
|
|
25
|
+
module AccountStatus
|
|
26
|
+
# Invalid status.
|
|
27
|
+
ACCOUNT_STATUS_UNSPECIFIED = 0
|
|
28
|
+
|
|
29
|
+
# Active state where the account can conduct the operations allowed by its
|
|
30
|
+
# roles.
|
|
31
|
+
ACCOUNT_STATUS_ACTIVE = 1
|
|
32
|
+
|
|
33
|
+
# Inactive state where all transactions on the account are forbidden.
|
|
34
|
+
# The manager of the account can still send account management transactions.
|
|
35
|
+
ACCOUNT_STATUS_INACTIVE = 2
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# The regular set of roles.
|
|
39
|
+
module Role
|
|
40
|
+
# Invalid role.
|
|
41
|
+
ROLE_UNSPECIFIED = 0
|
|
42
|
+
|
|
43
|
+
# The role that allows an account to initiate a payment transaction.
|
|
44
|
+
ROLE_PAYER = 5
|
|
45
|
+
|
|
46
|
+
# The role that allows an account to receive payments.
|
|
47
|
+
ROLE_RECEIVER = 6
|
|
48
|
+
|
|
49
|
+
# The role that allows an account to deploy contracts.
|
|
50
|
+
ROLE_CONTRACT_CREATOR = 7
|
|
51
|
+
|
|
52
|
+
# The role that allows an account to interact with deployed contracts.
|
|
53
|
+
ROLE_CONTRACT_PARTICIPANT = 8
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# The set of permissions that can be granted to a contract.
|
|
57
|
+
# More values are expected to be added in the future.
|
|
58
|
+
module ContractPermission
|
|
59
|
+
# Invalid permission.
|
|
60
|
+
CONTRACT_PERMISSION_UNSPECIFIED = 0
|
|
61
|
+
|
|
62
|
+
# Allows a contract to read and write into storage owned by the account who
|
|
63
|
+
# granted the permission. The contract can only read and write the properties
|
|
64
|
+
# that it has previously written.
|
|
65
|
+
#
|
|
66
|
+
# Note this does not allow the contract to read or write data managed by
|
|
67
|
+
# other contracts; nor does it allow the contract to directly update other
|
|
68
|
+
# account properties (for example, the balance of the account in its native
|
|
69
|
+
# currency).
|
|
70
|
+
CONTRACT_PERMISSION_STORAGE = 1
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module UniversalLedger
|
|
23
|
+
module V1
|
|
24
|
+
# Represents an amount of currency (i.e. money). Note that the denominated
|
|
25
|
+
# currency is not included in this message. The relevant currency is decided by
|
|
26
|
+
# the account that sends the transaction. Each account has a unique immutable
|
|
27
|
+
# currency associated to it.
|
|
28
|
+
# @!attribute [rw] value
|
|
29
|
+
# @return [::Integer]
|
|
30
|
+
# Required. The number of minor units of the currency.
|
|
31
|
+
#
|
|
32
|
+
#
|
|
33
|
+
# This smallest valid denomination is referred to as "minor units" and is
|
|
34
|
+
# specified in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html).
|
|
35
|
+
# As an example, for USD, the value will be the number of cents and for GBP
|
|
36
|
+
# it will be the number of pence. For the Japanese Yen which does not have a
|
|
37
|
+
# minor unit, it will be the number of Yen.
|
|
38
|
+
class CurrencyValue
|
|
39
|
+
include ::Google::Protobuf::MessageExts
|
|
40
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Represents a currency on the ledger, which is qualified by its Currency
|
|
44
|
+
# Operator.
|
|
45
|
+
# @!attribute [rw] operator_id
|
|
46
|
+
# @return [::String]
|
|
47
|
+
# Required. The Currency Operator ID administering the currency.
|
|
48
|
+
class QualifiedCurrencyValue
|
|
49
|
+
include ::Google::Protobuf::MessageExts
|
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Represents a denominated amount in a currency.
|
|
54
|
+
# @!attribute [rw] currency
|
|
55
|
+
# @return [::Google::Cloud::UniversalLedger::V1::QualifiedCurrencyValue]
|
|
56
|
+
# Required. The currency of the amount.
|
|
57
|
+
# @!attribute [rw] amount_value
|
|
58
|
+
# @return [::Integer]
|
|
59
|
+
# Required. The number of minor units of the currency.
|
|
60
|
+
class AmountValue
|
|
61
|
+
include ::Google::Protobuf::MessageExts
|
|
62
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# A list of strings.
|
|
66
|
+
# @!attribute [rw] values
|
|
67
|
+
# @return [::Array<::String>]
|
|
68
|
+
# Optional. The string values.
|
|
69
|
+
class StringList
|
|
70
|
+
include ::Google::Protobuf::MessageExts
|
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# A list of int64s.
|
|
75
|
+
# @!attribute [rw] values
|
|
76
|
+
# @return [::Array<::Integer>]
|
|
77
|
+
# Optional. The int64 values.
|
|
78
|
+
class Int64List
|
|
79
|
+
include ::Google::Protobuf::MessageExts
|
|
80
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# A reference to an account on the ledger.
|
|
84
|
+
#
|
|
85
|
+
# This reference is swapped out for a full `gcul.Account` object by the
|
|
86
|
+
# ledger's runtime. For more details, see the [`gcul.Account`
|
|
87
|
+
# class](https://docs.cloud.google.com/universal-ledger/reference/gculpy-language#account-class)
|
|
88
|
+
# in the GCULpy language reference.
|
|
89
|
+
# @!attribute [rw] account_id
|
|
90
|
+
# @return [::String]
|
|
91
|
+
# Required. The account ID.
|
|
92
|
+
class AccountValue
|
|
93
|
+
include ::Google::Protobuf::MessageExts
|
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# A list of booleans.
|
|
98
|
+
# @!attribute [rw] values
|
|
99
|
+
# @return [::Array<::Boolean>]
|
|
100
|
+
# Optional. The boolean values.
|
|
101
|
+
class BoolList
|
|
102
|
+
include ::Google::Protobuf::MessageExts
|
|
103
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Represents a contract reference.
|
|
107
|
+
# @!attribute [rw] contract_id
|
|
108
|
+
# @return [::String]
|
|
109
|
+
# Required. The contract ID.
|
|
110
|
+
class ContractValue
|
|
111
|
+
include ::Google::Protobuf::MessageExts
|
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Indices map key to value. For example, `keys[0]` key maps to `values[0]`.
|
|
116
|
+
# @!attribute [rw] bool_keys
|
|
117
|
+
# @return [::Google::Cloud::UniversalLedger::V1::BoolList]
|
|
118
|
+
# Optional. A list of boolean keys.
|
|
119
|
+
#
|
|
120
|
+
# Note: The following fields are mutually exclusive: `bool_keys`, `string_keys`, `int64_keys`, `generic_keys`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
121
|
+
# @!attribute [rw] string_keys
|
|
122
|
+
# @return [::Google::Cloud::UniversalLedger::V1::StringList]
|
|
123
|
+
# Optional. A list of string keys.
|
|
124
|
+
#
|
|
125
|
+
# Note: The following fields are mutually exclusive: `string_keys`, `bool_keys`, `int64_keys`, `generic_keys`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
126
|
+
# @!attribute [rw] int64_keys
|
|
127
|
+
# @return [::Google::Cloud::UniversalLedger::V1::Int64List]
|
|
128
|
+
# Optional. A list of int64 keys.
|
|
129
|
+
#
|
|
130
|
+
# Note: The following fields are mutually exclusive: `int64_keys`, `bool_keys`, `string_keys`, `generic_keys`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
131
|
+
# @!attribute [rw] generic_keys
|
|
132
|
+
# @return [::Google::Cloud::UniversalLedger::V1::RepeatedValue]
|
|
133
|
+
# Optional. A generic list of keys.
|
|
134
|
+
#
|
|
135
|
+
# Note: The following fields are mutually exclusive: `generic_keys`, `bool_keys`, `string_keys`, `int64_keys`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
136
|
+
# @!attribute [rw] bool_values
|
|
137
|
+
# @return [::Google::Cloud::UniversalLedger::V1::BoolList]
|
|
138
|
+
# Optional. A list of boolean values.
|
|
139
|
+
#
|
|
140
|
+
# Note: The following fields are mutually exclusive: `bool_values`, `string_values`, `int64_values`, `generic_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
141
|
+
# @!attribute [rw] string_values
|
|
142
|
+
# @return [::Google::Cloud::UniversalLedger::V1::StringList]
|
|
143
|
+
# Optional. A list of string values.
|
|
144
|
+
#
|
|
145
|
+
# Note: The following fields are mutually exclusive: `string_values`, `bool_values`, `int64_values`, `generic_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
146
|
+
# @!attribute [rw] int64_values
|
|
147
|
+
# @return [::Google::Cloud::UniversalLedger::V1::Int64List]
|
|
148
|
+
# Optional. A list of int64 values.
|
|
149
|
+
#
|
|
150
|
+
# Note: The following fields are mutually exclusive: `int64_values`, `bool_values`, `string_values`, `generic_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
151
|
+
# @!attribute [rw] generic_values
|
|
152
|
+
# @return [::Google::Cloud::UniversalLedger::V1::RepeatedValue]
|
|
153
|
+
# Optional. A generic list of values as values.
|
|
154
|
+
#
|
|
155
|
+
# Note: The following fields are mutually exclusive: `generic_values`, `bool_values`, `string_values`, `int64_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
156
|
+
class DictValue
|
|
157
|
+
include ::Google::Protobuf::MessageExts
|
|
158
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# A list of values.
|
|
162
|
+
# @!attribute [rw] bool_values
|
|
163
|
+
# @return [::Google::Cloud::UniversalLedger::V1::BoolList]
|
|
164
|
+
# Optional. A list of boolean values.
|
|
165
|
+
#
|
|
166
|
+
# Note: The following fields are mutually exclusive: `bool_values`, `string_values`, `int64_values`, `generic_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
167
|
+
# @!attribute [rw] string_values
|
|
168
|
+
# @return [::Google::Cloud::UniversalLedger::V1::StringList]
|
|
169
|
+
# Optional. A list of string values.
|
|
170
|
+
#
|
|
171
|
+
# Note: The following fields are mutually exclusive: `string_values`, `bool_values`, `int64_values`, `generic_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
172
|
+
# @!attribute [rw] int64_values
|
|
173
|
+
# @return [::Google::Cloud::UniversalLedger::V1::Int64List]
|
|
174
|
+
# Optional. A list of int64 values.
|
|
175
|
+
#
|
|
176
|
+
# Note: The following fields are mutually exclusive: `int64_values`, `bool_values`, `string_values`, `generic_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
177
|
+
# @!attribute [rw] generic_values
|
|
178
|
+
# @return [::Google::Cloud::UniversalLedger::V1::RepeatedValue]
|
|
179
|
+
# Optional. A generic list of values.
|
|
180
|
+
#
|
|
181
|
+
# Note: The following fields are mutually exclusive: `generic_values`, `bool_values`, `string_values`, `int64_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
182
|
+
class ListValue
|
|
183
|
+
include ::Google::Protobuf::MessageExts
|
|
184
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# A generic list of values.
|
|
188
|
+
# @!attribute [rw] values
|
|
189
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::Value>]
|
|
190
|
+
# Optional. The values in the list.
|
|
191
|
+
class RepeatedValue
|
|
192
|
+
include ::Google::Protobuf::MessageExts
|
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# A concrete value of some type.
|
|
197
|
+
# @!attribute [rw] none_value
|
|
198
|
+
# @return [::Google::Cloud::UniversalLedger::V1::NoneValue]
|
|
199
|
+
# Optional. Represents a None value.
|
|
200
|
+
#
|
|
201
|
+
# Note: The following fields are mutually exclusive: `none_value`, `bool_value`, `int64_value`, `string_value`, `dict_value`, `contract_value`, `list_value`, `qualified_currency_value`, `account_value`, `amount_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
202
|
+
# @!attribute [rw] bool_value
|
|
203
|
+
# @return [::Boolean]
|
|
204
|
+
# Optional. A boolean value.
|
|
205
|
+
#
|
|
206
|
+
# Note: The following fields are mutually exclusive: `bool_value`, `none_value`, `int64_value`, `string_value`, `dict_value`, `contract_value`, `list_value`, `qualified_currency_value`, `account_value`, `amount_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
207
|
+
# @!attribute [rw] int64_value
|
|
208
|
+
# @return [::Integer]
|
|
209
|
+
# Optional. An int64 value.
|
|
210
|
+
#
|
|
211
|
+
# Note: The following fields are mutually exclusive: `int64_value`, `none_value`, `bool_value`, `string_value`, `dict_value`, `contract_value`, `list_value`, `qualified_currency_value`, `account_value`, `amount_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
212
|
+
# @!attribute [rw] string_value
|
|
213
|
+
# @return [::String]
|
|
214
|
+
# Optional. A string value.
|
|
215
|
+
#
|
|
216
|
+
# Note: The following fields are mutually exclusive: `string_value`, `none_value`, `bool_value`, `int64_value`, `dict_value`, `contract_value`, `list_value`, `qualified_currency_value`, `account_value`, `amount_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
217
|
+
# @!attribute [rw] dict_value
|
|
218
|
+
# @return [::Google::Cloud::UniversalLedger::V1::DictValue]
|
|
219
|
+
# Optional. A dictionary value.
|
|
220
|
+
#
|
|
221
|
+
# Note: The following fields are mutually exclusive: `dict_value`, `none_value`, `bool_value`, `int64_value`, `string_value`, `contract_value`, `list_value`, `qualified_currency_value`, `account_value`, `amount_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
222
|
+
# @!attribute [rw] contract_value
|
|
223
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ContractValue]
|
|
224
|
+
# Optional. A contract reference.
|
|
225
|
+
#
|
|
226
|
+
# Note: The following fields are mutually exclusive: `contract_value`, `none_value`, `bool_value`, `int64_value`, `string_value`, `dict_value`, `list_value`, `qualified_currency_value`, `account_value`, `amount_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
227
|
+
# @!attribute [rw] list_value
|
|
228
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ListValue]
|
|
229
|
+
# Optional. A list value.
|
|
230
|
+
#
|
|
231
|
+
# Note: The following fields are mutually exclusive: `list_value`, `none_value`, `bool_value`, `int64_value`, `string_value`, `dict_value`, `contract_value`, `qualified_currency_value`, `account_value`, `amount_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
232
|
+
# @!attribute [rw] qualified_currency_value
|
|
233
|
+
# @return [::Google::Cloud::UniversalLedger::V1::QualifiedCurrencyValue]
|
|
234
|
+
# Optional. A qualified currency value.
|
|
235
|
+
#
|
|
236
|
+
# Note: The following fields are mutually exclusive: `qualified_currency_value`, `none_value`, `bool_value`, `int64_value`, `string_value`, `dict_value`, `contract_value`, `list_value`, `account_value`, `amount_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
237
|
+
# @!attribute [rw] account_value
|
|
238
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AccountValue]
|
|
239
|
+
# Optional. An account value.
|
|
240
|
+
#
|
|
241
|
+
# Note: The following fields are mutually exclusive: `account_value`, `none_value`, `bool_value`, `int64_value`, `string_value`, `dict_value`, `contract_value`, `list_value`, `qualified_currency_value`, `amount_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
242
|
+
# @!attribute [rw] amount_value
|
|
243
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AmountValue]
|
|
244
|
+
# Optional. An amount value.
|
|
245
|
+
#
|
|
246
|
+
# Note: The following fields are mutually exclusive: `amount_value`, `none_value`, `bool_value`, `int64_value`, `string_value`, `dict_value`, `contract_value`, `list_value`, `qualified_currency_value`, `account_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
247
|
+
class Value
|
|
248
|
+
include ::Google::Protobuf::MessageExts
|
|
249
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# A singleton enumeration to represent the None value.
|
|
253
|
+
module NoneValue
|
|
254
|
+
# The None value.
|
|
255
|
+
NONE_VALUE_UNSPECIFIED = 0
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# An identifier of the slots which can hold keys on an account.
|
|
259
|
+
module KeySlot
|
|
260
|
+
# The key slot is unspecified.
|
|
261
|
+
KEY_SLOT_UNSPECIFIED = 0
|
|
262
|
+
|
|
263
|
+
# The primary key slot.
|
|
264
|
+
KEY_SLOT_PRIMARY = 1
|
|
265
|
+
|
|
266
|
+
# The alternate key slot.
|
|
267
|
+
KEY_SLOT_ALTERNATE = 2
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
end
|