Reference documentation and code samples for the Universal Ledger V1 API class Google::Cloud::UniversalLedger::V1::GrantContractPermissions.
Grants permissions to the contract by the transaction sender.
If delegate_contract_id is specified, the permissions and corresponding
storage are granted exclusively to the delegate_contract_id contract, not
the sender.
Note that there is no support for revoking permissions.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#contract_id
def contract_id() -> ::String
Returns
- (::String) — Required. The ID of the contract to which permissions are being granted.
#contract_id=
def contract_id=(value) -> ::String
Parameter
- value (::String) — Required. The ID of the contract to which permissions are being granted.
Returns
- (::String) — Required. The ID of the contract to which permissions are being granted.
#delegate_contract_id
def delegate_contract_id() -> ::String
Returns
- (::String) — Optional. The contract ID for which permissions are being granted. The transaction sender must be the owner of this contract.
#delegate_contract_id=
def delegate_contract_id=(value) -> ::String
Parameter
- value (::String) — Optional. The contract ID for which permissions are being granted. The transaction sender must be the owner of this contract.
Returns
- (::String) — Optional. The contract ID for which permissions are being granted. The transaction sender must be the owner of this contract.
#permissions
def permissions() -> ::Array<::Google::Cloud::UniversalLedger::V1::ContractPermission>
Returns
- (::Array<::Google::Cloud::UniversalLedger::V1::ContractPermission>) — The permissions to be granted.
#permissions=
def permissions=(value) -> ::Array<::Google::Cloud::UniversalLedger::V1::ContractPermission>
Parameter
- value (::Array<::Google::Cloud::UniversalLedger::V1::ContractPermission>) — The permissions to be granted.
Returns
- (::Array<::Google::Cloud::UniversalLedger::V1::ContractPermission>) — The permissions to be granted.