Class: SDM::IdentitySetsHistory
- Inherits:
-
Object
- Object
- SDM::IdentitySetsHistory
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/svc.rb
Overview
IdentitySetsHistory records all changes to the state of a IdentitySet.
See IdentitySetHistory.
Instance Method Summary collapse
-
#initialize(channel, parent) ⇒ IdentitySetsHistory
constructor
A new instance of IdentitySetsHistory.
-
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of IdentitySetHistory records matching a given set of criteria.
Constructor Details
#initialize(channel, parent) ⇒ IdentitySetsHistory
Returns a new instance of IdentitySetsHistory.
3636 3637 3638 3639 3640 3641 3642 3643 |
# File 'lib/svc.rb', line 3636 def initialize(channel, parent) begin @stub = V1::IdentitySetsHistory::Stub.new(nil, nil, channel_override: channel) rescue => exception raise Plumbing::convert_error_to_porcelain(exception) end @parent = parent end |
Instance Method Details
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of IdentitySetHistory records matching a given set of criteria.
3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 |
# File 'lib/svc.rb', line 3646 def list( filter, *args, deadline: nil ) req = V1::IdentitySetHistoryListRequest.new() req. = V1::ListRequestMetadata.new() if not @parent.page_limit.nil? req..limit = @parent.page_limit end if not @parent.snapshot_time.nil? req..snapshot_at = @parent.snapshot_time end req.filter = Plumbing::quote_filter_args(filter, *args) resp = Enumerator::Generator.new { |g| tries = 0 loop do begin plumbing_response = @stub.list(req, metadata: @parent.("IdentitySetsHistory.List", req), deadline: deadline) rescue => exception if (@parent.shouldRetry(tries, exception, deadline)) tries + +sleep(@parent.exponentialBackoff(tries, deadline)) next end raise Plumbing::convert_error_to_porcelain(exception) end tries = 0 plumbing_response.history.each do |plumbing_item| g.yield Plumbing::convert_identity_set_history_to_porcelain(plumbing_item) end break if plumbing_response..next_cursor == "" req..cursor = plumbing_response..next_cursor end } resp end |