{"push_id":939724178,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"a712e6b2fa9e95ef3bb1a3d157c1edf89030b345","before":"41b54f0647f923170b976bc459605f7146bbb44c","commits":[{"sha":"a712e6b2fa9e95ef3bb1a3d157c1edf89030b345","author":{"email":"59e5b8140de97cc91c3fb6c5342dce948469af8c@redhat.com","name":"Juan Hernandez"},"message":"Add \"is_link\" attribute\n\nThis patch adds a new \"is_link\" attribute to struct and list types. This\nattribute indicates if the object is used as a link or as a normal\nobject. When an object is used as a link the server will only populate\nthe identifier and \"href\" attributes. For example, in the specification\nof the virtual machine type the \"cluster\" attribute is defined as a\nlink:\n\n  @Type\n  interface VmBase extends Identified {\n    ...\n    @Link Cluster cluster();\n    ...\n  }\n\nThis means that the server won't return the complete entity, but just\nthe identifier and the \"href\" attributes:\n\n  <vm ...>\n    ...\n    <cluster id=\"123\" href=\".../clusters/123\"/>\n    ...\n  </vm>\n\nThe Ruby SDK will mark these uses of the objects, using the \"is_link\"\nflag, so that the users of the SDK can decide, based on the value of\nthis flag, if furhter loading is needed:\n\n  # Get the VM:\n  vm = ...\n\n  # Check if the cluster is a link, in which case we need to\n  # load its complete representation explicitly:\n  if vm.cluster.is_link?\n    vm.cluster = clusters_service.get({:id => vm.cluster.id})\n  end\n\nChange-Id: Ifac0d857942e8ca32a2fa5fb24d845a79c4380a7\nSigned-off-by: Juan Hernandez <juan.hernandez@redhat.com>","distinct":true,"url":"https://api.github.com/repos/oVirt/ovirt-engine-sdk-ruby/commits/a712e6b2fa9e95ef3bb1a3d157c1edf89030b345"}]}