Class: CldProvisioning::Models::Operations::InspectRequest

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/cld_provisioning/models/operations/inspect_request.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(scope_type:, account_id: nil, scope_id: nil, principal_type: nil, principal_id: nil, folder_id: nil, asset_id: nil, collection_id: nil, param_key: nil, param_value: nil, cursor: nil) ⇒ InspectRequest

Returns a new instance of InspectRequest.



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/cld_provisioning/models/operations/inspect_request.rb', line 110

def initialize(
  scope_type:,
  account_id: nil,
  scope_id: nil,
  principal_type: nil,
  principal_id: nil,
  folder_id: nil,
  asset_id: nil,
  collection_id: nil,
  param_key: nil,
  param_value: nil,
  cursor: nil
)
  @scope_type = scope_type
  @account_id = 
  @scope_id = scope_id
  @principal_type = principal_type
  @principal_id = principal_id
  @folder_id = folder_id
  @asset_id = asset_id
  @collection_id = collection_id
  @param_key = param_key
  @param_value = param_value
  @cursor = cursor
end

Instance Method Details

#==(other) ⇒ Object



137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/cld_provisioning/models/operations/inspect_request.rb', line 137

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @scope_type == other.scope_type
  return false unless @account_id == other.
  return false unless @scope_id == other.scope_id
  return false unless @principal_type == other.principal_type
  return false unless @principal_id == other.principal_id
  return false unless @folder_id == other.folder_id
  return false unless @asset_id == other.asset_id
  return false unless @collection_id == other.collection_id
  return false unless @param_key == other.param_key
  return false unless @param_value == other.param_value
  return false unless @cursor == other.cursor
  true
end